diff --git a/src/mavsdk_server/src/generated/action/action.pb.cc b/src/mavsdk_server/src/generated/action/action.pb.cc index cc01d13ebe..d73d1cfdff 100644 --- a/src/mavsdk_server/src/generated/action/action.pb.cc +++ b/src/mavsdk_server/src/generated/action/action.pb.cc @@ -11,77 +11,56 @@ #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. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace action { -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 ArmResponse::ArmResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct ArmResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ArmResponseDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR TransitionToMulticopterRequest::TransitionToMulticopterRequest(::_pbi::ConstantInitialized) {} +struct TransitionToMulticopterRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransitionToMulticopterRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TransitionToMulticopterRequestDefaultTypeInternal() {} union { - ArmResponse _instance; + TransitionToMulticopterRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmResponseDefaultTypeInternal _ArmResponse_default_instance_; -template -PROTOBUF_CONSTEXPR DisarmRequest::DisarmRequest( - ::_pbi::ConstantInitialized) {} -struct DisarmRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DisarmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DisarmRequestDefaultTypeInternal() {} + 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 { - DisarmRequest _instance; + TransitionToFixedwingRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisarmRequestDefaultTypeInternal _DisarmRequest_default_instance_; -template -PROTOBUF_CONSTEXPR DisarmResponse::DisarmResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct DisarmResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DisarmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DisarmResponseDefaultTypeInternal() {} + 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 { - DisarmResponse _instance; + TerminateRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisarmResponseDefaultTypeInternal _DisarmResponse_default_instance_; -template -PROTOBUF_CONSTEXPR TakeoffRequest::TakeoffRequest( - ::_pbi::ConstantInitialized) {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateRequestDefaultTypeInternal _TerminateRequest_default_instance_; + template +PROTOBUF_CONSTEXPR TakeoffRequest::TakeoffRequest(::_pbi::ConstantInitialized) {} struct TakeoffRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakeoffRequestDefaultTypeInternal() {} @@ -92,141 +71,152 @@ struct TakeoffRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffRequestDefaultTypeInternal _TakeoffRequest_default_instance_; -template -PROTOBUF_CONSTEXPR TakeoffResponse::TakeoffResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct TakeoffResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TakeoffResponseDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR ShutdownRequest::ShutdownRequest(::_pbi::ConstantInitialized) {} +struct ShutdownRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShutdownRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ShutdownRequestDefaultTypeInternal() {} union { - TakeoffResponse _instance; + ShutdownRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownRequestDefaultTypeInternal _ShutdownRequest_default_instance_; + +inline constexpr SetTakeoffAltitudeRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : altitude_{0}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR LandRequest::LandRequest( - ::_pbi::ConstantInitialized) {} -struct LandRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR LandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LandRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetTakeoffAltitudeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetTakeoffAltitudeRequestDefaultTypeInternal() {} union { - LandRequest _instance; + SetTakeoffAltitudeRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandRequestDefaultTypeInternal _LandRequest_default_instance_; + 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 LandResponse::LandResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct LandResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LandResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetReturnToLaunchAltitudeRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetReturnToLaunchAltitudeRequestDefaultTypeInternal() {} union { - LandResponse _instance; + SetReturnToLaunchAltitudeRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandResponseDefaultTypeInternal _LandResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeRequestDefaultTypeInternal _SetReturnToLaunchAltitudeRequest_default_instance_; + +inline constexpr SetMaximumSpeedRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : speed_{0}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR RebootRequest::RebootRequest( - ::_pbi::ConstantInitialized) {} -struct RebootRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RebootRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RebootRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetMaximumSpeedRequest::SetMaximumSpeedRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetMaximumSpeedRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetMaximumSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetMaximumSpeedRequestDefaultTypeInternal() {} union { - RebootRequest _instance; + SetMaximumSpeedRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootRequestDefaultTypeInternal _RebootRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetMaximumSpeedRequestDefaultTypeInternal _SetMaximumSpeedRequest_default_instance_; + +inline constexpr SetCurrentSpeedRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : speed_m_s_{0}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR RebootResponse::RebootResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct RebootResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RebootResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetCurrentSpeedRequest::SetCurrentSpeedRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetCurrentSpeedRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetCurrentSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetCurrentSpeedRequestDefaultTypeInternal() {} union { - RebootResponse _instance; + SetCurrentSpeedRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootResponseDefaultTypeInternal _RebootResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCurrentSpeedRequestDefaultTypeInternal _SetCurrentSpeedRequest_default_instance_; + +inline constexpr SetActuatorRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : index_{0}, + value_{0}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR ShutdownRequest::ShutdownRequest( - ::_pbi::ConstantInitialized) {} -struct ShutdownRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShutdownRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShutdownRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetActuatorRequest::SetActuatorRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetActuatorRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetActuatorRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetActuatorRequestDefaultTypeInternal() {} union { - ShutdownRequest _instance; + SetActuatorRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownRequestDefaultTypeInternal _ShutdownRequest_default_instance_; -template -PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct ShutdownResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShutdownResponseDefaultTypeInternal() {} + 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 { - ShutdownResponse _instance; + ReturnToLaunchRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownResponseDefaultTypeInternal _ShutdownResponse_default_instance_; -template -PROTOBUF_CONSTEXPR TerminateRequest::TerminateRequest( - ::_pbi::ConstantInitialized) {} -struct TerminateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TerminateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TerminateRequestDefaultTypeInternal() {} + 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 { - TerminateRequest _instance; + RebootRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateRequestDefaultTypeInternal _TerminateRequest_default_instance_; -template -PROTOBUF_CONSTEXPR TerminateResponse::TerminateResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct TerminateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TerminateResponseDefaultTypeInternal() {} + 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 { - TerminateResponse _instance; + LandRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; -template -PROTOBUF_CONSTEXPR KillRequest::KillRequest( - ::_pbi::ConstantInitialized) {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandRequestDefaultTypeInternal _LandRequest_default_instance_; + template +PROTOBUF_CONSTEXPR KillRequest::KillRequest(::_pbi::ConstantInitialized) {} struct KillRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR KillRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~KillRequestDefaultTypeInternal() {} @@ -237,105 +227,90 @@ struct KillRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KillRequestDefaultTypeInternal _KillRequest_default_instance_; -template -PROTOBUF_CONSTEXPR KillResponse::KillResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct KillResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR KillResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~KillResponseDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR HoldRequest::HoldRequest(::_pbi::ConstantInitialized) {} +struct HoldRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR HoldRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HoldRequestDefaultTypeInternal() {} union { - KillResponse _instance; + HoldRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KillResponseDefaultTypeInternal _KillResponse_default_instance_; + 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 ReturnToLaunchRequest::ReturnToLaunchRequest( - ::_pbi::ConstantInitialized) {} -struct ReturnToLaunchRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReturnToLaunchRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ReturnToLaunchRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GotoLocationRequest::GotoLocationRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GotoLocationRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GotoLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GotoLocationRequestDefaultTypeInternal() {} union { - ReturnToLaunchRequest _instance; + GotoLocationRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReturnToLaunchRequestDefaultTypeInternal _ReturnToLaunchRequest_default_instance_; -template -PROTOBUF_CONSTEXPR ReturnToLaunchResponse::ReturnToLaunchResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct ReturnToLaunchResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReturnToLaunchResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ReturnToLaunchResponseDefaultTypeInternal() {} + 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 { - ReturnToLaunchResponse _instance; + GetTakeoffAltitudeRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReturnToLaunchResponseDefaultTypeInternal _ReturnToLaunchResponse_default_instance_; -template -PROTOBUF_CONSTEXPR GotoLocationRequest::GotoLocationRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.latitude_deg_)*/ 0 - - , /*decltype(_impl_.longitude_deg_)*/ 0 - - , /*decltype(_impl_.absolute_altitude_m_)*/ 0 - - , /*decltype(_impl_.yaw_deg_)*/ 0 - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct GotoLocationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GotoLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GotoLocationRequestDefaultTypeInternal() {} + 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 { - GotoLocationRequest _instance; + GetReturnToLaunchAltitudeRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GotoLocationRequestDefaultTypeInternal _GotoLocationRequest_default_instance_; -template -PROTOBUF_CONSTEXPR GotoLocationResponse::GotoLocationResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct GotoLocationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GotoLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GotoLocationResponseDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReturnToLaunchAltitudeRequestDefaultTypeInternal _GetReturnToLaunchAltitudeRequest_default_instance_; + template +PROTOBUF_CONSTEXPR GetMaximumSpeedRequest::GetMaximumSpeedRequest(::_pbi::ConstantInitialized) {} +struct GetMaximumSpeedRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetMaximumSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetMaximumSpeedRequestDefaultTypeInternal() {} union { - GotoLocationResponse _instance; + GetMaximumSpeedRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GotoLocationResponseDefaultTypeInternal _GotoLocationResponse_default_instance_; -template -PROTOBUF_CONSTEXPR DoOrbitRequest::DoOrbitRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.radius_m_)*/ 0 - - , /*decltype(_impl_.velocity_ms_)*/ 0 - - , /*decltype(_impl_.latitude_deg_)*/ 0 - - , /*decltype(_impl_.longitude_deg_)*/ 0 - - , /*decltype(_impl_.absolute_altitude_m_)*/ 0 + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMaximumSpeedRequestDefaultTypeInternal _GetMaximumSpeedRequest_default_instance_; - , /*decltype(_impl_.yaw_behavior_)*/ 0 +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} {} - , /*decltype(_impl_._cached_size_)*/{}} {} +template +PROTOBUF_CONSTEXPR DoOrbitRequest::DoOrbitRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct DoOrbitRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR DoOrbitRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DoOrbitRequestDefaultTypeInternal() {} @@ -346,290 +321,386 @@ struct DoOrbitRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoOrbitRequestDefaultTypeInternal _DoOrbitRequest_default_instance_; -template -PROTOBUF_CONSTEXPR DoOrbitResponse::DoOrbitResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct DoOrbitResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DoOrbitResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DoOrbitResponseDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR DisarmRequest::DisarmRequest(::_pbi::ConstantInitialized) {} +struct DisarmRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DisarmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DisarmRequestDefaultTypeInternal() {} union { - DoOrbitResponse _instance; + DisarmRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoOrbitResponseDefaultTypeInternal _DoOrbitResponse_default_instance_; -template -PROTOBUF_CONSTEXPR HoldRequest::HoldRequest( - ::_pbi::ConstantInitialized) {} -struct HoldRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR HoldRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HoldRequestDefaultTypeInternal() {} + 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 { - HoldRequest _instance; + ArmRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HoldRequestDefaultTypeInternal _HoldRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmRequestDefaultTypeInternal _ArmRequest_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 HoldResponse::HoldResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct HoldResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR HoldResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HoldResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR ActionResult::ActionResult(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ActionResultDefaultTypeInternal { + PROTOBUF_CONSTEXPR ActionResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ActionResultDefaultTypeInternal() {} union { - HoldResponse _instance; + ActionResult _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HoldResponseDefaultTypeInternal _HoldResponse_default_instance_; -template -PROTOBUF_CONSTEXPR SetActuatorRequest::SetActuatorRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.index_)*/ 0 + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActionResultDefaultTypeInternal _ActionResult_default_instance_; - , /*decltype(_impl_.value_)*/ 0 +inline constexpr TransitionToMulticopterResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SetActuatorRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetActuatorRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetActuatorRequestDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR TransitionToMulticopterResponse::TransitionToMulticopterResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct TransitionToMulticopterResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransitionToMulticopterResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TransitionToMulticopterResponseDefaultTypeInternal() {} union { - SetActuatorRequest _instance; + TransitionToMulticopterResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetActuatorRequestDefaultTypeInternal _SetActuatorRequest_default_instance_; + 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 SetActuatorResponse::SetActuatorResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct SetActuatorResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetActuatorResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetActuatorResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR TransitionToFixedwingResponse::TransitionToFixedwingResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct TransitionToFixedwingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TransitionToFixedwingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TransitionToFixedwingResponseDefaultTypeInternal() {} union { - SetActuatorResponse _instance; + TransitionToFixedwingResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetActuatorResponseDefaultTypeInternal _SetActuatorResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToFixedwingResponseDefaultTypeInternal _TransitionToFixedwingResponse_default_instance_; + +inline constexpr TerminateResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR TransitionToFixedwingRequest::TransitionToFixedwingRequest( - ::_pbi::ConstantInitialized) {} -struct TransitionToFixedwingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToFixedwingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransitionToFixedwingRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR TerminateResponse::TerminateResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct TerminateResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TerminateResponseDefaultTypeInternal() {} union { - TransitionToFixedwingRequest _instance; + TerminateResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToFixedwingRequestDefaultTypeInternal _TransitionToFixedwingRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; + +inline constexpr TakeoffResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR TransitionToFixedwingResponse::TransitionToFixedwingResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct TransitionToFixedwingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToFixedwingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransitionToFixedwingResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR TakeoffResponse::TakeoffResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct TakeoffResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TakeoffResponseDefaultTypeInternal() {} union { - TransitionToFixedwingResponse _instance; + TakeoffResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToFixedwingResponseDefaultTypeInternal _TransitionToFixedwingResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; + +inline constexpr ShutdownResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR TransitionToMulticopterRequest::TransitionToMulticopterRequest( - ::_pbi::ConstantInitialized) {} -struct TransitionToMulticopterRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToMulticopterRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransitionToMulticopterRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ShutdownResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ShutdownResponseDefaultTypeInternal() {} union { - TransitionToMulticopterRequest _instance; + ShutdownResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToMulticopterRequestDefaultTypeInternal _TransitionToMulticopterRequest_default_instance_; + 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 TransitionToMulticopterResponse::TransitionToMulticopterResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct TransitionToMulticopterResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToMulticopterResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransitionToMulticopterResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetTakeoffAltitudeResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetTakeoffAltitudeResponseDefaultTypeInternal() {} union { - TransitionToMulticopterResponse _instance; + SetTakeoffAltitudeResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToMulticopterResponseDefaultTypeInternal _TransitionToMulticopterResponse_default_instance_; + 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 GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest( - ::_pbi::ConstantInitialized) {} -struct GetTakeoffAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTakeoffAltitudeRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetReturnToLaunchAltitudeResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetReturnToLaunchAltitudeResponseDefaultTypeInternal() {} union { - GetTakeoffAltitudeRequest _instance; + SetReturnToLaunchAltitudeResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTakeoffAltitudeRequestDefaultTypeInternal _GetTakeoffAltitudeRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeResponseDefaultTypeInternal _SetReturnToLaunchAltitudeResponse_default_instance_; + +inline constexpr SetMaximumSpeedResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr - , /*decltype(_impl_.altitude_)*/ 0 -} {} -struct GetTakeoffAltitudeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTakeoffAltitudeResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetMaximumSpeedResponse::SetMaximumSpeedResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetMaximumSpeedResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetMaximumSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetMaximumSpeedResponseDefaultTypeInternal() {} union { - GetTakeoffAltitudeResponse _instance; + SetMaximumSpeedResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTakeoffAltitudeResponseDefaultTypeInternal _GetTakeoffAltitudeResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetMaximumSpeedResponseDefaultTypeInternal _SetMaximumSpeedResponse_default_instance_; + +inline constexpr SetCurrentSpeedResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.altitude_)*/ 0 +PROTOBUF_CONSTEXPR SetCurrentSpeedResponse::SetCurrentSpeedResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetCurrentSpeedResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetCurrentSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetCurrentSpeedResponseDefaultTypeInternal() {} + union { + SetCurrentSpeedResponse _instance; + }; +}; - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SetTakeoffAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetTakeoffAltitudeRequestDefaultTypeInternal() {} +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} {} + +template +PROTOBUF_CONSTEXPR SetActuatorResponse::SetActuatorResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetActuatorResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetActuatorResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetActuatorResponseDefaultTypeInternal() {} union { - SetTakeoffAltitudeRequest _instance; + SetActuatorResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTakeoffAltitudeRequestDefaultTypeInternal _SetTakeoffAltitudeRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetActuatorResponseDefaultTypeInternal _SetActuatorResponse_default_instance_; + +inline constexpr ReturnToLaunchResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct SetTakeoffAltitudeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetTakeoffAltitudeResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR ReturnToLaunchResponse::ReturnToLaunchResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ReturnToLaunchResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ReturnToLaunchResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ReturnToLaunchResponseDefaultTypeInternal() {} union { - SetTakeoffAltitudeResponse _instance; + ReturnToLaunchResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTakeoffAltitudeResponseDefaultTypeInternal _SetTakeoffAltitudeResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReturnToLaunchResponseDefaultTypeInternal _ReturnToLaunchResponse_default_instance_; + +inline constexpr RebootResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR GetMaximumSpeedRequest::GetMaximumSpeedRequest( - ::_pbi::ConstantInitialized) {} -struct GetMaximumSpeedRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetMaximumSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetMaximumSpeedRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR RebootResponse::RebootResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct RebootResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~RebootResponseDefaultTypeInternal() {} union { - GetMaximumSpeedRequest _instance; + RebootResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMaximumSpeedRequestDefaultTypeInternal _GetMaximumSpeedRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootResponseDefaultTypeInternal _RebootResponse_default_instance_; + +inline constexpr LandResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR GetMaximumSpeedResponse::GetMaximumSpeedResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr - , /*decltype(_impl_.speed_)*/ 0 -} {} -struct GetMaximumSpeedResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetMaximumSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetMaximumSpeedResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR LandResponse::LandResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct LandResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~LandResponseDefaultTypeInternal() {} union { - GetMaximumSpeedResponse _instance; + LandResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMaximumSpeedResponseDefaultTypeInternal _GetMaximumSpeedResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandResponseDefaultTypeInternal _LandResponse_default_instance_; + +inline constexpr KillResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR SetMaximumSpeedRequest::SetMaximumSpeedRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.speed_)*/ 0 +PROTOBUF_CONSTEXPR KillResponse::KillResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct KillResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR KillResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~KillResponseDefaultTypeInternal() {} + union { + KillResponse _instance; + }; +}; - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SetMaximumSpeedRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetMaximumSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetMaximumSpeedRequestDefaultTypeInternal() {} +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} {} + +template +PROTOBUF_CONSTEXPR HoldResponse::HoldResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct HoldResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR HoldResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HoldResponseDefaultTypeInternal() {} union { - SetMaximumSpeedRequest _instance; + HoldResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetMaximumSpeedRequestDefaultTypeInternal _SetMaximumSpeedRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HoldResponseDefaultTypeInternal _HoldResponse_default_instance_; + +inline constexpr GotoLocationResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR SetMaximumSpeedResponse::SetMaximumSpeedResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct SetMaximumSpeedResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetMaximumSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetMaximumSpeedResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GotoLocationResponse::GotoLocationResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GotoLocationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GotoLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GotoLocationResponseDefaultTypeInternal() {} union { - SetMaximumSpeedResponse _instance; + GotoLocationResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetMaximumSpeedResponseDefaultTypeInternal _SetMaximumSpeedResponse_default_instance_; + 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 GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest( - ::_pbi::ConstantInitialized) {} -struct GetReturnToLaunchAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetReturnToLaunchAltitudeRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GetTakeoffAltitudeResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetTakeoffAltitudeResponseDefaultTypeInternal() {} union { - GetReturnToLaunchAltitudeRequest _instance; + GetTakeoffAltitudeResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReturnToLaunchAltitudeRequestDefaultTypeInternal _GetReturnToLaunchAltitudeRequest_default_instance_; + 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_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr - , /*decltype(_impl_.relative_altitude_m_)*/ 0 -} {} +PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct GetReturnToLaunchAltitudeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetReturnToLaunchAltitudeResponseDefaultTypeInternal() {} @@ -640,90 +711,83 @@ struct GetReturnToLaunchAltitudeResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReturnToLaunchAltitudeResponseDefaultTypeInternal _GetReturnToLaunchAltitudeResponse_default_instance_; -template -PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.relative_altitude_m_)*/ 0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SetReturnToLaunchAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetReturnToLaunchAltitudeRequestDefaultTypeInternal() {} - union { - SetReturnToLaunchAltitudeRequest _instance; - }; -}; +inline constexpr GetMaximumSpeedResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr}, + speed_{0} {} -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeRequestDefaultTypeInternal _SetReturnToLaunchAltitudeRequest_default_instance_; template -PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct SetReturnToLaunchAltitudeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetReturnToLaunchAltitudeResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GetMaximumSpeedResponse::GetMaximumSpeedResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GetMaximumSpeedResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetMaximumSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetMaximumSpeedResponseDefaultTypeInternal() {} union { - SetReturnToLaunchAltitudeResponse _instance; + GetMaximumSpeedResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeResponseDefaultTypeInternal _SetReturnToLaunchAltitudeResponse_default_instance_; -template -PROTOBUF_CONSTEXPR SetCurrentSpeedRequest::SetCurrentSpeedRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.speed_m_s_)*/ 0 + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMaximumSpeedResponseDefaultTypeInternal _GetMaximumSpeedResponse_default_instance_; - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SetCurrentSpeedRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetCurrentSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetCurrentSpeedRequestDefaultTypeInternal() {} +inline constexpr DoOrbitResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + +template +PROTOBUF_CONSTEXPR DoOrbitResponse::DoOrbitResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct DoOrbitResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DoOrbitResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DoOrbitResponseDefaultTypeInternal() {} union { - SetCurrentSpeedRequest _instance; + DoOrbitResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCurrentSpeedRequestDefaultTypeInternal _SetCurrentSpeedRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoOrbitResponseDefaultTypeInternal _DoOrbitResponse_default_instance_; + +inline constexpr DisarmResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR SetCurrentSpeedResponse::SetCurrentSpeedResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_result_)*/nullptr} {} -struct SetCurrentSpeedResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetCurrentSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetCurrentSpeedResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR DisarmResponse::DisarmResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct DisarmResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DisarmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DisarmResponseDefaultTypeInternal() {} union { - SetCurrentSpeedResponse _instance; + DisarmResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCurrentSpeedResponseDefaultTypeInternal _SetCurrentSpeedResponse_default_instance_; -template -PROTOBUF_CONSTEXPR ActionResult::ActionResult( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.result_str_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisarmResponseDefaultTypeInternal _DisarmResponse_default_instance_; - , /*decltype(_impl_.result_)*/ 0 +inline constexpr ArmResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_result_{nullptr} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ActionResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR ActionResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ActionResultDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR ArmResponse::ArmResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ArmResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ArmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ArmResponseDefaultTypeInternal() {} union { - ActionResult _instance; + ArmResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActionResultDefaultTypeInternal _ActionResult_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmResponseDefaultTypeInternal _ArmResponse_default_instance_; } // namespace action } // namespace rpc } // namespace mavsdk @@ -1165,51 +1229,51 @@ const ::uint32_t TableStruct_action_2faction_2eproto::offsets[] PROTOBUF_SECTION 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::DisarmRequest)}, - { 26, 35, -1, sizeof(::mavsdk::rpc::action::DisarmResponse)}, - { 36, -1, -1, sizeof(::mavsdk::rpc::action::TakeoffRequest)}, - { 44, 53, -1, sizeof(::mavsdk::rpc::action::TakeoffResponse)}, - { 54, -1, -1, sizeof(::mavsdk::rpc::action::LandRequest)}, - { 62, 71, -1, sizeof(::mavsdk::rpc::action::LandResponse)}, - { 72, -1, -1, sizeof(::mavsdk::rpc::action::RebootRequest)}, - { 80, 89, -1, sizeof(::mavsdk::rpc::action::RebootResponse)}, - { 90, -1, -1, sizeof(::mavsdk::rpc::action::ShutdownRequest)}, - { 98, 107, -1, sizeof(::mavsdk::rpc::action::ShutdownResponse)}, - { 108, -1, -1, sizeof(::mavsdk::rpc::action::TerminateRequest)}, - { 116, 125, -1, sizeof(::mavsdk::rpc::action::TerminateResponse)}, - { 126, -1, -1, sizeof(::mavsdk::rpc::action::KillRequest)}, - { 134, 143, -1, sizeof(::mavsdk::rpc::action::KillResponse)}, - { 144, -1, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchRequest)}, - { 152, 161, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchResponse)}, - { 162, -1, -1, sizeof(::mavsdk::rpc::action::GotoLocationRequest)}, - { 174, 183, -1, sizeof(::mavsdk::rpc::action::GotoLocationResponse)}, - { 184, -1, -1, sizeof(::mavsdk::rpc::action::DoOrbitRequest)}, - { 198, 207, -1, sizeof(::mavsdk::rpc::action::DoOrbitResponse)}, - { 208, -1, -1, sizeof(::mavsdk::rpc::action::HoldRequest)}, - { 216, 225, -1, sizeof(::mavsdk::rpc::action::HoldResponse)}, - { 226, -1, -1, sizeof(::mavsdk::rpc::action::SetActuatorRequest)}, - { 236, 245, -1, sizeof(::mavsdk::rpc::action::SetActuatorResponse)}, - { 246, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingRequest)}, - { 254, 263, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingResponse)}, - { 264, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterRequest)}, - { 272, 281, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterResponse)}, - { 282, -1, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeRequest)}, - { 290, 300, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeResponse)}, - { 302, -1, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeRequest)}, - { 311, 320, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeResponse)}, - { 321, -1, -1, sizeof(::mavsdk::rpc::action::GetMaximumSpeedRequest)}, - { 329, 339, -1, sizeof(::mavsdk::rpc::action::GetMaximumSpeedResponse)}, - { 341, -1, -1, sizeof(::mavsdk::rpc::action::SetMaximumSpeedRequest)}, - { 350, 359, -1, sizeof(::mavsdk::rpc::action::SetMaximumSpeedResponse)}, - { 360, -1, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest)}, - { 368, 378, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse)}, - { 380, -1, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest)}, - { 389, 398, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse)}, - { 399, -1, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedRequest)}, - { 408, 417, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedResponse)}, - { 418, -1, -1, sizeof(::mavsdk::rpc::action::ActionResult)}, + {0, -1, -1, sizeof(::mavsdk::rpc::action::ArmRequest)}, + {8, 17, -1, sizeof(::mavsdk::rpc::action::ArmResponse)}, + {18, -1, -1, sizeof(::mavsdk::rpc::action::DisarmRequest)}, + {26, 35, -1, sizeof(::mavsdk::rpc::action::DisarmResponse)}, + {36, -1, -1, sizeof(::mavsdk::rpc::action::TakeoffRequest)}, + {44, 53, -1, sizeof(::mavsdk::rpc::action::TakeoffResponse)}, + {54, -1, -1, sizeof(::mavsdk::rpc::action::LandRequest)}, + {62, 71, -1, sizeof(::mavsdk::rpc::action::LandResponse)}, + {72, -1, -1, sizeof(::mavsdk::rpc::action::RebootRequest)}, + {80, 89, -1, sizeof(::mavsdk::rpc::action::RebootResponse)}, + {90, -1, -1, sizeof(::mavsdk::rpc::action::ShutdownRequest)}, + {98, 107, -1, sizeof(::mavsdk::rpc::action::ShutdownResponse)}, + {108, -1, -1, sizeof(::mavsdk::rpc::action::TerminateRequest)}, + {116, 125, -1, sizeof(::mavsdk::rpc::action::TerminateResponse)}, + {126, -1, -1, sizeof(::mavsdk::rpc::action::KillRequest)}, + {134, 143, -1, sizeof(::mavsdk::rpc::action::KillResponse)}, + {144, -1, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchRequest)}, + {152, 161, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchResponse)}, + {162, -1, -1, sizeof(::mavsdk::rpc::action::GotoLocationRequest)}, + {174, 183, -1, sizeof(::mavsdk::rpc::action::GotoLocationResponse)}, + {184, -1, -1, sizeof(::mavsdk::rpc::action::DoOrbitRequest)}, + {198, 207, -1, sizeof(::mavsdk::rpc::action::DoOrbitResponse)}, + {208, -1, -1, sizeof(::mavsdk::rpc::action::HoldRequest)}, + {216, 225, -1, sizeof(::mavsdk::rpc::action::HoldResponse)}, + {226, -1, -1, sizeof(::mavsdk::rpc::action::SetActuatorRequest)}, + {236, 245, -1, sizeof(::mavsdk::rpc::action::SetActuatorResponse)}, + {246, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingRequest)}, + {254, 263, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingResponse)}, + {264, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterRequest)}, + {272, 281, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterResponse)}, + {282, -1, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeRequest)}, + {290, 300, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeResponse)}, + {302, -1, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeRequest)}, + {311, 320, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeResponse)}, + {321, -1, -1, sizeof(::mavsdk::rpc::action::GetMaximumSpeedRequest)}, + {329, 339, -1, sizeof(::mavsdk::rpc::action::GetMaximumSpeedResponse)}, + {341, -1, -1, sizeof(::mavsdk::rpc::action::SetMaximumSpeedRequest)}, + {350, 359, -1, sizeof(::mavsdk::rpc::action::SetMaximumSpeedResponse)}, + {360, -1, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest)}, + {368, 378, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse)}, + {380, -1, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest)}, + {389, 398, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse)}, + {399, -1, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedRequest)}, + {408, 417, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedResponse)}, + {418, -1, -1, sizeof(::mavsdk::rpc::action::ActionResult)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1450,30 +1514,14 @@ static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_action_2faction_2eproto(& namespace mavsdk { namespace rpc { namespace action { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ActionResult_Result_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_action_2faction_2eproto); +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_[] = { + 917504u, 0u, }; bool ActionResult_Result_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - return true; - default: - return false; - } + return 0 <= value && value <= 13; } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -1498,21 +1546,14 @@ constexpr int ActionResult::Result_ARRAYSIZE; #endif // (__cplusplus < 201703) && // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OrbitYawBehavior_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_action_2faction_2eproto); +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) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } + return 0 <= value && value <= 4; } // =================================================================== @@ -1520,14 +1561,19 @@ class ArmRequest::_Internal { public: }; -ArmRequest::ArmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +ArmRequest::ArmRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmRequest) } -ArmRequest::ArmRequest(const ArmRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - ArmRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -1535,19 +1581,11 @@ ArmRequest::ArmRequest(const ArmRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ArmRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ArmRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata ArmRequest::GetMetadata() const { +::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]); @@ -1565,59 +1603,59 @@ class ArmResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -ArmResponse::_Internal::action_result(const ArmResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& ArmResponse::_Internal::action_result(const ArmResponse* msg) { return *msg->_impl_.action_result_; } -ArmResponse::ArmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ArmResponse::ArmResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmResponse) } -ArmResponse::ArmResponse(const ArmResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ArmResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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::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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - ArmResponse::~ArmResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ArmResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ArmResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void ArmResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ArmResponse::Clear() { +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; @@ -1628,66 +1666,65 @@ void ArmResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ArmResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* ArmResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -1704,22 +1741,22 @@ ::size_t ArmResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ArmResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ArmResponse::MergeImpl +const ::google::protobuf::Message::ClassData ArmResponse::_class_data_ = { + ArmResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ArmResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ArmResponse::GetClassData() const { + return &_class_data_; +} -void ArmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -1731,7 +1768,7 @@ void ArmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ArmResponse::CopyFrom(const ArmResponse& from) { @@ -1741,18 +1778,21 @@ void ArmResponse::CopyFrom(const ArmResponse& from) { MergeFrom(from); } -bool ArmResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool ArmResponse::IsInitialized() const { return true; } -void ArmResponse::InternalSwap(ArmResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata ArmResponse::GetMetadata() const { +::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]); @@ -1763,14 +1803,19 @@ class DisarmRequest::_Internal { public: }; -DisarmRequest::DisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +DisarmRequest::DisarmRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DisarmRequest) } -DisarmRequest::DisarmRequest(const DisarmRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - DisarmRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -1778,19 +1823,11 @@ DisarmRequest::DisarmRequest(const DisarmRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DisarmRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DisarmRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata DisarmRequest::GetMetadata() const { +::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[2]); @@ -1808,59 +1845,59 @@ class DisarmResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -DisarmResponse::_Internal::action_result(const DisarmResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& DisarmResponse::_Internal::action_result(const DisarmResponse* msg) { return *msg->_impl_.action_result_; } -DisarmResponse::DisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +DisarmResponse::DisarmResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DisarmResponse) } -DisarmResponse::DisarmResponse(const DisarmResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - DisarmResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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::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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - DisarmResponse::~DisarmResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.DisarmResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void DisarmResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void DisarmResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void DisarmResponse::Clear() { +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; @@ -1871,66 +1908,65 @@ void DisarmResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* DisarmResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* DisarmResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -1947,22 +1983,22 @@ ::size_t DisarmResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DisarmResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DisarmResponse::MergeImpl +const ::google::protobuf::Message::ClassData DisarmResponse::_class_data_ = { + DisarmResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DisarmResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* DisarmResponse::GetClassData() const { + return &_class_data_; +} -void DisarmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -1974,7 +2010,7 @@ void DisarmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void DisarmResponse::CopyFrom(const DisarmResponse& from) { @@ -1984,18 +2020,21 @@ void DisarmResponse::CopyFrom(const DisarmResponse& from) { MergeFrom(from); } -bool DisarmResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool DisarmResponse::IsInitialized() const { return true; } -void DisarmResponse::InternalSwap(DisarmResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata DisarmResponse::GetMetadata() const { +::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[3]); @@ -2006,14 +2045,19 @@ class TakeoffRequest::_Internal { public: }; -TakeoffRequest::TakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +TakeoffRequest::TakeoffRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TakeoffRequest) } -TakeoffRequest::TakeoffRequest(const TakeoffRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - TakeoffRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -2021,19 +2065,11 @@ TakeoffRequest::TakeoffRequest(const TakeoffRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TakeoffRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TakeoffRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata TakeoffRequest::GetMetadata() const { +::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[4]); @@ -2051,59 +2087,59 @@ class TakeoffResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -TakeoffResponse::_Internal::action_result(const TakeoffResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::_Internal::action_result(const TakeoffResponse* msg) { return *msg->_impl_.action_result_; } -TakeoffResponse::TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +TakeoffResponse::TakeoffResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TakeoffResponse) } -TakeoffResponse::TakeoffResponse(const TakeoffResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - TakeoffResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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::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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - TakeoffResponse::~TakeoffResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TakeoffResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void TakeoffResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void TakeoffResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void TakeoffResponse::Clear() { +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; @@ -2114,66 +2150,65 @@ void TakeoffResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TakeoffResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* TakeoffResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2190,22 +2225,22 @@ ::size_t TakeoffResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TakeoffResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - TakeoffResponse::MergeImpl +const ::google::protobuf::Message::ClassData TakeoffResponse::_class_data_ = { + TakeoffResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TakeoffResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* TakeoffResponse::GetClassData() const { + return &_class_data_; +} -void TakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2217,7 +2252,7 @@ void TakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void TakeoffResponse::CopyFrom(const TakeoffResponse& from) { @@ -2227,18 +2262,21 @@ void TakeoffResponse::CopyFrom(const TakeoffResponse& from) { MergeFrom(from); } -bool TakeoffResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool TakeoffResponse::IsInitialized() const { return true; } -void TakeoffResponse::InternalSwap(TakeoffResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata TakeoffResponse::GetMetadata() const { +::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[5]); @@ -2249,14 +2287,19 @@ class LandRequest::_Internal { public: }; -LandRequest::LandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +LandRequest::LandRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.LandRequest) } -LandRequest::LandRequest(const LandRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - LandRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +LandRequest::LandRequest( + ::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) } @@ -2264,19 +2307,11 @@ LandRequest::LandRequest(const LandRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LandRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LandRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata LandRequest::GetMetadata() const { +::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[6]); @@ -2294,59 +2329,59 @@ class LandResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -LandResponse::_Internal::action_result(const LandResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& LandResponse::_Internal::action_result(const LandResponse* msg) { return *msg->_impl_.action_result_; } -LandResponse::LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +LandResponse::LandResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.LandResponse) } -LandResponse::LandResponse(const LandResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - LandResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - LandResponse::~LandResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.LandResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void LandResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void LandResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void LandResponse::Clear() { +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; @@ -2357,66 +2392,65 @@ void LandResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* LandResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2433,22 +2467,22 @@ ::size_t LandResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LandResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - LandResponse::MergeImpl +const ::google::protobuf::Message::ClassData LandResponse::_class_data_ = { + LandResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LandResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* LandResponse::GetClassData() const { + return &_class_data_; +} -void LandResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2460,7 +2494,7 @@ void LandResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void LandResponse::CopyFrom(const LandResponse& from) { @@ -2470,18 +2504,21 @@ void LandResponse::CopyFrom(const LandResponse& from) { MergeFrom(from); } -bool LandResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool LandResponse::IsInitialized() const { return true; } -void LandResponse::InternalSwap(LandResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata LandResponse::GetMetadata() const { +::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[7]); @@ -2492,14 +2529,19 @@ class RebootRequest::_Internal { public: }; -RebootRequest::RebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +RebootRequest::RebootRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.RebootRequest) } -RebootRequest::RebootRequest(const RebootRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - RebootRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -2507,19 +2549,11 @@ RebootRequest::RebootRequest(const RebootRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RebootRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RebootRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata RebootRequest::GetMetadata() const { +::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[8]); @@ -2537,59 +2571,59 @@ class RebootResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -RebootResponse::_Internal::action_result(const RebootResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& RebootResponse::_Internal::action_result(const RebootResponse* msg) { return *msg->_impl_.action_result_; } -RebootResponse::RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +RebootResponse::RebootResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.RebootResponse) } -RebootResponse::RebootResponse(const RebootResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - RebootResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - RebootResponse::~RebootResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.RebootResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void RebootResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void RebootResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void RebootResponse::Clear() { +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; @@ -2600,66 +2634,65 @@ void RebootResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* RebootResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2676,22 +2709,22 @@ ::size_t RebootResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RebootResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - RebootResponse::MergeImpl +const ::google::protobuf::Message::ClassData RebootResponse::_class_data_ = { + RebootResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RebootResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* RebootResponse::GetClassData() const { + return &_class_data_; +} -void RebootResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2703,7 +2736,7 @@ void RebootResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void RebootResponse::CopyFrom(const RebootResponse& from) { @@ -2713,18 +2746,21 @@ void RebootResponse::CopyFrom(const RebootResponse& from) { MergeFrom(from); } -bool RebootResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool RebootResponse::IsInitialized() const { return true; } -void RebootResponse::InternalSwap(RebootResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata RebootResponse::GetMetadata() const { +::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[9]); @@ -2735,14 +2771,19 @@ class ShutdownRequest::_Internal { public: }; -ShutdownRequest::ShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +ShutdownRequest::ShutdownRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ShutdownRequest) } -ShutdownRequest::ShutdownRequest(const ShutdownRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - ShutdownRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -2750,19 +2791,11 @@ ShutdownRequest::ShutdownRequest(const ShutdownRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShutdownRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShutdownRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata ShutdownRequest::GetMetadata() const { +::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[10]); @@ -2780,59 +2813,59 @@ class ShutdownResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -ShutdownResponse::_Internal::action_result(const ShutdownResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::_Internal::action_result(const ShutdownResponse* msg) { return *msg->_impl_.action_result_; } -ShutdownResponse::ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ShutdownResponse::ShutdownResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ShutdownResponse) } -ShutdownResponse::ShutdownResponse(const ShutdownResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ShutdownResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - ShutdownResponse::~ShutdownResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ShutdownResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ShutdownResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void ShutdownResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void ShutdownResponse::Clear() { +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; @@ -2843,66 +2876,65 @@ void ShutdownResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ShutdownResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* ShutdownResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2919,22 +2951,22 @@ ::size_t ShutdownResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShutdownResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ShutdownResponse::MergeImpl +const ::google::protobuf::Message::ClassData ShutdownResponse::_class_data_ = { + ShutdownResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShutdownResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ShutdownResponse::GetClassData() const { + return &_class_data_; +} -void ShutdownResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2946,7 +2978,7 @@ void ShutdownResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ShutdownResponse::CopyFrom(const ShutdownResponse& from) { @@ -2956,18 +2988,21 @@ void ShutdownResponse::CopyFrom(const ShutdownResponse& from) { MergeFrom(from); } -bool ShutdownResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool ShutdownResponse::IsInitialized() const { return true; } -void ShutdownResponse::InternalSwap(ShutdownResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata ShutdownResponse::GetMetadata() const { +::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[11]); @@ -2978,14 +3013,19 @@ class TerminateRequest::_Internal { public: }; -TerminateRequest::TerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +TerminateRequest::TerminateRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TerminateRequest) } -TerminateRequest::TerminateRequest(const TerminateRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - TerminateRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -2993,19 +3033,11 @@ TerminateRequest::TerminateRequest(const TerminateRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TerminateRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TerminateRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata TerminateRequest::GetMetadata() const { +::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[12]); @@ -3023,59 +3055,59 @@ class TerminateResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -TerminateResponse::_Internal::action_result(const TerminateResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& TerminateResponse::_Internal::action_result(const TerminateResponse* msg) { return *msg->_impl_.action_result_; } -TerminateResponse::TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +TerminateResponse::TerminateResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TerminateResponse) } -TerminateResponse::TerminateResponse(const TerminateResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - TerminateResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - TerminateResponse::~TerminateResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TerminateResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void TerminateResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void TerminateResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void TerminateResponse::Clear() { +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; @@ -3086,66 +3118,65 @@ void TerminateResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TerminateResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* TerminateResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3162,22 +3193,22 @@ ::size_t TerminateResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TerminateResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - TerminateResponse::MergeImpl +const ::google::protobuf::Message::ClassData TerminateResponse::_class_data_ = { + TerminateResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TerminateResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* TerminateResponse::GetClassData() const { + return &_class_data_; +} -void TerminateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3189,7 +3220,7 @@ void TerminateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void TerminateResponse::CopyFrom(const TerminateResponse& from) { @@ -3199,18 +3230,21 @@ void TerminateResponse::CopyFrom(const TerminateResponse& from) { MergeFrom(from); } -bool TerminateResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool TerminateResponse::IsInitialized() const { return true; } -void TerminateResponse::InternalSwap(TerminateResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata TerminateResponse::GetMetadata() const { +::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[13]); @@ -3221,14 +3255,19 @@ class KillRequest::_Internal { public: }; -KillRequest::KillRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +KillRequest::KillRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.KillRequest) } -KillRequest::KillRequest(const KillRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - KillRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -3236,19 +3275,11 @@ KillRequest::KillRequest(const KillRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData KillRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*KillRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata KillRequest::GetMetadata() const { +::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[14]); @@ -3266,59 +3297,59 @@ class KillResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -KillResponse::_Internal::action_result(const KillResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& KillResponse::_Internal::action_result(const KillResponse* msg) { return *msg->_impl_.action_result_; } -KillResponse::KillResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +KillResponse::KillResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.KillResponse) } -KillResponse::KillResponse(const KillResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - KillResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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::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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - KillResponse::~KillResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.KillResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void KillResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void KillResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void KillResponse::Clear() { +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; @@ -3329,66 +3360,65 @@ void KillResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* KillResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* KillResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3405,22 +3435,22 @@ ::size_t KillResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData KillResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - KillResponse::MergeImpl +const ::google::protobuf::Message::ClassData KillResponse::_class_data_ = { + KillResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*KillResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* KillResponse::GetClassData() const { + return &_class_data_; +} -void KillResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3432,7 +3462,7 @@ void KillResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void KillResponse::CopyFrom(const KillResponse& from) { @@ -3442,18 +3472,21 @@ void KillResponse::CopyFrom(const KillResponse& from) { MergeFrom(from); } -bool KillResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool KillResponse::IsInitialized() const { return true; } -void KillResponse::InternalSwap(KillResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata KillResponse::GetMetadata() const { +::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[15]); @@ -3464,14 +3497,19 @@ class ReturnToLaunchRequest::_Internal { public: }; -ReturnToLaunchRequest::ReturnToLaunchRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +ReturnToLaunchRequest::ReturnToLaunchRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ReturnToLaunchRequest) } -ReturnToLaunchRequest::ReturnToLaunchRequest(const ReturnToLaunchRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - ReturnToLaunchRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -3479,19 +3517,11 @@ ReturnToLaunchRequest::ReturnToLaunchRequest(const ReturnToLaunchRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReturnToLaunchRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReturnToLaunchRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata ReturnToLaunchRequest::GetMetadata() const { +::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[16]); @@ -3509,59 +3539,59 @@ class ReturnToLaunchResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -ReturnToLaunchResponse::_Internal::action_result(const ReturnToLaunchResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& ReturnToLaunchResponse::_Internal::action_result(const ReturnToLaunchResponse* msg) { return *msg->_impl_.action_result_; } -ReturnToLaunchResponse::ReturnToLaunchResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ReturnToLaunchResponse::ReturnToLaunchResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ReturnToLaunchResponse) } -ReturnToLaunchResponse::ReturnToLaunchResponse(const ReturnToLaunchResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ReturnToLaunchResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - ReturnToLaunchResponse::~ReturnToLaunchResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ReturnToLaunchResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ReturnToLaunchResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void ReturnToLaunchResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ReturnToLaunchResponse::Clear() { +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; @@ -3572,66 +3602,65 @@ void ReturnToLaunchResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ReturnToLaunchResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3648,22 +3677,22 @@ ::size_t ReturnToLaunchResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReturnToLaunchResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ReturnToLaunchResponse::MergeImpl +const ::google::protobuf::Message::ClassData ReturnToLaunchResponse::_class_data_ = { + ReturnToLaunchResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReturnToLaunchResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ReturnToLaunchResponse::GetClassData() const { + return &_class_data_; +} -void ReturnToLaunchResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3675,7 +3704,7 @@ void ReturnToLaunchResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ReturnToLaunchResponse::CopyFrom(const ReturnToLaunchResponse& from) { @@ -3685,18 +3714,21 @@ void ReturnToLaunchResponse::CopyFrom(const ReturnToLaunchResponse& from) { MergeFrom(from); } -bool ReturnToLaunchResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool ReturnToLaunchResponse::IsInitialized() const { return true; } -void ReturnToLaunchResponse::InternalSwap(ReturnToLaunchResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata ReturnToLaunchResponse::GetMetadata() const { +::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[17]); @@ -3707,52 +3739,43 @@ class GotoLocationRequest::_Internal { public: }; -GotoLocationRequest::GotoLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GotoLocationRequest::GotoLocationRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GotoLocationRequest) } -GotoLocationRequest::GotoLocationRequest(const GotoLocationRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GotoLocationRequest) +GotoLocationRequest::GotoLocationRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.latitude_deg_) { 0 } - - , decltype(_impl_.longitude_deg_) { 0 } - - , decltype(_impl_.absolute_altitude_m_) { 0 } - - , decltype(_impl_.yaw_deg_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GotoLocationRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void GotoLocationRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void GotoLocationRequest::Clear() { +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; @@ -3760,82 +3783,74 @@ void GotoLocationRequest::Clear() { ::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GotoLocationRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // double latitude_deg = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 9)) { - _impl_.latitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else { - goto handle_unusual; - } - continue; - // double longitude_deg = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 17)) { - _impl_.longitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else { - goto handle_unusual; - } - continue; - // float absolute_altitude_m = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) { - _impl_.absolute_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float yaw_deg = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) { - _impl_.yaw_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // 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 + {{ + }}, +}; + ::uint8_t* GotoLocationRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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."); + 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)); @@ -3846,7 +3861,8 @@ ::uint8_t* GotoLocationRequest::_InternalSerialize( } // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + 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)); @@ -3857,7 +3873,8 @@ ::uint8_t* GotoLocationRequest::_InternalSerialize( } // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -3868,7 +3885,8 @@ ::uint8_t* GotoLocationRequest::_InternalSerialize( } // float yaw_deg = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -3879,8 +3897,9 @@ ::uint8_t* GotoLocationRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3895,7 +3914,8 @@ ::size_t GotoLocationRequest::ByteSizeLong() const { (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."); + 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)); @@ -3904,7 +3924,8 @@ ::size_t GotoLocationRequest::ByteSizeLong() const { } // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + 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)); @@ -3913,7 +3934,8 @@ ::size_t GotoLocationRequest::ByteSizeLong() const { } // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -3922,7 +3944,8 @@ ::size_t GotoLocationRequest::ByteSizeLong() const { } // float yaw_deg = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -3933,14 +3956,15 @@ ::size_t GotoLocationRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GotoLocationRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GotoLocationRequest::MergeImpl +const ::google::protobuf::Message::ClassData GotoLocationRequest::_class_data_ = { + GotoLocationRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GotoLocationRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* GotoLocationRequest::GetClassData() const { + return &_class_data_; +} -void GotoLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3948,35 +3972,39 @@ void GotoLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co ::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."); + 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."); + 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."); + 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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GotoLocationRequest::CopyFrom(const GotoLocationRequest& from) { @@ -3986,14 +4014,17 @@ void GotoLocationRequest::CopyFrom(const GotoLocationRequest& from) { MergeFrom(from); } -bool GotoLocationRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool GotoLocationRequest::IsInitialized() const { return true; } -void GotoLocationRequest::InternalSwap(GotoLocationRequest* other) { +::_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_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.yaw_deg_) + sizeof(GotoLocationRequest::_impl_.yaw_deg_) - PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.latitude_deg_)>( @@ -4001,7 +4032,7 @@ void GotoLocationRequest::InternalSwap(GotoLocationRequest* other) { reinterpret_cast(&other->_impl_.latitude_deg_)); } -::PROTOBUF_NAMESPACE_ID::Metadata GotoLocationRequest::GetMetadata() const { +::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[18]); @@ -4019,59 +4050,59 @@ class GotoLocationResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -GotoLocationResponse::_Internal::action_result(const GotoLocationResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& GotoLocationResponse::_Internal::action_result(const GotoLocationResponse* msg) { return *msg->_impl_.action_result_; } -GotoLocationResponse::GotoLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GotoLocationResponse::GotoLocationResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GotoLocationResponse) } -GotoLocationResponse::GotoLocationResponse(const GotoLocationResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GotoLocationResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - GotoLocationResponse::~GotoLocationResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GotoLocationResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GotoLocationResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void GotoLocationResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GotoLocationResponse::Clear() { +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; @@ -4082,66 +4113,65 @@ void GotoLocationResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GotoLocationResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* GotoLocationResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4158,22 +4188,22 @@ ::size_t GotoLocationResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GotoLocationResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GotoLocationResponse::MergeImpl +const ::google::protobuf::Message::ClassData GotoLocationResponse::_class_data_ = { + GotoLocationResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GotoLocationResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* GotoLocationResponse::GetClassData() const { + return &_class_data_; +} -void GotoLocationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4185,7 +4215,7 @@ void GotoLocationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, c _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GotoLocationResponse::CopyFrom(const GotoLocationResponse& from) { @@ -4195,18 +4225,21 @@ void GotoLocationResponse::CopyFrom(const GotoLocationResponse& from) { MergeFrom(from); } -bool GotoLocationResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool GotoLocationResponse::IsInitialized() const { return true; } -void GotoLocationResponse::InternalSwap(GotoLocationResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata GotoLocationResponse::GetMetadata() const { +::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[19]); @@ -4217,56 +4250,43 @@ class DoOrbitRequest::_Internal { public: }; -DoOrbitRequest::DoOrbitRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +DoOrbitRequest::DoOrbitRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DoOrbitRequest) } -DoOrbitRequest::DoOrbitRequest(const DoOrbitRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.radius_m_) { 0 } - - , decltype(_impl_.velocity_ms_) { 0 } - - , decltype(_impl_.latitude_deg_) { 0 } - - , decltype(_impl_.longitude_deg_) { 0 } - - , decltype(_impl_.absolute_altitude_m_) { 0 } - - , decltype(_impl_.yaw_behavior_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void DoOrbitRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void DoOrbitRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void DoOrbitRequest::Clear() { +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; @@ -4274,101 +4294,88 @@ void DoOrbitRequest::Clear() { ::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* DoOrbitRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // float radius_m = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { - _impl_.radius_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float velocity_ms = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { - _impl_.velocity_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_yaw_behavior(static_cast<::mavsdk::rpc::action::OrbitYawBehavior>(val)); - } else { - goto handle_unusual; - } - continue; - // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 41)) { - _impl_.latitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else { - goto handle_unusual; - } - continue; - // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 49)) { - _impl_.longitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else { - goto handle_unusual; - } - continue; - // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 57)) { - _impl_.absolute_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // 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 + {{ + }}, +}; + ::uint8_t* DoOrbitRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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."); + 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)); @@ -4379,7 +4386,8 @@ ::uint8_t* DoOrbitRequest::_InternalSerialize( } // float velocity_ms = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -4397,7 +4405,8 @@ ::uint8_t* DoOrbitRequest::_InternalSerialize( } // 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."); + 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)); @@ -4408,7 +4417,8 @@ ::uint8_t* DoOrbitRequest::_InternalSerialize( } // 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."); + 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)); @@ -4419,7 +4429,8 @@ ::uint8_t* DoOrbitRequest::_InternalSerialize( } // 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."); + 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)); @@ -4430,8 +4441,9 @@ ::uint8_t* DoOrbitRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4446,7 +4458,8 @@ ::size_t DoOrbitRequest::ByteSizeLong() const { (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."); + 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)); @@ -4455,7 +4468,8 @@ ::size_t DoOrbitRequest::ByteSizeLong() const { } // float velocity_ms = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -4464,7 +4478,8 @@ ::size_t DoOrbitRequest::ByteSizeLong() const { } // 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."); + 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)); @@ -4473,7 +4488,8 @@ ::size_t DoOrbitRequest::ByteSizeLong() const { } // 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."); + 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)); @@ -4482,7 +4498,8 @@ ::size_t DoOrbitRequest::ByteSizeLong() const { } // 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."); + 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)); @@ -4499,14 +4516,15 @@ ::size_t DoOrbitRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DoOrbitRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DoOrbitRequest::MergeImpl +const ::google::protobuf::Message::ClassData DoOrbitRequest::_class_data_ = { + DoOrbitRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DoOrbitRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* DoOrbitRequest::GetClassData() const { + return &_class_data_; +} -void DoOrbitRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4514,35 +4532,40 @@ void DoOrbitRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : ::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."); + 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."); + 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."); + 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."); + 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."); + 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)); @@ -4552,7 +4575,7 @@ void DoOrbitRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : if (from._internal_yaw_behavior() != 0) { _this->_internal_set_yaw_behavior(from._internal_yaw_behavior()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void DoOrbitRequest::CopyFrom(const DoOrbitRequest& from) { @@ -4562,14 +4585,17 @@ void DoOrbitRequest::CopyFrom(const DoOrbitRequest& from) { MergeFrom(from); } -bool DoOrbitRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool DoOrbitRequest::IsInitialized() const { return true; } -void DoOrbitRequest::InternalSwap(DoOrbitRequest* other) { +::_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_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.yaw_behavior_) + sizeof(DoOrbitRequest::_impl_.yaw_behavior_) - PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.radius_m_)>( @@ -4577,7 +4603,7 @@ void DoOrbitRequest::InternalSwap(DoOrbitRequest* other) { reinterpret_cast(&other->_impl_.radius_m_)); } -::PROTOBUF_NAMESPACE_ID::Metadata DoOrbitRequest::GetMetadata() const { +::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[20]); @@ -4595,59 +4621,59 @@ class DoOrbitResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -DoOrbitResponse::_Internal::action_result(const DoOrbitResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::_Internal::action_result(const DoOrbitResponse* msg) { return *msg->_impl_.action_result_; } -DoOrbitResponse::DoOrbitResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +DoOrbitResponse::DoOrbitResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DoOrbitResponse) } -DoOrbitResponse::DoOrbitResponse(const DoOrbitResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - DoOrbitResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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::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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - DoOrbitResponse::~DoOrbitResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.DoOrbitResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void DoOrbitResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void DoOrbitResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void DoOrbitResponse::Clear() { +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; @@ -4658,66 +4684,65 @@ void DoOrbitResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* DoOrbitResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* DoOrbitResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4734,22 +4759,22 @@ ::size_t DoOrbitResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DoOrbitResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DoOrbitResponse::MergeImpl +const ::google::protobuf::Message::ClassData DoOrbitResponse::_class_data_ = { + DoOrbitResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DoOrbitResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* DoOrbitResponse::GetClassData() const { + return &_class_data_; +} -void DoOrbitResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4761,7 +4786,7 @@ void DoOrbitResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void DoOrbitResponse::CopyFrom(const DoOrbitResponse& from) { @@ -4771,18 +4796,21 @@ void DoOrbitResponse::CopyFrom(const DoOrbitResponse& from) { MergeFrom(from); } -bool DoOrbitResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool DoOrbitResponse::IsInitialized() const { return true; } -void DoOrbitResponse::InternalSwap(DoOrbitResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata DoOrbitResponse::GetMetadata() const { +::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[21]); @@ -4793,14 +4821,19 @@ class HoldRequest::_Internal { public: }; -HoldRequest::HoldRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +HoldRequest::HoldRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.HoldRequest) } -HoldRequest::HoldRequest(const HoldRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - HoldRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -4808,19 +4841,11 @@ HoldRequest::HoldRequest(const HoldRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HoldRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HoldRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata HoldRequest::GetMetadata() const { +::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[22]); @@ -4838,59 +4863,59 @@ class HoldResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -HoldResponse::_Internal::action_result(const HoldResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& HoldResponse::_Internal::action_result(const HoldResponse* msg) { return *msg->_impl_.action_result_; } -HoldResponse::HoldResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HoldResponse::HoldResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.HoldResponse) } -HoldResponse::HoldResponse(const HoldResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - HoldResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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::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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - HoldResponse::~HoldResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.HoldResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void HoldResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void HoldResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void HoldResponse::Clear() { +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; @@ -4901,66 +4926,65 @@ void HoldResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* HoldResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* HoldResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4977,22 +5001,22 @@ ::size_t HoldResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HoldResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - HoldResponse::MergeImpl +const ::google::protobuf::Message::ClassData HoldResponse::_class_data_ = { + HoldResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HoldResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* HoldResponse::GetClassData() const { + return &_class_data_; +} -void HoldResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5004,7 +5028,7 @@ void HoldResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void HoldResponse::CopyFrom(const HoldResponse& from) { @@ -5014,18 +5038,21 @@ void HoldResponse::CopyFrom(const HoldResponse& from) { MergeFrom(from); } -bool HoldResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool HoldResponse::IsInitialized() const { return true; } -void HoldResponse::InternalSwap(HoldResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata HoldResponse::GetMetadata() const { +::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[23]); @@ -5036,48 +5063,43 @@ class SetActuatorRequest::_Internal { public: }; -SetActuatorRequest::SetActuatorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetActuatorRequest::SetActuatorRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetActuatorRequest) } -SetActuatorRequest::SetActuatorRequest(const SetActuatorRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetActuatorRequest) +SetActuatorRequest::SetActuatorRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.index_) { 0 } - - , decltype(_impl_.value_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetActuatorRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void SetActuatorRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void SetActuatorRequest::Clear() { +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; @@ -5085,71 +5107,69 @@ void SetActuatorRequest::Clear() { ::memset(&_impl_.index_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.value_) - reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.value_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetActuatorRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int32 index = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // float value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { - _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // 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 + {{ + }}, +}; + ::uint8_t* SetActuatorRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // int32 index = 1; if (this->_internal_index() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 1, this->_internal_index(), target); + 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."); + 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)); @@ -5160,8 +5180,9 @@ ::uint8_t* SetActuatorRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -5182,7 +5203,8 @@ ::size_t SetActuatorRequest::ByteSizeLong() const { } // float value = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -5193,14 +5215,15 @@ ::size_t SetActuatorRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetActuatorRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetActuatorRequest::MergeImpl +const ::google::protobuf::Message::ClassData SetActuatorRequest::_class_data_ = { + SetActuatorRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetActuatorRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetActuatorRequest::GetClassData() const { + return &_class_data_; +} -void SetActuatorRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5211,14 +5234,15 @@ void SetActuatorRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con 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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetActuatorRequest::CopyFrom(const SetActuatorRequest& from) { @@ -5228,14 +5252,17 @@ void SetActuatorRequest::CopyFrom(const SetActuatorRequest& from) { MergeFrom(from); } -bool SetActuatorRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetActuatorRequest::IsInitialized() const { return true; } -void SetActuatorRequest::InternalSwap(SetActuatorRequest* other) { +::_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_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.value_) + sizeof(SetActuatorRequest::_impl_.value_) - PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.index_)>( @@ -5243,7 +5270,7 @@ void SetActuatorRequest::InternalSwap(SetActuatorRequest* other) { reinterpret_cast(&other->_impl_.index_)); } -::PROTOBUF_NAMESPACE_ID::Metadata SetActuatorRequest::GetMetadata() const { +::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[24]); @@ -5261,59 +5288,59 @@ class SetActuatorResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -SetActuatorResponse::_Internal::action_result(const SetActuatorResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& SetActuatorResponse::_Internal::action_result(const SetActuatorResponse* msg) { return *msg->_impl_.action_result_; } -SetActuatorResponse::SetActuatorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetActuatorResponse::SetActuatorResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetActuatorResponse) } -SetActuatorResponse::SetActuatorResponse(const SetActuatorResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetActuatorResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - SetActuatorResponse::~SetActuatorResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetActuatorResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetActuatorResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void SetActuatorResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void SetActuatorResponse::Clear() { +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; @@ -5324,66 +5351,65 @@ void SetActuatorResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetActuatorResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetActuatorResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -5400,22 +5426,22 @@ ::size_t SetActuatorResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetActuatorResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetActuatorResponse::MergeImpl +const ::google::protobuf::Message::ClassData SetActuatorResponse::_class_data_ = { + SetActuatorResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetActuatorResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetActuatorResponse::GetClassData() const { + return &_class_data_; +} -void SetActuatorResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5427,7 +5453,7 @@ void SetActuatorResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetActuatorResponse::CopyFrom(const SetActuatorResponse& from) { @@ -5437,18 +5463,21 @@ void SetActuatorResponse::CopyFrom(const SetActuatorResponse& from) { MergeFrom(from); } -bool SetActuatorResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetActuatorResponse::IsInitialized() const { return true; } -void SetActuatorResponse::InternalSwap(SetActuatorResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetActuatorResponse::GetMetadata() const { +::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[25]); @@ -5459,14 +5488,19 @@ class TransitionToFixedwingRequest::_Internal { public: }; -TransitionToFixedwingRequest::TransitionToFixedwingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +TransitionToFixedwingRequest::TransitionToFixedwingRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToFixedwingRequest) } -TransitionToFixedwingRequest::TransitionToFixedwingRequest(const TransitionToFixedwingRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - TransitionToFixedwingRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -5474,19 +5508,11 @@ TransitionToFixedwingRequest::TransitionToFixedwingRequest(const TransitionToFix -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransitionToFixedwingRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransitionToFixedwingRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata TransitionToFixedwingRequest::GetMetadata() const { +::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[26]); @@ -5504,59 +5530,59 @@ class TransitionToFixedwingResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -TransitionToFixedwingResponse::_Internal::action_result(const TransitionToFixedwingResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& TransitionToFixedwingResponse::_Internal::action_result(const TransitionToFixedwingResponse* msg) { return *msg->_impl_.action_result_; } -TransitionToFixedwingResponse::TransitionToFixedwingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +TransitionToFixedwingResponse::TransitionToFixedwingResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToFixedwingResponse) } -TransitionToFixedwingResponse::TransitionToFixedwingResponse(const TransitionToFixedwingResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - TransitionToFixedwingResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - TransitionToFixedwingResponse::~TransitionToFixedwingResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TransitionToFixedwingResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void TransitionToFixedwingResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void TransitionToFixedwingResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void TransitionToFixedwingResponse::Clear() { +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; @@ -5567,66 +5593,65 @@ void TransitionToFixedwingResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TransitionToFixedwingResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* TransitionToFixedwingResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -5643,22 +5668,22 @@ ::size_t TransitionToFixedwingResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransitionToFixedwingResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - TransitionToFixedwingResponse::MergeImpl +const ::google::protobuf::Message::ClassData TransitionToFixedwingResponse::_class_data_ = { + TransitionToFixedwingResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransitionToFixedwingResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* TransitionToFixedwingResponse::GetClassData() const { + return &_class_data_; +} -void TransitionToFixedwingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5670,7 +5695,7 @@ void TransitionToFixedwingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void TransitionToFixedwingResponse::CopyFrom(const TransitionToFixedwingResponse& from) { @@ -5680,18 +5705,21 @@ void TransitionToFixedwingResponse::CopyFrom(const TransitionToFixedwingResponse MergeFrom(from); } -bool TransitionToFixedwingResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool TransitionToFixedwingResponse::IsInitialized() const { return true; } -void TransitionToFixedwingResponse::InternalSwap(TransitionToFixedwingResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata TransitionToFixedwingResponse::GetMetadata() const { +::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[27]); @@ -5702,14 +5730,19 @@ class TransitionToMulticopterRequest::_Internal { public: }; -TransitionToMulticopterRequest::TransitionToMulticopterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +TransitionToMulticopterRequest::TransitionToMulticopterRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToMulticopterRequest) } -TransitionToMulticopterRequest::TransitionToMulticopterRequest(const TransitionToMulticopterRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - TransitionToMulticopterRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -5717,19 +5750,11 @@ TransitionToMulticopterRequest::TransitionToMulticopterRequest(const TransitionT -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransitionToMulticopterRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransitionToMulticopterRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata TransitionToMulticopterRequest::GetMetadata() const { +::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[28]); @@ -5747,59 +5772,59 @@ class TransitionToMulticopterResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -TransitionToMulticopterResponse::_Internal::action_result(const TransitionToMulticopterResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& TransitionToMulticopterResponse::_Internal::action_result(const TransitionToMulticopterResponse* msg) { return *msg->_impl_.action_result_; } -TransitionToMulticopterResponse::TransitionToMulticopterResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +TransitionToMulticopterResponse::TransitionToMulticopterResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToMulticopterResponse) } -TransitionToMulticopterResponse::TransitionToMulticopterResponse(const TransitionToMulticopterResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - TransitionToMulticopterResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - TransitionToMulticopterResponse::~TransitionToMulticopterResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TransitionToMulticopterResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void TransitionToMulticopterResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void TransitionToMulticopterResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void TransitionToMulticopterResponse::Clear() { +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; @@ -5810,66 +5835,65 @@ void TransitionToMulticopterResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TransitionToMulticopterResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* TransitionToMulticopterResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -5886,22 +5910,22 @@ ::size_t TransitionToMulticopterResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransitionToMulticopterResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - TransitionToMulticopterResponse::MergeImpl +const ::google::protobuf::Message::ClassData TransitionToMulticopterResponse::_class_data_ = { + TransitionToMulticopterResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransitionToMulticopterResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* TransitionToMulticopterResponse::GetClassData() const { + return &_class_data_; +} -void TransitionToMulticopterResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5913,7 +5937,7 @@ void TransitionToMulticopterResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void TransitionToMulticopterResponse::CopyFrom(const TransitionToMulticopterResponse& from) { @@ -5923,18 +5947,21 @@ void TransitionToMulticopterResponse::CopyFrom(const TransitionToMulticopterResp MergeFrom(from); } -bool TransitionToMulticopterResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool TransitionToMulticopterResponse::IsInitialized() const { return true; } -void TransitionToMulticopterResponse::InternalSwap(TransitionToMulticopterResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata TransitionToMulticopterResponse::GetMetadata() const { +::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[29]); @@ -5945,14 +5972,19 @@ class GetTakeoffAltitudeRequest::_Internal { public: }; -GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetTakeoffAltitudeRequest) } -GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(const GetTakeoffAltitudeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - GetTakeoffAltitudeRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -5960,19 +5992,11 @@ GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(const GetTakeoffAltitudeReq -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetTakeoffAltitudeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetTakeoffAltitudeRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata GetTakeoffAltitudeRequest::GetMetadata() const { +::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[30]); @@ -5990,64 +6014,65 @@ class GetTakeoffAltitudeResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -GetTakeoffAltitudeResponse::_Internal::action_result(const GetTakeoffAltitudeResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& GetTakeoffAltitudeResponse::_Internal::action_result(const GetTakeoffAltitudeResponse* msg) { return *msg->_impl_.action_result_; } -GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) } -GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(const GetTakeoffAltitudeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GetTakeoffAltitudeResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - , decltype(_impl_.altitude_) {} - }; +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} {} + +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_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - , decltype(_impl_.altitude_) { 0 } - - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GetTakeoffAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void GetTakeoffAltitudeResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void GetTakeoffAltitudeResponse::Clear() { +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; @@ -6059,74 +6084,70 @@ void GetTakeoffAltitudeResponse::Clear() { } _impl_.altitude_ = 0; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetTakeoffAltitudeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // float altitude = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { - _impl_.altitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // .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>()}, + }}, {{ + }}, +}; + ::uint8_t* GetTakeoffAltitudeResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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."); + 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)); @@ -6137,8 +6158,9 @@ ::uint8_t* GetTakeoffAltitudeResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -6155,13 +6177,13 @@ ::size_t GetTakeoffAltitudeResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + 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."); + 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)); @@ -6172,14 +6194,15 @@ ::size_t GetTakeoffAltitudeResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetTakeoffAltitudeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GetTakeoffAltitudeResponse::MergeImpl +const ::google::protobuf::Message::ClassData GetTakeoffAltitudeResponse::_class_data_ = { + GetTakeoffAltitudeResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetTakeoffAltitudeResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* GetTakeoffAltitudeResponse::GetClassData() const { + return &_class_data_; +} -void GetTakeoffAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -6191,14 +6214,15 @@ void GetTakeoffAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ _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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetTakeoffAltitudeResponse::CopyFrom(const GetTakeoffAltitudeResponse& from) { @@ -6208,15 +6232,18 @@ void GetTakeoffAltitudeResponse::CopyFrom(const GetTakeoffAltitudeResponse& from MergeFrom(from); } -bool GetTakeoffAltitudeResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool GetTakeoffAltitudeResponse::IsInitialized() const { return true; } -void GetTakeoffAltitudeResponse::InternalSwap(GetTakeoffAltitudeResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.altitude_) + sizeof(GetTakeoffAltitudeResponse::_impl_.altitude_) - PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.action_result_)>( @@ -6224,7 +6251,7 @@ void GetTakeoffAltitudeResponse::InternalSwap(GetTakeoffAltitudeResponse* other) reinterpret_cast(&other->_impl_.action_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata GetTakeoffAltitudeResponse::GetMetadata() const { +::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[31]); @@ -6235,100 +6262,93 @@ class SetTakeoffAltitudeRequest::_Internal { public: }; -SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetTakeoffAltitudeRequest) } -SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest(const SetTakeoffAltitudeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetTakeoffAltitudeRequest) +SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.altitude_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.altitude_ = {}; } - SetTakeoffAltitudeRequest::~SetTakeoffAltitudeRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetTakeoffAltitudeRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void SetTakeoffAltitudeRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void SetTakeoffAltitudeRequest::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetTakeoffAltitudeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // float altitude = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { - _impl_.altitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // float altitude = 1; + {PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeRequest, _impl_.altitude_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{ + }}, +}; + ::uint8_t* SetTakeoffAltitudeRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // float altitude = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -6339,8 +6359,9 @@ ::uint8_t* SetTakeoffAltitudeRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -6355,7 +6376,8 @@ ::size_t SetTakeoffAltitudeRequest::ByteSizeLong() const { (void) cached_has_bits; // float altitude = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -6366,14 +6388,15 @@ ::size_t SetTakeoffAltitudeRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetTakeoffAltitudeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetTakeoffAltitudeRequest::MergeImpl +const ::google::protobuf::Message::ClassData SetTakeoffAltitudeRequest::_class_data_ = { + SetTakeoffAltitudeRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetTakeoffAltitudeRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetTakeoffAltitudeRequest::GetClassData() const { + return &_class_data_; +} -void SetTakeoffAltitudeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -6381,14 +6404,15 @@ void SetTakeoffAltitudeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_m ::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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetTakeoffAltitudeRequest::CopyFrom(const SetTakeoffAltitudeRequest& from) { @@ -6398,18 +6422,20 @@ void SetTakeoffAltitudeRequest::CopyFrom(const SetTakeoffAltitudeRequest& from) MergeFrom(from); } -bool SetTakeoffAltitudeRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetTakeoffAltitudeRequest::IsInitialized() const { return true; } -void SetTakeoffAltitudeRequest::InternalSwap(SetTakeoffAltitudeRequest* other) { +::_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_); + swap(_impl_.altitude_, other->_impl_.altitude_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetTakeoffAltitudeRequest::GetMetadata() const { +::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[32]); @@ -6427,59 +6453,59 @@ class SetTakeoffAltitudeResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -SetTakeoffAltitudeResponse::_Internal::action_result(const SetTakeoffAltitudeResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& SetTakeoffAltitudeResponse::_Internal::action_result(const SetTakeoffAltitudeResponse* msg) { return *msg->_impl_.action_result_; } -SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) } -SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(const SetTakeoffAltitudeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetTakeoffAltitudeResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - SetTakeoffAltitudeResponse::~SetTakeoffAltitudeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetTakeoffAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void SetTakeoffAltitudeResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void SetTakeoffAltitudeResponse::Clear() { +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; @@ -6490,66 +6516,65 @@ void SetTakeoffAltitudeResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetTakeoffAltitudeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetTakeoffAltitudeResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -6566,22 +6591,22 @@ ::size_t SetTakeoffAltitudeResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetTakeoffAltitudeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetTakeoffAltitudeResponse::MergeImpl +const ::google::protobuf::Message::ClassData SetTakeoffAltitudeResponse::_class_data_ = { + SetTakeoffAltitudeResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetTakeoffAltitudeResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetTakeoffAltitudeResponse::GetClassData() const { + return &_class_data_; +} -void SetTakeoffAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -6593,7 +6618,7 @@ void SetTakeoffAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetTakeoffAltitudeResponse::CopyFrom(const SetTakeoffAltitudeResponse& from) { @@ -6603,18 +6628,21 @@ void SetTakeoffAltitudeResponse::CopyFrom(const SetTakeoffAltitudeResponse& from MergeFrom(from); } -bool SetTakeoffAltitudeResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetTakeoffAltitudeResponse::IsInitialized() const { return true; } -void SetTakeoffAltitudeResponse::InternalSwap(SetTakeoffAltitudeResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetTakeoffAltitudeResponse::GetMetadata() const { +::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[33]); @@ -6625,14 +6653,19 @@ class GetMaximumSpeedRequest::_Internal { public: }; -GetMaximumSpeedRequest::GetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +GetMaximumSpeedRequest::GetMaximumSpeedRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetMaximumSpeedRequest) } -GetMaximumSpeedRequest::GetMaximumSpeedRequest(const GetMaximumSpeedRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - GetMaximumSpeedRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +GetMaximumSpeedRequest::GetMaximumSpeedRequest( + ::google::protobuf::Arena* arena, + const GetMaximumSpeedRequest& from) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + GetMaximumSpeedRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetMaximumSpeedRequest) } @@ -6640,19 +6673,11 @@ GetMaximumSpeedRequest::GetMaximumSpeedRequest(const GetMaximumSpeedRequest& fro -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetMaximumSpeedRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetMaximumSpeedRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata GetMaximumSpeedRequest::GetMetadata() const { +::google::protobuf::Metadata GetMaximumSpeedRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[34]); @@ -6670,64 +6695,65 @@ class GetMaximumSpeedResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -GetMaximumSpeedResponse::_Internal::action_result(const GetMaximumSpeedResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& GetMaximumSpeedResponse::_Internal::action_result(const GetMaximumSpeedResponse* msg) { return *msg->_impl_.action_result_; } -GetMaximumSpeedResponse::GetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GetMaximumSpeedResponse::GetMaximumSpeedResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetMaximumSpeedResponse) } -GetMaximumSpeedResponse::GetMaximumSpeedResponse(const GetMaximumSpeedResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GetMaximumSpeedResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - , decltype(_impl_.speed_) {} - }; +inline PROTOBUF_NDEBUG_INLINE GetMaximumSpeedResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +GetMaximumSpeedResponse::GetMaximumSpeedResponse( + ::google::protobuf::Arena* arena, + const GetMaximumSpeedResponse& from) + : ::google::protobuf::Message(arena) { + GetMaximumSpeedResponse* 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_.speed_ = from._impl_.speed_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } - _this->_impl_.speed_ = from._impl_.speed_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetMaximumSpeedResponse) } +inline PROTOBUF_NDEBUG_INLINE GetMaximumSpeedResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} inline void GetMaximumSpeedResponse::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - , decltype(_impl_.speed_) { 0 } - - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, action_result_), + 0, + offsetof(Impl_, speed_) - + offsetof(Impl_, action_result_) + + sizeof(Impl_::speed_)); } - GetMaximumSpeedResponse::~GetMaximumSpeedResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GetMaximumSpeedResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GetMaximumSpeedResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void GetMaximumSpeedResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GetMaximumSpeedResponse::Clear() { +PROTOBUF_NOINLINE void GetMaximumSpeedResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetMaximumSpeedResponse) + 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; @@ -6739,74 +6765,70 @@ void GetMaximumSpeedResponse::Clear() { } _impl_.speed_ = 0; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetMaximumSpeedResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // float speed = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { - _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GetMaximumSpeedResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetMaximumSpeedResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _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), + &_GetMaximumSpeedResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // float speed = 2; + {::_pbi::TcParser::FastF32S1, + {21, 63, 0, PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.speed_)}}, + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.action_result_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // float speed = 2; + {PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.speed_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, {{ + }}, +}; + ::uint8_t* GetMaximumSpeedResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetMaximumSpeedResponse) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); } // float speed = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_speed = this->_internal_speed(); ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); @@ -6817,8 +6839,9 @@ ::uint8_t* GetMaximumSpeedResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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.GetMaximumSpeedResponse) return target; @@ -6835,13 +6858,13 @@ ::size_t GetMaximumSpeedResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } // float speed = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_speed = this->_internal_speed(); ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); @@ -6852,14 +6875,15 @@ ::size_t GetMaximumSpeedResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetMaximumSpeedResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GetMaximumSpeedResponse::MergeImpl +const ::google::protobuf::Message::ClassData GetMaximumSpeedResponse::_class_data_ = { + GetMaximumSpeedResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetMaximumSpeedResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* GetMaximumSpeedResponse::GetClassData() const { + return &_class_data_; +} -void GetMaximumSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void GetMaximumSpeedResponse::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.GetMaximumSpeedResponse) @@ -6871,14 +6895,15 @@ void GetMaximumSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg _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."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_speed = from._internal_speed(); ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); if (raw_speed != 0) { _this->_internal_set_speed(from._internal_speed()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetMaximumSpeedResponse::CopyFrom(const GetMaximumSpeedResponse& from) { @@ -6888,15 +6913,18 @@ void GetMaximumSpeedResponse::CopyFrom(const GetMaximumSpeedResponse& from) { MergeFrom(from); } -bool GetMaximumSpeedResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool GetMaximumSpeedResponse::IsInitialized() const { return true; } -void GetMaximumSpeedResponse::InternalSwap(GetMaximumSpeedResponse* other) { +::_pbi::CachedSize* GetMaximumSpeedResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void GetMaximumSpeedResponse::InternalSwap(GetMaximumSpeedResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.speed_) + sizeof(GetMaximumSpeedResponse::_impl_.speed_) - PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.action_result_)>( @@ -6904,7 +6932,7 @@ void GetMaximumSpeedResponse::InternalSwap(GetMaximumSpeedResponse* other) { reinterpret_cast(&other->_impl_.action_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata GetMaximumSpeedResponse::GetMetadata() const { +::google::protobuf::Metadata GetMaximumSpeedResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[35]); @@ -6915,100 +6943,93 @@ class SetMaximumSpeedRequest::_Internal { public: }; -SetMaximumSpeedRequest::SetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetMaximumSpeedRequest::SetMaximumSpeedRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetMaximumSpeedRequest) } -SetMaximumSpeedRequest::SetMaximumSpeedRequest(const SetMaximumSpeedRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetMaximumSpeedRequest) +SetMaximumSpeedRequest::SetMaximumSpeedRequest( + ::google::protobuf::Arena* arena, const SetMaximumSpeedRequest& from) + : SetMaximumSpeedRequest(arena) { + MergeFrom(from); } +inline PROTOBUF_NDEBUG_INLINE SetMaximumSpeedRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} inline void SetMaximumSpeedRequest::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.speed_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.speed_ = {}; } - SetMaximumSpeedRequest::~SetMaximumSpeedRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetMaximumSpeedRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetMaximumSpeedRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void SetMaximumSpeedRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void SetMaximumSpeedRequest::Clear() { +PROTOBUF_NOINLINE void SetMaximumSpeedRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetMaximumSpeedRequest) + 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_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetMaximumSpeedRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // float speed = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { - _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* SetMaximumSpeedRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetMaximumSpeedRequest::_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 + &_SetMaximumSpeedRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // float speed = 1; + {::_pbi::TcParser::FastF32S1, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(SetMaximumSpeedRequest, _impl_.speed_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // float speed = 1; + {PROTOBUF_FIELD_OFFSET(SetMaximumSpeedRequest, _impl_.speed_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{ + }}, +}; + ::uint8_t* SetMaximumSpeedRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetMaximumSpeedRequest) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // float speed = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_speed = this->_internal_speed(); ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); @@ -7019,8 +7040,9 @@ ::uint8_t* SetMaximumSpeedRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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.SetMaximumSpeedRequest) return target; @@ -7035,7 +7057,8 @@ ::size_t SetMaximumSpeedRequest::ByteSizeLong() const { (void) cached_has_bits; // float speed = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_speed = this->_internal_speed(); ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); @@ -7046,14 +7069,15 @@ ::size_t SetMaximumSpeedRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetMaximumSpeedRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetMaximumSpeedRequest::MergeImpl +const ::google::protobuf::Message::ClassData SetMaximumSpeedRequest::_class_data_ = { + SetMaximumSpeedRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetMaximumSpeedRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetMaximumSpeedRequest::GetClassData() const { + return &_class_data_; +} -void SetMaximumSpeedRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void SetMaximumSpeedRequest::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.SetMaximumSpeedRequest) @@ -7061,14 +7085,15 @@ void SetMaximumSpeedRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, ::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."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_speed = from._internal_speed(); ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); if (raw_speed != 0) { _this->_internal_set_speed(from._internal_speed()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetMaximumSpeedRequest::CopyFrom(const SetMaximumSpeedRequest& from) { @@ -7078,18 +7103,20 @@ void SetMaximumSpeedRequest::CopyFrom(const SetMaximumSpeedRequest& from) { MergeFrom(from); } -bool SetMaximumSpeedRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetMaximumSpeedRequest::IsInitialized() const { return true; } -void SetMaximumSpeedRequest::InternalSwap(SetMaximumSpeedRequest* other) { +::_pbi::CachedSize* SetMaximumSpeedRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void SetMaximumSpeedRequest::InternalSwap(SetMaximumSpeedRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - - swap(_impl_.speed_, other->_impl_.speed_); + swap(_impl_.speed_, other->_impl_.speed_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetMaximumSpeedRequest::GetMetadata() const { +::google::protobuf::Metadata SetMaximumSpeedRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[36]); @@ -7107,59 +7134,59 @@ class SetMaximumSpeedResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -SetMaximumSpeedResponse::_Internal::action_result(const SetMaximumSpeedResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& SetMaximumSpeedResponse::_Internal::action_result(const SetMaximumSpeedResponse* msg) { return *msg->_impl_.action_result_; } -SetMaximumSpeedResponse::SetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetMaximumSpeedResponse::SetMaximumSpeedResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetMaximumSpeedResponse) } -SetMaximumSpeedResponse::SetMaximumSpeedResponse(const SetMaximumSpeedResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetMaximumSpeedResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +inline PROTOBUF_NDEBUG_INLINE SetMaximumSpeedResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +SetMaximumSpeedResponse::SetMaximumSpeedResponse( + ::google::protobuf::Arena* arena, + const SetMaximumSpeedResponse& from) + : ::google::protobuf::Message(arena) { + SetMaximumSpeedResponse* 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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetMaximumSpeedResponse) } +inline PROTOBUF_NDEBUG_INLINE SetMaximumSpeedResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} inline void SetMaximumSpeedResponse::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - SetMaximumSpeedResponse::~SetMaximumSpeedResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetMaximumSpeedResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetMaximumSpeedResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void SetMaximumSpeedResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void SetMaximumSpeedResponse::Clear() { +PROTOBUF_NOINLINE void SetMaximumSpeedResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetMaximumSpeedResponse) + 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; @@ -7170,66 +7197,65 @@ void SetMaximumSpeedResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetMaximumSpeedResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* SetMaximumSpeedResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetMaximumSpeedResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SetMaximumSpeedResponse, _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), + &_SetMaximumSpeedResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetMaximumSpeedResponse, _impl_.action_result_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .mavsdk.rpc.action.ActionResult action_result = 1; + {PROTOBUF_FIELD_OFFSET(SetMaximumSpeedResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, + }}, {{ + }}, +}; + ::uint8_t* SetMaximumSpeedResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetMaximumSpeedResponse) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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.SetMaximumSpeedResponse) return target; @@ -7246,22 +7272,22 @@ ::size_t SetMaximumSpeedResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetMaximumSpeedResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetMaximumSpeedResponse::MergeImpl +const ::google::protobuf::Message::ClassData SetMaximumSpeedResponse::_class_data_ = { + SetMaximumSpeedResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetMaximumSpeedResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetMaximumSpeedResponse::GetClassData() const { + return &_class_data_; +} -void SetMaximumSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void SetMaximumSpeedResponse::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.SetMaximumSpeedResponse) @@ -7273,7 +7299,7 @@ void SetMaximumSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetMaximumSpeedResponse::CopyFrom(const SetMaximumSpeedResponse& from) { @@ -7283,18 +7309,21 @@ void SetMaximumSpeedResponse::CopyFrom(const SetMaximumSpeedResponse& from) { MergeFrom(from); } -bool SetMaximumSpeedResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetMaximumSpeedResponse::IsInitialized() const { return true; } -void SetMaximumSpeedResponse::InternalSwap(SetMaximumSpeedResponse* other) { +::_pbi::CachedSize* SetMaximumSpeedResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void SetMaximumSpeedResponse::InternalSwap(SetMaximumSpeedResponse* 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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetMaximumSpeedResponse::GetMetadata() const { +::google::protobuf::Metadata SetMaximumSpeedResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[37]); @@ -7305,14 +7334,19 @@ class GetReturnToLaunchAltitudeRequest::_Internal { public: }; -GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) } -GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(const GetReturnToLaunchAltitudeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - GetReturnToLaunchAltitudeRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -7320,19 +7354,11 @@ GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(const GetRetu -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReturnToLaunchAltitudeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetReturnToLaunchAltitudeRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata GetReturnToLaunchAltitudeRequest::GetMetadata() const { +::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[38]); @@ -7350,64 +7376,65 @@ class GetReturnToLaunchAltitudeResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -GetReturnToLaunchAltitudeResponse::_Internal::action_result(const GetReturnToLaunchAltitudeResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeResponse::_Internal::action_result(const GetReturnToLaunchAltitudeResponse* msg) { return *msg->_impl_.action_result_; } -GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) } -GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(const GetReturnToLaunchAltitudeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GetReturnToLaunchAltitudeResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - , decltype(_impl_.relative_altitude_m_) {} - }; +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} {} + +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_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - , decltype(_impl_.relative_altitude_m_) { 0 } - - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GetReturnToLaunchAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void GetReturnToLaunchAltitudeResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void GetReturnToLaunchAltitudeResponse::Clear() { +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; @@ -7419,74 +7446,70 @@ void GetReturnToLaunchAltitudeResponse::Clear() { } _impl_.relative_altitude_m_ = 0; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetReturnToLaunchAltitudeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // float relative_altitude_m = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { - _impl_.relative_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // .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>()}, + }}, {{ + }}, +}; + ::uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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."); + 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)); @@ -7497,8 +7520,9 @@ ::uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -7515,13 +7539,13 @@ ::size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + 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."); + 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)); @@ -7532,14 +7556,15 @@ ::size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReturnToLaunchAltitudeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GetReturnToLaunchAltitudeResponse::MergeImpl +const ::google::protobuf::Message::ClassData GetReturnToLaunchAltitudeResponse::_class_data_ = { + GetReturnToLaunchAltitudeResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetReturnToLaunchAltitudeResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* GetReturnToLaunchAltitudeResponse::GetClassData() const { + return &_class_data_; +} -void GetReturnToLaunchAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -7551,14 +7576,15 @@ void GetReturnToLaunchAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Messa _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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetReturnToLaunchAltitudeResponse::CopyFrom(const GetReturnToLaunchAltitudeResponse& from) { @@ -7568,15 +7594,18 @@ void GetReturnToLaunchAltitudeResponse::CopyFrom(const GetReturnToLaunchAltitude MergeFrom(from); } -bool GetReturnToLaunchAltitudeResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool GetReturnToLaunchAltitudeResponse::IsInitialized() const { return true; } -void GetReturnToLaunchAltitudeResponse::InternalSwap(GetReturnToLaunchAltitudeResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::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_)>( @@ -7584,7 +7613,7 @@ void GetReturnToLaunchAltitudeResponse::InternalSwap(GetReturnToLaunchAltitudeRe reinterpret_cast(&other->_impl_.action_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata GetReturnToLaunchAltitudeResponse::GetMetadata() const { +::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[39]); @@ -7595,100 +7624,93 @@ class SetReturnToLaunchAltitudeRequest::_Internal { public: }; -SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) } -SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(const SetReturnToLaunchAltitudeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) +SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.relative_altitude_m_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.relative_altitude_m_ = {}; } - SetReturnToLaunchAltitudeRequest::~SetReturnToLaunchAltitudeRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetReturnToLaunchAltitudeRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void SetReturnToLaunchAltitudeRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SetReturnToLaunchAltitudeRequest::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetReturnToLaunchAltitudeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // float relative_altitude_m = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { - _impl_.relative_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // float relative_altitude_m = 1; + {PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{ + }}, +}; + ::uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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."); + 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)); @@ -7699,8 +7721,9 @@ ::uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -7715,7 +7738,8 @@ ::size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong() const { (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."); + 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)); @@ -7726,14 +7750,15 @@ ::size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetReturnToLaunchAltitudeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetReturnToLaunchAltitudeRequest::MergeImpl +const ::google::protobuf::Message::ClassData SetReturnToLaunchAltitudeRequest::_class_data_ = { + SetReturnToLaunchAltitudeRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetReturnToLaunchAltitudeRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetReturnToLaunchAltitudeRequest::GetClassData() const { + return &_class_data_; +} -void SetReturnToLaunchAltitudeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -7741,14 +7766,15 @@ void SetReturnToLaunchAltitudeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Messag ::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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetReturnToLaunchAltitudeRequest::CopyFrom(const SetReturnToLaunchAltitudeRequest& from) { @@ -7758,18 +7784,20 @@ void SetReturnToLaunchAltitudeRequest::CopyFrom(const SetReturnToLaunchAltitudeR MergeFrom(from); } -bool SetReturnToLaunchAltitudeRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetReturnToLaunchAltitudeRequest::IsInitialized() const { return true; } -void SetReturnToLaunchAltitudeRequest::InternalSwap(SetReturnToLaunchAltitudeRequest* other) { +::_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_); + swap(_impl_.relative_altitude_m_, other->_impl_.relative_altitude_m_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetReturnToLaunchAltitudeRequest::GetMetadata() const { +::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[40]); @@ -7787,59 +7815,59 @@ class SetReturnToLaunchAltitudeResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -SetReturnToLaunchAltitudeResponse::_Internal::action_result(const SetReturnToLaunchAltitudeResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeResponse::_Internal::action_result(const SetReturnToLaunchAltitudeResponse* msg) { return *msg->_impl_.action_result_; } -SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) } -SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(const SetReturnToLaunchAltitudeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetReturnToLaunchAltitudeResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - SetReturnToLaunchAltitudeResponse::~SetReturnToLaunchAltitudeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetReturnToLaunchAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void SetReturnToLaunchAltitudeResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void SetReturnToLaunchAltitudeResponse::Clear() { +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; @@ -7850,66 +7878,65 @@ void SetReturnToLaunchAltitudeResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetReturnToLaunchAltitudeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetReturnToLaunchAltitudeResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -7926,22 +7953,22 @@ ::size_t SetReturnToLaunchAltitudeResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetReturnToLaunchAltitudeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetReturnToLaunchAltitudeResponse::MergeImpl +const ::google::protobuf::Message::ClassData SetReturnToLaunchAltitudeResponse::_class_data_ = { + SetReturnToLaunchAltitudeResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetReturnToLaunchAltitudeResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetReturnToLaunchAltitudeResponse::GetClassData() const { + return &_class_data_; +} -void SetReturnToLaunchAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -7953,7 +7980,7 @@ void SetReturnToLaunchAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Messa _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetReturnToLaunchAltitudeResponse::CopyFrom(const SetReturnToLaunchAltitudeResponse& from) { @@ -7963,18 +7990,21 @@ void SetReturnToLaunchAltitudeResponse::CopyFrom(const SetReturnToLaunchAltitude MergeFrom(from); } -bool SetReturnToLaunchAltitudeResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetReturnToLaunchAltitudeResponse::IsInitialized() const { return true; } -void SetReturnToLaunchAltitudeResponse::InternalSwap(SetReturnToLaunchAltitudeResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetReturnToLaunchAltitudeResponse::GetMetadata() const { +::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[41]); @@ -7985,100 +8015,93 @@ class SetCurrentSpeedRequest::_Internal { public: }; -SetCurrentSpeedRequest::SetCurrentSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetCurrentSpeedRequest::SetCurrentSpeedRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetCurrentSpeedRequest) } -SetCurrentSpeedRequest::SetCurrentSpeedRequest(const SetCurrentSpeedRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetCurrentSpeedRequest) +SetCurrentSpeedRequest::SetCurrentSpeedRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.speed_m_s_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.speed_m_s_ = {}; } - SetCurrentSpeedRequest::~SetCurrentSpeedRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetCurrentSpeedRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetCurrentSpeedRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void SetCurrentSpeedRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void SetCurrentSpeedRequest::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetCurrentSpeedRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // float speed_m_s = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { - _impl_.speed_m_s_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // float speed_m_s = 1; + {PROTOBUF_FIELD_OFFSET(SetCurrentSpeedRequest, _impl_.speed_m_s_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + }}, + // no aux_entries + {{ + }}, +}; + ::uint8_t* SetCurrentSpeedRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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."); + 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)); @@ -8089,8 +8112,9 @@ ::uint8_t* SetCurrentSpeedRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -8105,7 +8129,8 @@ ::size_t SetCurrentSpeedRequest::ByteSizeLong() const { (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."); + 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)); @@ -8116,14 +8141,15 @@ ::size_t SetCurrentSpeedRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetCurrentSpeedRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetCurrentSpeedRequest::MergeImpl +const ::google::protobuf::Message::ClassData SetCurrentSpeedRequest::_class_data_ = { + SetCurrentSpeedRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetCurrentSpeedRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetCurrentSpeedRequest::GetClassData() const { + return &_class_data_; +} -void SetCurrentSpeedRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -8131,14 +8157,15 @@ void SetCurrentSpeedRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, ::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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetCurrentSpeedRequest::CopyFrom(const SetCurrentSpeedRequest& from) { @@ -8148,18 +8175,20 @@ void SetCurrentSpeedRequest::CopyFrom(const SetCurrentSpeedRequest& from) { MergeFrom(from); } -bool SetCurrentSpeedRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetCurrentSpeedRequest::IsInitialized() const { return true; } -void SetCurrentSpeedRequest::InternalSwap(SetCurrentSpeedRequest* other) { +::_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_); + swap(_impl_.speed_m_s_, other->_impl_.speed_m_s_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetCurrentSpeedRequest::GetMetadata() const { +::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[42]); @@ -8177,59 +8206,59 @@ class SetCurrentSpeedResponse::_Internal { } }; -const ::mavsdk::rpc::action::ActionResult& -SetCurrentSpeedResponse::_Internal::action_result(const SetCurrentSpeedResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& SetCurrentSpeedResponse::_Internal::action_result(const SetCurrentSpeedResponse* msg) { return *msg->_impl_.action_result_; } -SetCurrentSpeedResponse::SetCurrentSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetCurrentSpeedResponse::SetCurrentSpeedResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetCurrentSpeedResponse) } -SetCurrentSpeedResponse::SetCurrentSpeedResponse(const SetCurrentSpeedResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetCurrentSpeedResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; } - SetCurrentSpeedResponse::~SetCurrentSpeedResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetCurrentSpeedResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetCurrentSpeedResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_result_; -} - -void SetCurrentSpeedResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_result_; + _impl_.~Impl_(); } -void SetCurrentSpeedResponse::Clear() { +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; @@ -8240,66 +8269,65 @@ void SetCurrentSpeedResponse::Clear() { _impl_.action_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetCurrentSpeedResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult action_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetCurrentSpeedResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -8316,22 +8344,22 @@ ::size_t SetCurrentSpeedResponse::ByteSizeLong() const { // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetCurrentSpeedResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetCurrentSpeedResponse::MergeImpl +const ::google::protobuf::Message::ClassData SetCurrentSpeedResponse::_class_data_ = { + SetCurrentSpeedResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetCurrentSpeedResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetCurrentSpeedResponse::GetClassData() const { + return &_class_data_; +} -void SetCurrentSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -8343,7 +8371,7 @@ void SetCurrentSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( from._internal_action_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetCurrentSpeedResponse::CopyFrom(const SetCurrentSpeedResponse& from) { @@ -8353,18 +8381,21 @@ void SetCurrentSpeedResponse::CopyFrom(const SetCurrentSpeedResponse& from) { MergeFrom(from); } -bool SetCurrentSpeedResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetCurrentSpeedResponse::IsInitialized() const { return true; } -void SetCurrentSpeedResponse::InternalSwap(SetCurrentSpeedResponse* other) { +::_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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetCurrentSpeedResponse::GetMetadata() const { +::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[43]); @@ -8375,132 +8406,115 @@ class ActionResult::_Internal { public: }; -ActionResult::ActionResult(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ActionResult::ActionResult(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ActionResult) } -ActionResult::ActionResult(const ActionResult& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ActionResult* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.result_str_) {} - - , decltype(_impl_.result_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +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::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_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.result_str_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_result_str().empty()) { - _this->_impl_.result_str_.Set(from._internal_result_str(), _this->GetArenaForAllocation()); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.result_str_) {} - - , decltype(_impl_.result_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.result_str_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.result_ = {}; } - ActionResult::~ActionResult() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ActionResult) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ActionResult::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.result_str_.Destroy(); + _impl_.~Impl_(); } -void ActionResult::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ActionResult::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ActionResult::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action.ActionResult.Result result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_result(static_cast<::mavsdk::rpc::action::ActionResult_Result>(val)); - } else { - goto handle_unusual; - } - continue; - // string result_str = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_result_str(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.action.ActionResult.result_str")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // .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" + }}, +}; + ::uint8_t* ActionResult::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // .mavsdk.rpc.action.ActionResult.Result result = 1; if (this->_internal_result() != 0) { @@ -8512,14 +8526,15 @@ ::uint8_t* ActionResult::_InternalSerialize( // string result_str = 2; if (!this->_internal_result_str().empty()) { const std::string& _s = this->_internal_result_str(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.action.ActionResult.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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -8535,7 +8550,7 @@ ::size_t ActionResult::ByteSizeLong() const { // string result_str = 2; if (!this->_internal_result_str().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_result_str()); } @@ -8548,14 +8563,15 @@ ::size_t ActionResult::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ActionResult::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ActionResult::MergeImpl +const ::google::protobuf::Message::ClassData ActionResult::_class_data_ = { + ActionResult::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ActionResult::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ActionResult::GetClassData() const { + return &_class_data_; +} -void ActionResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -8569,7 +8585,7 @@ void ActionResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P if (from._internal_result() != 0) { _this->_internal_set_result(from._internal_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ActionResult::CopyFrom(const ActionResult& from) { @@ -8579,21 +8595,23 @@ void ActionResult::CopyFrom(const ActionResult& from) { MergeFrom(from); } -bool ActionResult::IsInitialized() const { +PROTOBUF_NOINLINE bool ActionResult::IsInitialized() const { return true; } -void ActionResult::InternalSwap(ActionResult* other) { +::_pbi::CachedSize* ActionResult::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void ActionResult::InternalSwap(ActionResult* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, lhs_arena, - &other->_impl_.result_str_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); swap(_impl_.result_, other->_impl_.result_); } -::PROTOBUF_NAMESPACE_ID::Metadata ActionResult::GetMetadata() const { +::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[44]); @@ -8602,187 +8620,9 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ActionResult::GetMetadata() const { } // namespace action } // namespace rpc } // namespace mavsdk -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::ArmRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::ArmRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::ArmRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::ArmResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::ArmResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::ArmResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::DisarmRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::DisarmRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::DisarmRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::DisarmResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::DisarmResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::DisarmResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::TakeoffRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::TakeoffRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::TakeoffRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::TakeoffResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::TakeoffResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::TakeoffResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::LandRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::LandRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::LandRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::LandResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::LandResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::LandResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::RebootRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::RebootRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::RebootRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::RebootResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::RebootResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::RebootResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::ShutdownRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::ShutdownRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::ShutdownRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::ShutdownResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::ShutdownResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::ShutdownResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::TerminateRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::TerminateRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::TerminateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::TerminateResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::TerminateResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::TerminateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::KillRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::KillRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::KillRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::KillResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::KillResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::KillResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::ReturnToLaunchRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::ReturnToLaunchRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::ReturnToLaunchRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::ReturnToLaunchResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::ReturnToLaunchResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::ReturnToLaunchResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::GotoLocationRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::GotoLocationRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::GotoLocationRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::GotoLocationResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::GotoLocationResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::GotoLocationResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::DoOrbitRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::DoOrbitRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::DoOrbitRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::DoOrbitResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::DoOrbitResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::DoOrbitResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::HoldRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::HoldRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::HoldRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::HoldResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::HoldResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::HoldResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::SetActuatorRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::SetActuatorRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::SetActuatorRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::SetActuatorResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::SetActuatorResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::SetActuatorResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::TransitionToFixedwingRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::TransitionToFixedwingRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::TransitionToFixedwingRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::TransitionToFixedwingResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::TransitionToFixedwingResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::TransitionToFixedwingResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::TransitionToMulticopterRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::TransitionToMulticopterRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::TransitionToMulticopterRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::TransitionToMulticopterResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::TransitionToMulticopterResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::TransitionToMulticopterResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::GetTakeoffAltitudeRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::GetTakeoffAltitudeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::GetTakeoffAltitudeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::GetTakeoffAltitudeResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::GetTakeoffAltitudeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::GetTakeoffAltitudeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::SetTakeoffAltitudeRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::SetTakeoffAltitudeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::SetTakeoffAltitudeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::SetTakeoffAltitudeResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::SetTakeoffAltitudeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::SetTakeoffAltitudeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::GetMaximumSpeedRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::GetMaximumSpeedRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::GetMaximumSpeedRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::GetMaximumSpeedResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::GetMaximumSpeedResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::GetMaximumSpeedResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::SetMaximumSpeedRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::SetMaximumSpeedRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::SetMaximumSpeedRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::SetMaximumSpeedResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::SetMaximumSpeedResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::SetMaximumSpeedResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::SetCurrentSpeedRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::SetCurrentSpeedRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::SetCurrentSpeedRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::SetCurrentSpeedResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::SetCurrentSpeedResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::SetCurrentSpeedResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action::ActionResult* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action::ActionResult >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action::ActionResult >(arena); -} -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) #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 4d34eeb55f..b01d3eb7e3 100644 --- a/src/mavsdk_server/src/generated/action/action.pb.h +++ b/src/mavsdk_server/src/generated/action/action.pb.h @@ -1,5 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: action/action.proto +// Protobuf C++ Version: 4.25.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto_2epb_2eh @@ -7,15 +8,16 @@ #include #include #include +#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4023000 +#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 4023002 < PROTOBUF_MIN_PROTOC_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." @@ -25,6 +27,7 @@ #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" #include "google/protobuf/generated_message_bases.h" +#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -41,17 +44,19 @@ #define PROTOBUF_INTERNAL_EXPORT_action_2faction_2eproto -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_action_2faction_2eproto { static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_action_2faction_2eproto; namespace mavsdk { namespace rpc { @@ -194,98 +199,10 @@ extern TransitionToMulticopterResponseDefaultTypeInternal _TransitionToMulticopt } // namespace action } // namespace rpc } // namespace mavsdk -PROTOBUF_NAMESPACE_OPEN -template <> -::mavsdk::rpc::action::ActionResult* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(Arena*); -template <> -::mavsdk::rpc::action::ArmRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ArmRequest>(Arena*); -template <> -::mavsdk::rpc::action::ArmResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ArmResponse>(Arena*); -template <> -::mavsdk::rpc::action::DisarmRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DisarmRequest>(Arena*); -template <> -::mavsdk::rpc::action::DisarmResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DisarmResponse>(Arena*); -template <> -::mavsdk::rpc::action::DoOrbitRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DoOrbitRequest>(Arena*); -template <> -::mavsdk::rpc::action::DoOrbitResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DoOrbitResponse>(Arena*); -template <> -::mavsdk::rpc::action::GetMaximumSpeedRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetMaximumSpeedRequest>(Arena*); -template <> -::mavsdk::rpc::action::GetMaximumSpeedResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetMaximumSpeedResponse>(Arena*); -template <> -::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest>(Arena*); -template <> -::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>(Arena*); -template <> -::mavsdk::rpc::action::GetTakeoffAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetTakeoffAltitudeRequest>(Arena*); -template <> -::mavsdk::rpc::action::GetTakeoffAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetTakeoffAltitudeResponse>(Arena*); -template <> -::mavsdk::rpc::action::GotoLocationRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GotoLocationRequest>(Arena*); -template <> -::mavsdk::rpc::action::GotoLocationResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GotoLocationResponse>(Arena*); -template <> -::mavsdk::rpc::action::HoldRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::HoldRequest>(Arena*); -template <> -::mavsdk::rpc::action::HoldResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::HoldResponse>(Arena*); -template <> -::mavsdk::rpc::action::KillRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::KillRequest>(Arena*); -template <> -::mavsdk::rpc::action::KillResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::KillResponse>(Arena*); -template <> -::mavsdk::rpc::action::LandRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::LandRequest>(Arena*); -template <> -::mavsdk::rpc::action::LandResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::LandResponse>(Arena*); -template <> -::mavsdk::rpc::action::RebootRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::RebootRequest>(Arena*); -template <> -::mavsdk::rpc::action::RebootResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::RebootResponse>(Arena*); -template <> -::mavsdk::rpc::action::ReturnToLaunchRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ReturnToLaunchRequest>(Arena*); -template <> -::mavsdk::rpc::action::ReturnToLaunchResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ReturnToLaunchResponse>(Arena*); -template <> -::mavsdk::rpc::action::SetActuatorRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetActuatorRequest>(Arena*); -template <> -::mavsdk::rpc::action::SetActuatorResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetActuatorResponse>(Arena*); -template <> -::mavsdk::rpc::action::SetCurrentSpeedRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetCurrentSpeedRequest>(Arena*); -template <> -::mavsdk::rpc::action::SetCurrentSpeedResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetCurrentSpeedResponse>(Arena*); -template <> -::mavsdk::rpc::action::SetMaximumSpeedRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetMaximumSpeedRequest>(Arena*); -template <> -::mavsdk::rpc::action::SetMaximumSpeedResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetMaximumSpeedResponse>(Arena*); -template <> -::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest>(Arena*); -template <> -::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>(Arena*); -template <> -::mavsdk::rpc::action::SetTakeoffAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetTakeoffAltitudeRequest>(Arena*); -template <> -::mavsdk::rpc::action::SetTakeoffAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetTakeoffAltitudeResponse>(Arena*); -template <> -::mavsdk::rpc::action::ShutdownRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ShutdownRequest>(Arena*); -template <> -::mavsdk::rpc::action::ShutdownResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ShutdownResponse>(Arena*); -template <> -::mavsdk::rpc::action::TakeoffRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TakeoffRequest>(Arena*); -template <> -::mavsdk::rpc::action::TakeoffResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TakeoffResponse>(Arena*); -template <> -::mavsdk::rpc::action::TerminateRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TerminateRequest>(Arena*); -template <> -::mavsdk::rpc::action::TerminateResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TerminateResponse>(Arena*); -template <> -::mavsdk::rpc::action::TransitionToFixedwingRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToFixedwingRequest>(Arena*); -template <> -::mavsdk::rpc::action::TransitionToFixedwingResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToFixedwingResponse>(Arena*); -template <> -::mavsdk::rpc::action::TransitionToMulticopterRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToMulticopterRequest>(Arena*); -template <> -::mavsdk::rpc::action::TransitionToMulticopterResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToMulticopterResponse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google namespace mavsdk { namespace rpc { @@ -312,10 +229,11 @@ enum ActionResult_Result : int { }; bool ActionResult_Result_IsValid(int value); +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(13); constexpr int ActionResult_Result_Result_ARRAYSIZE = 13 + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* ActionResult_Result_descriptor(); template const std::string& ActionResult_Result_Name(T value) { @@ -326,12 +244,12 @@ const std::string& ActionResult_Result_Name(T value) { } template <> inline const std::string& ActionResult_Result_Name(ActionResult_Result value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool ActionResult_Result_Parse(absl::string_view name, ActionResult_Result* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( ActionResult_Result_descriptor(), name, value); } enum OrbitYawBehavior : int { @@ -347,10 +265,11 @@ enum OrbitYawBehavior : int { }; bool OrbitYawBehavior_IsValid(int value); +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 ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* OrbitYawBehavior_descriptor(); template const std::string& OrbitYawBehavior_Name(T value) { @@ -361,12 +280,12 @@ const std::string& OrbitYawBehavior_Name(T value) { } template <> inline const std::string& OrbitYawBehavior_Name(OrbitYawBehavior value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool OrbitYawBehavior_Parse(absl::string_view name, OrbitYawBehavior* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( OrbitYawBehavior_descriptor(), name, value); } @@ -375,28 +294,29 @@ inline bool OrbitYawBehavior_Parse(absl::string_view name, OrbitYawBehavior* val // ------------------------------------------------------------------- -class ArmRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmRequest) */ { +class TransitionToMulticopterRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterRequest) */ { public: - inline ArmRequest() : ArmRequest(nullptr) {} + inline TransitionToMulticopterRequest() : TransitionToMulticopterRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR ArmRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TransitionToMulticopterRequest(::google::protobuf::internal::ConstantInitialized); - ArmRequest(const ArmRequest& from); - ArmRequest(ArmRequest&& from) noexcept - : ArmRequest() { + inline TransitionToMulticopterRequest(const TransitionToMulticopterRequest& from) + : TransitionToMulticopterRequest(nullptr, from) {} + TransitionToMulticopterRequest(TransitionToMulticopterRequest&& from) noexcept + : TransitionToMulticopterRequest() { *this = ::std::move(from); } - inline ArmRequest& operator=(const ArmRequest& from) { + inline TransitionToMulticopterRequest& operator=(const TransitionToMulticopterRequest& from) { CopyFrom(from); return *this; } - inline ArmRequest& operator=(ArmRequest&& from) noexcept { + inline TransitionToMulticopterRequest& operator=(TransitionToMulticopterRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -406,122 +326,133 @@ class ArmRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ArmRequest& default_instance() { + static const TransitionToMulticopterRequest& default_instance() { return *internal_default_instance(); } - static inline const ArmRequest* internal_default_instance() { - return reinterpret_cast( - &_ArmRequest_default_instance_); + static inline const TransitionToMulticopterRequest* internal_default_instance() { + return reinterpret_cast( + &_TransitionToMulticopterRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 28; - friend void swap(ArmRequest& a, ArmRequest& b) { + friend void swap(TransitionToMulticopterRequest& a, TransitionToMulticopterRequest& b) { a.Swap(&b); } - inline void Swap(ArmRequest* other) { + inline void Swap(TransitionToMulticopterRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ArmRequest* other) { + void UnsafeArenaSwap(TransitionToMulticopterRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ArmRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TransitionToMulticopterRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ArmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const TransitionToMulticopterRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ArmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const TransitionToMulticopterRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ArmRequest"; + return "mavsdk.rpc.action.TransitionToMulticopterRequest"; } protected: - explicit ArmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TransitionToMulticopterRequest(::google::protobuf::Arena* arena); + TransitionToMulticopterRequest(::google::protobuf::Arena* arena, const TransitionToMulticopterRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToMulticopterRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 ArmResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmResponse) */ { +class TransitionToFixedwingRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingRequest) */ { public: - inline ArmResponse() : ArmResponse(nullptr) {} - ~ArmResponse() override; + inline TransitionToFixedwingRequest() : TransitionToFixedwingRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR ArmResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TransitionToFixedwingRequest(::google::protobuf::internal::ConstantInitialized); - ArmResponse(const ArmResponse& from); - ArmResponse(ArmResponse&& from) noexcept - : ArmResponse() { + inline TransitionToFixedwingRequest(const TransitionToFixedwingRequest& from) + : TransitionToFixedwingRequest(nullptr, from) {} + TransitionToFixedwingRequest(TransitionToFixedwingRequest&& from) noexcept + : TransitionToFixedwingRequest() { *this = ::std::move(from); } - inline ArmResponse& operator=(const ArmResponse& from) { + inline TransitionToFixedwingRequest& operator=(const TransitionToFixedwingRequest& from) { CopyFrom(from); return *this; } - inline ArmResponse& operator=(ArmResponse&& from) noexcept { + inline TransitionToFixedwingRequest& operator=(TransitionToFixedwingRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -531,156 +462,133 @@ class ArmResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ArmResponse& default_instance() { + static const TransitionToFixedwingRequest& default_instance() { return *internal_default_instance(); } - static inline const ArmResponse* internal_default_instance() { - return reinterpret_cast( - &_ArmResponse_default_instance_); + static inline const TransitionToFixedwingRequest* internal_default_instance() { + return reinterpret_cast( + &_TransitionToFixedwingRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 26; - friend void swap(ArmResponse& a, ArmResponse& b) { + friend void swap(TransitionToFixedwingRequest& a, TransitionToFixedwingRequest& b) { a.Swap(&b); } - inline void Swap(ArmResponse* other) { + inline void Swap(TransitionToFixedwingRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ArmResponse* other) { + void UnsafeArenaSwap(TransitionToFixedwingRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ArmResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TransitionToFixedwingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ArmResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ArmResponse& from) { - ArmResponse::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ArmResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ArmResponse"; + return "mavsdk.rpc.action.TransitionToFixedwingRequest"; } protected: - explicit ArmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TransitionToFixedwingRequest(::google::protobuf::Arena* arena); + TransitionToFixedwingRequest(::google::protobuf::Arena* arena, const TransitionToFixedwingRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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* action_result); - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToFixedwingRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class DisarmRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmRequest) */ { +class TerminateRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateRequest) */ { public: - inline DisarmRequest() : DisarmRequest(nullptr) {} + inline TerminateRequest() : TerminateRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR DisarmRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TerminateRequest(::google::protobuf::internal::ConstantInitialized); - DisarmRequest(const DisarmRequest& from); - DisarmRequest(DisarmRequest&& from) noexcept - : DisarmRequest() { + inline TerminateRequest(const TerminateRequest& from) + : TerminateRequest(nullptr, from) {} + TerminateRequest(TerminateRequest&& from) noexcept + : TerminateRequest() { *this = ::std::move(from); } - inline DisarmRequest& operator=(const DisarmRequest& from) { + inline TerminateRequest& operator=(const TerminateRequest& from) { CopyFrom(from); return *this; } - inline DisarmRequest& operator=(DisarmRequest&& from) noexcept { + inline TerminateRequest& operator=(TerminateRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -690,122 +598,133 @@ class DisarmRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DisarmRequest& default_instance() { + static const TerminateRequest& default_instance() { return *internal_default_instance(); } - static inline const DisarmRequest* internal_default_instance() { - return reinterpret_cast( - &_DisarmRequest_default_instance_); + static inline const TerminateRequest* internal_default_instance() { + return reinterpret_cast( + &_TerminateRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 12; - friend void swap(DisarmRequest& a, DisarmRequest& b) { + friend void swap(TerminateRequest& a, TerminateRequest& b) { a.Swap(&b); } - inline void Swap(DisarmRequest* other) { + inline void Swap(TerminateRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DisarmRequest* other) { + void UnsafeArenaSwap(TerminateRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DisarmRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TerminateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const DisarmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const TerminateRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const DisarmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const TerminateRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.DisarmRequest"; + return "mavsdk.rpc.action.TerminateRequest"; } protected: - explicit DisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TerminateRequest(::google::protobuf::Arena* arena); + TerminateRequest(::google::protobuf::Arena* arena, const TerminateRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DisarmRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TerminateRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 DisarmResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmResponse) */ { +class TakeoffRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffRequest) */ { public: - inline DisarmResponse() : DisarmResponse(nullptr) {} - ~DisarmResponse() override; + inline TakeoffRequest() : TakeoffRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR DisarmResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TakeoffRequest(::google::protobuf::internal::ConstantInitialized); - DisarmResponse(const DisarmResponse& from); - DisarmResponse(DisarmResponse&& from) noexcept - : DisarmResponse() { + inline TakeoffRequest(const TakeoffRequest& from) + : TakeoffRequest(nullptr, from) {} + TakeoffRequest(TakeoffRequest&& from) noexcept + : TakeoffRequest() { *this = ::std::move(from); } - inline DisarmResponse& operator=(const DisarmResponse& from) { + inline TakeoffRequest& operator=(const TakeoffRequest& from) { CopyFrom(from); return *this; } - inline DisarmResponse& operator=(DisarmResponse&& from) noexcept { + inline TakeoffRequest& operator=(TakeoffRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -815,156 +734,133 @@ class DisarmResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DisarmResponse& default_instance() { + static const TakeoffRequest& default_instance() { return *internal_default_instance(); } - static inline const DisarmResponse* internal_default_instance() { - return reinterpret_cast( - &_DisarmResponse_default_instance_); + static inline const TakeoffRequest* internal_default_instance() { + return reinterpret_cast( + &_TakeoffRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 4; - friend void swap(DisarmResponse& a, DisarmResponse& b) { + friend void swap(TakeoffRequest& a, TakeoffRequest& b) { a.Swap(&b); } - inline void Swap(DisarmResponse* other) { + inline void Swap(TakeoffRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DisarmResponse* other) { + void UnsafeArenaSwap(TakeoffRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DisarmResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DisarmResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DisarmResponse& from) { - DisarmResponse::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DisarmResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.DisarmResponse"; + return "mavsdk.rpc.action.TakeoffRequest"; } protected: - explicit DisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TakeoffRequest(::google::protobuf::Arena* arena); + TakeoffRequest(::google::protobuf::Arena* arena, const TakeoffRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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* action_result); - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DisarmResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TakeoffRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class TakeoffRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffRequest) */ { +class ShutdownRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownRequest) */ { public: - inline TakeoffRequest() : TakeoffRequest(nullptr) {} + inline ShutdownRequest() : ShutdownRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR TakeoffRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShutdownRequest(::google::protobuf::internal::ConstantInitialized); - TakeoffRequest(const TakeoffRequest& from); - TakeoffRequest(TakeoffRequest&& from) noexcept - : TakeoffRequest() { + inline ShutdownRequest(const ShutdownRequest& from) + : ShutdownRequest(nullptr, from) {} + ShutdownRequest(ShutdownRequest&& from) noexcept + : ShutdownRequest() { *this = ::std::move(from); } - inline TakeoffRequest& operator=(const TakeoffRequest& from) { + inline ShutdownRequest& operator=(const ShutdownRequest& from) { CopyFrom(from); return *this; } - inline TakeoffRequest& operator=(TakeoffRequest&& from) noexcept { + inline ShutdownRequest& operator=(ShutdownRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -974,122 +870,134 @@ class TakeoffRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TakeoffRequest& default_instance() { + static const ShutdownRequest& default_instance() { return *internal_default_instance(); } - static inline const TakeoffRequest* internal_default_instance() { - return reinterpret_cast( - &_TakeoffRequest_default_instance_); + static inline const ShutdownRequest* internal_default_instance() { + return reinterpret_cast( + &_ShutdownRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 10; - friend void swap(TakeoffRequest& a, TakeoffRequest& b) { + friend void swap(ShutdownRequest& a, ShutdownRequest& b) { a.Swap(&b); } - inline void Swap(TakeoffRequest* other) { + inline void Swap(ShutdownRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TakeoffRequest* other) { + void UnsafeArenaSwap(ShutdownRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TakeoffRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ShutdownRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const TakeoffRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ShutdownRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const TakeoffRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ShutdownRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TakeoffRequest"; + return "mavsdk.rpc.action.ShutdownRequest"; } protected: - explicit TakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ShutdownRequest(::google::protobuf::Arena* arena); + ShutdownRequest(::google::protobuf::Arena* arena, const ShutdownRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TakeoffRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ShutdownRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 TakeoffResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffResponse) */ { +class SetTakeoffAltitudeRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeRequest) */ { public: - inline TakeoffResponse() : TakeoffResponse(nullptr) {} - ~TakeoffResponse() override; + inline SetTakeoffAltitudeRequest() : SetTakeoffAltitudeRequest(nullptr) {} + ~SetTakeoffAltitudeRequest() override; template - explicit PROTOBUF_CONSTEXPR TakeoffResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequest(::google::protobuf::internal::ConstantInitialized); - TakeoffResponse(const TakeoffResponse& from); - TakeoffResponse(TakeoffResponse&& from) noexcept - : TakeoffResponse() { + inline SetTakeoffAltitudeRequest(const SetTakeoffAltitudeRequest& from) + : SetTakeoffAltitudeRequest(nullptr, from) {} + SetTakeoffAltitudeRequest(SetTakeoffAltitudeRequest&& from) noexcept + : SetTakeoffAltitudeRequest() { *this = ::std::move(from); } - inline TakeoffResponse& operator=(const TakeoffResponse& from) { + inline SetTakeoffAltitudeRequest& operator=(const SetTakeoffAltitudeRequest& from) { CopyFrom(from); return *this; } - inline TakeoffResponse& operator=(TakeoffResponse&& from) noexcept { + inline SetTakeoffAltitudeRequest& operator=(SetTakeoffAltitudeRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1099,156 +1007,172 @@ class TakeoffResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TakeoffResponse& default_instance() { + static const SetTakeoffAltitudeRequest& default_instance() { return *internal_default_instance(); } - static inline const TakeoffResponse* internal_default_instance() { - return reinterpret_cast( - &_TakeoffResponse_default_instance_); + static inline const SetTakeoffAltitudeRequest* internal_default_instance() { + return reinterpret_cast( + &_SetTakeoffAltitudeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 32; - friend void swap(TakeoffResponse& a, TakeoffResponse& b) { + friend void swap(SetTakeoffAltitudeRequest& a, SetTakeoffAltitudeRequest& b) { a.Swap(&b); } - inline void Swap(TakeoffResponse* other) { + inline void Swap(SetTakeoffAltitudeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TakeoffResponse* other) { + void UnsafeArenaSwap(SetTakeoffAltitudeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TakeoffResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetTakeoffAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TakeoffResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TakeoffResponse& from) { - TakeoffResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TakeoffResponse* other); + void InternalSwap(SetTakeoffAltitudeRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TakeoffResponse"; + return "mavsdk.rpc.action.SetTakeoffAltitudeRequest"; } protected: - explicit TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetTakeoffAltitudeRequest(::google::protobuf::Arena* arena); + SetTakeoffAltitudeRequest(::google::protobuf::Arena* arena, const SetTakeoffAltitudeRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kActionResultFieldNumber = 1, + kAltitudeFieldNumber = 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* action_result); + // float altitude = 1; + void clear_altitude() ; + float altitude() const; + void set_altitude(float value); + private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + float _internal_altitude() const; + void _internal_set_altitude(float value); + public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TakeoffResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetTakeoffAltitudeRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; + + 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 LandRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandRequest) */ { +class SetReturnToLaunchAltitudeRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) */ { public: - inline LandRequest() : LandRequest(nullptr) {} + inline SetReturnToLaunchAltitudeRequest() : SetReturnToLaunchAltitudeRequest(nullptr) {} + ~SetReturnToLaunchAltitudeRequest() override; template - explicit PROTOBUF_CONSTEXPR LandRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequest(::google::protobuf::internal::ConstantInitialized); - LandRequest(const LandRequest& from); - LandRequest(LandRequest&& from) noexcept - : LandRequest() { + inline SetReturnToLaunchAltitudeRequest(const SetReturnToLaunchAltitudeRequest& from) + : SetReturnToLaunchAltitudeRequest(nullptr, from) {} + SetReturnToLaunchAltitudeRequest(SetReturnToLaunchAltitudeRequest&& from) noexcept + : SetReturnToLaunchAltitudeRequest() { *this = ::std::move(from); } - inline LandRequest& operator=(const LandRequest& from) { + inline SetReturnToLaunchAltitudeRequest& operator=(const SetReturnToLaunchAltitudeRequest& from) { CopyFrom(from); return *this; } - inline LandRequest& operator=(LandRequest&& from) noexcept { + inline SetReturnToLaunchAltitudeRequest& operator=(SetReturnToLaunchAltitudeRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1258,122 +1182,172 @@ class LandRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LandRequest& default_instance() { + static const SetReturnToLaunchAltitudeRequest& default_instance() { return *internal_default_instance(); } - static inline const LandRequest* internal_default_instance() { - return reinterpret_cast( - &_LandRequest_default_instance_); + static inline const SetReturnToLaunchAltitudeRequest* internal_default_instance() { + return reinterpret_cast( + &_SetReturnToLaunchAltitudeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 40; - friend void swap(LandRequest& a, LandRequest& b) { + friend void swap(SetReturnToLaunchAltitudeRequest& a, SetReturnToLaunchAltitudeRequest& b) { a.Swap(&b); } - inline void Swap(LandRequest* other) { + inline void Swap(SetReturnToLaunchAltitudeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LandRequest* other) { + void UnsafeArenaSwap(SetReturnToLaunchAltitudeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LandRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const LandRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + SetReturnToLaunchAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const LandRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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 ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.LandRequest"; + return "mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest"; } protected: - explicit LandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena); + SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.LandRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 LandResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandResponse) */ { +class SetMaximumSpeedRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetMaximumSpeedRequest) */ { public: - inline LandResponse() : LandResponse(nullptr) {} - ~LandResponse() override; + inline SetMaximumSpeedRequest() : SetMaximumSpeedRequest(nullptr) {} + ~SetMaximumSpeedRequest() override; template - explicit PROTOBUF_CONSTEXPR LandResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetMaximumSpeedRequest(::google::protobuf::internal::ConstantInitialized); - LandResponse(const LandResponse& from); - LandResponse(LandResponse&& from) noexcept - : LandResponse() { + inline SetMaximumSpeedRequest(const SetMaximumSpeedRequest& from) + : SetMaximumSpeedRequest(nullptr, from) {} + SetMaximumSpeedRequest(SetMaximumSpeedRequest&& from) noexcept + : SetMaximumSpeedRequest() { *this = ::std::move(from); } - inline LandResponse& operator=(const LandResponse& from) { + inline SetMaximumSpeedRequest& operator=(const SetMaximumSpeedRequest& from) { CopyFrom(from); return *this; } - inline LandResponse& operator=(LandResponse&& from) noexcept { + inline SetMaximumSpeedRequest& operator=(SetMaximumSpeedRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1383,156 +1357,172 @@ class LandResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LandResponse& default_instance() { + static const SetMaximumSpeedRequest& default_instance() { return *internal_default_instance(); } - static inline const LandResponse* internal_default_instance() { - return reinterpret_cast( - &_LandResponse_default_instance_); + static inline const SetMaximumSpeedRequest* internal_default_instance() { + return reinterpret_cast( + &_SetMaximumSpeedRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 36; - friend void swap(LandResponse& a, LandResponse& b) { + friend void swap(SetMaximumSpeedRequest& a, SetMaximumSpeedRequest& b) { a.Swap(&b); } - inline void Swap(LandResponse* other) { + inline void Swap(SetMaximumSpeedRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LandResponse* other) { + void UnsafeArenaSwap(SetMaximumSpeedRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LandResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetMaximumSpeedRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const LandResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const LandResponse& from) { - LandResponse::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetMaximumSpeedRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const SetMaximumSpeedRequest& from) { + SetMaximumSpeedRequest::MergeImpl(*this, from); } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LandResponse* other); + void InternalSwap(SetMaximumSpeedRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.LandResponse"; + return "mavsdk.rpc.action.SetMaximumSpeedRequest"; } protected: - explicit LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetMaximumSpeedRequest(::google::protobuf::Arena* arena); + SetMaximumSpeedRequest(::google::protobuf::Arena* arena, const SetMaximumSpeedRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kActionResultFieldNumber = 1, + kSpeedFieldNumber = 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* action_result); + // float speed = 1; + void clear_speed() ; + float speed() const; + void set_speed(float value); + private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + float _internal_speed() const; + void _internal_set_speed(float value); + public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.LandResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetMaximumSpeedRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; + + 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_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class RebootRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootRequest) */ { +class SetCurrentSpeedRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedRequest) */ { public: - inline RebootRequest() : RebootRequest(nullptr) {} + inline SetCurrentSpeedRequest() : SetCurrentSpeedRequest(nullptr) {} + ~SetCurrentSpeedRequest() override; template - explicit PROTOBUF_CONSTEXPR RebootRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetCurrentSpeedRequest(::google::protobuf::internal::ConstantInitialized); - RebootRequest(const RebootRequest& from); - RebootRequest(RebootRequest&& from) noexcept - : RebootRequest() { + inline SetCurrentSpeedRequest(const SetCurrentSpeedRequest& from) + : SetCurrentSpeedRequest(nullptr, from) {} + SetCurrentSpeedRequest(SetCurrentSpeedRequest&& from) noexcept + : SetCurrentSpeedRequest() { *this = ::std::move(from); } - inline RebootRequest& operator=(const RebootRequest& from) { + inline SetCurrentSpeedRequest& operator=(const SetCurrentSpeedRequest& from) { CopyFrom(from); return *this; } - inline RebootRequest& operator=(RebootRequest&& from) noexcept { + inline SetCurrentSpeedRequest& operator=(SetCurrentSpeedRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1542,122 +1532,172 @@ class RebootRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RebootRequest& default_instance() { + static const SetCurrentSpeedRequest& default_instance() { return *internal_default_instance(); } - static inline const RebootRequest* internal_default_instance() { - return reinterpret_cast( - &_RebootRequest_default_instance_); + static inline const SetCurrentSpeedRequest* internal_default_instance() { + return reinterpret_cast( + &_SetCurrentSpeedRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 42; - friend void swap(RebootRequest& a, RebootRequest& b) { + friend void swap(SetCurrentSpeedRequest& a, SetCurrentSpeedRequest& b) { a.Swap(&b); } - inline void Swap(RebootRequest* other) { + inline void Swap(SetCurrentSpeedRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RebootRequest* other) { + void UnsafeArenaSwap(SetCurrentSpeedRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RebootRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const RebootRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + SetCurrentSpeedRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const RebootRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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 ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.RebootRequest"; + return "mavsdk.rpc.action.SetCurrentSpeedRequest"; } protected: - explicit RebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetCurrentSpeedRequest(::google::protobuf::Arena* arena); + SetCurrentSpeedRequest(::google::protobuf::Arena* arena, const SetCurrentSpeedRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.RebootRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 RebootResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootResponse) */ { +class SetActuatorRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorRequest) */ { public: - inline RebootResponse() : RebootResponse(nullptr) {} - ~RebootResponse() override; + inline SetActuatorRequest() : SetActuatorRequest(nullptr) {} + ~SetActuatorRequest() override; template - explicit PROTOBUF_CONSTEXPR RebootResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetActuatorRequest(::google::protobuf::internal::ConstantInitialized); - RebootResponse(const RebootResponse& from); - RebootResponse(RebootResponse&& from) noexcept - : RebootResponse() { + inline SetActuatorRequest(const SetActuatorRequest& from) + : SetActuatorRequest(nullptr, from) {} + SetActuatorRequest(SetActuatorRequest&& from) noexcept + : SetActuatorRequest() { *this = ::std::move(from); } - inline RebootResponse& operator=(const RebootResponse& from) { + inline SetActuatorRequest& operator=(const SetActuatorRequest& from) { CopyFrom(from); return *this; } - inline RebootResponse& operator=(RebootResponse&& from) noexcept { + inline SetActuatorRequest& operator=(SetActuatorRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1667,156 +1707,183 @@ class RebootResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RebootResponse& default_instance() { + static const SetActuatorRequest& default_instance() { return *internal_default_instance(); } - static inline const RebootResponse* internal_default_instance() { - return reinterpret_cast( - &_RebootResponse_default_instance_); + static inline const SetActuatorRequest* internal_default_instance() { + return reinterpret_cast( + &_SetActuatorRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 24; - friend void swap(RebootResponse& a, RebootResponse& b) { + friend void swap(SetActuatorRequest& a, SetActuatorRequest& b) { a.Swap(&b); } - inline void Swap(RebootResponse* other) { + inline void Swap(SetActuatorRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RebootResponse* other) { + void UnsafeArenaSwap(SetActuatorRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RebootResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetActuatorRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RebootResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RebootResponse& from) { - RebootResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RebootResponse* other); + void InternalSwap(SetActuatorRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.RebootResponse"; + return "mavsdk.rpc.action.SetActuatorRequest"; } protected: - explicit RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetActuatorRequest(::google::protobuf::Arena* arena); + SetActuatorRequest(::google::protobuf::Arena* arena, const SetActuatorRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kActionResultFieldNumber = 1, + kIndexFieldNumber = 1, + kValueFieldNumber = 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* action_result); + // int32 index = 1; + void clear_index() ; + ::int32_t index() const; + void set_index(::int32_t value); + private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + ::int32_t _internal_index() const; + void _internal_set_index(::int32_t value); + public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.RebootResponse) + // 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; + + 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 ShutdownRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownRequest) */ { +class ReturnToLaunchRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchRequest) */ { public: - inline ShutdownRequest() : ShutdownRequest(nullptr) {} + inline ReturnToLaunchRequest() : ReturnToLaunchRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR ShutdownRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ReturnToLaunchRequest(::google::protobuf::internal::ConstantInitialized); - ShutdownRequest(const ShutdownRequest& from); - ShutdownRequest(ShutdownRequest&& from) noexcept - : ShutdownRequest() { + inline ReturnToLaunchRequest(const ReturnToLaunchRequest& from) + : ReturnToLaunchRequest(nullptr, from) {} + ReturnToLaunchRequest(ReturnToLaunchRequest&& from) noexcept + : ReturnToLaunchRequest() { *this = ::std::move(from); } - inline ShutdownRequest& operator=(const ShutdownRequest& from) { + inline ReturnToLaunchRequest& operator=(const ReturnToLaunchRequest& from) { CopyFrom(from); return *this; } - inline ShutdownRequest& operator=(ShutdownRequest&& from) noexcept { + inline ReturnToLaunchRequest& operator=(ReturnToLaunchRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1826,122 +1893,133 @@ class ShutdownRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ShutdownRequest& default_instance() { + static const ReturnToLaunchRequest& default_instance() { return *internal_default_instance(); } - static inline const ShutdownRequest* internal_default_instance() { - return reinterpret_cast( - &_ShutdownRequest_default_instance_); + static inline const ReturnToLaunchRequest* internal_default_instance() { + return reinterpret_cast( + &_ReturnToLaunchRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 16; - friend void swap(ShutdownRequest& a, ShutdownRequest& b) { + friend void swap(ReturnToLaunchRequest& a, ReturnToLaunchRequest& b) { a.Swap(&b); } - inline void Swap(ShutdownRequest* other) { + inline void Swap(ReturnToLaunchRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShutdownRequest* other) { + void UnsafeArenaSwap(ReturnToLaunchRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ShutdownRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ReturnToLaunchRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ShutdownRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ReturnToLaunchRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ShutdownRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ReturnToLaunchRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ShutdownRequest"; + return "mavsdk.rpc.action.ReturnToLaunchRequest"; } protected: - explicit ShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ReturnToLaunchRequest(::google::protobuf::Arena* arena); + ReturnToLaunchRequest(::google::protobuf::Arena* arena, const ReturnToLaunchRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ShutdownRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ReturnToLaunchRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 ShutdownResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownResponse) */ { +class RebootRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootRequest) */ { public: - inline ShutdownResponse() : ShutdownResponse(nullptr) {} - ~ShutdownResponse() override; + inline RebootRequest() : RebootRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR ShutdownResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RebootRequest(::google::protobuf::internal::ConstantInitialized); - ShutdownResponse(const ShutdownResponse& from); - ShutdownResponse(ShutdownResponse&& from) noexcept - : ShutdownResponse() { + inline RebootRequest(const RebootRequest& from) + : RebootRequest(nullptr, from) {} + RebootRequest(RebootRequest&& from) noexcept + : RebootRequest() { *this = ::std::move(from); } - inline ShutdownResponse& operator=(const ShutdownResponse& from) { + inline RebootRequest& operator=(const RebootRequest& from) { CopyFrom(from); return *this; } - inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept { + inline RebootRequest& operator=(RebootRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1951,156 +2029,133 @@ class ShutdownResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ShutdownResponse& default_instance() { + static const RebootRequest& default_instance() { return *internal_default_instance(); } - static inline const ShutdownResponse* internal_default_instance() { - return reinterpret_cast( - &_ShutdownResponse_default_instance_); + static inline const RebootRequest* internal_default_instance() { + return reinterpret_cast( + &_RebootRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 8; - friend void swap(ShutdownResponse& a, ShutdownResponse& b) { + friend void swap(RebootRequest& a, RebootRequest& b) { a.Swap(&b); } - inline void Swap(ShutdownResponse* other) { + inline void Swap(RebootRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShutdownResponse* other) { + void UnsafeArenaSwap(RebootRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ShutdownResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RebootRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ShutdownResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ShutdownResponse& from) { - ShutdownResponse::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ShutdownResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ShutdownResponse"; + return "mavsdk.rpc.action.RebootRequest"; } protected: - explicit ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RebootRequest(::google::protobuf::Arena* arena); + RebootRequest(::google::protobuf::Arena* arena, const RebootRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kActionResultFieldNumber = 1, + // @@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 }; - // .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* action_result); - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ShutdownResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class TerminateRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateRequest) */ { +class LandRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandRequest) */ { public: - inline TerminateRequest() : TerminateRequest(nullptr) {} + inline LandRequest() : LandRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR TerminateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR LandRequest(::google::protobuf::internal::ConstantInitialized); - TerminateRequest(const TerminateRequest& from); - TerminateRequest(TerminateRequest&& from) noexcept - : TerminateRequest() { + inline LandRequest(const LandRequest& from) + : LandRequest(nullptr, from) {} + LandRequest(LandRequest&& from) noexcept + : LandRequest() { *this = ::std::move(from); } - inline TerminateRequest& operator=(const TerminateRequest& from) { + inline LandRequest& operator=(const LandRequest& from) { CopyFrom(from); return *this; } - inline TerminateRequest& operator=(TerminateRequest&& from) noexcept { + inline LandRequest& operator=(LandRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2110,122 +2165,133 @@ class TerminateRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TerminateRequest& default_instance() { + static const LandRequest& default_instance() { return *internal_default_instance(); } - static inline const TerminateRequest* internal_default_instance() { - return reinterpret_cast( - &_TerminateRequest_default_instance_); + static inline const LandRequest* internal_default_instance() { + return reinterpret_cast( + &_LandRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 6; - friend void swap(TerminateRequest& a, TerminateRequest& b) { + friend void swap(LandRequest& a, LandRequest& b) { a.Swap(&b); } - inline void Swap(TerminateRequest* other) { + inline void Swap(LandRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TerminateRequest* other) { + void UnsafeArenaSwap(LandRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TerminateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + LandRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const TerminateRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const LandRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const TerminateRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const LandRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TerminateRequest"; + return "mavsdk.rpc.action.LandRequest"; } protected: - explicit TerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit LandRequest(::google::protobuf::Arena* arena); + LandRequest(::google::protobuf::Arena* arena, const LandRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TerminateRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.LandRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 TerminateResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateResponse) */ { +class KillRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillRequest) */ { public: - inline TerminateResponse() : TerminateResponse(nullptr) {} - ~TerminateResponse() override; + inline KillRequest() : KillRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR TerminateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR KillRequest(::google::protobuf::internal::ConstantInitialized); - TerminateResponse(const TerminateResponse& from); - TerminateResponse(TerminateResponse&& from) noexcept - : TerminateResponse() { + inline KillRequest(const KillRequest& from) + : KillRequest(nullptr, from) {} + KillRequest(KillRequest&& from) noexcept + : KillRequest() { *this = ::std::move(from); } - inline TerminateResponse& operator=(const TerminateResponse& from) { + inline KillRequest& operator=(const KillRequest& from) { CopyFrom(from); return *this; } - inline TerminateResponse& operator=(TerminateResponse&& from) noexcept { + inline KillRequest& operator=(KillRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2235,156 +2301,133 @@ class TerminateResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TerminateResponse& default_instance() { + static const KillRequest& default_instance() { return *internal_default_instance(); } - static inline const TerminateResponse* internal_default_instance() { - return reinterpret_cast( - &_TerminateResponse_default_instance_); + static inline const KillRequest* internal_default_instance() { + return reinterpret_cast( + &_KillRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; - friend void swap(TerminateResponse& a, TerminateResponse& b) { + friend void swap(KillRequest& a, KillRequest& b) { a.Swap(&b); } - inline void Swap(TerminateResponse* other) { + inline void Swap(KillRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TerminateResponse* other) { + void UnsafeArenaSwap(KillRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TerminateResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + KillRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TerminateResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TerminateResponse& from) { - TerminateResponse::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TerminateResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TerminateResponse"; + return "mavsdk.rpc.action.KillRequest"; } protected: - explicit TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit KillRequest(::google::protobuf::Arena* arena); + KillRequest(::google::protobuf::Arena* arena, const KillRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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* action_result); - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TerminateResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.KillRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class KillRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillRequest) */ { +class HoldRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldRequest) */ { public: - inline KillRequest() : KillRequest(nullptr) {} + inline HoldRequest() : HoldRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR KillRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR HoldRequest(::google::protobuf::internal::ConstantInitialized); - KillRequest(const KillRequest& from); - KillRequest(KillRequest&& from) noexcept - : KillRequest() { + inline HoldRequest(const HoldRequest& from) + : HoldRequest(nullptr, from) {} + HoldRequest(HoldRequest&& from) noexcept + : HoldRequest() { *this = ::std::move(from); } - inline KillRequest& operator=(const KillRequest& from) { + inline HoldRequest& operator=(const HoldRequest& from) { CopyFrom(from); return *this; } - inline KillRequest& operator=(KillRequest&& from) noexcept { + inline HoldRequest& operator=(HoldRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2394,122 +2437,134 @@ class KillRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const KillRequest& default_instance() { + static const HoldRequest& default_instance() { return *internal_default_instance(); } - static inline const KillRequest* internal_default_instance() { - return reinterpret_cast( - &_KillRequest_default_instance_); + static inline const HoldRequest* internal_default_instance() { + return reinterpret_cast( + &_HoldRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 22; - friend void swap(KillRequest& a, KillRequest& b) { + friend void swap(HoldRequest& a, HoldRequest& b) { a.Swap(&b); } - inline void Swap(KillRequest* other) { + inline void Swap(HoldRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(KillRequest* other) { + void UnsafeArenaSwap(HoldRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - KillRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + HoldRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const KillRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const HoldRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const KillRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const HoldRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.KillRequest"; + return "mavsdk.rpc.action.HoldRequest"; } protected: - explicit KillRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HoldRequest(::google::protobuf::Arena* arena); + HoldRequest(::google::protobuf::Arena* arena, const HoldRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.KillRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.HoldRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 KillResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillResponse) */ { +class GotoLocationRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationRequest) */ { public: - inline KillResponse() : KillResponse(nullptr) {} - ~KillResponse() override; + inline GotoLocationRequest() : GotoLocationRequest(nullptr) {} + ~GotoLocationRequest() override; template - explicit PROTOBUF_CONSTEXPR KillResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GotoLocationRequest(::google::protobuf::internal::ConstantInitialized); - KillResponse(const KillResponse& from); - KillResponse(KillResponse&& from) noexcept - : KillResponse() { + inline GotoLocationRequest(const GotoLocationRequest& from) + : GotoLocationRequest(nullptr, from) {} + GotoLocationRequest(GotoLocationRequest&& from) noexcept + : GotoLocationRequest() { *this = ::std::move(from); } - inline KillResponse& operator=(const KillResponse& from) { + inline GotoLocationRequest& operator=(const GotoLocationRequest& from) { CopyFrom(from); return *this; } - inline KillResponse& operator=(KillResponse&& from) noexcept { + inline GotoLocationRequest& operator=(GotoLocationRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2519,156 +2574,207 @@ class KillResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const KillResponse& default_instance() { + static const GotoLocationRequest& default_instance() { return *internal_default_instance(); } - static inline const KillResponse* internal_default_instance() { - return reinterpret_cast( - &_KillResponse_default_instance_); + static inline const GotoLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_GotoLocationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 18; - friend void swap(KillResponse& a, KillResponse& b) { + friend void swap(GotoLocationRequest& a, GotoLocationRequest& b) { a.Swap(&b); } - inline void Swap(KillResponse* other) { + inline void Swap(GotoLocationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(KillResponse* other) { + void UnsafeArenaSwap(GotoLocationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - KillResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GotoLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const KillResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const KillResponse& from) { - KillResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(KillResponse* other); + void InternalSwap(GotoLocationRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.KillResponse"; + return "mavsdk.rpc.action.GotoLocationRequest"; } protected: - explicit KillResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GotoLocationRequest(::google::protobuf::Arena* arena); + GotoLocationRequest(::google::protobuf::Arena* arena, const GotoLocationRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kActionResultFieldNumber = 1, + kLatitudeDegFieldNumber = 1, + kLongitudeDegFieldNumber = 2, + kAbsoluteAltitudeMFieldNumber = 3, + kYawDegFieldNumber = 4, }; - // .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* action_result); + // double latitude_deg = 1; + void clear_latitude_deg() ; + double latitude_deg() const; + void set_latitude_deg(double value); + private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.KillResponse) - private: - class _Internal; + double _internal_latitude_deg() const; + void _internal_set_latitude_deg(double value); - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- + public: + // double longitude_deg = 2; + void clear_longitude_deg() ; + double longitude_deg() const; + void set_longitude_deg(double value); -class ReturnToLaunchRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchRequest) */ { - public: - inline ReturnToLaunchRequest() : ReturnToLaunchRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ReturnToLaunchRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + private: + double _internal_longitude_deg() const; + void _internal_set_longitude_deg(double value); - ReturnToLaunchRequest(const ReturnToLaunchRequest& from); - ReturnToLaunchRequest(ReturnToLaunchRequest&& from) noexcept - : ReturnToLaunchRequest() { + 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 ReturnToLaunchRequest& operator=(const ReturnToLaunchRequest& from) { + inline GetTakeoffAltitudeRequest& operator=(const GetTakeoffAltitudeRequest& from) { CopyFrom(from); return *this; } - inline ReturnToLaunchRequest& operator=(ReturnToLaunchRequest&& from) noexcept { + inline GetTakeoffAltitudeRequest& operator=(GetTakeoffAltitudeRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2678,122 +2784,133 @@ class ReturnToLaunchRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ReturnToLaunchRequest& default_instance() { + static const GetTakeoffAltitudeRequest& default_instance() { return *internal_default_instance(); } - static inline const ReturnToLaunchRequest* internal_default_instance() { - return reinterpret_cast( - &_ReturnToLaunchRequest_default_instance_); + static inline const GetTakeoffAltitudeRequest* internal_default_instance() { + return reinterpret_cast( + &_GetTakeoffAltitudeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 30; - friend void swap(ReturnToLaunchRequest& a, ReturnToLaunchRequest& b) { + friend void swap(GetTakeoffAltitudeRequest& a, GetTakeoffAltitudeRequest& b) { a.Swap(&b); } - inline void Swap(ReturnToLaunchRequest* other) { + inline void Swap(GetTakeoffAltitudeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ReturnToLaunchRequest* other) { + void UnsafeArenaSwap(GetTakeoffAltitudeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ReturnToLaunchRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetTakeoffAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ReturnToLaunchRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetTakeoffAltitudeRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ReturnToLaunchRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetTakeoffAltitudeRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ReturnToLaunchRequest"; + return "mavsdk.rpc.action.GetTakeoffAltitudeRequest"; } protected: - explicit ReturnToLaunchRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetTakeoffAltitudeRequest(::google::protobuf::Arena* arena); + GetTakeoffAltitudeRequest(::google::protobuf::Arena* arena, const GetTakeoffAltitudeRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ReturnToLaunchRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetTakeoffAltitudeRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 ReturnToLaunchResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchResponse) */ { +class GetReturnToLaunchAltitudeRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) */ { public: - inline ReturnToLaunchResponse() : ReturnToLaunchResponse(nullptr) {} - ~ReturnToLaunchResponse() override; + inline GetReturnToLaunchAltitudeRequest() : GetReturnToLaunchAltitudeRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR ReturnToLaunchResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequest(::google::protobuf::internal::ConstantInitialized); - ReturnToLaunchResponse(const ReturnToLaunchResponse& from); - ReturnToLaunchResponse(ReturnToLaunchResponse&& from) noexcept - : ReturnToLaunchResponse() { + inline GetReturnToLaunchAltitudeRequest(const GetReturnToLaunchAltitudeRequest& from) + : GetReturnToLaunchAltitudeRequest(nullptr, from) {} + GetReturnToLaunchAltitudeRequest(GetReturnToLaunchAltitudeRequest&& from) noexcept + : GetReturnToLaunchAltitudeRequest() { *this = ::std::move(from); } - inline ReturnToLaunchResponse& operator=(const ReturnToLaunchResponse& from) { + inline GetReturnToLaunchAltitudeRequest& operator=(const GetReturnToLaunchAltitudeRequest& from) { CopyFrom(from); return *this; } - inline ReturnToLaunchResponse& operator=(ReturnToLaunchResponse&& from) noexcept { + inline GetReturnToLaunchAltitudeRequest& operator=(GetReturnToLaunchAltitudeRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2803,157 +2920,133 @@ class ReturnToLaunchResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ReturnToLaunchResponse& default_instance() { + static const GetReturnToLaunchAltitudeRequest& default_instance() { return *internal_default_instance(); } - static inline const ReturnToLaunchResponse* internal_default_instance() { - return reinterpret_cast( - &_ReturnToLaunchResponse_default_instance_); + static inline const GetReturnToLaunchAltitudeRequest* internal_default_instance() { + return reinterpret_cast( + &_GetReturnToLaunchAltitudeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 38; - friend void swap(ReturnToLaunchResponse& a, ReturnToLaunchResponse& b) { + friend void swap(GetReturnToLaunchAltitudeRequest& a, GetReturnToLaunchAltitudeRequest& b) { a.Swap(&b); } - inline void Swap(ReturnToLaunchResponse* other) { + inline void Swap(GetReturnToLaunchAltitudeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ReturnToLaunchResponse* other) { + void UnsafeArenaSwap(GetReturnToLaunchAltitudeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ReturnToLaunchResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetReturnToLaunchAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ReturnToLaunchResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ReturnToLaunchResponse& from) { - ReturnToLaunchResponse::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ReturnToLaunchResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ReturnToLaunchResponse"; + return "mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest"; } protected: - explicit ReturnToLaunchResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena); + GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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* action_result); - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ReturnToLaunchResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class GotoLocationRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationRequest) */ { +class GetMaximumSpeedRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetMaximumSpeedRequest) */ { public: - inline GotoLocationRequest() : GotoLocationRequest(nullptr) {} - ~GotoLocationRequest() override; + inline GetMaximumSpeedRequest() : GetMaximumSpeedRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR GotoLocationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetMaximumSpeedRequest(::google::protobuf::internal::ConstantInitialized); - GotoLocationRequest(const GotoLocationRequest& from); - GotoLocationRequest(GotoLocationRequest&& from) noexcept - : GotoLocationRequest() { + inline GetMaximumSpeedRequest(const GetMaximumSpeedRequest& from) + : GetMaximumSpeedRequest(nullptr, from) {} + GetMaximumSpeedRequest(GetMaximumSpeedRequest&& from) noexcept + : GetMaximumSpeedRequest() { *this = ::std::move(from); } - inline GotoLocationRequest& operator=(const GotoLocationRequest& from) { + inline GetMaximumSpeedRequest& operator=(const GetMaximumSpeedRequest& from) { CopyFrom(from); return *this; } - inline GotoLocationRequest& operator=(GotoLocationRequest&& from) noexcept { + inline GetMaximumSpeedRequest& operator=(GetMaximumSpeedRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2963,334 +3056,120 @@ class GotoLocationRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GotoLocationRequest& default_instance() { + static const GetMaximumSpeedRequest& default_instance() { return *internal_default_instance(); } - static inline const GotoLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_GotoLocationRequest_default_instance_); + static inline const GetMaximumSpeedRequest* internal_default_instance() { + return reinterpret_cast( + &_GetMaximumSpeedRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 34; - friend void swap(GotoLocationRequest& a, GotoLocationRequest& b) { + friend void swap(GetMaximumSpeedRequest& a, GetMaximumSpeedRequest& b) { a.Swap(&b); } - inline void Swap(GotoLocationRequest* other) { + inline void Swap(GetMaximumSpeedRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GotoLocationRequest* other) { + void UnsafeArenaSwap(GetMaximumSpeedRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GotoLocationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetMaximumSpeedRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GotoLocationRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GotoLocationRequest& from) { - GotoLocationRequest::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetMaximumSpeedRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetMaximumSpeedRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GotoLocationRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GotoLocationRequest"; + return "mavsdk.rpc.action.GetMaximumSpeedRequest"; } protected: - explicit GotoLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetMaximumSpeedRequest(::google::protobuf::Arena* arena); + GetMaximumSpeedRequest(::google::protobuf::Arena* arena, const GetMaximumSpeedRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetMaximumSpeedRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - double latitude_deg_; - double longitude_deg_; - float absolute_altitude_m_; - float yaw_deg_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class GotoLocationResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationResponse) */ { - public: - inline GotoLocationResponse() : GotoLocationResponse(nullptr) {} - ~GotoLocationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GotoLocationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GotoLocationResponse(const GotoLocationResponse& 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 (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::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 = - 19; - - 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 (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GotoLocationResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GotoLocationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GotoLocationResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GotoLocationResponse& from) { - GotoLocationResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GotoLocationResponse* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GotoLocationResponse"; - } - protected: - explicit GotoLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::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* action_result); - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GotoLocationResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- class DoOrbitRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitRequest) */ { + 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(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR DoOrbitRequest(::google::protobuf::internal::ConstantInitialized); - DoOrbitRequest(const DoOrbitRequest& from); + inline DoOrbitRequest(const DoOrbitRequest& from) + : DoOrbitRequest(nullptr, from) {} DoOrbitRequest(DoOrbitRequest&& from) noexcept : DoOrbitRequest() { *this = ::std::move(from); @@ -3302,9 +3181,9 @@ class DoOrbitRequest final : } inline DoOrbitRequest& operator=(DoOrbitRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3314,20 +3193,22 @@ class DoOrbitRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const DoOrbitRequest& default_instance() { @@ -3346,64 +3227,65 @@ class DoOrbitRequest final : inline void Swap(DoOrbitRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(DoOrbitRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DoOrbitRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + DoOrbitRequest* New(::google::protobuf::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const DoOrbitRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + using ::google::protobuf::Message::MergeFrom; void MergeFrom( const DoOrbitRequest& from) { DoOrbitRequest::MergeImpl(*this, from); } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; void InternalSwap(DoOrbitRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DoOrbitRequest"; } protected: - explicit DoOrbitRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DoOrbitRequest(::google::protobuf::Arena* arena); + DoOrbitRequest(::google::protobuf::Arena* arena, const DoOrbitRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3481,45 +3363,61 @@ class DoOrbitRequest final : private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class DoOrbitResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitResponse) */ { +class DisarmRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmRequest) */ { public: - inline DoOrbitResponse() : DoOrbitResponse(nullptr) {} - ~DoOrbitResponse() override; + inline DisarmRequest() : DisarmRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR DoOrbitResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR DisarmRequest(::google::protobuf::internal::ConstantInitialized); - DoOrbitResponse(const DoOrbitResponse& from); - DoOrbitResponse(DoOrbitResponse&& from) noexcept - : DoOrbitResponse() { + inline DisarmRequest(const DisarmRequest& from) + : DisarmRequest(nullptr, from) {} + DisarmRequest(DisarmRequest&& from) noexcept + : DisarmRequest() { *this = ::std::move(from); } - inline DoOrbitResponse& operator=(const DoOrbitResponse& from) { + inline DisarmRequest& operator=(const DisarmRequest& from) { CopyFrom(from); return *this; } - inline DoOrbitResponse& operator=(DoOrbitResponse&& from) noexcept { + inline DisarmRequest& operator=(DisarmRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3529,156 +3427,270 @@ class DoOrbitResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DoOrbitResponse& default_instance() { + static const DisarmRequest& default_instance() { return *internal_default_instance(); } - static inline const DoOrbitResponse* internal_default_instance() { - return reinterpret_cast( - &_DoOrbitResponse_default_instance_); + static inline const DisarmRequest* internal_default_instance() { + return reinterpret_cast( + &_DisarmRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 2; - friend void swap(DoOrbitResponse& a, DoOrbitResponse& b) { + friend void swap(DisarmRequest& a, DisarmRequest& b) { a.Swap(&b); } - inline void Swap(DoOrbitResponse* other) { + inline void Swap(DisarmRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DoOrbitResponse* other) { + void UnsafeArenaSwap(DisarmRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DoOrbitResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DisarmRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DoOrbitResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DoOrbitResponse& from) { - DoOrbitResponse::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DoOrbitResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.DoOrbitResponse"; + return "mavsdk.rpc.action.DisarmRequest"; } protected: - explicit DoOrbitResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DisarmRequest(::google::protobuf::Arena* arena); + DisarmRequest(::google::protobuf::Arena* arena, const DisarmRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kActionResultFieldNumber = 1, + // @@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 }; - // .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* action_result); + 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: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); + 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: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DoOrbitResponse) + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class HoldRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldRequest) */ { +class ActionResult final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ActionResult) */ { public: - inline HoldRequest() : HoldRequest(nullptr) {} + inline ActionResult() : ActionResult(nullptr) {} + ~ActionResult() override; template - explicit PROTOBUF_CONSTEXPR HoldRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ActionResult(::google::protobuf::internal::ConstantInitialized); - HoldRequest(const HoldRequest& from); - HoldRequest(HoldRequest&& from) noexcept - : HoldRequest() { + inline ActionResult(const ActionResult& from) + : ActionResult(nullptr, from) {} + ActionResult(ActionResult&& from) noexcept + : ActionResult() { *this = ::std::move(from); } - inline HoldRequest& operator=(const HoldRequest& from) { + inline ActionResult& operator=(const ActionResult& from) { CopyFrom(from); return *this; } - inline HoldRequest& operator=(HoldRequest&& from) noexcept { + inline ActionResult& operator=(ActionResult&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3688,122 +3700,222 @@ class HoldRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const HoldRequest& default_instance() { + static const ActionResult& default_instance() { return *internal_default_instance(); } - static inline const HoldRequest* internal_default_instance() { - return reinterpret_cast( - &_HoldRequest_default_instance_); + static inline const ActionResult* internal_default_instance() { + return reinterpret_cast( + &_ActionResult_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 44; - friend void swap(HoldRequest& a, HoldRequest& b) { + friend void swap(ActionResult& a, ActionResult& b) { a.Swap(&b); } - inline void Swap(HoldRequest* other) { + inline void Swap(ActionResult* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(HoldRequest* other) { + void UnsafeArenaSwap(ActionResult* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - HoldRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const HoldRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + ActionResult* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const HoldRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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 ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.HoldRequest"; + return "mavsdk.rpc.action.ActionResult"; } protected: - explicit HoldRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ActionResult(::google::protobuf::Arena* arena); + ActionResult(::google::protobuf::Arena* arena, const ActionResult& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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 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 ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.HoldRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 HoldResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldResponse) */ { +class TransitionToMulticopterResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterResponse) */ { public: - inline HoldResponse() : HoldResponse(nullptr) {} - ~HoldResponse() override; + inline TransitionToMulticopterResponse() : TransitionToMulticopterResponse(nullptr) {} + ~TransitionToMulticopterResponse() override; template - explicit PROTOBUF_CONSTEXPR HoldResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TransitionToMulticopterResponse(::google::protobuf::internal::ConstantInitialized); - HoldResponse(const HoldResponse& from); - HoldResponse(HoldResponse&& from) noexcept - : HoldResponse() { + inline TransitionToMulticopterResponse(const TransitionToMulticopterResponse& from) + : TransitionToMulticopterResponse(nullptr, from) {} + TransitionToMulticopterResponse(TransitionToMulticopterResponse&& from) noexcept + : TransitionToMulticopterResponse() { *this = ::std::move(from); } - inline HoldResponse& operator=(const HoldResponse& from) { + inline TransitionToMulticopterResponse& operator=(const TransitionToMulticopterResponse& from) { CopyFrom(from); return *this; } - inline HoldResponse& operator=(HoldResponse&& from) noexcept { + inline TransitionToMulticopterResponse& operator=(TransitionToMulticopterResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3813,96 +3925,99 @@ class HoldResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const HoldResponse& default_instance() { + static const TransitionToMulticopterResponse& default_instance() { return *internal_default_instance(); } - static inline const HoldResponse* internal_default_instance() { - return reinterpret_cast( - &_HoldResponse_default_instance_); + static inline const TransitionToMulticopterResponse* internal_default_instance() { + return reinterpret_cast( + &_TransitionToMulticopterResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 29; - friend void swap(HoldResponse& a, HoldResponse& b) { + friend void swap(TransitionToMulticopterResponse& a, TransitionToMulticopterResponse& b) { a.Swap(&b); } - inline void Swap(HoldResponse* other) { + inline void Swap(TransitionToMulticopterResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(HoldResponse* other) { + void UnsafeArenaSwap(TransitionToMulticopterResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - HoldResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TransitionToMulticopterResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const HoldResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const HoldResponse& from) { - HoldResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HoldResponse* other); + void InternalSwap(TransitionToMulticopterResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.HoldResponse"; + return "mavsdk.rpc.action.TransitionToMulticopterResponse"; } protected: - explicit HoldResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TransitionToMulticopterResponse(::google::protobuf::Arena* arena); + TransitionToMulticopterResponse(::google::protobuf::Arena* arena, const TransitionToMulticopterResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3917,53 +4032,71 @@ class HoldResponse final : 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* 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: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.HoldResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToMulticopterResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 SetActuatorRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorRequest) */ { +class TransitionToFixedwingResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingResponse) */ { public: - inline SetActuatorRequest() : SetActuatorRequest(nullptr) {} - ~SetActuatorRequest() override; + inline TransitionToFixedwingResponse() : TransitionToFixedwingResponse(nullptr) {} + ~TransitionToFixedwingResponse() override; template - explicit PROTOBUF_CONSTEXPR SetActuatorRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TransitionToFixedwingResponse(::google::protobuf::internal::ConstantInitialized); - SetActuatorRequest(const SetActuatorRequest& from); - SetActuatorRequest(SetActuatorRequest&& from) noexcept - : SetActuatorRequest() { + inline TransitionToFixedwingResponse(const TransitionToFixedwingResponse& from) + : TransitionToFixedwingResponse(nullptr, from) {} + TransitionToFixedwingResponse(TransitionToFixedwingResponse&& from) noexcept + : TransitionToFixedwingResponse() { *this = ::std::move(from); } - inline SetActuatorRequest& operator=(const SetActuatorRequest& from) { + inline TransitionToFixedwingResponse& operator=(const TransitionToFixedwingResponse& from) { CopyFrom(from); return *this; } - inline SetActuatorRequest& operator=(SetActuatorRequest&& from) noexcept { + inline TransitionToFixedwingResponse& operator=(TransitionToFixedwingResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3973,164 +4106,178 @@ class SetActuatorRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetActuatorRequest& default_instance() { + static const TransitionToFixedwingResponse& default_instance() { return *internal_default_instance(); } - static inline const SetActuatorRequest* internal_default_instance() { - return reinterpret_cast( - &_SetActuatorRequest_default_instance_); + static inline const TransitionToFixedwingResponse* internal_default_instance() { + return reinterpret_cast( + &_TransitionToFixedwingResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 27; - friend void swap(SetActuatorRequest& a, SetActuatorRequest& b) { + friend void swap(TransitionToFixedwingResponse& a, TransitionToFixedwingResponse& b) { a.Swap(&b); } - inline void Swap(SetActuatorRequest* other) { + inline void Swap(TransitionToFixedwingResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetActuatorRequest* other) { + void UnsafeArenaSwap(TransitionToFixedwingResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetActuatorRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TransitionToFixedwingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetActuatorRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetActuatorRequest& from) { - SetActuatorRequest::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetActuatorRequest* other); + void InternalSwap(TransitionToFixedwingResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetActuatorRequest"; + return "mavsdk.rpc.action.TransitionToFixedwingResponse"; } protected: - explicit SetActuatorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TransitionToFixedwingResponse(::google::protobuf::Arena* arena); + TransitionToFixedwingResponse(::google::protobuf::Arena* arena, const TransitionToFixedwingResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kIndexFieldNumber = 1, - kValueFieldNumber = 2, + kActionResultFieldNumber = 1, }; - // 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); + // .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: - float _internal_value() const; - void _internal_set_value(float value); + 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.SetActuatorRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToFixedwingResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::int32_t index_; - float value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorResponse) */ { +class TerminateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateResponse) */ { public: - inline SetActuatorResponse() : SetActuatorResponse(nullptr) {} - ~SetActuatorResponse() override; + inline TerminateResponse() : TerminateResponse(nullptr) {} + ~TerminateResponse() override; template - explicit PROTOBUF_CONSTEXPR SetActuatorResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TerminateResponse(::google::protobuf::internal::ConstantInitialized); - SetActuatorResponse(const SetActuatorResponse& from); - SetActuatorResponse(SetActuatorResponse&& from) noexcept - : SetActuatorResponse() { + inline TerminateResponse(const TerminateResponse& from) + : TerminateResponse(nullptr, from) {} + TerminateResponse(TerminateResponse&& from) noexcept + : TerminateResponse() { *this = ::std::move(from); } - inline SetActuatorResponse& operator=(const SetActuatorResponse& from) { + inline TerminateResponse& operator=(const TerminateResponse& from) { CopyFrom(from); return *this; } - inline SetActuatorResponse& operator=(SetActuatorResponse&& from) noexcept { + inline TerminateResponse& operator=(TerminateResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4140,96 +4287,99 @@ class SetActuatorResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetActuatorResponse& default_instance() { + static const TerminateResponse& default_instance() { return *internal_default_instance(); } - static inline const SetActuatorResponse* internal_default_instance() { - return reinterpret_cast( - &_SetActuatorResponse_default_instance_); + static inline const TerminateResponse* internal_default_instance() { + return reinterpret_cast( + &_TerminateResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 13; - friend void swap(SetActuatorResponse& a, SetActuatorResponse& b) { + friend void swap(TerminateResponse& a, TerminateResponse& b) { a.Swap(&b); } - inline void Swap(SetActuatorResponse* other) { + inline void Swap(TerminateResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetActuatorResponse* other) { + void UnsafeArenaSwap(TerminateResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetActuatorResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TerminateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetActuatorResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetActuatorResponse& from) { - SetActuatorResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetActuatorResponse* other); + void InternalSwap(TerminateResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetActuatorResponse"; + return "mavsdk.rpc.action.TerminateResponse"; } protected: - explicit SetActuatorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TerminateResponse(::google::protobuf::Arena* arena); + TerminateResponse(::google::protobuf::Arena* arena, const TerminateResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4244,52 +4394,71 @@ class SetActuatorResponse final : 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* 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: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetActuatorResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TerminateResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 TransitionToFixedwingRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingRequest) */ { +class TakeoffResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffResponse) */ { public: - inline TransitionToFixedwingRequest() : TransitionToFixedwingRequest(nullptr) {} + inline TakeoffResponse() : TakeoffResponse(nullptr) {} + ~TakeoffResponse() override; template - explicit PROTOBUF_CONSTEXPR TransitionToFixedwingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TakeoffResponse(::google::protobuf::internal::ConstantInitialized); - TransitionToFixedwingRequest(const TransitionToFixedwingRequest& from); - TransitionToFixedwingRequest(TransitionToFixedwingRequest&& from) noexcept - : TransitionToFixedwingRequest() { + inline TakeoffResponse(const TakeoffResponse& from) + : TakeoffResponse(nullptr, from) {} + TakeoffResponse(TakeoffResponse&& from) noexcept + : TakeoffResponse() { *this = ::std::move(from); } - inline TransitionToFixedwingRequest& operator=(const TransitionToFixedwingRequest& from) { + inline TakeoffResponse& operator=(const TakeoffResponse& from) { CopyFrom(from); return *this; } - inline TransitionToFixedwingRequest& operator=(TransitionToFixedwingRequest&& from) noexcept { + inline TakeoffResponse& operator=(TakeoffResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4299,122 +4468,178 @@ class TransitionToFixedwingRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransitionToFixedwingRequest& default_instance() { + static const TakeoffResponse& default_instance() { return *internal_default_instance(); } - static inline const TransitionToFixedwingRequest* internal_default_instance() { - return reinterpret_cast( - &_TransitionToFixedwingRequest_default_instance_); + static inline const TakeoffResponse* internal_default_instance() { + return reinterpret_cast( + &_TakeoffResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 5; - friend void swap(TransitionToFixedwingRequest& a, TransitionToFixedwingRequest& b) { + friend void swap(TakeoffResponse& a, TakeoffResponse& b) { a.Swap(&b); } - inline void Swap(TransitionToFixedwingRequest* other) { + inline void Swap(TakeoffResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransitionToFixedwingRequest* other) { + void UnsafeArenaSwap(TakeoffResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TransitionToFixedwingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const TransitionToFixedwingRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + TakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const TransitionToFixedwingRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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 ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToFixedwingRequest"; + return "mavsdk.rpc.action.TakeoffResponse"; } protected: - explicit TransitionToFixedwingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TakeoffResponse(::google::protobuf::Arena* arena); + TakeoffResponse(::google::protobuf::Arena* arena, const TakeoffResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToFixedwingRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingResponse) */ { +class ShutdownResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownResponse) */ { public: - inline TransitionToFixedwingResponse() : TransitionToFixedwingResponse(nullptr) {} - ~TransitionToFixedwingResponse() override; + inline ShutdownResponse() : ShutdownResponse(nullptr) {} + ~ShutdownResponse() override; template - explicit PROTOBUF_CONSTEXPR TransitionToFixedwingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShutdownResponse(::google::protobuf::internal::ConstantInitialized); - TransitionToFixedwingResponse(const TransitionToFixedwingResponse& from); - TransitionToFixedwingResponse(TransitionToFixedwingResponse&& from) noexcept - : TransitionToFixedwingResponse() { + inline ShutdownResponse(const ShutdownResponse& from) + : ShutdownResponse(nullptr, from) {} + ShutdownResponse(ShutdownResponse&& from) noexcept + : ShutdownResponse() { *this = ::std::move(from); } - inline TransitionToFixedwingResponse& operator=(const TransitionToFixedwingResponse& from) { + inline ShutdownResponse& operator=(const ShutdownResponse& from) { CopyFrom(from); return *this; } - inline TransitionToFixedwingResponse& operator=(TransitionToFixedwingResponse&& from) noexcept { + inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4424,96 +4649,99 @@ class TransitionToFixedwingResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransitionToFixedwingResponse& default_instance() { + static const ShutdownResponse& default_instance() { return *internal_default_instance(); } - static inline const TransitionToFixedwingResponse* internal_default_instance() { - return reinterpret_cast( - &_TransitionToFixedwingResponse_default_instance_); + static inline const ShutdownResponse* internal_default_instance() { + return reinterpret_cast( + &_ShutdownResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 11; - friend void swap(TransitionToFixedwingResponse& a, TransitionToFixedwingResponse& b) { + friend void swap(ShutdownResponse& a, ShutdownResponse& b) { a.Swap(&b); } - inline void Swap(TransitionToFixedwingResponse* other) { + inline void Swap(ShutdownResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransitionToFixedwingResponse* other) { + void UnsafeArenaSwap(ShutdownResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TransitionToFixedwingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ShutdownResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TransitionToFixedwingResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TransitionToFixedwingResponse& from) { - TransitionToFixedwingResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransitionToFixedwingResponse* other); + void InternalSwap(ShutdownResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToFixedwingResponse"; + return "mavsdk.rpc.action.ShutdownResponse"; } protected: - explicit TransitionToFixedwingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ShutdownResponse(::google::protobuf::Arena* arena); + ShutdownResponse(::google::protobuf::Arena* arena, const ShutdownResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4528,52 +4756,71 @@ class TransitionToFixedwingResponse final : 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* 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: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToFixedwingResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ShutdownResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterRequest) */ { +class SetTakeoffAltitudeResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeResponse) */ { public: - inline TransitionToMulticopterRequest() : TransitionToMulticopterRequest(nullptr) {} + inline SetTakeoffAltitudeResponse() : SetTakeoffAltitudeResponse(nullptr) {} + ~SetTakeoffAltitudeResponse() override; template - explicit PROTOBUF_CONSTEXPR TransitionToMulticopterRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - TransitionToMulticopterRequest(const TransitionToMulticopterRequest& from); - TransitionToMulticopterRequest(TransitionToMulticopterRequest&& from) noexcept - : TransitionToMulticopterRequest() { + inline SetTakeoffAltitudeResponse(const SetTakeoffAltitudeResponse& from) + : SetTakeoffAltitudeResponse(nullptr, from) {} + SetTakeoffAltitudeResponse(SetTakeoffAltitudeResponse&& from) noexcept + : SetTakeoffAltitudeResponse() { *this = ::std::move(from); } - inline TransitionToMulticopterRequest& operator=(const TransitionToMulticopterRequest& from) { + inline SetTakeoffAltitudeResponse& operator=(const SetTakeoffAltitudeResponse& from) { CopyFrom(from); return *this; } - inline TransitionToMulticopterRequest& operator=(TransitionToMulticopterRequest&& from) noexcept { + inline SetTakeoffAltitudeResponse& operator=(SetTakeoffAltitudeResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4583,122 +4830,178 @@ class TransitionToMulticopterRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransitionToMulticopterRequest& default_instance() { + static const SetTakeoffAltitudeResponse& default_instance() { return *internal_default_instance(); } - static inline const TransitionToMulticopterRequest* internal_default_instance() { - return reinterpret_cast( - &_TransitionToMulticopterRequest_default_instance_); + static inline const SetTakeoffAltitudeResponse* internal_default_instance() { + return reinterpret_cast( + &_SetTakeoffAltitudeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 33; - friend void swap(TransitionToMulticopterRequest& a, TransitionToMulticopterRequest& b) { + friend void swap(SetTakeoffAltitudeResponse& a, SetTakeoffAltitudeResponse& b) { a.Swap(&b); } - inline void Swap(TransitionToMulticopterRequest* other) { + inline void Swap(SetTakeoffAltitudeResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransitionToMulticopterRequest* other) { + void UnsafeArenaSwap(SetTakeoffAltitudeResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TransitionToMulticopterRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const TransitionToMulticopterRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + SetTakeoffAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const TransitionToMulticopterRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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 ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToMulticopterRequest"; + return "mavsdk.rpc.action.SetTakeoffAltitudeResponse"; } protected: - explicit TransitionToMulticopterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetTakeoffAltitudeResponse(::google::protobuf::Arena* arena); + SetTakeoffAltitudeResponse(::google::protobuf::Arena* arena, const SetTakeoffAltitudeResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToMulticopterRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 TransitionToMulticopterResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterResponse) */ { +class SetReturnToLaunchAltitudeResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) */ { public: - inline TransitionToMulticopterResponse() : TransitionToMulticopterResponse(nullptr) {} - ~TransitionToMulticopterResponse() override; + inline SetReturnToLaunchAltitudeResponse() : SetReturnToLaunchAltitudeResponse(nullptr) {} + ~SetReturnToLaunchAltitudeResponse() override; template - explicit PROTOBUF_CONSTEXPR TransitionToMulticopterResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - TransitionToMulticopterResponse(const TransitionToMulticopterResponse& from); - TransitionToMulticopterResponse(TransitionToMulticopterResponse&& from) noexcept - : TransitionToMulticopterResponse() { + inline SetReturnToLaunchAltitudeResponse(const SetReturnToLaunchAltitudeResponse& from) + : SetReturnToLaunchAltitudeResponse(nullptr, from) {} + SetReturnToLaunchAltitudeResponse(SetReturnToLaunchAltitudeResponse&& from) noexcept + : SetReturnToLaunchAltitudeResponse() { *this = ::std::move(from); } - inline TransitionToMulticopterResponse& operator=(const TransitionToMulticopterResponse& from) { + inline SetReturnToLaunchAltitudeResponse& operator=(const SetReturnToLaunchAltitudeResponse& from) { CopyFrom(from); return *this; } - inline TransitionToMulticopterResponse& operator=(TransitionToMulticopterResponse&& from) noexcept { + inline SetReturnToLaunchAltitudeResponse& operator=(SetReturnToLaunchAltitudeResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4708,96 +5011,99 @@ class TransitionToMulticopterResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TransitionToMulticopterResponse& default_instance() { + static const SetReturnToLaunchAltitudeResponse& default_instance() { return *internal_default_instance(); } - static inline const TransitionToMulticopterResponse* internal_default_instance() { - return reinterpret_cast( - &_TransitionToMulticopterResponse_default_instance_); + static inline const SetReturnToLaunchAltitudeResponse* internal_default_instance() { + return reinterpret_cast( + &_SetReturnToLaunchAltitudeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 41; - friend void swap(TransitionToMulticopterResponse& a, TransitionToMulticopterResponse& b) { + friend void swap(SetReturnToLaunchAltitudeResponse& a, SetReturnToLaunchAltitudeResponse& b) { a.Swap(&b); } - inline void Swap(TransitionToMulticopterResponse* other) { + inline void Swap(SetReturnToLaunchAltitudeResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TransitionToMulticopterResponse* other) { + void UnsafeArenaSwap(SetReturnToLaunchAltitudeResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TransitionToMulticopterResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetReturnToLaunchAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TransitionToMulticopterResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TransitionToMulticopterResponse& from) { - TransitionToMulticopterResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransitionToMulticopterResponse* other); + void InternalSwap(SetReturnToLaunchAltitudeResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToMulticopterResponse"; + return "mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse"; } protected: - explicit TransitionToMulticopterResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena); + SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4812,52 +5118,71 @@ class TransitionToMulticopterResponse final : 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* 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: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToMulticopterResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 GetTakeoffAltitudeRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetTakeoffAltitudeRequest) */ { +class SetMaximumSpeedResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetMaximumSpeedResponse) */ { public: - inline GetTakeoffAltitudeRequest() : GetTakeoffAltitudeRequest(nullptr) {} + inline SetMaximumSpeedResponse() : SetMaximumSpeedResponse(nullptr) {} + ~SetMaximumSpeedResponse() override; template - explicit PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetMaximumSpeedResponse(::google::protobuf::internal::ConstantInitialized); - GetTakeoffAltitudeRequest(const GetTakeoffAltitudeRequest& from); - GetTakeoffAltitudeRequest(GetTakeoffAltitudeRequest&& from) noexcept - : GetTakeoffAltitudeRequest() { + inline SetMaximumSpeedResponse(const SetMaximumSpeedResponse& from) + : SetMaximumSpeedResponse(nullptr, from) {} + SetMaximumSpeedResponse(SetMaximumSpeedResponse&& from) noexcept + : SetMaximumSpeedResponse() { *this = ::std::move(from); } - inline GetTakeoffAltitudeRequest& operator=(const GetTakeoffAltitudeRequest& from) { + inline SetMaximumSpeedResponse& operator=(const SetMaximumSpeedResponse& from) { CopyFrom(from); return *this; } - inline GetTakeoffAltitudeRequest& operator=(GetTakeoffAltitudeRequest&& from) noexcept { + inline SetMaximumSpeedResponse& operator=(SetMaximumSpeedResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4867,122 +5192,178 @@ class GetTakeoffAltitudeRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetTakeoffAltitudeRequest& default_instance() { + static const SetMaximumSpeedResponse& default_instance() { return *internal_default_instance(); } - static inline const GetTakeoffAltitudeRequest* internal_default_instance() { - return reinterpret_cast( - &_GetTakeoffAltitudeRequest_default_instance_); + static inline const SetMaximumSpeedResponse* internal_default_instance() { + return reinterpret_cast( + &_SetMaximumSpeedResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 37; - friend void swap(GetTakeoffAltitudeRequest& a, GetTakeoffAltitudeRequest& b) { + friend void swap(SetMaximumSpeedResponse& a, SetMaximumSpeedResponse& b) { a.Swap(&b); } - inline void Swap(GetTakeoffAltitudeRequest* other) { + inline void Swap(SetMaximumSpeedResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTakeoffAltitudeRequest* other) { + void UnsafeArenaSwap(SetMaximumSpeedResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetTakeoffAltitudeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetTakeoffAltitudeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + SetMaximumSpeedResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetTakeoffAltitudeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetMaximumSpeedResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const SetMaximumSpeedResponse& from) { + SetMaximumSpeedResponse::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(SetMaximumSpeedResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetTakeoffAltitudeRequest"; + return "mavsdk.rpc.action.SetMaximumSpeedResponse"; } protected: - explicit GetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetMaximumSpeedResponse(::google::protobuf::Arena* arena); + SetMaximumSpeedResponse(::google::protobuf::Arena* arena, const SetMaximumSpeedResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetTakeoffAltitudeRequest) + 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.SetMaximumSpeedResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetTakeoffAltitudeResponse) */ { +class SetCurrentSpeedResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedResponse) */ { public: - inline GetTakeoffAltitudeResponse() : GetTakeoffAltitudeResponse(nullptr) {} - ~GetTakeoffAltitudeResponse() override; + inline SetCurrentSpeedResponse() : SetCurrentSpeedResponse(nullptr) {} + ~SetCurrentSpeedResponse() override; template - explicit PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetCurrentSpeedResponse(::google::protobuf::internal::ConstantInitialized); - GetTakeoffAltitudeResponse(const GetTakeoffAltitudeResponse& from); - GetTakeoffAltitudeResponse(GetTakeoffAltitudeResponse&& from) noexcept - : GetTakeoffAltitudeResponse() { + inline SetCurrentSpeedResponse(const SetCurrentSpeedResponse& from) + : SetCurrentSpeedResponse(nullptr, from) {} + SetCurrentSpeedResponse(SetCurrentSpeedResponse&& from) noexcept + : SetCurrentSpeedResponse() { *this = ::std::move(from); } - inline GetTakeoffAltitudeResponse& operator=(const GetTakeoffAltitudeResponse& from) { + inline SetCurrentSpeedResponse& operator=(const SetCurrentSpeedResponse& from) { CopyFrom(from); return *this; } - inline GetTakeoffAltitudeResponse& operator=(GetTakeoffAltitudeResponse&& from) noexcept { + inline SetCurrentSpeedResponse& operator=(SetCurrentSpeedResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4992,96 +5373,99 @@ class GetTakeoffAltitudeResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetTakeoffAltitudeResponse& default_instance() { + static const SetCurrentSpeedResponse& default_instance() { return *internal_default_instance(); } - static inline const GetTakeoffAltitudeResponse* internal_default_instance() { - return reinterpret_cast( - &_GetTakeoffAltitudeResponse_default_instance_); + static inline const SetCurrentSpeedResponse* internal_default_instance() { + return reinterpret_cast( + &_SetCurrentSpeedResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 43; - friend void swap(GetTakeoffAltitudeResponse& a, GetTakeoffAltitudeResponse& b) { + friend void swap(SetCurrentSpeedResponse& a, SetCurrentSpeedResponse& b) { a.Swap(&b); } - inline void Swap(GetTakeoffAltitudeResponse* other) { + inline void Swap(SetCurrentSpeedResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTakeoffAltitudeResponse* other) { + void UnsafeArenaSwap(SetCurrentSpeedResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetTakeoffAltitudeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetCurrentSpeedResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetTakeoffAltitudeResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GetTakeoffAltitudeResponse& from) { - GetTakeoffAltitudeResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetTakeoffAltitudeResponse* other); + void InternalSwap(SetCurrentSpeedResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetTakeoffAltitudeResponse"; + return "mavsdk.rpc.action.SetCurrentSpeedResponse"; } protected: - explicit GetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetCurrentSpeedResponse(::google::protobuf::Arena* arena); + SetCurrentSpeedResponse(::google::protobuf::Arena* arena, const SetCurrentSpeedResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -5089,72 +5473,78 @@ class GetTakeoffAltitudeResponse final : 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* action_result); - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // float altitude = 2; - void clear_altitude() ; - float altitude() const; - void set_altitude(float value); + 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: - float _internal_altitude() const; - void _internal_set_altitude(float value); + 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.GetTakeoffAltitudeResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetCurrentSpeedResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 SetTakeoffAltitudeRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeRequest) */ { +class SetActuatorResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorResponse) */ { public: - inline SetTakeoffAltitudeRequest() : SetTakeoffAltitudeRequest(nullptr) {} - ~SetTakeoffAltitudeRequest() override; + inline SetActuatorResponse() : SetActuatorResponse(nullptr) {} + ~SetActuatorResponse() override; template - explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetActuatorResponse(::google::protobuf::internal::ConstantInitialized); - SetTakeoffAltitudeRequest(const SetTakeoffAltitudeRequest& from); - SetTakeoffAltitudeRequest(SetTakeoffAltitudeRequest&& from) noexcept - : SetTakeoffAltitudeRequest() { + inline SetActuatorResponse(const SetActuatorResponse& from) + : SetActuatorResponse(nullptr, from) {} + SetActuatorResponse(SetActuatorResponse&& from) noexcept + : SetActuatorResponse() { *this = ::std::move(from); } - inline SetTakeoffAltitudeRequest& operator=(const SetTakeoffAltitudeRequest& from) { + inline SetActuatorResponse& operator=(const SetActuatorResponse& from) { CopyFrom(from); return *this; } - inline SetTakeoffAltitudeRequest& operator=(SetTakeoffAltitudeRequest&& from) noexcept { + inline SetActuatorResponse& operator=(SetActuatorResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5164,152 +5554,178 @@ class SetTakeoffAltitudeRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetTakeoffAltitudeRequest& default_instance() { + static const SetActuatorResponse& default_instance() { return *internal_default_instance(); } - static inline const SetTakeoffAltitudeRequest* internal_default_instance() { - return reinterpret_cast( - &_SetTakeoffAltitudeRequest_default_instance_); + static inline const SetActuatorResponse* internal_default_instance() { + return reinterpret_cast( + &_SetActuatorResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 25; - friend void swap(SetTakeoffAltitudeRequest& a, SetTakeoffAltitudeRequest& b) { + friend void swap(SetActuatorResponse& a, SetActuatorResponse& b) { a.Swap(&b); } - inline void Swap(SetTakeoffAltitudeRequest* other) { + inline void Swap(SetActuatorResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetTakeoffAltitudeRequest* other) { + void UnsafeArenaSwap(SetActuatorResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetTakeoffAltitudeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetActuatorResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetTakeoffAltitudeRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetTakeoffAltitudeRequest& from) { - SetTakeoffAltitudeRequest::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetTakeoffAltitudeRequest* other); + void InternalSwap(SetActuatorResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetTakeoffAltitudeRequest"; + return "mavsdk.rpc.action.SetActuatorResponse"; } protected: - explicit SetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetActuatorResponse(::google::protobuf::Arena* arena); + SetActuatorResponse(::google::protobuf::Arena* arena, const SetActuatorResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAltitudeFieldNumber = 1, + kActionResultFieldNumber = 1, }; - // float altitude = 1; - void clear_altitude() ; - float altitude() const; - void set_altitude(float value); + // .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: - float _internal_altitude() const; - void _internal_set_altitude(float value); + 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.SetTakeoffAltitudeRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetActuatorResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - float altitude_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeResponse) */ { +class ReturnToLaunchResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchResponse) */ { public: - inline SetTakeoffAltitudeResponse() : SetTakeoffAltitudeResponse(nullptr) {} - ~SetTakeoffAltitudeResponse() override; + inline ReturnToLaunchResponse() : ReturnToLaunchResponse(nullptr) {} + ~ReturnToLaunchResponse() override; template - explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ReturnToLaunchResponse(::google::protobuf::internal::ConstantInitialized); - SetTakeoffAltitudeResponse(const SetTakeoffAltitudeResponse& from); - SetTakeoffAltitudeResponse(SetTakeoffAltitudeResponse&& from) noexcept - : SetTakeoffAltitudeResponse() { + inline ReturnToLaunchResponse(const ReturnToLaunchResponse& from) + : ReturnToLaunchResponse(nullptr, from) {} + ReturnToLaunchResponse(ReturnToLaunchResponse&& from) noexcept + : ReturnToLaunchResponse() { *this = ::std::move(from); } - inline SetTakeoffAltitudeResponse& operator=(const SetTakeoffAltitudeResponse& from) { + inline ReturnToLaunchResponse& operator=(const ReturnToLaunchResponse& from) { CopyFrom(from); return *this; } - inline SetTakeoffAltitudeResponse& operator=(SetTakeoffAltitudeResponse&& from) noexcept { + inline ReturnToLaunchResponse& operator=(ReturnToLaunchResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5319,96 +5735,99 @@ class SetTakeoffAltitudeResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetTakeoffAltitudeResponse& default_instance() { + static const ReturnToLaunchResponse& default_instance() { return *internal_default_instance(); } - static inline const SetTakeoffAltitudeResponse* internal_default_instance() { - return reinterpret_cast( - &_SetTakeoffAltitudeResponse_default_instance_); + static inline const ReturnToLaunchResponse* internal_default_instance() { + return reinterpret_cast( + &_ReturnToLaunchResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 17; - friend void swap(SetTakeoffAltitudeResponse& a, SetTakeoffAltitudeResponse& b) { + friend void swap(ReturnToLaunchResponse& a, ReturnToLaunchResponse& b) { a.Swap(&b); } - inline void Swap(SetTakeoffAltitudeResponse* other) { + inline void Swap(ReturnToLaunchResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetTakeoffAltitudeResponse* other) { + void UnsafeArenaSwap(ReturnToLaunchResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetTakeoffAltitudeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ReturnToLaunchResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetTakeoffAltitudeResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetTakeoffAltitudeResponse& from) { - SetTakeoffAltitudeResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetTakeoffAltitudeResponse* other); + void InternalSwap(ReturnToLaunchResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetTakeoffAltitudeResponse"; + return "mavsdk.rpc.action.ReturnToLaunchResponse"; } protected: - explicit SetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ReturnToLaunchResponse(::google::protobuf::Arena* arena); + ReturnToLaunchResponse(::google::protobuf::Arena* arena, const ReturnToLaunchResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -5423,52 +5842,71 @@ class SetTakeoffAltitudeResponse final : 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* 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: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ReturnToLaunchResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 GetMaximumSpeedRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetMaximumSpeedRequest) */ { +class RebootResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootResponse) */ { public: - inline GetMaximumSpeedRequest() : GetMaximumSpeedRequest(nullptr) {} + inline RebootResponse() : RebootResponse(nullptr) {} + ~RebootResponse() override; template - explicit PROTOBUF_CONSTEXPR GetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RebootResponse(::google::protobuf::internal::ConstantInitialized); - GetMaximumSpeedRequest(const GetMaximumSpeedRequest& from); - GetMaximumSpeedRequest(GetMaximumSpeedRequest&& from) noexcept - : GetMaximumSpeedRequest() { + inline RebootResponse(const RebootResponse& from) + : RebootResponse(nullptr, from) {} + RebootResponse(RebootResponse&& from) noexcept + : RebootResponse() { *this = ::std::move(from); } - inline GetMaximumSpeedRequest& operator=(const GetMaximumSpeedRequest& from) { + inline RebootResponse& operator=(const RebootResponse& from) { CopyFrom(from); return *this; } - inline GetMaximumSpeedRequest& operator=(GetMaximumSpeedRequest&& from) noexcept { + inline RebootResponse& operator=(RebootResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5478,122 +5916,178 @@ class GetMaximumSpeedRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetMaximumSpeedRequest& default_instance() { + static const RebootResponse& default_instance() { return *internal_default_instance(); } - static inline const GetMaximumSpeedRequest* internal_default_instance() { - return reinterpret_cast( - &_GetMaximumSpeedRequest_default_instance_); + static inline const RebootResponse* internal_default_instance() { + return reinterpret_cast( + &_RebootResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 9; - friend void swap(GetMaximumSpeedRequest& a, GetMaximumSpeedRequest& b) { + friend void swap(RebootResponse& a, RebootResponse& b) { a.Swap(&b); } - inline void Swap(GetMaximumSpeedRequest* other) { + inline void Swap(RebootResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetMaximumSpeedRequest* other) { + void UnsafeArenaSwap(RebootResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetMaximumSpeedRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetMaximumSpeedRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + RebootResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetMaximumSpeedRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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 ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetMaximumSpeedRequest"; + return "mavsdk.rpc.action.RebootResponse"; } protected: - explicit GetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RebootResponse(::google::protobuf::Arena* arena); + RebootResponse(::google::protobuf::Arena* arena, const RebootResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetMaximumSpeedRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 GetMaximumSpeedResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetMaximumSpeedResponse) */ { +class LandResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandResponse) */ { public: - inline GetMaximumSpeedResponse() : GetMaximumSpeedResponse(nullptr) {} - ~GetMaximumSpeedResponse() override; + inline LandResponse() : LandResponse(nullptr) {} + ~LandResponse() override; template - explicit PROTOBUF_CONSTEXPR GetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR LandResponse(::google::protobuf::internal::ConstantInitialized); - GetMaximumSpeedResponse(const GetMaximumSpeedResponse& from); - GetMaximumSpeedResponse(GetMaximumSpeedResponse&& from) noexcept - : GetMaximumSpeedResponse() { + inline LandResponse(const LandResponse& from) + : LandResponse(nullptr, from) {} + LandResponse(LandResponse&& from) noexcept + : LandResponse() { *this = ::std::move(from); } - inline GetMaximumSpeedResponse& operator=(const GetMaximumSpeedResponse& from) { + inline LandResponse& operator=(const LandResponse& from) { CopyFrom(from); return *this; } - inline GetMaximumSpeedResponse& operator=(GetMaximumSpeedResponse&& from) noexcept { + inline LandResponse& operator=(LandResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5603,96 +6097,99 @@ class GetMaximumSpeedResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetMaximumSpeedResponse& default_instance() { + static const LandResponse& default_instance() { return *internal_default_instance(); } - static inline const GetMaximumSpeedResponse* internal_default_instance() { - return reinterpret_cast( - &_GetMaximumSpeedResponse_default_instance_); + static inline const LandResponse* internal_default_instance() { + return reinterpret_cast( + &_LandResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 7; - friend void swap(GetMaximumSpeedResponse& a, GetMaximumSpeedResponse& b) { + friend void swap(LandResponse& a, LandResponse& b) { a.Swap(&b); } - inline void Swap(GetMaximumSpeedResponse* other) { + inline void Swap(LandResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetMaximumSpeedResponse* other) { + void UnsafeArenaSwap(LandResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetMaximumSpeedResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + LandResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetMaximumSpeedResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GetMaximumSpeedResponse& from) { - GetMaximumSpeedResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetMaximumSpeedResponse* other); + void InternalSwap(LandResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetMaximumSpeedResponse"; + return "mavsdk.rpc.action.LandResponse"; } protected: - explicit GetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit LandResponse(::google::protobuf::Arena* arena); + LandResponse(::google::protobuf::Arena* arena, const LandResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -5700,7 +6197,6 @@ class GetMaximumSpeedResponse final : enum : int { kActionResultFieldNumber = 1, - kSpeedFieldNumber = 2, }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; @@ -5708,64 +6204,71 @@ class GetMaximumSpeedResponse final : 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* action_result); - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - public: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* 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(); - // float speed = 2; - void clear_speed() ; - float speed() const; - void set_speed(float value); private: - float _internal_speed() const; - void _internal_set_speed(float value); + 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.GetMaximumSpeedResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.LandResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 speed_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class SetMaximumSpeedRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetMaximumSpeedRequest) */ { +class KillResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillResponse) */ { public: - inline SetMaximumSpeedRequest() : SetMaximumSpeedRequest(nullptr) {} - ~SetMaximumSpeedRequest() override; + inline KillResponse() : KillResponse(nullptr) {} + ~KillResponse() override; template - explicit PROTOBUF_CONSTEXPR SetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR KillResponse(::google::protobuf::internal::ConstantInitialized); - SetMaximumSpeedRequest(const SetMaximumSpeedRequest& from); - SetMaximumSpeedRequest(SetMaximumSpeedRequest&& from) noexcept - : SetMaximumSpeedRequest() { + inline KillResponse(const KillResponse& from) + : KillResponse(nullptr, from) {} + KillResponse(KillResponse&& from) noexcept + : KillResponse() { *this = ::std::move(from); } - inline SetMaximumSpeedRequest& operator=(const SetMaximumSpeedRequest& from) { + inline KillResponse& operator=(const KillResponse& from) { CopyFrom(from); return *this; } - inline SetMaximumSpeedRequest& operator=(SetMaximumSpeedRequest&& from) noexcept { + inline KillResponse& operator=(KillResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5775,152 +6278,178 @@ class SetMaximumSpeedRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetMaximumSpeedRequest& default_instance() { + static const KillResponse& default_instance() { return *internal_default_instance(); } - static inline const SetMaximumSpeedRequest* internal_default_instance() { - return reinterpret_cast( - &_SetMaximumSpeedRequest_default_instance_); + static inline const KillResponse* internal_default_instance() { + return reinterpret_cast( + &_KillResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 36; + 15; - friend void swap(SetMaximumSpeedRequest& a, SetMaximumSpeedRequest& b) { + friend void swap(KillResponse& a, KillResponse& b) { a.Swap(&b); } - inline void Swap(SetMaximumSpeedRequest* other) { + inline void Swap(KillResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetMaximumSpeedRequest* other) { + void UnsafeArenaSwap(KillResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetMaximumSpeedRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + KillResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetMaximumSpeedRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetMaximumSpeedRequest& from) { - SetMaximumSpeedRequest::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetMaximumSpeedRequest* other); + void InternalSwap(KillResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetMaximumSpeedRequest"; + return "mavsdk.rpc.action.KillResponse"; } protected: - explicit SetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit KillResponse(::google::protobuf::Arena* arena); + KillResponse(::google::protobuf::Arena* arena, const KillResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSpeedFieldNumber = 1, + kActionResultFieldNumber = 1, }; - // float speed = 1; - void clear_speed() ; - float speed() const; - void set_speed(float value); + // .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: - float _internal_speed() const; - void _internal_set_speed(float value); + 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.SetMaximumSpeedRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.KillResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - float speed_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 SetMaximumSpeedResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetMaximumSpeedResponse) */ { +class HoldResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldResponse) */ { public: - inline SetMaximumSpeedResponse() : SetMaximumSpeedResponse(nullptr) {} - ~SetMaximumSpeedResponse() override; + inline HoldResponse() : HoldResponse(nullptr) {} + ~HoldResponse() override; template - explicit PROTOBUF_CONSTEXPR SetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR HoldResponse(::google::protobuf::internal::ConstantInitialized); - SetMaximumSpeedResponse(const SetMaximumSpeedResponse& from); - SetMaximumSpeedResponse(SetMaximumSpeedResponse&& from) noexcept - : SetMaximumSpeedResponse() { + inline HoldResponse(const HoldResponse& from) + : HoldResponse(nullptr, from) {} + HoldResponse(HoldResponse&& from) noexcept + : HoldResponse() { *this = ::std::move(from); } - inline SetMaximumSpeedResponse& operator=(const SetMaximumSpeedResponse& from) { + inline HoldResponse& operator=(const HoldResponse& from) { CopyFrom(from); return *this; } - inline SetMaximumSpeedResponse& operator=(SetMaximumSpeedResponse&& from) noexcept { + inline HoldResponse& operator=(HoldResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -5930,96 +6459,99 @@ class SetMaximumSpeedResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetMaximumSpeedResponse& default_instance() { + static const HoldResponse& default_instance() { return *internal_default_instance(); } - static inline const SetMaximumSpeedResponse* internal_default_instance() { - return reinterpret_cast( - &_SetMaximumSpeedResponse_default_instance_); + static inline const HoldResponse* internal_default_instance() { + return reinterpret_cast( + &_HoldResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 37; + 23; - friend void swap(SetMaximumSpeedResponse& a, SetMaximumSpeedResponse& b) { + friend void swap(HoldResponse& a, HoldResponse& b) { a.Swap(&b); } - inline void Swap(SetMaximumSpeedResponse* other) { + inline void Swap(HoldResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetMaximumSpeedResponse* other) { + void UnsafeArenaSwap(HoldResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetMaximumSpeedResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + HoldResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetMaximumSpeedResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetMaximumSpeedResponse& from) { - SetMaximumSpeedResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetMaximumSpeedResponse* other); + void InternalSwap(HoldResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetMaximumSpeedResponse"; + return "mavsdk.rpc.action.HoldResponse"; } protected: - explicit SetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HoldResponse(::google::protobuf::Arena* arena); + HoldResponse(::google::protobuf::Arena* arena, const HoldResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -6034,52 +6566,71 @@ class SetMaximumSpeedResponse final : 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* 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: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetMaximumSpeedResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.HoldResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 GetReturnToLaunchAltitudeRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) */ { +class GotoLocationResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationResponse) */ { public: - inline GetReturnToLaunchAltitudeRequest() : GetReturnToLaunchAltitudeRequest(nullptr) {} + inline GotoLocationResponse() : GotoLocationResponse(nullptr) {} + ~GotoLocationResponse() override; template - explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GotoLocationResponse(::google::protobuf::internal::ConstantInitialized); - GetReturnToLaunchAltitudeRequest(const GetReturnToLaunchAltitudeRequest& from); - GetReturnToLaunchAltitudeRequest(GetReturnToLaunchAltitudeRequest&& from) noexcept - : GetReturnToLaunchAltitudeRequest() { + inline GotoLocationResponse(const GotoLocationResponse& from) + : GotoLocationResponse(nullptr, from) {} + GotoLocationResponse(GotoLocationResponse&& from) noexcept + : GotoLocationResponse() { *this = ::std::move(from); } - inline GetReturnToLaunchAltitudeRequest& operator=(const GetReturnToLaunchAltitudeRequest& from) { + inline GotoLocationResponse& operator=(const GotoLocationResponse& from) { CopyFrom(from); return *this; } - inline GetReturnToLaunchAltitudeRequest& operator=(GetReturnToLaunchAltitudeRequest&& from) noexcept { + inline GotoLocationResponse& operator=(GotoLocationResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6089,122 +6640,178 @@ class GetReturnToLaunchAltitudeRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetReturnToLaunchAltitudeRequest& default_instance() { + static const GotoLocationResponse& default_instance() { return *internal_default_instance(); } - static inline const GetReturnToLaunchAltitudeRequest* internal_default_instance() { - return reinterpret_cast( - &_GetReturnToLaunchAltitudeRequest_default_instance_); + static inline const GotoLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_GotoLocationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 38; + 19; - friend void swap(GetReturnToLaunchAltitudeRequest& a, GetReturnToLaunchAltitudeRequest& b) { + friend void swap(GotoLocationResponse& a, GotoLocationResponse& b) { a.Swap(&b); } - inline void Swap(GetReturnToLaunchAltitudeRequest* other) { + inline void Swap(GotoLocationResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetReturnToLaunchAltitudeRequest* other) { + void UnsafeArenaSwap(GotoLocationResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetReturnToLaunchAltitudeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetReturnToLaunchAltitudeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + GotoLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetReturnToLaunchAltitudeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + ::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.GetReturnToLaunchAltitudeRequest"; + return "mavsdk.rpc.action.GotoLocationResponse"; } protected: - explicit GetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GotoLocationResponse(::google::protobuf::Arena* arena); + GotoLocationResponse(::google::protobuf::Arena* arena, const GotoLocationResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 GetReturnToLaunchAltitudeResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) */ { +class GetTakeoffAltitudeResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetTakeoffAltitudeResponse) */ { public: - inline GetReturnToLaunchAltitudeResponse() : GetReturnToLaunchAltitudeResponse(nullptr) {} - ~GetReturnToLaunchAltitudeResponse() override; + inline GetTakeoffAltitudeResponse() : GetTakeoffAltitudeResponse(nullptr) {} + ~GetTakeoffAltitudeResponse() override; template - explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - GetReturnToLaunchAltitudeResponse(const GetReturnToLaunchAltitudeResponse& from); - GetReturnToLaunchAltitudeResponse(GetReturnToLaunchAltitudeResponse&& from) noexcept - : GetReturnToLaunchAltitudeResponse() { + inline GetTakeoffAltitudeResponse(const GetTakeoffAltitudeResponse& from) + : GetTakeoffAltitudeResponse(nullptr, from) {} + GetTakeoffAltitudeResponse(GetTakeoffAltitudeResponse&& from) noexcept + : GetTakeoffAltitudeResponse() { *this = ::std::move(from); } - inline GetReturnToLaunchAltitudeResponse& operator=(const GetReturnToLaunchAltitudeResponse& from) { + inline GetTakeoffAltitudeResponse& operator=(const GetTakeoffAltitudeResponse& from) { CopyFrom(from); return *this; } - inline GetReturnToLaunchAltitudeResponse& operator=(GetReturnToLaunchAltitudeResponse&& from) noexcept { + inline GetTakeoffAltitudeResponse& operator=(GetTakeoffAltitudeResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6214,96 +6821,99 @@ class GetReturnToLaunchAltitudeResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetReturnToLaunchAltitudeResponse& default_instance() { + static const GetTakeoffAltitudeResponse& default_instance() { return *internal_default_instance(); } - static inline const GetReturnToLaunchAltitudeResponse* internal_default_instance() { - return reinterpret_cast( - &_GetReturnToLaunchAltitudeResponse_default_instance_); + static inline const GetTakeoffAltitudeResponse* internal_default_instance() { + return reinterpret_cast( + &_GetTakeoffAltitudeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 39; + 31; - friend void swap(GetReturnToLaunchAltitudeResponse& a, GetReturnToLaunchAltitudeResponse& b) { + friend void swap(GetTakeoffAltitudeResponse& a, GetTakeoffAltitudeResponse& b) { a.Swap(&b); } - inline void Swap(GetReturnToLaunchAltitudeResponse* other) { + inline void Swap(GetTakeoffAltitudeResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetReturnToLaunchAltitudeResponse* other) { + void UnsafeArenaSwap(GetTakeoffAltitudeResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetReturnToLaunchAltitudeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetTakeoffAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetReturnToLaunchAltitudeResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GetReturnToLaunchAltitudeResponse& from) { - GetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetReturnToLaunchAltitudeResponse* other); + void InternalSwap(GetTakeoffAltitudeResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse"; + return "mavsdk.rpc.action.GetTakeoffAltitudeResponse"; } protected: - explicit GetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetTakeoffAltitudeResponse(::google::protobuf::Arena* arena); + GetTakeoffAltitudeResponse(::google::protobuf::Arena* arena, const GetTakeoffAltitudeResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -6311,7 +6921,7 @@ class GetReturnToLaunchAltitudeResponse final : enum : int { kActionResultFieldNumber = 1, - kRelativeAltitudeMFieldNumber = 2, + kAltitudeFieldNumber = 2, }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; @@ -6319,64 +6929,82 @@ class GetReturnToLaunchAltitudeResponse final : 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* 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: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // float relative_altitude_m = 2; - void clear_relative_altitude_m() ; - float relative_altitude_m() const; - void set_relative_altitude_m(float value); + // float altitude = 2; + void clear_altitude() ; + float altitude() const; + void set_altitude(float value); private: - float _internal_relative_altitude_m() const; - void _internal_set_relative_altitude_m(float value); + float _internal_altitude() const; + void _internal_set_altitude(float value); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetTakeoffAltitudeResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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_; + float altitude_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class SetReturnToLaunchAltitudeRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) */ { +class GetReturnToLaunchAltitudeResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) */ { public: - inline SetReturnToLaunchAltitudeRequest() : SetReturnToLaunchAltitudeRequest(nullptr) {} - ~SetReturnToLaunchAltitudeRequest() override; + inline GetReturnToLaunchAltitudeResponse() : GetReturnToLaunchAltitudeResponse(nullptr) {} + ~GetReturnToLaunchAltitudeResponse() override; template - explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - SetReturnToLaunchAltitudeRequest(const SetReturnToLaunchAltitudeRequest& from); - SetReturnToLaunchAltitudeRequest(SetReturnToLaunchAltitudeRequest&& from) noexcept - : SetReturnToLaunchAltitudeRequest() { + inline GetReturnToLaunchAltitudeResponse(const GetReturnToLaunchAltitudeResponse& from) + : GetReturnToLaunchAltitudeResponse(nullptr, from) {} + GetReturnToLaunchAltitudeResponse(GetReturnToLaunchAltitudeResponse&& from) noexcept + : GetReturnToLaunchAltitudeResponse() { *this = ::std::move(from); } - inline SetReturnToLaunchAltitudeRequest& operator=(const SetReturnToLaunchAltitudeRequest& from) { + inline GetReturnToLaunchAltitudeResponse& operator=(const GetReturnToLaunchAltitudeResponse& from) { CopyFrom(from); return *this; } - inline SetReturnToLaunchAltitudeRequest& operator=(SetReturnToLaunchAltitudeRequest&& from) noexcept { + inline GetReturnToLaunchAltitudeResponse& operator=(GetReturnToLaunchAltitudeResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6386,105 +7014,124 @@ class SetReturnToLaunchAltitudeRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetReturnToLaunchAltitudeRequest& default_instance() { + static const GetReturnToLaunchAltitudeResponse& default_instance() { return *internal_default_instance(); } - static inline const SetReturnToLaunchAltitudeRequest* internal_default_instance() { - return reinterpret_cast( - &_SetReturnToLaunchAltitudeRequest_default_instance_); + static inline const GetReturnToLaunchAltitudeResponse* internal_default_instance() { + return reinterpret_cast( + &_GetReturnToLaunchAltitudeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 40; + 39; - friend void swap(SetReturnToLaunchAltitudeRequest& a, SetReturnToLaunchAltitudeRequest& b) { + friend void swap(GetReturnToLaunchAltitudeResponse& a, GetReturnToLaunchAltitudeResponse& b) { a.Swap(&b); } - inline void Swap(SetReturnToLaunchAltitudeRequest* other) { + inline void Swap(GetReturnToLaunchAltitudeResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetReturnToLaunchAltitudeRequest* other) { + void UnsafeArenaSwap(GetReturnToLaunchAltitudeResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetReturnToLaunchAltitudeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetReturnToLaunchAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetReturnToLaunchAltitudeRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetReturnToLaunchAltitudeRequest& from) { - SetReturnToLaunchAltitudeRequest::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetReturnToLaunchAltitudeRequest* other); + void InternalSwap(GetReturnToLaunchAltitudeResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest"; + return "mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse"; } protected: - explicit SetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena); + GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kRelativeAltitudeMFieldNumber = 1, + kActionResultFieldNumber = 1, + kRelativeAltitudeMFieldNumber = 2, }; - // float relative_altitude_m = 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: + // float relative_altitude_m = 2; void clear_relative_altitude_m() ; float relative_altitude_m() const; void set_relative_altitude_m(float value); @@ -6494,44 +7141,63 @@ class SetReturnToLaunchAltitudeRequest final : void _internal_set_relative_altitude_m(float value); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class SetReturnToLaunchAltitudeResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) */ { +class GetMaximumSpeedResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetMaximumSpeedResponse) */ { public: - inline SetReturnToLaunchAltitudeResponse() : SetReturnToLaunchAltitudeResponse(nullptr) {} - ~SetReturnToLaunchAltitudeResponse() override; + inline GetMaximumSpeedResponse() : GetMaximumSpeedResponse(nullptr) {} + ~GetMaximumSpeedResponse() override; template - explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetMaximumSpeedResponse(::google::protobuf::internal::ConstantInitialized); - SetReturnToLaunchAltitudeResponse(const SetReturnToLaunchAltitudeResponse& from); - SetReturnToLaunchAltitudeResponse(SetReturnToLaunchAltitudeResponse&& from) noexcept - : SetReturnToLaunchAltitudeResponse() { + inline GetMaximumSpeedResponse(const GetMaximumSpeedResponse& from) + : GetMaximumSpeedResponse(nullptr, from) {} + GetMaximumSpeedResponse(GetMaximumSpeedResponse&& from) noexcept + : GetMaximumSpeedResponse() { *this = ::std::move(from); } - inline SetReturnToLaunchAltitudeResponse& operator=(const SetReturnToLaunchAltitudeResponse& from) { + inline GetMaximumSpeedResponse& operator=(const GetMaximumSpeedResponse& from) { CopyFrom(from); return *this; } - inline SetReturnToLaunchAltitudeResponse& operator=(SetReturnToLaunchAltitudeResponse&& from) noexcept { + inline GetMaximumSpeedResponse& operator=(GetMaximumSpeedResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6541,96 +7207,99 @@ class SetReturnToLaunchAltitudeResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetReturnToLaunchAltitudeResponse& default_instance() { + static const GetMaximumSpeedResponse& default_instance() { return *internal_default_instance(); } - static inline const SetReturnToLaunchAltitudeResponse* internal_default_instance() { - return reinterpret_cast( - &_SetReturnToLaunchAltitudeResponse_default_instance_); + static inline const GetMaximumSpeedResponse* internal_default_instance() { + return reinterpret_cast( + &_GetMaximumSpeedResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 41; + 35; - friend void swap(SetReturnToLaunchAltitudeResponse& a, SetReturnToLaunchAltitudeResponse& b) { + friend void swap(GetMaximumSpeedResponse& a, GetMaximumSpeedResponse& b) { a.Swap(&b); } - inline void Swap(SetReturnToLaunchAltitudeResponse* other) { + inline void Swap(GetMaximumSpeedResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetReturnToLaunchAltitudeResponse* other) { + void UnsafeArenaSwap(GetMaximumSpeedResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetReturnToLaunchAltitudeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetMaximumSpeedResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetReturnToLaunchAltitudeResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetReturnToLaunchAltitudeResponse& from) { - SetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetMaximumSpeedResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const GetMaximumSpeedResponse& from) { + GetMaximumSpeedResponse::MergeImpl(*this, from); } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetReturnToLaunchAltitudeResponse* other); + void InternalSwap(GetMaximumSpeedResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse"; + return "mavsdk.rpc.action.GetMaximumSpeedResponse"; } protected: - explicit SetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetMaximumSpeedResponse(::google::protobuf::Arena* arena); + GetMaximumSpeedResponse(::google::protobuf::Arena* arena, const GetMaximumSpeedResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -6638,6 +7307,7 @@ class SetReturnToLaunchAltitudeResponse final : enum : int { kActionResultFieldNumber = 1, + kSpeedFieldNumber = 2, }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; @@ -6645,53 +7315,82 @@ class SetReturnToLaunchAltitudeResponse final : 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* 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: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + // float speed = 2; + void clear_speed() ; + float speed() const; + void set_speed(float value); + + private: + float _internal_speed() const; + void _internal_set_speed(float value); + + public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetMaximumSpeedResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 speed_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class SetCurrentSpeedRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedRequest) */ { +class DoOrbitResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitResponse) */ { public: - inline SetCurrentSpeedRequest() : SetCurrentSpeedRequest(nullptr) {} - ~SetCurrentSpeedRequest() override; + inline DoOrbitResponse() : DoOrbitResponse(nullptr) {} + ~DoOrbitResponse() override; template - explicit PROTOBUF_CONSTEXPR SetCurrentSpeedRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR DoOrbitResponse(::google::protobuf::internal::ConstantInitialized); - SetCurrentSpeedRequest(const SetCurrentSpeedRequest& from); - SetCurrentSpeedRequest(SetCurrentSpeedRequest&& from) noexcept - : SetCurrentSpeedRequest() { + inline DoOrbitResponse(const DoOrbitResponse& from) + : DoOrbitResponse(nullptr, from) {} + DoOrbitResponse(DoOrbitResponse&& from) noexcept + : DoOrbitResponse() { *this = ::std::move(from); } - inline SetCurrentSpeedRequest& operator=(const SetCurrentSpeedRequest& from) { + inline DoOrbitResponse& operator=(const DoOrbitResponse& from) { CopyFrom(from); return *this; } - inline SetCurrentSpeedRequest& operator=(SetCurrentSpeedRequest&& from) noexcept { + inline DoOrbitResponse& operator=(DoOrbitResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6701,152 +7400,178 @@ class SetCurrentSpeedRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetCurrentSpeedRequest& default_instance() { + static const DoOrbitResponse& default_instance() { return *internal_default_instance(); } - static inline const SetCurrentSpeedRequest* internal_default_instance() { - return reinterpret_cast( - &_SetCurrentSpeedRequest_default_instance_); + static inline const DoOrbitResponse* internal_default_instance() { + return reinterpret_cast( + &_DoOrbitResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 42; + 21; - friend void swap(SetCurrentSpeedRequest& a, SetCurrentSpeedRequest& b) { + friend void swap(DoOrbitResponse& a, DoOrbitResponse& b) { a.Swap(&b); } - inline void Swap(SetCurrentSpeedRequest* other) { + inline void Swap(DoOrbitResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetCurrentSpeedRequest* other) { + void UnsafeArenaSwap(DoOrbitResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetCurrentSpeedRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DoOrbitResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetCurrentSpeedRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetCurrentSpeedRequest& from) { - SetCurrentSpeedRequest::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetCurrentSpeedRequest* other); + void InternalSwap(DoOrbitResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetCurrentSpeedRequest"; + return "mavsdk.rpc.action.DoOrbitResponse"; } protected: - explicit SetCurrentSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DoOrbitResponse(::google::protobuf::Arena* arena); + DoOrbitResponse(::google::protobuf::Arena* arena, const DoOrbitResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSpeedMSFieldNumber = 1, + kActionResultFieldNumber = 1, }; - // float speed_m_s = 1; - void clear_speed_m_s() ; - float speed_m_s() const; - void set_speed_m_s(float value); + // .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: - float _internal_speed_m_s() const; - void _internal_set_speed_m_s(float value); + 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.SetCurrentSpeedRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DoOrbitResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - float speed_m_s_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedResponse) */ { +class DisarmResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmResponse) */ { public: - inline SetCurrentSpeedResponse() : SetCurrentSpeedResponse(nullptr) {} - ~SetCurrentSpeedResponse() override; + inline DisarmResponse() : DisarmResponse(nullptr) {} + ~DisarmResponse() override; template - explicit PROTOBUF_CONSTEXPR SetCurrentSpeedResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR DisarmResponse(::google::protobuf::internal::ConstantInitialized); - SetCurrentSpeedResponse(const SetCurrentSpeedResponse& from); - SetCurrentSpeedResponse(SetCurrentSpeedResponse&& from) noexcept - : SetCurrentSpeedResponse() { + inline DisarmResponse(const DisarmResponse& from) + : DisarmResponse(nullptr, from) {} + DisarmResponse(DisarmResponse&& from) noexcept + : DisarmResponse() { *this = ::std::move(from); } - inline SetCurrentSpeedResponse& operator=(const SetCurrentSpeedResponse& from) { + inline DisarmResponse& operator=(const DisarmResponse& from) { CopyFrom(from); return *this; } - inline SetCurrentSpeedResponse& operator=(SetCurrentSpeedResponse&& from) noexcept { + inline DisarmResponse& operator=(DisarmResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -6856,96 +7581,99 @@ class SetCurrentSpeedResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetCurrentSpeedResponse& default_instance() { + static const DisarmResponse& default_instance() { return *internal_default_instance(); } - static inline const SetCurrentSpeedResponse* internal_default_instance() { - return reinterpret_cast( - &_SetCurrentSpeedResponse_default_instance_); + static inline const DisarmResponse* internal_default_instance() { + return reinterpret_cast( + &_DisarmResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 43; + 3; - friend void swap(SetCurrentSpeedResponse& a, SetCurrentSpeedResponse& b) { + friend void swap(DisarmResponse& a, DisarmResponse& b) { a.Swap(&b); } - inline void Swap(SetCurrentSpeedResponse* other) { + inline void Swap(DisarmResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetCurrentSpeedResponse* other) { + void UnsafeArenaSwap(DisarmResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetCurrentSpeedResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DisarmResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetCurrentSpeedResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetCurrentSpeedResponse& from) { - SetCurrentSpeedResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetCurrentSpeedResponse* other); + void InternalSwap(DisarmResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetCurrentSpeedResponse"; + return "mavsdk.rpc.action.DisarmResponse"; } protected: - explicit SetCurrentSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DisarmResponse(::google::protobuf::Arena* arena); + DisarmResponse(::google::protobuf::Arena* arena, const DisarmResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -6960,53 +7688,71 @@ class SetCurrentSpeedResponse final : 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* 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: - void unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetCurrentSpeedResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DisarmResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 ActionResult final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ActionResult) */ { +class ArmResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmResponse) */ { public: - inline ActionResult() : ActionResult(nullptr) {} - ~ActionResult() override; + inline ArmResponse() : ArmResponse(nullptr) {} + ~ArmResponse() override; template - explicit PROTOBUF_CONSTEXPR ActionResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ArmResponse(::google::protobuf::internal::ConstantInitialized); - ActionResult(const ActionResult& from); - ActionResult(ActionResult&& from) noexcept - : ActionResult() { + inline ArmResponse(const ArmResponse& from) + : ArmResponse(nullptr, from) {} + ArmResponse(ArmResponse&& from) noexcept + : ArmResponse() { *this = ::std::move(from); } - inline ActionResult& operator=(const ActionResult& from) { + inline ArmResponse& operator=(const ArmResponse& from) { CopyFrom(from); return *this; } - inline ActionResult& operator=(ActionResult&& from) noexcept { + inline ArmResponse& operator=(ArmResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -7016,178 +7762,149 @@ class ActionResult final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ActionResult& default_instance() { + static const ArmResponse& default_instance() { return *internal_default_instance(); } - static inline const ActionResult* internal_default_instance() { - return reinterpret_cast( - &_ActionResult_default_instance_); + static inline const ArmResponse* internal_default_instance() { + return reinterpret_cast( + &_ArmResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 44; + 1; - friend void swap(ActionResult& a, ActionResult& b) { + friend void swap(ArmResponse& a, ArmResponse& b) { a.Swap(&b); } - inline void Swap(ActionResult* other) { + inline void Swap(ArmResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ActionResult* other) { + void UnsafeArenaSwap(ArmResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ActionResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ArmResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ActionResult& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ActionResult& from) { - ActionResult::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ActionResult* other); + void InternalSwap(ArmResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ActionResult"; + return "mavsdk.rpc.action.ArmResponse"; } protected: - explicit ActionResult(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ArmResponse(::google::protobuf::Arena* arena); + ArmResponse(::google::protobuf::Arena* arena, const ArmResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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 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 ::PROTOBUF_NAMESPACE_ID::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, + kActionResultFieldNumber = 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* ptr); - - 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); + // .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: - ::mavsdk::rpc::action::ActionResult_Result _internal_result() const; - void _internal_set_result(::mavsdk::rpc::action::ActionResult_Result value); + 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.ActionResult) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr result_str_; - int result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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; @@ -7220,25 +7937,26 @@ inline bool ArmResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& ArmResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -7246,57 +7964,65 @@ inline void ArmResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ArmResponse.action_result) } @@ -7315,25 +8041,26 @@ inline bool DisarmResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& DisarmResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -7341,57 +8068,65 @@ inline void DisarmResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.DisarmResponse.action_result) } @@ -7410,25 +8145,26 @@ inline bool TakeoffResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -7436,57 +8172,65 @@ inline void TakeoffResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TakeoffResponse.action_result) } @@ -7505,25 +8249,26 @@ inline bool LandResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& LandResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -7531,57 +8276,65 @@ inline void LandResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.LandResponse.action_result) } @@ -7600,25 +8353,26 @@ inline bool RebootResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& RebootResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -7626,57 +8380,65 @@ inline void RebootResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.RebootResponse.action_result) } @@ -7695,25 +8457,26 @@ inline bool ShutdownResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -7721,57 +8484,65 @@ inline void ShutdownResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ShutdownResponse.action_result) } @@ -7790,25 +8561,26 @@ inline bool TerminateResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& TerminateResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -7816,57 +8588,65 @@ inline void TerminateResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TerminateResponse.action_result) } @@ -7885,25 +8665,26 @@ inline bool KillResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& KillResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -7911,57 +8692,65 @@ inline void KillResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.KillResponse.action_result) } @@ -7980,25 +8769,26 @@ inline bool ReturnToLaunchResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& ReturnToLaunchResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -8006,57 +8796,65 @@ inline void ReturnToLaunchResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) } @@ -8066,6 +8864,7 @@ inline void ReturnToLaunchResponse::set_allocated_action_result(::mavsdk::rpc::a // double latitude_deg = 1; inline void GotoLocationRequest::clear_latitude_deg() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.latitude_deg_ = 0; } inline double GotoLocationRequest::latitude_deg() const { @@ -8077,15 +8876,18 @@ inline void GotoLocationRequest::set_latitude_deg(double 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 void GotoLocationRequest::_internal_set_latitude_deg(double value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 double GotoLocationRequest::longitude_deg() const { @@ -8097,15 +8899,18 @@ inline void GotoLocationRequest::set_longitude_deg(double 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 void GotoLocationRequest::_internal_set_longitude_deg(double value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 float GotoLocationRequest::absolute_altitude_m() const { @@ -8117,15 +8922,18 @@ inline void GotoLocationRequest::set_absolute_altitude_m(float 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 void GotoLocationRequest::_internal_set_absolute_altitude_m(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 float GotoLocationRequest::yaw_deg() const { @@ -8137,9 +8945,11 @@ inline void GotoLocationRequest::set_yaw_deg(float 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 void GotoLocationRequest::_internal_set_yaw_deg(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.yaw_deg_ = value; } @@ -8155,25 +8965,26 @@ inline bool GotoLocationResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& GotoLocationResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -8181,57 +8992,65 @@ inline void GotoLocationResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GotoLocationResponse.action_result) } @@ -8241,6 +9060,7 @@ inline void GotoLocationResponse::set_allocated_action_result(::mavsdk::rpc::act // float radius_m = 1; inline void DoOrbitRequest::clear_radius_m() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.radius_m_ = 0; } inline float DoOrbitRequest::radius_m() const { @@ -8252,15 +9072,18 @@ inline void DoOrbitRequest::set_radius_m(float 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 void DoOrbitRequest::_internal_set_radius_m(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 float DoOrbitRequest::velocity_ms() const { @@ -8272,15 +9095,18 @@ inline void DoOrbitRequest::set_velocity_ms(float 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 void DoOrbitRequest::_internal_set_velocity_ms(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 ::mavsdk::rpc::action::OrbitYawBehavior DoOrbitRequest::yaw_behavior() const { @@ -8288,19 +9114,22 @@ inline ::mavsdk::rpc::action::OrbitYawBehavior DoOrbitRequest::yaw_behavior() co return _internal_yaw_behavior(); } inline void DoOrbitRequest::set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value) { - _internal_set_yaw_behavior(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 void DoOrbitRequest::_internal_set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 double DoOrbitRequest::latitude_deg() const { @@ -8312,15 +9141,18 @@ inline void DoOrbitRequest::set_latitude_deg(double 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 void DoOrbitRequest::_internal_set_latitude_deg(double value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 double DoOrbitRequest::longitude_deg() const { @@ -8332,15 +9164,18 @@ inline void DoOrbitRequest::set_longitude_deg(double 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 void DoOrbitRequest::_internal_set_longitude_deg(double value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 double DoOrbitRequest::absolute_altitude_m() const { @@ -8352,9 +9187,11 @@ inline void DoOrbitRequest::set_absolute_altitude_m(double 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 void DoOrbitRequest::_internal_set_absolute_altitude_m(double value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.absolute_altitude_m_ = value; } @@ -8370,25 +9207,26 @@ inline bool DoOrbitResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -8396,57 +9234,65 @@ inline void DoOrbitResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.DoOrbitResponse.action_result) } @@ -8465,25 +9311,26 @@ inline bool HoldResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& HoldResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -8491,57 +9338,65 @@ inline void HoldResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.HoldResponse.action_result) } @@ -8551,6 +9406,7 @@ inline void HoldResponse::set_allocated_action_result(::mavsdk::rpc::action::Act // int32 index = 1; inline void SetActuatorRequest::clear_index() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.index_ = 0; } inline ::int32_t SetActuatorRequest::index() const { @@ -8562,15 +9418,18 @@ inline void SetActuatorRequest::set_index(::int32_t 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 void SetActuatorRequest::_internal_set_index(::int32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.index_ = value; } // float value = 2; inline void SetActuatorRequest::clear_value() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.value_ = 0; } inline float SetActuatorRequest::value() const { @@ -8582,9 +9441,11 @@ inline void SetActuatorRequest::set_value(float 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 void SetActuatorRequest::_internal_set_value(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.value_ = value; } @@ -8600,25 +9461,26 @@ inline bool SetActuatorResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& SetActuatorResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -8626,57 +9488,65 @@ inline void SetActuatorResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetActuatorResponse.action_result) } @@ -8695,25 +9565,26 @@ inline bool TransitionToFixedwingResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& TransitionToFixedwingResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -8721,57 +9592,65 @@ inline void TransitionToFixedwingResponse::unsafe_arena_set_allocated_action_res // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) } @@ -8790,25 +9669,26 @@ inline bool TransitionToMulticopterResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& TransitionToMulticopterResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -8816,57 +9696,65 @@ inline void TransitionToMulticopterResponse::unsafe_arena_set_allocated_action_r // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) } @@ -8885,25 +9773,26 @@ inline bool GetTakeoffAltitudeResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& GetTakeoffAltitudeResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -8911,62 +9800,71 @@ inline void GetTakeoffAltitudeResponse::unsafe_arena_set_allocated_action_result // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = 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 float GetTakeoffAltitudeResponse::altitude() const { @@ -8978,9 +9876,11 @@ inline void GetTakeoffAltitudeResponse::set_altitude(float 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 void GetTakeoffAltitudeResponse::_internal_set_altitude(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.altitude_ = value; } @@ -8991,6 +9891,7 @@ inline void GetTakeoffAltitudeResponse::_internal_set_altitude(float value) { // float altitude = 1; inline void SetTakeoffAltitudeRequest::clear_altitude() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.altitude_ = 0; } inline float SetTakeoffAltitudeRequest::altitude() const { @@ -9002,9 +9903,11 @@ inline void SetTakeoffAltitudeRequest::set_altitude(float 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 void SetTakeoffAltitudeRequest::_internal_set_altitude(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.altitude_ = value; } @@ -9020,25 +9923,26 @@ inline bool SetTakeoffAltitudeResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& SetTakeoffAltitudeResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -9046,57 +9950,65 @@ inline void SetTakeoffAltitudeResponse::unsafe_arena_set_allocated_action_result // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) } @@ -9115,25 +10027,26 @@ inline bool GetMaximumSpeedResponse::has_action_result() const { return value; } inline void GetMaximumSpeedResponse::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& GetMaximumSpeedResponse::_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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& GetMaximumSpeedResponse::action_result() const { +inline const ::mavsdk::rpc::action::ActionResult& GetMaximumSpeedResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) return _internal_action_result(); } -inline void GetMaximumSpeedResponse::unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); +inline void GetMaximumSpeedResponse::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_ = action_result; - if (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; @@ -9141,62 +10054,71 @@ inline void GetMaximumSpeedResponse::unsafe_arena_set_allocated_action_result( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::release_action_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + return released; } inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::unsafe_arena_release_action_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GetMaximumSpeedResponse.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* GetMaximumSpeedResponse::_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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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* GetMaximumSpeedResponse::mutable_action_result() { +inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) return _msg; } -inline void GetMaximumSpeedResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void GetMaximumSpeedResponse::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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) } // float speed = 2; inline void GetMaximumSpeedResponse::clear_speed() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.speed_ = 0; } inline float GetMaximumSpeedResponse::speed() const { @@ -9208,9 +10130,11 @@ inline void GetMaximumSpeedResponse::set_speed(float value) { // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GetMaximumSpeedResponse.speed) } inline float GetMaximumSpeedResponse::_internal_speed() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.speed_; } inline void GetMaximumSpeedResponse::_internal_set_speed(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.speed_ = value; } @@ -9221,6 +10145,7 @@ inline void GetMaximumSpeedResponse::_internal_set_speed(float value) { // float speed = 1; inline void SetMaximumSpeedRequest::clear_speed() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.speed_ = 0; } inline float SetMaximumSpeedRequest::speed() const { @@ -9232,9 +10157,11 @@ inline void SetMaximumSpeedRequest::set_speed(float value) { // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetMaximumSpeedRequest.speed) } inline float SetMaximumSpeedRequest::_internal_speed() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.speed_; } inline void SetMaximumSpeedRequest::_internal_set_speed(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.speed_ = value; } @@ -9250,25 +10177,26 @@ inline bool SetMaximumSpeedResponse::has_action_result() const { return value; } inline void SetMaximumSpeedResponse::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& SetMaximumSpeedResponse::_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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& SetMaximumSpeedResponse::action_result() const { +inline const ::mavsdk::rpc::action::ActionResult& SetMaximumSpeedResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) return _internal_action_result(); } -inline void SetMaximumSpeedResponse::unsafe_arena_set_allocated_action_result( - ::mavsdk::rpc::action::ActionResult* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); +inline void SetMaximumSpeedResponse::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_ = action_result; - if (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; @@ -9276,57 +10204,65 @@ inline void SetMaximumSpeedResponse::unsafe_arena_set_allocated_action_result( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::release_action_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + return released; } inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::unsafe_arena_release_action_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetMaximumSpeedResponse.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* SetMaximumSpeedResponse::_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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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* SetMaximumSpeedResponse::mutable_action_result() { +inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) return _msg; } -inline void SetMaximumSpeedResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SetMaximumSpeedResponse::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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) } @@ -9345,25 +10281,26 @@ inline bool GetReturnToLaunchAltitudeResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -9371,62 +10308,71 @@ inline void GetReturnToLaunchAltitudeResponse::unsafe_arena_set_allocated_action // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = 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 float GetReturnToLaunchAltitudeResponse::relative_altitude_m() const { @@ -9438,9 +10384,11 @@ inline void GetReturnToLaunchAltitudeResponse::set_relative_altitude_m(float val // @@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 void GetReturnToLaunchAltitudeResponse::_internal_set_relative_altitude_m(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.relative_altitude_m_ = value; } @@ -9451,6 +10399,7 @@ inline void GetReturnToLaunchAltitudeResponse::_internal_set_relative_altitude_m // 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 float SetReturnToLaunchAltitudeRequest::relative_altitude_m() const { @@ -9462,9 +10411,11 @@ inline void SetReturnToLaunchAltitudeRequest::set_relative_altitude_m(float valu // @@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 void SetReturnToLaunchAltitudeRequest::_internal_set_relative_altitude_m(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.relative_altitude_m_ = value; } @@ -9480,25 +10431,26 @@ inline bool SetReturnToLaunchAltitudeResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -9506,57 +10458,65 @@ inline void SetReturnToLaunchAltitudeResponse::unsafe_arena_set_allocated_action // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) } @@ -9566,6 +10526,7 @@ inline void SetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mav // 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 float SetCurrentSpeedRequest::speed_m_s() const { @@ -9577,9 +10538,11 @@ inline void SetCurrentSpeedRequest::set_speed_m_s(float 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 void SetCurrentSpeedRequest::_internal_set_speed_m_s(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.speed_m_s_ = value; } @@ -9595,25 +10558,26 @@ inline bool SetCurrentSpeedResponse::has_action_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } -inline const ::mavsdk::rpc::action::ActionResult& SetCurrentSpeedResponse::action_result() const { +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* action_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_result; - if (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; @@ -9621,57 +10585,65 @@ inline void SetCurrentSpeedResponse::unsafe_arena_set_allocated_action_result( // @@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* temp = _impl_.action_result_; + ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_result_ = p; + 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() { +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* action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_result_; + delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); } - if (action_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(action_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_result, 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_ = action_result; + + _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) } @@ -9681,6 +10653,7 @@ inline void SetCurrentSpeedResponse::set_allocated_action_result(::mavsdk::rpc:: // .mavsdk.rpc.action.ActionResult.Result result = 1; inline void ActionResult::clear_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.result_ = 0; } inline ::mavsdk::rpc::action::ActionResult_Result ActionResult::result() const { @@ -9688,59 +10661,67 @@ inline ::mavsdk::rpc::action::ActionResult_Result ActionResult::result() const { return _internal_result(); } inline void ActionResult::set_result(::mavsdk::rpc::action::ActionResult_Result value) { - _internal_set_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 void ActionResult::_internal_set_result(::mavsdk::rpc::action::ActionResult_Result value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 { +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..., GetArenaForAllocation()); + _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() { +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, GetArenaForAllocation()); + _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( GetArenaForAllocation()); + 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) { - _impl_.result_str_.SetAllocated(value, GetArenaForAllocation()); + 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("", GetArenaForAllocation()); + _impl_.result_str_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ActionResult.result_str) @@ -9756,7 +10737,8 @@ inline void ActionResult::set_allocated_result_str(std::string* value) { } // namespace mavsdk -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { template <> struct is_proto_enum<::mavsdk::rpc::action::ActionResult_Result> : std::true_type {}; @@ -9771,7 +10753,8 @@ inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action::OrbitYawBe return ::mavsdk::rpc::action::OrbitYawBehavior_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) 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 62ee7d722a..14c2063b57 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 @@ -11,100 +11,92 @@ #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. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace action_server { -template -PROTOBUF_CONSTEXPR SetAllowTakeoffRequest::SetAllowTakeoffRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.allow_takeoff_)*/ false - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SetAllowTakeoffRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetAllowTakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetAllowTakeoffRequestDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR SubscribeTerminateRequest::SubscribeTerminateRequest(::_pbi::ConstantInitialized) {} +struct SubscribeTerminateRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeTerminateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SubscribeTerminateRequestDefaultTypeInternal() {} union { - SetAllowTakeoffRequest _instance; + SubscribeTerminateRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowTakeoffRequestDefaultTypeInternal _SetAllowTakeoffRequest_default_instance_; -template -PROTOBUF_CONSTEXPR SetArmableRequest::SetArmableRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.armable_)*/ false - - , /*decltype(_impl_.force_armable_)*/ false - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SetArmableRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetArmableRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetArmableRequestDefaultTypeInternal() {} + 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 { - SetArmableRequest _instance; + SubscribeTakeoffRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetArmableRequestDefaultTypeInternal _SetArmableRequest_default_instance_; -template -PROTOBUF_CONSTEXPR SetDisarmableRequest::SetDisarmableRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.disarmable_)*/ false - - , /*decltype(_impl_.force_disarmable_)*/ false + 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; + }; +}; - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SetDisarmableRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetDisarmableRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetDisarmableRequestDefaultTypeInternal() {} +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 { - SetDisarmableRequest _instance; + SubscribeRebootRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDisarmableRequestDefaultTypeInternal _SetDisarmableRequest_default_instance_; -template -PROTOBUF_CONSTEXPR SetAllowableFlightModesRequest::SetAllowableFlightModesRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.flight_modes_)*/nullptr} {} -struct SetAllowableFlightModesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetAllowableFlightModesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetAllowableFlightModesRequestDefaultTypeInternal() {} + 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 { - SetAllowableFlightModesRequest _instance; + SubscribeLandRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowableFlightModesRequestDefaultTypeInternal _SetAllowableFlightModesRequest_default_instance_; -template -PROTOBUF_CONSTEXPR GetAllowableFlightModesRequest::GetAllowableFlightModesRequest( - ::_pbi::ConstantInitialized) {} -struct GetAllowableFlightModesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAllowableFlightModesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetAllowableFlightModesRequestDefaultTypeInternal() {} + 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 { - GetAllowableFlightModesRequest _instance; + SubscribeFlightModeChangeRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAllowableFlightModesRequestDefaultTypeInternal _GetAllowableFlightModesRequest_default_instance_; -template -PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest::SubscribeArmDisarmRequest( - ::_pbi::ConstantInitialized) {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeFlightModeChangeRequestDefaultTypeInternal _SubscribeFlightModeChangeRequest_default_instance_; + template +PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(::_pbi::ConstantInitialized) {} struct SubscribeArmDisarmRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeArmDisarmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeArmDisarmRequestDefaultTypeInternal() {} @@ -115,127 +107,170 @@ struct SubscribeArmDisarmRequestDefaultTypeInternal { 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} {} + template -PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeFlightModeChangeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeFlightModeChangeRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetDisarmableRequest::SetDisarmableRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetDisarmableRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetDisarmableRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetDisarmableRequestDefaultTypeInternal() {} union { - SubscribeFlightModeChangeRequest _instance; + SetDisarmableRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeFlightModeChangeRequestDefaultTypeInternal _SubscribeFlightModeChangeRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDisarmableRequestDefaultTypeInternal _SetDisarmableRequest_default_instance_; + +inline constexpr SetArmableRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : armable_{false}, + force_armable_{false}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR SubscribeTakeoffRequest::SubscribeTakeoffRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeTakeoffRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeTakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeTakeoffRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetArmableRequest::SetArmableRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetArmableRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetArmableRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetArmableRequestDefaultTypeInternal() {} union { - SubscribeTakeoffRequest _instance; + SetArmableRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeTakeoffRequestDefaultTypeInternal _SubscribeTakeoffRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetArmableRequestDefaultTypeInternal _SetArmableRequest_default_instance_; + +inline constexpr SetAllowTakeoffRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : allow_takeoff_{false}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR SubscribeLandRequest::SubscribeLandRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeLandRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeLandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeLandRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetAllowTakeoffRequest::SetAllowTakeoffRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetAllowTakeoffRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetAllowTakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetAllowTakeoffRequestDefaultTypeInternal() {} union { - SubscribeLandRequest _instance; + SetAllowTakeoffRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeLandRequestDefaultTypeInternal _SubscribeLandRequest_default_instance_; -template -PROTOBUF_CONSTEXPR SubscribeRebootRequest::SubscribeRebootRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeRebootRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeRebootRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeRebootRequestDefaultTypeInternal() {} + 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 { - SubscribeRebootRequest _instance; + GetAllowableFlightModesRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeRebootRequestDefaultTypeInternal _SubscribeRebootRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAllowableFlightModesRequestDefaultTypeInternal _GetAllowableFlightModesRequest_default_instance_; + +inline constexpr ArmDisarm::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : arm_{false}, + force_{false}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR SubscribeShutdownRequest::SubscribeShutdownRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeShutdownRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeShutdownRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeShutdownRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR ArmDisarm::ArmDisarm(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ArmDisarmDefaultTypeInternal { + PROTOBUF_CONSTEXPR ArmDisarmDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ArmDisarmDefaultTypeInternal() {} union { - SubscribeShutdownRequest _instance; + ArmDisarm _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeShutdownRequestDefaultTypeInternal _SubscribeShutdownRequest_default_instance_; + 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} {} + template -PROTOBUF_CONSTEXPR SubscribeTerminateRequest::SubscribeTerminateRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeTerminateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeTerminateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeTerminateRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR AllowableFlightModes::AllowableFlightModes(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct AllowableFlightModesDefaultTypeInternal { + PROTOBUF_CONSTEXPR AllowableFlightModesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~AllowableFlightModesDefaultTypeInternal() {} union { - SubscribeTerminateRequest _instance; + AllowableFlightModes _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeTerminateRequestDefaultTypeInternal _SubscribeTerminateRequest_default_instance_; + 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} {} + template -PROTOBUF_CONSTEXPR ArmDisarmResponse::ArmDisarmResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_server_result_)*/nullptr - , /*decltype(_impl_.arm_)*/nullptr} {} -struct ArmDisarmResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmDisarmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ArmDisarmResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR ActionServerResult::ActionServerResult(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ActionServerResultDefaultTypeInternal { + PROTOBUF_CONSTEXPR ActionServerResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ActionServerResultDefaultTypeInternal() {} union { - ArmDisarmResponse _instance; + ActionServerResult _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmDisarmResponseDefaultTypeInternal _ArmDisarmResponse_default_instance_; + 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} {} + template -PROTOBUF_CONSTEXPR FlightModeChangeResponse::FlightModeChangeResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_server_result_)*/nullptr - , /*decltype(_impl_.flight_mode_)*/ 0 -} {} -struct FlightModeChangeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlightModeChangeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlightModeChangeResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR TerminateResponse::TerminateResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct TerminateResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TerminateResponseDefaultTypeInternal() {} union { - FlightModeChangeResponse _instance; + TerminateResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlightModeChangeResponseDefaultTypeInternal _FlightModeChangeResponse_default_instance_; + 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} {} + template -PROTOBUF_CONSTEXPR TakeoffResponse::TakeoffResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_server_result_)*/nullptr - , /*decltype(_impl_.takeoff_)*/ false -} {} +PROTOBUF_CONSTEXPR TakeoffResponse::TakeoffResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct TakeoffResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakeoffResponseDefaultTypeInternal() {} @@ -246,50 +281,16 @@ struct TakeoffResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; -template -PROTOBUF_CONSTEXPR LandResponse::LandResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_server_result_)*/nullptr - , /*decltype(_impl_.land_)*/ false -} {} -struct LandResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LandResponseDefaultTypeInternal() {} - union { - LandResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandResponseDefaultTypeInternal _LandResponse_default_instance_; -template -PROTOBUF_CONSTEXPR RebootResponse::RebootResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_server_result_)*/nullptr - , /*decltype(_impl_.reboot_)*/ false -} {} -struct RebootResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RebootResponseDefaultTypeInternal() {} - union { - RebootResponse _instance; - }; -}; +inline constexpr ShutdownResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_server_result_{nullptr}, + shutdown_{false} {} -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootResponseDefaultTypeInternal _RebootResponse_default_instance_; template -PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_server_result_)*/nullptr - , /*decltype(_impl_.shutdown_)*/ false -} {} +PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct ShutdownResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ShutdownResponseDefaultTypeInternal() {} @@ -300,30 +301,34 @@ struct ShutdownResponseDefaultTypeInternal { 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} {} + template -PROTOBUF_CONSTEXPR TerminateResponse::TerminateResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_server_result_)*/nullptr - , /*decltype(_impl_.terminate_)*/ false -} {} -struct TerminateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TerminateResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetDisarmableResponse::SetDisarmableResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetDisarmableResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetDisarmableResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetDisarmableResponseDefaultTypeInternal() {} union { - TerminateResponse _instance; + SetDisarmableResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDisarmableResponseDefaultTypeInternal _SetDisarmableResponse_default_instance_; + +inline constexpr SetArmableResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_server_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR SetArmableResponse::SetArmableResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_server_result_)*/nullptr} {} +PROTOBUF_CONSTEXPR SetArmableResponse::SetArmableResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct SetArmableResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetArmableResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetArmableResponseDefaultTypeInternal() {} @@ -334,28 +339,15 @@ struct SetArmableResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetArmableResponseDefaultTypeInternal _SetArmableResponse_default_instance_; -template -PROTOBUF_CONSTEXPR SetDisarmableResponse::SetDisarmableResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_server_result_)*/nullptr} {} -struct SetDisarmableResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetDisarmableResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetDisarmableResponseDefaultTypeInternal() {} - union { - SetDisarmableResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDisarmableResponseDefaultTypeInternal _SetDisarmableResponse_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_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_server_result_)*/nullptr} {} +PROTOBUF_CONSTEXPR SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct SetAllowableFlightModesResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetAllowableFlightModesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetAllowableFlightModesResponseDefaultTypeInternal() {} @@ -366,12 +358,34 @@ struct SetAllowableFlightModesResponseDefaultTypeInternal { 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()) {} +struct SetAllowableFlightModesRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetAllowableFlightModesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetAllowableFlightModesRequestDefaultTypeInternal() {} + union { + SetAllowableFlightModesRequest _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} {} + template -PROTOBUF_CONSTEXPR SetAllowTakeoffResponse::SetAllowTakeoffResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.action_server_result_)*/nullptr} {} +PROTOBUF_CONSTEXPR SetAllowTakeoffResponse::SetAllowTakeoffResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct SetAllowTakeoffResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetAllowTakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetAllowTakeoffResponseDefaultTypeInternal() {} @@ -382,80 +396,105 @@ struct SetAllowTakeoffResponseDefaultTypeInternal { 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} {} + template -PROTOBUF_CONSTEXPR GetAllowableFlightModesResponse::GetAllowableFlightModesResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.flight_modes_)*/nullptr} {} -struct GetAllowableFlightModesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAllowableFlightModesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetAllowableFlightModesResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR RebootResponse::RebootResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct RebootResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~RebootResponseDefaultTypeInternal() {} union { - GetAllowableFlightModesResponse _instance; + RebootResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAllowableFlightModesResponseDefaultTypeInternal _GetAllowableFlightModesResponse_default_instance_; + 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} {} + template -PROTOBUF_CONSTEXPR AllowableFlightModes::AllowableFlightModes( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.can_auto_mode_)*/ false +PROTOBUF_CONSTEXPR LandResponse::LandResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct LandResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~LandResponseDefaultTypeInternal() {} + union { + LandResponse _instance; + }; +}; - , /*decltype(_impl_.can_guided_mode_)*/ false +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandResponseDefaultTypeInternal _LandResponse_default_instance_; - , /*decltype(_impl_.can_stabilize_mode_)*/ false +inline constexpr GetAllowableFlightModesResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + flight_modes_{nullptr} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct AllowableFlightModesDefaultTypeInternal { - PROTOBUF_CONSTEXPR AllowableFlightModesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AllowableFlightModesDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GetAllowableFlightModesResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetAllowableFlightModesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetAllowableFlightModesResponseDefaultTypeInternal() {} union { - AllowableFlightModes _instance; + GetAllowableFlightModesResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllowableFlightModesDefaultTypeInternal _AllowableFlightModes_default_instance_; -template -PROTOBUF_CONSTEXPR ArmDisarm::ArmDisarm( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.arm_)*/ false + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAllowableFlightModesResponseDefaultTypeInternal _GetAllowableFlightModesResponse_default_instance_; - , /*decltype(_impl_.force_)*/ false +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)} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ArmDisarmDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmDisarmDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ArmDisarmDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR FlightModeChangeResponse::FlightModeChangeResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct FlightModeChangeResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR FlightModeChangeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~FlightModeChangeResponseDefaultTypeInternal() {} union { - ArmDisarm _instance; + FlightModeChangeResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmDisarmDefaultTypeInternal _ArmDisarm_default_instance_; -template -PROTOBUF_CONSTEXPR ActionServerResult::ActionServerResult( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.result_str_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlightModeChangeResponseDefaultTypeInternal _FlightModeChangeResponse_default_instance_; - , /*decltype(_impl_.result_)*/ 0 +inline constexpr ArmDisarmResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + action_server_result_{nullptr}, + arm_{nullptr} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ActionServerResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR ActionServerResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ActionServerResultDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR ArmDisarmResponse::ArmDisarmResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ArmDisarmResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ArmDisarmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ArmDisarmResponseDefaultTypeInternal() {} union { - ActionServerResult _instance; + ArmDisarmResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActionServerResultDefaultTypeInternal _ActionServerResult_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmDisarmResponseDefaultTypeInternal _ArmDisarmResponse_default_instance_; } // namespace action_server } // namespace rpc } // namespace mavsdk @@ -737,33 +776,33 @@ const ::uint32_t TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets[ 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)}, + {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[] = { @@ -956,29 +995,14 @@ static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_action_5fserver_2faction_ namespace mavsdk { namespace rpc { namespace action_server { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ActionServerResult_Result_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_action_5fserver_2faction_5fserver_2eproto); +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) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - return true; - default: - return false; - } + return 0 <= value && value <= 12; } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -1002,30 +1026,14 @@ constexpr int ActionServerResult::Result_ARRAYSIZE; #endif // (__cplusplus < 201703) && // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FlightMode_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_action_5fserver_2faction_5fserver_2eproto); +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) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - return true; - default: - return false; - } + return 0 <= value && value <= 13; } // =================================================================== @@ -1033,97 +1041,89 @@ class SetAllowTakeoffRequest::_Internal { public: }; -SetAllowTakeoffRequest::SetAllowTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetAllowTakeoffRequest::SetAllowTakeoffRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowTakeoffRequest) } -SetAllowTakeoffRequest::SetAllowTakeoffRequest(const SetAllowTakeoffRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowTakeoffRequest) +SetAllowTakeoffRequest::SetAllowTakeoffRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.allow_takeoff_) { false } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.allow_takeoff_ = {}; } - SetAllowTakeoffRequest::~SetAllowTakeoffRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetAllowTakeoffRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void SetAllowTakeoffRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SetAllowTakeoffRequest::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetAllowTakeoffRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bool allow_takeoff = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.allow_takeoff_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* SetAllowTakeoffRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // bool allow_takeoff = 1; if (this->_internal_allow_takeoff() != 0) { @@ -1133,8 +1133,9 @@ ::uint8_t* SetAllowTakeoffRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -1156,14 +1157,15 @@ ::size_t SetAllowTakeoffRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAllowTakeoffRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetAllowTakeoffRequest::MergeImpl +const ::google::protobuf::Message::ClassData SetAllowTakeoffRequest::_class_data_ = { + SetAllowTakeoffRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAllowTakeoffRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetAllowTakeoffRequest::GetClassData() const { + return &_class_data_; +} -void SetAllowTakeoffRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -1174,7 +1176,7 @@ void SetAllowTakeoffRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, if (from._internal_allow_takeoff() != 0) { _this->_internal_set_allow_takeoff(from._internal_allow_takeoff()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetAllowTakeoffRequest::CopyFrom(const SetAllowTakeoffRequest& from) { @@ -1184,18 +1186,20 @@ void SetAllowTakeoffRequest::CopyFrom(const SetAllowTakeoffRequest& from) { MergeFrom(from); } -bool SetAllowTakeoffRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetAllowTakeoffRequest::IsInitialized() const { return true; } -void SetAllowTakeoffRequest::InternalSwap(SetAllowTakeoffRequest* other) { +::_pbi::CachedSize* SetAllowTakeoffRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void SetAllowTakeoffRequest::InternalSwap(SetAllowTakeoffRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - - swap(_impl_.allow_takeoff_, other->_impl_.allow_takeoff_); + swap(_impl_.allow_takeoff_, other->_impl_.allow_takeoff_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetAllowTakeoffRequest::GetMetadata() const { +::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]); @@ -1206,48 +1210,43 @@ class SetArmableRequest::_Internal { public: }; -SetArmableRequest::SetArmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetArmableRequest::SetArmableRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetArmableRequest) } -SetArmableRequest::SetArmableRequest(const SetArmableRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetArmableRequest) +SetArmableRequest::SetArmableRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.armable_) { false } - - , decltype(_impl_.force_armable_) { false } - - , /*decltype(_impl_._cached_size_)*/{} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetArmableRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void SetArmableRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void SetArmableRequest::Clear() { +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; @@ -1255,61 +1254,58 @@ void SetArmableRequest::Clear() { ::memset(&_impl_.armable_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.force_armable_) - reinterpret_cast(&_impl_.armable_)) + sizeof(_impl_.force_armable_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetArmableRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bool armable = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.armable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool force_armable = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.force_armable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* SetArmableRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // bool armable = 1; if (this->_internal_armable() != 0) { @@ -1326,8 +1322,9 @@ ::uint8_t* SetArmableRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -1354,14 +1351,15 @@ ::size_t SetArmableRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetArmableRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetArmableRequest::MergeImpl +const ::google::protobuf::Message::ClassData SetArmableRequest::_class_data_ = { + SetArmableRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetArmableRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetArmableRequest::GetClassData() const { + return &_class_data_; +} -void SetArmableRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -1375,7 +1373,7 @@ void SetArmableRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons if (from._internal_force_armable() != 0) { _this->_internal_set_force_armable(from._internal_force_armable()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetArmableRequest::CopyFrom(const SetArmableRequest& from) { @@ -1385,14 +1383,17 @@ void SetArmableRequest::CopyFrom(const SetArmableRequest& from) { MergeFrom(from); } -bool SetArmableRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetArmableRequest::IsInitialized() const { return true; } -void SetArmableRequest::InternalSwap(SetArmableRequest* other) { +::_pbi::CachedSize* SetArmableRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void SetArmableRequest::InternalSwap(SetArmableRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.force_armable_) + sizeof(SetArmableRequest::_impl_.force_armable_) - PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.armable_)>( @@ -1400,7 +1401,7 @@ void SetArmableRequest::InternalSwap(SetArmableRequest* other) { reinterpret_cast(&other->_impl_.armable_)); } -::PROTOBUF_NAMESPACE_ID::Metadata SetArmableRequest::GetMetadata() const { +::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]); @@ -1411,48 +1412,43 @@ class SetDisarmableRequest::_Internal { public: }; -SetDisarmableRequest::SetDisarmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetDisarmableRequest::SetDisarmableRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetDisarmableRequest) } -SetDisarmableRequest::SetDisarmableRequest(const SetDisarmableRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetDisarmableRequest) +SetDisarmableRequest::SetDisarmableRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.disarmable_) { false } - - , decltype(_impl_.force_disarmable_) { false } - - , /*decltype(_impl_._cached_size_)*/{} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetDisarmableRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void SetDisarmableRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void SetDisarmableRequest::Clear() { +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; @@ -1460,61 +1456,58 @@ void SetDisarmableRequest::Clear() { ::memset(&_impl_.disarmable_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.force_disarmable_) - reinterpret_cast(&_impl_.disarmable_)) + sizeof(_impl_.force_disarmable_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetDisarmableRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bool disarmable = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.disarmable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool force_disarmable = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.force_disarmable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* SetDisarmableRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // bool disarmable = 1; if (this->_internal_disarmable() != 0) { @@ -1531,8 +1524,9 @@ ::uint8_t* SetDisarmableRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -1559,14 +1553,15 @@ ::size_t SetDisarmableRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetDisarmableRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetDisarmableRequest::MergeImpl +const ::google::protobuf::Message::ClassData SetDisarmableRequest::_class_data_ = { + SetDisarmableRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetDisarmableRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetDisarmableRequest::GetClassData() const { + return &_class_data_; +} -void SetDisarmableRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -1580,7 +1575,7 @@ void SetDisarmableRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, c if (from._internal_force_disarmable() != 0) { _this->_internal_set_force_disarmable(from._internal_force_disarmable()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetDisarmableRequest::CopyFrom(const SetDisarmableRequest& from) { @@ -1590,14 +1585,17 @@ void SetDisarmableRequest::CopyFrom(const SetDisarmableRequest& from) { MergeFrom(from); } -bool SetDisarmableRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetDisarmableRequest::IsInitialized() const { return true; } -void SetDisarmableRequest::InternalSwap(SetDisarmableRequest* other) { +::_pbi::CachedSize* SetDisarmableRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void SetDisarmableRequest::InternalSwap(SetDisarmableRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.force_disarmable_) + sizeof(SetDisarmableRequest::_impl_.force_disarmable_) - PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.disarmable_)>( @@ -1605,7 +1603,7 @@ void SetDisarmableRequest::InternalSwap(SetDisarmableRequest* other) { reinterpret_cast(&other->_impl_.disarmable_)); } -::PROTOBUF_NAMESPACE_ID::Metadata SetDisarmableRequest::GetMetadata() const { +::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]); @@ -1623,59 +1621,59 @@ class SetAllowableFlightModesRequest::_Internal { } }; -const ::mavsdk::rpc::action_server::AllowableFlightModes& -SetAllowableFlightModesRequest::_Internal::flight_modes(const SetAllowableFlightModesRequest* msg) { +const ::mavsdk::rpc::action_server::AllowableFlightModes& SetAllowableFlightModesRequest::_Internal::flight_modes(const SetAllowableFlightModesRequest* msg) { return *msg->_impl_.flight_modes_; } -SetAllowableFlightModesRequest::SetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetAllowableFlightModesRequest::SetAllowableFlightModesRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) } -SetAllowableFlightModesRequest::SetAllowableFlightModesRequest(const SetAllowableFlightModesRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetAllowableFlightModesRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.flight_modes_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.flight_modes_ = new ::mavsdk::rpc::action_server::AllowableFlightModes(*from._impl_.flight_modes_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.flight_modes_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.flight_modes_ = {}; } - SetAllowableFlightModesRequest::~SetAllowableFlightModesRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetAllowableFlightModesRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.flight_modes_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.flight_modes_; + _impl_.~Impl_(); } -void SetAllowableFlightModesRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SetAllowableFlightModesRequest::Clear() { +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; @@ -1686,66 +1684,65 @@ void SetAllowableFlightModesRequest::Clear() { _impl_.flight_modes_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetAllowableFlightModesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_flight_modes(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetAllowableFlightModesRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::flight_modes(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -1762,22 +1759,22 @@ ::size_t SetAllowableFlightModesRequest::ByteSizeLong() const { // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.flight_modes_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.flight_modes_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAllowableFlightModesRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetAllowableFlightModesRequest::MergeImpl +const ::google::protobuf::Message::ClassData SetAllowableFlightModesRequest::_class_data_ = { + SetAllowableFlightModesRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAllowableFlightModesRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetAllowableFlightModesRequest::GetClassData() const { + return &_class_data_; +} -void SetAllowableFlightModesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -1789,7 +1786,7 @@ void SetAllowableFlightModesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& _this->_internal_mutable_flight_modes()->::mavsdk::rpc::action_server::AllowableFlightModes::MergeFrom( from._internal_flight_modes()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetAllowableFlightModesRequest::CopyFrom(const SetAllowableFlightModesRequest& from) { @@ -1799,18 +1796,21 @@ void SetAllowableFlightModesRequest::CopyFrom(const SetAllowableFlightModesReque MergeFrom(from); } -bool SetAllowableFlightModesRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetAllowableFlightModesRequest::IsInitialized() const { return true; } -void SetAllowableFlightModesRequest::InternalSwap(SetAllowableFlightModesRequest* other) { +::_pbi::CachedSize* SetAllowableFlightModesRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetAllowableFlightModesRequest::GetMetadata() const { +::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]); @@ -1821,14 +1821,19 @@ class GetAllowableFlightModesRequest::_Internal { public: }; -GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) } -GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(const GetAllowableFlightModesRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - GetAllowableFlightModesRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -1836,19 +1841,11 @@ GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(const GetAllowabl -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAllowableFlightModesRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAllowableFlightModesRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata GetAllowableFlightModesRequest::GetMetadata() const { +::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]); @@ -1859,14 +1856,19 @@ class SubscribeArmDisarmRequest::_Internal { public: }; -SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) } -SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(const SubscribeArmDisarmRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeArmDisarmRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -1874,19 +1876,11 @@ SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(const SubscribeArmDisarmReq -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeArmDisarmRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeArmDisarmRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeArmDisarmRequest::GetMetadata() const { +::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]); @@ -1897,14 +1891,19 @@ class SubscribeFlightModeChangeRequest::_Internal { public: }; -SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) } -SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(const SubscribeFlightModeChangeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeFlightModeChangeRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -1912,19 +1911,11 @@ SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(const Subscri -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeFlightModeChangeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeFlightModeChangeRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeFlightModeChangeRequest::GetMetadata() const { +::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]); @@ -1935,14 +1926,19 @@ class SubscribeTakeoffRequest::_Internal { public: }; -SubscribeTakeoffRequest::SubscribeTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeTakeoffRequest::SubscribeTakeoffRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeTakeoffRequest) } -SubscribeTakeoffRequest::SubscribeTakeoffRequest(const SubscribeTakeoffRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeTakeoffRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -1950,19 +1946,11 @@ SubscribeTakeoffRequest::SubscribeTakeoffRequest(const SubscribeTakeoffRequest& -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeTakeoffRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeTakeoffRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeTakeoffRequest::GetMetadata() const { +::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]); @@ -1973,14 +1961,19 @@ class SubscribeLandRequest::_Internal { public: }; -SubscribeLandRequest::SubscribeLandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeLandRequest::SubscribeLandRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeLandRequest) } -SubscribeLandRequest::SubscribeLandRequest(const SubscribeLandRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeLandRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -1988,19 +1981,11 @@ SubscribeLandRequest::SubscribeLandRequest(const SubscribeLandRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeLandRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeLandRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeLandRequest::GetMetadata() const { +::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]); @@ -2011,14 +1996,19 @@ class SubscribeRebootRequest::_Internal { public: }; -SubscribeRebootRequest::SubscribeRebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeRebootRequest::SubscribeRebootRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeRebootRequest) } -SubscribeRebootRequest::SubscribeRebootRequest(const SubscribeRebootRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeRebootRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -2026,19 +2016,11 @@ SubscribeRebootRequest::SubscribeRebootRequest(const SubscribeRebootRequest& fro -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeRebootRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeRebootRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeRebootRequest::GetMetadata() const { +::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]); @@ -2049,14 +2031,19 @@ class SubscribeShutdownRequest::_Internal { public: }; -SubscribeShutdownRequest::SubscribeShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeShutdownRequest::SubscribeShutdownRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeShutdownRequest) } -SubscribeShutdownRequest::SubscribeShutdownRequest(const SubscribeShutdownRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeShutdownRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -2064,19 +2051,11 @@ SubscribeShutdownRequest::SubscribeShutdownRequest(const SubscribeShutdownReques -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeShutdownRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeShutdownRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeShutdownRequest::GetMetadata() const { +::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]); @@ -2087,14 +2066,19 @@ class SubscribeTerminateRequest::_Internal { public: }; -SubscribeTerminateRequest::SubscribeTerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeTerminateRequest::SubscribeTerminateRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeTerminateRequest) } -SubscribeTerminateRequest::SubscribeTerminateRequest(const SubscribeTerminateRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeTerminateRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -2102,19 +2086,11 @@ SubscribeTerminateRequest::SubscribeTerminateRequest(const SubscribeTerminateReq -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeTerminateRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeTerminateRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeTerminateRequest::GetMetadata() const { +::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]); @@ -2136,69 +2112,71 @@ class ArmDisarmResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::ActionServerResult& -ArmDisarmResponse::_Internal::action_server_result(const ArmDisarmResponse* msg) { +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) { +const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::_Internal::arm(const ArmDisarmResponse* msg) { return *msg->_impl_.arm_; } -ArmDisarmResponse::ArmDisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ArmDisarmResponse::ArmDisarmResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ArmDisarmResponse) } -ArmDisarmResponse::ArmDisarmResponse(const ArmDisarmResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ArmDisarmResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.arm_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.arm_ = new ::mavsdk::rpc::action_server::ArmDisarm(*from._impl_.arm_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.arm_){nullptr} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ArmDisarmResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_server_result_; - if (this != internal_default_instance()) delete _impl_.arm_; -} - -void ArmDisarmResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_server_result_; + delete _impl_.arm_; + _impl_.~Impl_(); } -void ArmDisarmResponse::Clear() { +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; @@ -2215,82 +2193,79 @@ void ArmDisarmResponse::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ArmDisarmResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.action_server.ArmDisarm arm = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_arm(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* ArmDisarmResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_server_result(this), + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::arm(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2308,30 +2283,29 @@ ::size_t ArmDisarmResponse::ByteSizeLong() const { if (cached_has_bits & 0x00000003u) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_server_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); } // .mavsdk.rpc.action_server.ArmDisarm arm = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.arm_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.arm_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ArmDisarmResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ArmDisarmResponse::MergeImpl +const ::google::protobuf::Message::ClassData ArmDisarmResponse::_class_data_ = { + ArmDisarmResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ArmDisarmResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ArmDisarmResponse::GetClassData() const { + return &_class_data_; +} -void ArmDisarmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2350,7 +2324,7 @@ void ArmDisarmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons from._internal_arm()); } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ArmDisarmResponse::CopyFrom(const ArmDisarmResponse& from) { @@ -2360,15 +2334,18 @@ void ArmDisarmResponse::CopyFrom(const ArmDisarmResponse& from) { MergeFrom(from); } -bool ArmDisarmResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool ArmDisarmResponse::IsInitialized() const { return true; } -void ArmDisarmResponse::InternalSwap(ArmDisarmResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.arm_) + sizeof(ArmDisarmResponse::_impl_.arm_) - PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.action_server_result_)>( @@ -2376,7 +2353,7 @@ void ArmDisarmResponse::InternalSwap(ArmDisarmResponse* other) { reinterpret_cast(&other->_impl_.action_server_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ArmDisarmResponse::GetMetadata() const { +::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]); @@ -2394,64 +2371,65 @@ class FlightModeChangeResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::ActionServerResult& -FlightModeChangeResponse::_Internal::action_server_result(const FlightModeChangeResponse* msg) { +const ::mavsdk::rpc::action_server::ActionServerResult& FlightModeChangeResponse::_Internal::action_server_result(const FlightModeChangeResponse* msg) { return *msg->_impl_.action_server_result_; } -FlightModeChangeResponse::FlightModeChangeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +FlightModeChangeResponse::FlightModeChangeResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.FlightModeChangeResponse) } -FlightModeChangeResponse::FlightModeChangeResponse(const FlightModeChangeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - FlightModeChangeResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.flight_mode_) {} - }; +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} {} + +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_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.flight_mode_) { 0 } - - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void FlightModeChangeResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_server_result_; -} - -void FlightModeChangeResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_server_result_; + _impl_.~Impl_(); } -void FlightModeChangeResponse::Clear() { +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; @@ -2463,70 +2441,64 @@ void FlightModeChangeResponse::Clear() { } _impl_.flight_mode_ = 0; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* FlightModeChangeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_flight_mode(static_cast<::mavsdk::rpc::action_server::FlightMode>(val)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* FlightModeChangeResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_server_result(this), + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); } @@ -2538,8 +2510,9 @@ ::uint8_t* FlightModeChangeResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2556,9 +2529,8 @@ ::size_t FlightModeChangeResponse::ByteSizeLong() const { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_server_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); } // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; @@ -2570,14 +2542,15 @@ ::size_t FlightModeChangeResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlightModeChangeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - FlightModeChangeResponse::MergeImpl +const ::google::protobuf::Message::ClassData FlightModeChangeResponse::_class_data_ = { + FlightModeChangeResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlightModeChangeResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* FlightModeChangeResponse::GetClassData() const { + return &_class_data_; +} -void FlightModeChangeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2592,7 +2565,7 @@ void FlightModeChangeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ms if (from._internal_flight_mode() != 0) { _this->_internal_set_flight_mode(from._internal_flight_mode()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void FlightModeChangeResponse::CopyFrom(const FlightModeChangeResponse& from) { @@ -2602,15 +2575,18 @@ void FlightModeChangeResponse::CopyFrom(const FlightModeChangeResponse& from) { MergeFrom(from); } -bool FlightModeChangeResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool FlightModeChangeResponse::IsInitialized() const { return true; } -void FlightModeChangeResponse::InternalSwap(FlightModeChangeResponse* other) { +::_pbi::CachedSize* FlightModeChangeResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.flight_mode_) + sizeof(FlightModeChangeResponse::_impl_.flight_mode_) - PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.action_server_result_)>( @@ -2618,7 +2594,7 @@ void FlightModeChangeResponse::InternalSwap(FlightModeChangeResponse* other) { reinterpret_cast(&other->_impl_.action_server_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata FlightModeChangeResponse::GetMetadata() const { +::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]); @@ -2636,64 +2612,65 @@ class TakeoffResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::ActionServerResult& -TakeoffResponse::_Internal::action_server_result(const TakeoffResponse* msg) { +const ::mavsdk::rpc::action_server::ActionServerResult& TakeoffResponse::_Internal::action_server_result(const TakeoffResponse* msg) { return *msg->_impl_.action_server_result_; } -TakeoffResponse::TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +TakeoffResponse::TakeoffResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.TakeoffResponse) } -TakeoffResponse::TakeoffResponse(const TakeoffResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - TakeoffResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.takeoff_) {} - }; +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::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_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.takeoff_) { false } - - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void TakeoffResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_server_result_; -} - -void TakeoffResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_server_result_; + _impl_.~Impl_(); } -void TakeoffResponse::Clear() { +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; @@ -2705,69 +2682,64 @@ void TakeoffResponse::Clear() { } _impl_.takeoff_ = false; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TakeoffResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool takeoff = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.takeoff_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* TakeoffResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_server_result(this), + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); } @@ -2779,8 +2751,9 @@ ::uint8_t* TakeoffResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2797,9 +2770,8 @@ ::size_t TakeoffResponse::ByteSizeLong() const { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_server_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); } // bool takeoff = 2; @@ -2810,14 +2782,15 @@ ::size_t TakeoffResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TakeoffResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - TakeoffResponse::MergeImpl +const ::google::protobuf::Message::ClassData TakeoffResponse::_class_data_ = { + TakeoffResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TakeoffResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* TakeoffResponse::GetClassData() const { + return &_class_data_; +} -void TakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2832,7 +2805,7 @@ void TakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const if (from._internal_takeoff() != 0) { _this->_internal_set_takeoff(from._internal_takeoff()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void TakeoffResponse::CopyFrom(const TakeoffResponse& from) { @@ -2842,15 +2815,18 @@ void TakeoffResponse::CopyFrom(const TakeoffResponse& from) { MergeFrom(from); } -bool TakeoffResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool TakeoffResponse::IsInitialized() const { return true; } -void TakeoffResponse::InternalSwap(TakeoffResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.takeoff_) + sizeof(TakeoffResponse::_impl_.takeoff_) - PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_server_result_)>( @@ -2858,7 +2834,7 @@ void TakeoffResponse::InternalSwap(TakeoffResponse* other) { reinterpret_cast(&other->_impl_.action_server_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata TakeoffResponse::GetMetadata() const { +::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]); @@ -2876,64 +2852,65 @@ class LandResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::ActionServerResult& -LandResponse::_Internal::action_server_result(const LandResponse* msg) { +const ::mavsdk::rpc::action_server::ActionServerResult& LandResponse::_Internal::action_server_result(const LandResponse* msg) { return *msg->_impl_.action_server_result_; } -LandResponse::LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +LandResponse::LandResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.LandResponse) } -LandResponse::LandResponse(const LandResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - LandResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.land_) {} - }; +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_server_result_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) + : nullptr; + _impl_.land_ = from._impl_.land_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.land_) { false } - - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void LandResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_server_result_; -} - -void LandResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_server_result_; + _impl_.~Impl_(); } -void LandResponse::Clear() { +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; @@ -2945,69 +2922,64 @@ void LandResponse::Clear() { } _impl_.land_ = false; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* LandResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool land = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.land_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* LandResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_server_result(this), + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); } @@ -3019,8 +2991,9 @@ ::uint8_t* LandResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3037,9 +3010,8 @@ ::size_t LandResponse::ByteSizeLong() const { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_server_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); } // bool land = 2; @@ -3050,14 +3022,15 @@ ::size_t LandResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LandResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - LandResponse::MergeImpl +const ::google::protobuf::Message::ClassData LandResponse::_class_data_ = { + LandResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LandResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* LandResponse::GetClassData() const { + return &_class_data_; +} -void LandResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3072,7 +3045,7 @@ void LandResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P if (from._internal_land() != 0) { _this->_internal_set_land(from._internal_land()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void LandResponse::CopyFrom(const LandResponse& from) { @@ -3082,15 +3055,18 @@ void LandResponse::CopyFrom(const LandResponse& from) { MergeFrom(from); } -bool LandResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool LandResponse::IsInitialized() const { return true; } -void LandResponse::InternalSwap(LandResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.land_) + sizeof(LandResponse::_impl_.land_) - PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_server_result_)>( @@ -3098,7 +3074,7 @@ void LandResponse::InternalSwap(LandResponse* other) { reinterpret_cast(&other->_impl_.action_server_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata LandResponse::GetMetadata() const { +::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]); @@ -3116,64 +3092,65 @@ class RebootResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::ActionServerResult& -RebootResponse::_Internal::action_server_result(const RebootResponse* msg) { +const ::mavsdk::rpc::action_server::ActionServerResult& RebootResponse::_Internal::action_server_result(const RebootResponse* msg) { return *msg->_impl_.action_server_result_; } -RebootResponse::RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +RebootResponse::RebootResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.RebootResponse) } -RebootResponse::RebootResponse(const RebootResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - RebootResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.reboot_) {} - }; +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_server_result_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) + : nullptr; + _impl_.reboot_ = from._impl_.reboot_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.reboot_) { false } - - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void RebootResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_server_result_; -} - -void RebootResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_server_result_; + _impl_.~Impl_(); } -void RebootResponse::Clear() { +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; @@ -3185,69 +3162,64 @@ void RebootResponse::Clear() { } _impl_.reboot_ = false; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* RebootResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool reboot = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.reboot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* RebootResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_server_result(this), + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); } @@ -3259,8 +3231,9 @@ ::uint8_t* RebootResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3277,9 +3250,8 @@ ::size_t RebootResponse::ByteSizeLong() const { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_server_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); } // bool reboot = 2; @@ -3290,14 +3262,15 @@ ::size_t RebootResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RebootResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - RebootResponse::MergeImpl +const ::google::protobuf::Message::ClassData RebootResponse::_class_data_ = { + RebootResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RebootResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* RebootResponse::GetClassData() const { + return &_class_data_; +} -void RebootResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3312,7 +3285,7 @@ void RebootResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : if (from._internal_reboot() != 0) { _this->_internal_set_reboot(from._internal_reboot()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void RebootResponse::CopyFrom(const RebootResponse& from) { @@ -3322,15 +3295,18 @@ void RebootResponse::CopyFrom(const RebootResponse& from) { MergeFrom(from); } -bool RebootResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool RebootResponse::IsInitialized() const { return true; } -void RebootResponse::InternalSwap(RebootResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.reboot_) + sizeof(RebootResponse::_impl_.reboot_) - PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_server_result_)>( @@ -3338,7 +3314,7 @@ void RebootResponse::InternalSwap(RebootResponse* other) { reinterpret_cast(&other->_impl_.action_server_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata RebootResponse::GetMetadata() const { +::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]); @@ -3356,64 +3332,65 @@ class ShutdownResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::ActionServerResult& -ShutdownResponse::_Internal::action_server_result(const ShutdownResponse* msg) { +const ::mavsdk::rpc::action_server::ActionServerResult& ShutdownResponse::_Internal::action_server_result(const ShutdownResponse* msg) { return *msg->_impl_.action_server_result_; } -ShutdownResponse::ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ShutdownResponse::ShutdownResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ShutdownResponse) } -ShutdownResponse::ShutdownResponse(const ShutdownResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ShutdownResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.shutdown_) {} - }; +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_server_result_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) + : nullptr; + _impl_.shutdown_ = from._impl_.shutdown_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.shutdown_) { false } - - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ShutdownResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_server_result_; -} - -void ShutdownResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_server_result_; + _impl_.~Impl_(); } -void ShutdownResponse::Clear() { +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; @@ -3425,69 +3402,64 @@ void ShutdownResponse::Clear() { } _impl_.shutdown_ = false; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ShutdownResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool shutdown = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.shutdown_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* ShutdownResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_server_result(this), + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); } @@ -3499,8 +3471,9 @@ ::uint8_t* ShutdownResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3517,9 +3490,8 @@ ::size_t ShutdownResponse::ByteSizeLong() const { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_server_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); } // bool shutdown = 2; @@ -3530,14 +3502,15 @@ ::size_t ShutdownResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShutdownResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ShutdownResponse::MergeImpl +const ::google::protobuf::Message::ClassData ShutdownResponse::_class_data_ = { + ShutdownResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShutdownResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ShutdownResponse::GetClassData() const { + return &_class_data_; +} -void ShutdownResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3552,7 +3525,7 @@ void ShutdownResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const if (from._internal_shutdown() != 0) { _this->_internal_set_shutdown(from._internal_shutdown()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ShutdownResponse::CopyFrom(const ShutdownResponse& from) { @@ -3562,15 +3535,18 @@ void ShutdownResponse::CopyFrom(const ShutdownResponse& from) { MergeFrom(from); } -bool ShutdownResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool ShutdownResponse::IsInitialized() const { return true; } -void ShutdownResponse::InternalSwap(ShutdownResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.shutdown_) + sizeof(ShutdownResponse::_impl_.shutdown_) - PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_server_result_)>( @@ -3578,7 +3554,7 @@ void ShutdownResponse::InternalSwap(ShutdownResponse* other) { reinterpret_cast(&other->_impl_.action_server_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ShutdownResponse::GetMetadata() const { +::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]); @@ -3596,64 +3572,65 @@ class TerminateResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::ActionServerResult& -TerminateResponse::_Internal::action_server_result(const TerminateResponse* msg) { +const ::mavsdk::rpc::action_server::ActionServerResult& TerminateResponse::_Internal::action_server_result(const TerminateResponse* msg) { return *msg->_impl_.action_server_result_; } -TerminateResponse::TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +TerminateResponse::TerminateResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.TerminateResponse) } -TerminateResponse::TerminateResponse(const TerminateResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - TerminateResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.terminate_) {} - }; +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} {} + +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_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - , decltype(_impl_.terminate_) { false } - - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void TerminateResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_server_result_; -} - -void TerminateResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_server_result_; + _impl_.~Impl_(); } -void TerminateResponse::Clear() { +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; @@ -3665,69 +3642,64 @@ void TerminateResponse::Clear() { } _impl_.terminate_ = false; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TerminateResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool terminate = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.terminate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* TerminateResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_server_result(this), + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); } @@ -3739,8 +3711,9 @@ ::uint8_t* TerminateResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3757,9 +3730,8 @@ ::size_t TerminateResponse::ByteSizeLong() const { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_server_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); } // bool terminate = 2; @@ -3770,14 +3742,15 @@ ::size_t TerminateResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TerminateResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - TerminateResponse::MergeImpl +const ::google::protobuf::Message::ClassData TerminateResponse::_class_data_ = { + TerminateResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TerminateResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* TerminateResponse::GetClassData() const { + return &_class_data_; +} -void TerminateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3792,7 +3765,7 @@ void TerminateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons if (from._internal_terminate() != 0) { _this->_internal_set_terminate(from._internal_terminate()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void TerminateResponse::CopyFrom(const TerminateResponse& from) { @@ -3802,15 +3775,18 @@ void TerminateResponse::CopyFrom(const TerminateResponse& from) { MergeFrom(from); } -bool TerminateResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool TerminateResponse::IsInitialized() const { return true; } -void TerminateResponse::InternalSwap(TerminateResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.terminate_) + sizeof(TerminateResponse::_impl_.terminate_) - PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_server_result_)>( @@ -3818,7 +3794,7 @@ void TerminateResponse::InternalSwap(TerminateResponse* other) { reinterpret_cast(&other->_impl_.action_server_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata TerminateResponse::GetMetadata() const { +::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]); @@ -3836,59 +3812,59 @@ class SetArmableResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::ActionServerResult& -SetArmableResponse::_Internal::action_server_result(const SetArmableResponse* msg) { +const ::mavsdk::rpc::action_server::ActionServerResult& SetArmableResponse::_Internal::action_server_result(const SetArmableResponse* msg) { return *msg->_impl_.action_server_result_; } -SetArmableResponse::SetArmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetArmableResponse::SetArmableResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetArmableResponse) } -SetArmableResponse::SetArmableResponse(const SetArmableResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetArmableResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_server_result_ = {}; } - SetArmableResponse::~SetArmableResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetArmableResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetArmableResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_server_result_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_server_result_; + _impl_.~Impl_(); } -void SetArmableResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SetArmableResponse::Clear() { +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; @@ -3899,66 +3875,65 @@ void SetArmableResponse::Clear() { _impl_.action_server_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetArmableResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetArmableResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_server_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3975,22 +3950,22 @@ ::size_t SetArmableResponse::ByteSizeLong() const { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_server_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetArmableResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetArmableResponse::MergeImpl +const ::google::protobuf::Message::ClassData SetArmableResponse::_class_data_ = { + SetArmableResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetArmableResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetArmableResponse::GetClassData() const { + return &_class_data_; +} -void SetArmableResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4002,7 +3977,7 @@ void SetArmableResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( from._internal_action_server_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetArmableResponse::CopyFrom(const SetArmableResponse& from) { @@ -4012,18 +3987,21 @@ void SetArmableResponse::CopyFrom(const SetArmableResponse& from) { MergeFrom(from); } -bool SetArmableResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetArmableResponse::IsInitialized() const { return true; } -void SetArmableResponse::InternalSwap(SetArmableResponse* other) { +::_pbi::CachedSize* SetArmableResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetArmableResponse::GetMetadata() const { +::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]); @@ -4041,59 +4019,59 @@ class SetDisarmableResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::ActionServerResult& -SetDisarmableResponse::_Internal::action_server_result(const SetDisarmableResponse* msg) { +const ::mavsdk::rpc::action_server::ActionServerResult& SetDisarmableResponse::_Internal::action_server_result(const SetDisarmableResponse* msg) { return *msg->_impl_.action_server_result_; } -SetDisarmableResponse::SetDisarmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetDisarmableResponse::SetDisarmableResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetDisarmableResponse) } -SetDisarmableResponse::SetDisarmableResponse(const SetDisarmableResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetDisarmableResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_server_result_ = {}; } - SetDisarmableResponse::~SetDisarmableResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetDisarmableResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetDisarmableResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_server_result_; -} - -void SetDisarmableResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_server_result_; + _impl_.~Impl_(); } -void SetDisarmableResponse::Clear() { +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; @@ -4104,66 +4082,65 @@ void SetDisarmableResponse::Clear() { _impl_.action_server_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetDisarmableResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetDisarmableResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_server_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4180,22 +4157,22 @@ ::size_t SetDisarmableResponse::ByteSizeLong() const { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_server_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetDisarmableResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetDisarmableResponse::MergeImpl +const ::google::protobuf::Message::ClassData SetDisarmableResponse::_class_data_ = { + SetDisarmableResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetDisarmableResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetDisarmableResponse::GetClassData() const { + return &_class_data_; +} -void SetDisarmableResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4207,7 +4184,7 @@ void SetDisarmableResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( from._internal_action_server_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetDisarmableResponse::CopyFrom(const SetDisarmableResponse& from) { @@ -4217,18 +4194,21 @@ void SetDisarmableResponse::CopyFrom(const SetDisarmableResponse& from) { MergeFrom(from); } -bool SetDisarmableResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetDisarmableResponse::IsInitialized() const { return true; } -void SetDisarmableResponse::InternalSwap(SetDisarmableResponse* other) { +::_pbi::CachedSize* SetDisarmableResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetDisarmableResponse::GetMetadata() const { +::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]); @@ -4246,59 +4226,59 @@ class SetAllowableFlightModesResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::ActionServerResult& -SetAllowableFlightModesResponse::_Internal::action_server_result(const SetAllowableFlightModesResponse* msg) { +const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowableFlightModesResponse::_Internal::action_server_result(const SetAllowableFlightModesResponse* msg) { return *msg->_impl_.action_server_result_; } -SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) } -SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(const SetAllowableFlightModesResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetAllowableFlightModesResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_server_result_ = {}; } - SetAllowableFlightModesResponse::~SetAllowableFlightModesResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetAllowableFlightModesResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_server_result_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_server_result_; + _impl_.~Impl_(); } -void SetAllowableFlightModesResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SetAllowableFlightModesResponse::Clear() { +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; @@ -4309,66 +4289,65 @@ void SetAllowableFlightModesResponse::Clear() { _impl_.action_server_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetAllowableFlightModesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetAllowableFlightModesResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_server_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4385,22 +4364,22 @@ ::size_t SetAllowableFlightModesResponse::ByteSizeLong() const { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_server_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAllowableFlightModesResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetAllowableFlightModesResponse::MergeImpl +const ::google::protobuf::Message::ClassData SetAllowableFlightModesResponse::_class_data_ = { + SetAllowableFlightModesResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAllowableFlightModesResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetAllowableFlightModesResponse::GetClassData() const { + return &_class_data_; +} -void SetAllowableFlightModesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4412,7 +4391,7 @@ void SetAllowableFlightModesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( from._internal_action_server_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetAllowableFlightModesResponse::CopyFrom(const SetAllowableFlightModesResponse& from) { @@ -4422,18 +4401,21 @@ void SetAllowableFlightModesResponse::CopyFrom(const SetAllowableFlightModesResp MergeFrom(from); } -bool SetAllowableFlightModesResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetAllowableFlightModesResponse::IsInitialized() const { return true; } -void SetAllowableFlightModesResponse::InternalSwap(SetAllowableFlightModesResponse* other) { +::_pbi::CachedSize* SetAllowableFlightModesResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetAllowableFlightModesResponse::GetMetadata() const { +::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]); @@ -4451,59 +4433,59 @@ class SetAllowTakeoffResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::ActionServerResult& -SetAllowTakeoffResponse::_Internal::action_server_result(const SetAllowTakeoffResponse* msg) { +const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowTakeoffResponse::_Internal::action_server_result(const SetAllowTakeoffResponse* msg) { return *msg->_impl_.action_server_result_; } -SetAllowTakeoffResponse::SetAllowTakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetAllowTakeoffResponse::SetAllowTakeoffResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) } -SetAllowTakeoffResponse::SetAllowTakeoffResponse(const SetAllowTakeoffResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetAllowTakeoffResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.action_server_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_server_result_ = {}; } - SetAllowTakeoffResponse::~SetAllowTakeoffResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetAllowTakeoffResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.action_server_result_; -} - -void SetAllowTakeoffResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.action_server_result_; + _impl_.~Impl_(); } -void SetAllowTakeoffResponse::Clear() { +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; @@ -4514,66 +4496,65 @@ void SetAllowTakeoffResponse::Clear() { _impl_.action_server_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetAllowTakeoffResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetAllowTakeoffResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::action_server_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4590,22 +4571,22 @@ ::size_t SetAllowTakeoffResponse::ByteSizeLong() const { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.action_server_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAllowTakeoffResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetAllowTakeoffResponse::MergeImpl +const ::google::protobuf::Message::ClassData SetAllowTakeoffResponse::_class_data_ = { + SetAllowTakeoffResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAllowTakeoffResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetAllowTakeoffResponse::GetClassData() const { + return &_class_data_; +} -void SetAllowTakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4617,7 +4598,7 @@ void SetAllowTakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( from._internal_action_server_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetAllowTakeoffResponse::CopyFrom(const SetAllowTakeoffResponse& from) { @@ -4627,18 +4608,21 @@ void SetAllowTakeoffResponse::CopyFrom(const SetAllowTakeoffResponse& from) { MergeFrom(from); } -bool SetAllowTakeoffResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetAllowTakeoffResponse::IsInitialized() const { return true; } -void SetAllowTakeoffResponse::InternalSwap(SetAllowTakeoffResponse* other) { +::_pbi::CachedSize* SetAllowTakeoffResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetAllowTakeoffResponse::GetMetadata() const { +::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]); @@ -4656,59 +4640,59 @@ class GetAllowableFlightModesResponse::_Internal { } }; -const ::mavsdk::rpc::action_server::AllowableFlightModes& -GetAllowableFlightModesResponse::_Internal::flight_modes(const GetAllowableFlightModesResponse* msg) { +const ::mavsdk::rpc::action_server::AllowableFlightModes& GetAllowableFlightModesResponse::_Internal::flight_modes(const GetAllowableFlightModesResponse* msg) { return *msg->_impl_.flight_modes_; } -GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) } -GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(const GetAllowableFlightModesResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GetAllowableFlightModesResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.flight_modes_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.flight_modes_ = new ::mavsdk::rpc::action_server::AllowableFlightModes(*from._impl_.flight_modes_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.flight_modes_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.flight_modes_ = {}; } - GetAllowableFlightModesResponse::~GetAllowableFlightModesResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GetAllowableFlightModesResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.flight_modes_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.flight_modes_; + _impl_.~Impl_(); } -void GetAllowableFlightModesResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GetAllowableFlightModesResponse::Clear() { +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; @@ -4719,66 +4703,65 @@ void GetAllowableFlightModesResponse::Clear() { _impl_.flight_modes_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetAllowableFlightModesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_flight_modes(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* GetAllowableFlightModesResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::flight_modes(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4795,22 +4778,22 @@ ::size_t GetAllowableFlightModesResponse::ByteSizeLong() const { // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.flight_modes_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.flight_modes_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAllowableFlightModesResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GetAllowableFlightModesResponse::MergeImpl +const ::google::protobuf::Message::ClassData GetAllowableFlightModesResponse::_class_data_ = { + GetAllowableFlightModesResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAllowableFlightModesResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* GetAllowableFlightModesResponse::GetClassData() const { + return &_class_data_; +} -void GetAllowableFlightModesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4822,7 +4805,7 @@ void GetAllowableFlightModesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message _this->_internal_mutable_flight_modes()->::mavsdk::rpc::action_server::AllowableFlightModes::MergeFrom( from._internal_flight_modes()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetAllowableFlightModesResponse::CopyFrom(const GetAllowableFlightModesResponse& from) { @@ -4832,18 +4815,21 @@ void GetAllowableFlightModesResponse::CopyFrom(const GetAllowableFlightModesResp MergeFrom(from); } -bool GetAllowableFlightModesResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool GetAllowableFlightModesResponse::IsInitialized() const { return true; } -void GetAllowableFlightModesResponse::InternalSwap(GetAllowableFlightModesResponse* other) { +::_pbi::CachedSize* GetAllowableFlightModesResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata GetAllowableFlightModesResponse::GetMetadata() const { +::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]); @@ -4854,50 +4840,43 @@ class AllowableFlightModes::_Internal { public: }; -AllowableFlightModes::AllowableFlightModes(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +AllowableFlightModes::AllowableFlightModes(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.AllowableFlightModes) } -AllowableFlightModes::AllowableFlightModes(const AllowableFlightModes& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.AllowableFlightModes) +AllowableFlightModes::AllowableFlightModes( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.can_auto_mode_) { false } - - , decltype(_impl_.can_guided_mode_) { false } - - , decltype(_impl_.can_stabilize_mode_) { false } - - , /*decltype(_impl_._cached_size_)*/{} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void AllowableFlightModes::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void AllowableFlightModes::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void AllowableFlightModes::Clear() { +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; @@ -4905,70 +4884,65 @@ void AllowableFlightModes::Clear() { ::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* AllowableFlightModes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bool can_auto_mode = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.can_auto_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool can_guided_mode = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.can_guided_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool can_stabilize_mode = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - _impl_.can_stabilize_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // 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 + {{ + }}, +}; + ::uint8_t* AllowableFlightModes::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // bool can_auto_mode = 1; if (this->_internal_can_auto_mode() != 0) { @@ -4992,8 +4966,9 @@ ::uint8_t* AllowableFlightModes::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -5025,14 +5000,15 @@ ::size_t AllowableFlightModes::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AllowableFlightModes::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - AllowableFlightModes::MergeImpl +const ::google::protobuf::Message::ClassData AllowableFlightModes::_class_data_ = { + AllowableFlightModes::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AllowableFlightModes::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* AllowableFlightModes::GetClassData() const { + return &_class_data_; +} -void AllowableFlightModes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5049,7 +5025,7 @@ void AllowableFlightModes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, c if (from._internal_can_stabilize_mode() != 0) { _this->_internal_set_can_stabilize_mode(from._internal_can_stabilize_mode()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void AllowableFlightModes::CopyFrom(const AllowableFlightModes& from) { @@ -5059,14 +5035,17 @@ void AllowableFlightModes::CopyFrom(const AllowableFlightModes& from) { MergeFrom(from); } -bool AllowableFlightModes::IsInitialized() const { +PROTOBUF_NOINLINE bool AllowableFlightModes::IsInitialized() const { return true; } -void AllowableFlightModes::InternalSwap(AllowableFlightModes* other) { +::_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_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::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_)>( @@ -5074,7 +5053,7 @@ void AllowableFlightModes::InternalSwap(AllowableFlightModes* other) { reinterpret_cast(&other->_impl_.can_auto_mode_)); } -::PROTOBUF_NAMESPACE_ID::Metadata AllowableFlightModes::GetMetadata() const { +::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]); @@ -5085,48 +5064,43 @@ class ArmDisarm::_Internal { public: }; -ArmDisarm::ArmDisarm(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ArmDisarm::ArmDisarm(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ArmDisarm) } -ArmDisarm::ArmDisarm(const ArmDisarm& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.arm_) { false } - - , decltype(_impl_.force_) { false } - - , /*decltype(_impl_._cached_size_)*/{} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ArmDisarm::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void ArmDisarm::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void ArmDisarm::Clear() { +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; @@ -5134,61 +5108,58 @@ void ArmDisarm::Clear() { ::memset(&_impl_.arm_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.force_) - reinterpret_cast(&_impl_.arm_)) + sizeof(_impl_.force_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ArmDisarm::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bool arm = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.arm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool force = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.force_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* ArmDisarm::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // bool arm = 1; if (this->_internal_arm() != 0) { @@ -5205,8 +5176,9 @@ ::uint8_t* ArmDisarm::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -5233,14 +5205,15 @@ ::size_t ArmDisarm::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ArmDisarm::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ArmDisarm::MergeImpl +const ::google::protobuf::Message::ClassData ArmDisarm::_class_data_ = { + ArmDisarm::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ArmDisarm::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ArmDisarm::GetClassData() const { + return &_class_data_; +} -void ArmDisarm::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5254,7 +5227,7 @@ void ArmDisarm::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT if (from._internal_force() != 0) { _this->_internal_set_force(from._internal_force()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ArmDisarm::CopyFrom(const ArmDisarm& from) { @@ -5264,14 +5237,17 @@ void ArmDisarm::CopyFrom(const ArmDisarm& from) { MergeFrom(from); } -bool ArmDisarm::IsInitialized() const { +PROTOBUF_NOINLINE bool ArmDisarm::IsInitialized() const { return true; } -void ArmDisarm::InternalSwap(ArmDisarm* other) { +::_pbi::CachedSize* ArmDisarm::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void ArmDisarm::InternalSwap(ArmDisarm* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.force_) + sizeof(ArmDisarm::_impl_.force_) - PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.arm_)>( @@ -5279,7 +5255,7 @@ void ArmDisarm::InternalSwap(ArmDisarm* other) { reinterpret_cast(&other->_impl_.arm_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ArmDisarm::GetMetadata() const { +::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]); @@ -5290,132 +5266,115 @@ class ActionServerResult::_Internal { public: }; -ActionServerResult::ActionServerResult(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ActionServerResult::ActionServerResult(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ActionServerResult) } -ActionServerResult::ActionServerResult(const ActionServerResult& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ActionServerResult* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.result_str_) {} - - , decltype(_impl_.result_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +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::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_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.result_str_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_result_str().empty()) { - _this->_impl_.result_str_.Set(from._internal_result_str(), _this->GetArenaForAllocation()); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.result_str_) {} - - , decltype(_impl_.result_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.result_str_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.result_ = {}; } - ActionServerResult::~ActionServerResult() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ActionServerResult) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ActionServerResult::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.result_str_.Destroy(); + _impl_.~Impl_(); } -void ActionServerResult::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ActionServerResult::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ActionServerResult::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_result(static_cast<::mavsdk::rpc::action_server::ActionServerResult_Result>(val)); - } else { - goto handle_unusual; - } - continue; - // string result_str = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_result_str(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.action_server.ActionServerResult.result_str")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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" + }}, +}; + ::uint8_t* ActionServerResult::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; if (this->_internal_result() != 0) { @@ -5427,14 +5386,15 @@ ::uint8_t* ActionServerResult::_InternalSerialize( // string result_str = 2; if (!this->_internal_result_str().empty()) { const std::string& _s = this->_internal_result_str(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.action_server.ActionServerResult.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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -5450,7 +5410,7 @@ ::size_t ActionServerResult::ByteSizeLong() const { // string result_str = 2; if (!this->_internal_result_str().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_result_str()); } @@ -5463,14 +5423,15 @@ ::size_t ActionServerResult::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ActionServerResult::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ActionServerResult::MergeImpl +const ::google::protobuf::Message::ClassData ActionServerResult::_class_data_ = { + ActionServerResult::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ActionServerResult::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ActionServerResult::GetClassData() const { + return &_class_data_; +} -void ActionServerResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5484,7 +5445,7 @@ void ActionServerResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con if (from._internal_result() != 0) { _this->_internal_set_result(from._internal_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ActionServerResult::CopyFrom(const ActionServerResult& from) { @@ -5494,21 +5455,23 @@ void ActionServerResult::CopyFrom(const ActionServerResult& from) { MergeFrom(from); } -bool ActionServerResult::IsInitialized() const { +PROTOBUF_NOINLINE bool ActionServerResult::IsInitialized() const { return true; } -void ActionServerResult::InternalSwap(ActionServerResult* other) { +::_pbi::CachedSize* ActionServerResult::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void ActionServerResult::InternalSwap(ActionServerResult* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, lhs_arena, - &other->_impl_.result_str_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); swap(_impl_.result_, other->_impl_.result_); } -::PROTOBUF_NAMESPACE_ID::Metadata ActionServerResult::GetMetadata() const { +::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]); @@ -5517,115 +5480,9 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ActionServerResult::GetMetadata() const { } // namespace action_server } // namespace rpc } // namespace mavsdk -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SetAllowTakeoffRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SetAllowTakeoffRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SetAllowTakeoffRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SetArmableRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SetArmableRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SetArmableRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SetDisarmableRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SetDisarmableRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SetDisarmableRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SetAllowableFlightModesRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SetAllowableFlightModesRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SetAllowableFlightModesRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::GetAllowableFlightModesRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::GetAllowableFlightModesRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::GetAllowableFlightModesRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SubscribeArmDisarmRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SubscribeArmDisarmRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SubscribeArmDisarmRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SubscribeTakeoffRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SubscribeTakeoffRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SubscribeTakeoffRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SubscribeLandRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SubscribeLandRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SubscribeLandRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SubscribeRebootRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SubscribeRebootRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SubscribeRebootRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SubscribeShutdownRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SubscribeShutdownRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SubscribeShutdownRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SubscribeTerminateRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SubscribeTerminateRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SubscribeTerminateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::ArmDisarmResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::ArmDisarmResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::ArmDisarmResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::FlightModeChangeResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::FlightModeChangeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::FlightModeChangeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::TakeoffResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::TakeoffResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::TakeoffResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::LandResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::LandResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::LandResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::RebootResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::RebootResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::RebootResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::ShutdownResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::ShutdownResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::ShutdownResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::TerminateResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::TerminateResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::TerminateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SetArmableResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SetArmableResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SetArmableResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SetDisarmableResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SetDisarmableResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SetDisarmableResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SetAllowableFlightModesResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SetAllowableFlightModesResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SetAllowableFlightModesResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::SetAllowTakeoffResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::SetAllowTakeoffResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::SetAllowTakeoffResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::GetAllowableFlightModesResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::GetAllowableFlightModesResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::GetAllowableFlightModesResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::AllowableFlightModes* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::AllowableFlightModes >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::AllowableFlightModes >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::ArmDisarm* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::ArmDisarm >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::ArmDisarm >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::action_server::ActionServerResult* -Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::ActionServerResult >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::ActionServerResult >(arena); -} -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) #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 7d3f2ac947..da1941390c 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,5 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: action_server/action_server.proto +// Protobuf C++ Version: 4.25.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto_2epb_2eh @@ -7,15 +8,16 @@ #include #include #include +#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4023000 +#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 4023002 < PROTOBUF_MIN_PROTOC_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." @@ -25,6 +27,7 @@ #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" #include "google/protobuf/generated_message_bases.h" +#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -41,17 +44,19 @@ #define PROTOBUF_INTERNAL_EXPORT_action_5fserver_2faction_5fserver_2eproto -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_action_5fserver_2faction_5fserver_2eproto { static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_action_5fserver_2faction_5fserver_2eproto; namespace mavsdk { namespace rpc { @@ -140,62 +145,10 @@ extern TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_ } // namespace action_server } // namespace rpc } // namespace mavsdk -PROTOBUF_NAMESPACE_OPEN -template <> -::mavsdk::rpc::action_server::ActionServerResult* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(Arena*); -template <> -::mavsdk::rpc::action_server::AllowableFlightModes* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(Arena*); -template <> -::mavsdk::rpc::action_server::ArmDisarm* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ArmDisarm>(Arena*); -template <> -::mavsdk::rpc::action_server::ArmDisarmResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ArmDisarmResponse>(Arena*); -template <> -::mavsdk::rpc::action_server::FlightModeChangeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::FlightModeChangeResponse>(Arena*); -template <> -::mavsdk::rpc::action_server::GetAllowableFlightModesRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::GetAllowableFlightModesRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::GetAllowableFlightModesResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::GetAllowableFlightModesResponse>(Arena*); -template <> -::mavsdk::rpc::action_server::LandResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::LandResponse>(Arena*); -template <> -::mavsdk::rpc::action_server::RebootResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::RebootResponse>(Arena*); -template <> -::mavsdk::rpc::action_server::SetAllowTakeoffRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowTakeoffRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::SetAllowTakeoffResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowTakeoffResponse>(Arena*); -template <> -::mavsdk::rpc::action_server::SetAllowableFlightModesRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowableFlightModesRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::SetAllowableFlightModesResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowableFlightModesResponse>(Arena*); -template <> -::mavsdk::rpc::action_server::SetArmableRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetArmableRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::SetArmableResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetArmableResponse>(Arena*); -template <> -::mavsdk::rpc::action_server::SetDisarmableRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetDisarmableRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::SetDisarmableResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetDisarmableResponse>(Arena*); -template <> -::mavsdk::rpc::action_server::ShutdownResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ShutdownResponse>(Arena*); -template <> -::mavsdk::rpc::action_server::SubscribeArmDisarmRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeArmDisarmRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::SubscribeLandRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeLandRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::SubscribeRebootRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeRebootRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::SubscribeShutdownRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeShutdownRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::SubscribeTakeoffRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeTakeoffRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::SubscribeTerminateRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeTerminateRequest>(Arena*); -template <> -::mavsdk::rpc::action_server::TakeoffResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::TakeoffResponse>(Arena*); -template <> -::mavsdk::rpc::action_server::TerminateResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::TerminateResponse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google namespace mavsdk { namespace rpc { @@ -221,10 +174,11 @@ enum ActionServerResult_Result : int { }; 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 int ActionServerResult_Result_Result_ARRAYSIZE = 12 + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* ActionServerResult_Result_descriptor(); template const std::string& ActionServerResult_Result_Name(T value) { @@ -235,12 +189,12 @@ const std::string& ActionServerResult_Result_Name(T value) { } template <> inline const std::string& ActionServerResult_Result_Name(ActionServerResult_Result value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool ActionServerResult_Result_Parse(absl::string_view name, ActionServerResult_Result* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( ActionServerResult_Result_descriptor(), name, value); } enum FlightMode : int { @@ -265,10 +219,11 @@ enum FlightMode : int { }; bool FlightMode_IsValid(int value); +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 ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* FlightMode_descriptor(); template const std::string& FlightMode_Name(T value) { @@ -279,12 +234,12 @@ const std::string& FlightMode_Name(T value) { } template <> inline const std::string& FlightMode_Name(FlightMode value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool FlightMode_Parse(absl::string_view name, FlightMode* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( FlightMode_descriptor(), name, value); } @@ -293,29 +248,29 @@ inline bool FlightMode_Parse(absl::string_view name, FlightMode* value) { // ------------------------------------------------------------------- -class SetAllowTakeoffRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffRequest) */ { +class SubscribeTerminateRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTerminateRequest) */ { public: - inline SetAllowTakeoffRequest() : SetAllowTakeoffRequest(nullptr) {} - ~SetAllowTakeoffRequest() override; + inline SubscribeTerminateRequest() : SubscribeTerminateRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR SetAllowTakeoffRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeTerminateRequest(::google::protobuf::internal::ConstantInitialized); - SetAllowTakeoffRequest(const SetAllowTakeoffRequest& from); - SetAllowTakeoffRequest(SetAllowTakeoffRequest&& from) noexcept - : SetAllowTakeoffRequest() { + inline SubscribeTerminateRequest(const SubscribeTerminateRequest& from) + : SubscribeTerminateRequest(nullptr, from) {} + SubscribeTerminateRequest(SubscribeTerminateRequest&& from) noexcept + : SubscribeTerminateRequest() { *this = ::std::move(from); } - inline SetAllowTakeoffRequest& operator=(const SetAllowTakeoffRequest& from) { + inline SubscribeTerminateRequest& operator=(const SubscribeTerminateRequest& from) { CopyFrom(from); return *this; } - inline SetAllowTakeoffRequest& operator=(SetAllowTakeoffRequest&& from) noexcept { + inline SubscribeTerminateRequest& operator=(SubscribeTerminateRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -325,152 +280,133 @@ class SetAllowTakeoffRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetAllowTakeoffRequest& default_instance() { + static const SubscribeTerminateRequest& default_instance() { return *internal_default_instance(); } - static inline const SetAllowTakeoffRequest* internal_default_instance() { - return reinterpret_cast( - &_SetAllowTakeoffRequest_default_instance_); + static inline const SubscribeTerminateRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeTerminateRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 11; - friend void swap(SetAllowTakeoffRequest& a, SetAllowTakeoffRequest& b) { + friend void swap(SubscribeTerminateRequest& a, SubscribeTerminateRequest& b) { a.Swap(&b); } - inline void Swap(SetAllowTakeoffRequest* other) { + inline void Swap(SubscribeTerminateRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetAllowTakeoffRequest* other) { + void UnsafeArenaSwap(SubscribeTerminateRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetAllowTakeoffRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeTerminateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetAllowTakeoffRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetAllowTakeoffRequest& from) { - SetAllowTakeoffRequest::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetAllowTakeoffRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowTakeoffRequest"; + return "mavsdk.rpc.action_server.SubscribeTerminateRequest"; } protected: - explicit SetAllowTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeTerminateRequest(::google::protobuf::Arena* arena); + SubscribeTerminateRequest(::google::protobuf::Arena* arena, const SubscribeTerminateRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeTerminateRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - bool allow_takeoff_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; };// ------------------------------------------------------------------- -class SetArmableRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableRequest) */ { +class SubscribeTakeoffRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTakeoffRequest) */ { public: - inline SetArmableRequest() : SetArmableRequest(nullptr) {} - ~SetArmableRequest() override; + inline SubscribeTakeoffRequest() : SubscribeTakeoffRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR SetArmableRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeTakeoffRequest(::google::protobuf::internal::ConstantInitialized); - SetArmableRequest(const SetArmableRequest& from); - SetArmableRequest(SetArmableRequest&& from) noexcept - : SetArmableRequest() { + inline SubscribeTakeoffRequest(const SubscribeTakeoffRequest& from) + : SubscribeTakeoffRequest(nullptr, from) {} + SubscribeTakeoffRequest(SubscribeTakeoffRequest&& from) noexcept + : SubscribeTakeoffRequest() { *this = ::std::move(from); } - inline SetArmableRequest& operator=(const SetArmableRequest& from) { + inline SubscribeTakeoffRequest& operator=(const SubscribeTakeoffRequest& from) { CopyFrom(from); return *this; } - inline SetArmableRequest& operator=(SetArmableRequest&& from) noexcept { + inline SubscribeTakeoffRequest& operator=(SubscribeTakeoffRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -480,164 +416,133 @@ class SetArmableRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetArmableRequest& default_instance() { + static const SubscribeTakeoffRequest& default_instance() { return *internal_default_instance(); } - static inline const SetArmableRequest* internal_default_instance() { - return reinterpret_cast( - &_SetArmableRequest_default_instance_); + static inline const SubscribeTakeoffRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeTakeoffRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 7; - friend void swap(SetArmableRequest& a, SetArmableRequest& b) { + friend void swap(SubscribeTakeoffRequest& a, SubscribeTakeoffRequest& b) { a.Swap(&b); } - inline void Swap(SetArmableRequest* other) { + inline void Swap(SubscribeTakeoffRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetArmableRequest* other) { + void UnsafeArenaSwap(SubscribeTakeoffRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetArmableRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeTakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetArmableRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetArmableRequest& from) { - SetArmableRequest::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetArmableRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetArmableRequest"; + return "mavsdk.rpc.action_server.SubscribeTakeoffRequest"; } protected: - explicit SetArmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeTakeoffRequest(::google::protobuf::Arena* arena); + SubscribeTakeoffRequest(::google::protobuf::Arena* arena, const SubscribeTakeoffRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeTakeoffRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - bool armable_; - bool force_armable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; };// ------------------------------------------------------------------- -class SetDisarmableRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableRequest) */ { +class SubscribeShutdownRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeShutdownRequest) */ { public: - inline SetDisarmableRequest() : SetDisarmableRequest(nullptr) {} - ~SetDisarmableRequest() override; + inline SubscribeShutdownRequest() : SubscribeShutdownRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR SetDisarmableRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeShutdownRequest(::google::protobuf::internal::ConstantInitialized); - SetDisarmableRequest(const SetDisarmableRequest& from); - SetDisarmableRequest(SetDisarmableRequest&& from) noexcept - : SetDisarmableRequest() { + inline SubscribeShutdownRequest(const SubscribeShutdownRequest& from) + : SubscribeShutdownRequest(nullptr, from) {} + SubscribeShutdownRequest(SubscribeShutdownRequest&& from) noexcept + : SubscribeShutdownRequest() { *this = ::std::move(from); } - inline SetDisarmableRequest& operator=(const SetDisarmableRequest& from) { + inline SubscribeShutdownRequest& operator=(const SubscribeShutdownRequest& from) { CopyFrom(from); return *this; } - inline SetDisarmableRequest& operator=(SetDisarmableRequest&& from) noexcept { + inline SubscribeShutdownRequest& operator=(SubscribeShutdownRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -647,164 +552,133 @@ class SetDisarmableRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetDisarmableRequest& default_instance() { + static const SubscribeShutdownRequest& default_instance() { return *internal_default_instance(); } - static inline const SetDisarmableRequest* internal_default_instance() { - return reinterpret_cast( - &_SetDisarmableRequest_default_instance_); + static inline const SubscribeShutdownRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeShutdownRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 10; - friend void swap(SetDisarmableRequest& a, SetDisarmableRequest& b) { + friend void swap(SubscribeShutdownRequest& a, SubscribeShutdownRequest& b) { a.Swap(&b); } - inline void Swap(SetDisarmableRequest* other) { + inline void Swap(SubscribeShutdownRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetDisarmableRequest* other) { + void UnsafeArenaSwap(SubscribeShutdownRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetDisarmableRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeShutdownRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetDisarmableRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetDisarmableRequest& from) { - SetDisarmableRequest::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetDisarmableRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetDisarmableRequest"; + return "mavsdk.rpc.action_server.SubscribeShutdownRequest"; } protected: - explicit SetDisarmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeShutdownRequest(::google::protobuf::Arena* arena); + SubscribeShutdownRequest(::google::protobuf::Arena* arena, const SubscribeShutdownRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeShutdownRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - bool disarmable_; - bool force_disarmable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; };// ------------------------------------------------------------------- -class SetAllowableFlightModesRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) */ { +class SubscribeRebootRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeRebootRequest) */ { public: - inline SetAllowableFlightModesRequest() : SetAllowableFlightModesRequest(nullptr) {} - ~SetAllowableFlightModesRequest() override; + inline SubscribeRebootRequest() : SubscribeRebootRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeRebootRequest(::google::protobuf::internal::ConstantInitialized); - SetAllowableFlightModesRequest(const SetAllowableFlightModesRequest& from); - SetAllowableFlightModesRequest(SetAllowableFlightModesRequest&& from) noexcept - : SetAllowableFlightModesRequest() { + inline SubscribeRebootRequest(const SubscribeRebootRequest& from) + : SubscribeRebootRequest(nullptr, from) {} + SubscribeRebootRequest(SubscribeRebootRequest&& from) noexcept + : SubscribeRebootRequest() { *this = ::std::move(from); } - inline SetAllowableFlightModesRequest& operator=(const SetAllowableFlightModesRequest& from) { + inline SubscribeRebootRequest& operator=(const SubscribeRebootRequest& from) { CopyFrom(from); return *this; } - inline SetAllowableFlightModesRequest& operator=(SetAllowableFlightModesRequest&& from) noexcept { + inline SubscribeRebootRequest& operator=(SubscribeRebootRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -814,156 +688,133 @@ class SetAllowableFlightModesRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetAllowableFlightModesRequest& default_instance() { + static const SubscribeRebootRequest& default_instance() { return *internal_default_instance(); } - static inline const SetAllowableFlightModesRequest* internal_default_instance() { - return reinterpret_cast( - &_SetAllowableFlightModesRequest_default_instance_); + static inline const SubscribeRebootRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeRebootRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 9; - friend void swap(SetAllowableFlightModesRequest& a, SetAllowableFlightModesRequest& b) { + friend void swap(SubscribeRebootRequest& a, SubscribeRebootRequest& b) { a.Swap(&b); } - inline void Swap(SetAllowableFlightModesRequest* other) { + inline void Swap(SubscribeRebootRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetAllowableFlightModesRequest* other) { + void UnsafeArenaSwap(SubscribeRebootRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetAllowableFlightModesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeRebootRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetAllowableFlightModesRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetAllowableFlightModesRequest& from) { - SetAllowableFlightModesRequest::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetAllowableFlightModesRequest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowableFlightModesRequest"; + return "mavsdk.rpc.action_server.SubscribeRebootRequest"; } protected: - explicit SetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeRebootRequest(::google::protobuf::Arena* arena); + SubscribeRebootRequest(::google::protobuf::Arena* arena, const SubscribeRebootRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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* flight_modes); - private: - const ::mavsdk::rpc::action_server::AllowableFlightModes& _internal_flight_modes() const; - ::mavsdk::rpc::action_server::AllowableFlightModes* _internal_mutable_flight_modes(); - public: - void unsafe_arena_set_allocated_flight_modes( - ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes); - ::mavsdk::rpc::action_server::AllowableFlightModes* unsafe_arena_release_flight_modes(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeRebootRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; };// ------------------------------------------------------------------- -class GetAllowableFlightModesRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) */ { +class SubscribeLandRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeLandRequest) */ { public: - inline GetAllowableFlightModesRequest() : GetAllowableFlightModesRequest(nullptr) {} + inline SubscribeLandRequest() : SubscribeLandRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeLandRequest(::google::protobuf::internal::ConstantInitialized); - GetAllowableFlightModesRequest(const GetAllowableFlightModesRequest& from); - GetAllowableFlightModesRequest(GetAllowableFlightModesRequest&& from) noexcept - : GetAllowableFlightModesRequest() { + inline SubscribeLandRequest(const SubscribeLandRequest& from) + : SubscribeLandRequest(nullptr, from) {} + SubscribeLandRequest(SubscribeLandRequest&& from) noexcept + : SubscribeLandRequest() { *this = ::std::move(from); } - inline GetAllowableFlightModesRequest& operator=(const GetAllowableFlightModesRequest& from) { + inline SubscribeLandRequest& operator=(const SubscribeLandRequest& from) { CopyFrom(from); return *this; } - inline GetAllowableFlightModesRequest& operator=(GetAllowableFlightModesRequest&& from) noexcept { + inline SubscribeLandRequest& operator=(SubscribeLandRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -973,121 +824,133 @@ class GetAllowableFlightModesRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetAllowableFlightModesRequest& default_instance() { + static const SubscribeLandRequest& default_instance() { return *internal_default_instance(); } - static inline const GetAllowableFlightModesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetAllowableFlightModesRequest_default_instance_); + static inline const SubscribeLandRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeLandRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 8; - friend void swap(GetAllowableFlightModesRequest& a, GetAllowableFlightModesRequest& b) { + friend void swap(SubscribeLandRequest& a, SubscribeLandRequest& b) { a.Swap(&b); } - inline void Swap(GetAllowableFlightModesRequest* other) { + inline void Swap(SubscribeLandRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetAllowableFlightModesRequest* other) { + void UnsafeArenaSwap(SubscribeLandRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetAllowableFlightModesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeLandRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetAllowableFlightModesRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeLandRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetAllowableFlightModesRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeLandRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.GetAllowableFlightModesRequest"; + return "mavsdk.rpc.action_server.SubscribeLandRequest"; } protected: - explicit GetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeLandRequest(::google::protobuf::Arena* arena); + SubscribeLandRequest(::google::protobuf::Arena* arena, const SubscribeLandRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeLandRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) */ { +class SubscribeFlightModeChangeRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) */ { public: - inline SubscribeArmDisarmRequest() : SubscribeArmDisarmRequest(nullptr) {} + inline SubscribeFlightModeChangeRequest() : SubscribeFlightModeChangeRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequest(::google::protobuf::internal::ConstantInitialized); - SubscribeArmDisarmRequest(const SubscribeArmDisarmRequest& from); - SubscribeArmDisarmRequest(SubscribeArmDisarmRequest&& from) noexcept - : SubscribeArmDisarmRequest() { + inline SubscribeFlightModeChangeRequest(const SubscribeFlightModeChangeRequest& from) + : SubscribeFlightModeChangeRequest(nullptr, from) {} + SubscribeFlightModeChangeRequest(SubscribeFlightModeChangeRequest&& from) noexcept + : SubscribeFlightModeChangeRequest() { *this = ::std::move(from); } - inline SubscribeArmDisarmRequest& operator=(const SubscribeArmDisarmRequest& from) { + inline SubscribeFlightModeChangeRequest& operator=(const SubscribeFlightModeChangeRequest& from) { CopyFrom(from); return *this; } - inline SubscribeArmDisarmRequest& operator=(SubscribeArmDisarmRequest&& from) noexcept { + inline SubscribeFlightModeChangeRequest& operator=(SubscribeFlightModeChangeRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1097,121 +960,133 @@ class SubscribeArmDisarmRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeArmDisarmRequest& default_instance() { + static const SubscribeFlightModeChangeRequest& default_instance() { return *internal_default_instance(); } - static inline const SubscribeArmDisarmRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeArmDisarmRequest_default_instance_); + static inline const SubscribeFlightModeChangeRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeFlightModeChangeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 6; - friend void swap(SubscribeArmDisarmRequest& a, SubscribeArmDisarmRequest& b) { + friend void swap(SubscribeFlightModeChangeRequest& a, SubscribeFlightModeChangeRequest& b) { a.Swap(&b); } - inline void Swap(SubscribeArmDisarmRequest* other) { + inline void Swap(SubscribeFlightModeChangeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeArmDisarmRequest* other) { + void UnsafeArenaSwap(SubscribeFlightModeChangeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeArmDisarmRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeFlightModeChangeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeArmDisarmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeFlightModeChangeRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeArmDisarmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeFlightModeChangeRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeArmDisarmRequest"; + return "mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest"; } protected: - explicit SubscribeArmDisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeFlightModeChangeRequest(::google::protobuf::Arena* arena); + SubscribeFlightModeChangeRequest(::google::protobuf::Arena* arena, const SubscribeFlightModeChangeRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) */ { +class SubscribeArmDisarmRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) */ { public: - inline SubscribeFlightModeChangeRequest() : SubscribeFlightModeChangeRequest(nullptr) {} + inline SubscribeArmDisarmRequest() : SubscribeArmDisarmRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest(::google::protobuf::internal::ConstantInitialized); - SubscribeFlightModeChangeRequest(const SubscribeFlightModeChangeRequest& from); - SubscribeFlightModeChangeRequest(SubscribeFlightModeChangeRequest&& from) noexcept - : SubscribeFlightModeChangeRequest() { + inline SubscribeArmDisarmRequest(const SubscribeArmDisarmRequest& from) + : SubscribeArmDisarmRequest(nullptr, from) {} + SubscribeArmDisarmRequest(SubscribeArmDisarmRequest&& from) noexcept + : SubscribeArmDisarmRequest() { *this = ::std::move(from); } - inline SubscribeFlightModeChangeRequest& operator=(const SubscribeFlightModeChangeRequest& from) { + inline SubscribeArmDisarmRequest& operator=(const SubscribeArmDisarmRequest& from) { CopyFrom(from); return *this; } - inline SubscribeFlightModeChangeRequest& operator=(SubscribeFlightModeChangeRequest&& from) noexcept { + inline SubscribeArmDisarmRequest& operator=(SubscribeArmDisarmRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1221,121 +1096,134 @@ class SubscribeFlightModeChangeRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeFlightModeChangeRequest& default_instance() { + static const SubscribeArmDisarmRequest& default_instance() { return *internal_default_instance(); } - static inline const SubscribeFlightModeChangeRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeFlightModeChangeRequest_default_instance_); + static inline const SubscribeArmDisarmRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeArmDisarmRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 5; - friend void swap(SubscribeFlightModeChangeRequest& a, SubscribeFlightModeChangeRequest& b) { + friend void swap(SubscribeArmDisarmRequest& a, SubscribeArmDisarmRequest& b) { a.Swap(&b); } - inline void Swap(SubscribeFlightModeChangeRequest* other) { + inline void Swap(SubscribeArmDisarmRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeFlightModeChangeRequest* other) { + void UnsafeArenaSwap(SubscribeArmDisarmRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeFlightModeChangeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeArmDisarmRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeFlightModeChangeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeArmDisarmRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeFlightModeChangeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeArmDisarmRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest"; + return "mavsdk.rpc.action_server.SubscribeArmDisarmRequest"; } protected: - explicit SubscribeFlightModeChangeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeArmDisarmRequest(::google::protobuf::Arena* arena); + SubscribeArmDisarmRequest(::google::protobuf::Arena* arena, const SubscribeArmDisarmRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTakeoffRequest) */ { +class SetDisarmableRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableRequest) */ { public: - inline SubscribeTakeoffRequest() : SubscribeTakeoffRequest(nullptr) {} + inline SetDisarmableRequest() : SetDisarmableRequest(nullptr) {} + ~SetDisarmableRequest() override; template - explicit PROTOBUF_CONSTEXPR SubscribeTakeoffRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetDisarmableRequest(::google::protobuf::internal::ConstantInitialized); - SubscribeTakeoffRequest(const SubscribeTakeoffRequest& from); - SubscribeTakeoffRequest(SubscribeTakeoffRequest&& from) noexcept - : SubscribeTakeoffRequest() { + inline SetDisarmableRequest(const SetDisarmableRequest& from) + : SetDisarmableRequest(nullptr, from) {} + SetDisarmableRequest(SetDisarmableRequest&& from) noexcept + : SetDisarmableRequest() { *this = ::std::move(from); } - inline SubscribeTakeoffRequest& operator=(const SubscribeTakeoffRequest& from) { + inline SetDisarmableRequest& operator=(const SetDisarmableRequest& from) { CopyFrom(from); return *this; } - inline SubscribeTakeoffRequest& operator=(SubscribeTakeoffRequest&& from) noexcept { + inline SetDisarmableRequest& operator=(SetDisarmableRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1345,121 +1233,184 @@ class SubscribeTakeoffRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeTakeoffRequest& default_instance() { + static const SetDisarmableRequest& default_instance() { return *internal_default_instance(); } - static inline const SubscribeTakeoffRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeTakeoffRequest_default_instance_); + static inline const SetDisarmableRequest* internal_default_instance() { + return reinterpret_cast( + &_SetDisarmableRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 2; - friend void swap(SubscribeTakeoffRequest& a, SubscribeTakeoffRequest& b) { + friend void swap(SetDisarmableRequest& a, SetDisarmableRequest& b) { a.Swap(&b); } - inline void Swap(SubscribeTakeoffRequest* other) { + inline void Swap(SetDisarmableRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeTakeoffRequest* other) { + void UnsafeArenaSwap(SetDisarmableRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeTakeoffRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeTakeoffRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + SetDisarmableRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeTakeoffRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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 ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeTakeoffRequest"; + return "mavsdk.rpc.action_server.SetDisarmableRequest"; } protected: - explicit SubscribeTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetDisarmableRequest(::google::protobuf::Arena* arena); + SetDisarmableRequest(::google::protobuf::Arena* arena, const SetDisarmableRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeTakeoffRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { + 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 SubscribeLandRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeLandRequest) */ { +class SetArmableRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableRequest) */ { public: - inline SubscribeLandRequest() : SubscribeLandRequest(nullptr) {} + inline SetArmableRequest() : SetArmableRequest(nullptr) {} + ~SetArmableRequest() override; template - explicit PROTOBUF_CONSTEXPR SubscribeLandRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetArmableRequest(::google::protobuf::internal::ConstantInitialized); - SubscribeLandRequest(const SubscribeLandRequest& from); - SubscribeLandRequest(SubscribeLandRequest&& from) noexcept - : SubscribeLandRequest() { + inline SetArmableRequest(const SetArmableRequest& from) + : SetArmableRequest(nullptr, from) {} + SetArmableRequest(SetArmableRequest&& from) noexcept + : SetArmableRequest() { *this = ::std::move(from); } - inline SubscribeLandRequest& operator=(const SubscribeLandRequest& from) { + inline SetArmableRequest& operator=(const SetArmableRequest& from) { CopyFrom(from); return *this; } - inline SubscribeLandRequest& operator=(SubscribeLandRequest&& from) noexcept { + inline SetArmableRequest& operator=(SetArmableRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1469,121 +1420,184 @@ class SubscribeLandRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeLandRequest& default_instance() { + static const SetArmableRequest& default_instance() { return *internal_default_instance(); } - static inline const SubscribeLandRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeLandRequest_default_instance_); + static inline const SetArmableRequest* internal_default_instance() { + return reinterpret_cast( + &_SetArmableRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 1; - friend void swap(SubscribeLandRequest& a, SubscribeLandRequest& b) { + friend void swap(SetArmableRequest& a, SetArmableRequest& b) { a.Swap(&b); } - inline void Swap(SubscribeLandRequest* other) { + inline void Swap(SetArmableRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeLandRequest* other) { + void UnsafeArenaSwap(SetArmableRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeLandRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeLandRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + SetArmableRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeLandRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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 ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeLandRequest"; + return "mavsdk.rpc.action_server.SetArmableRequest"; } protected: - explicit SubscribeLandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetArmableRequest(::google::protobuf::Arena* arena); + SetArmableRequest(::google::protobuf::Arena* arena, const SetArmableRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeLandRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 SubscribeRebootRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeRebootRequest) */ { +class SetAllowTakeoffRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffRequest) */ { public: - inline SubscribeRebootRequest() : SubscribeRebootRequest(nullptr) {} + inline SetAllowTakeoffRequest() : SetAllowTakeoffRequest(nullptr) {} + ~SetAllowTakeoffRequest() override; template - explicit PROTOBUF_CONSTEXPR SubscribeRebootRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetAllowTakeoffRequest(::google::protobuf::internal::ConstantInitialized); - SubscribeRebootRequest(const SubscribeRebootRequest& from); - SubscribeRebootRequest(SubscribeRebootRequest&& from) noexcept - : SubscribeRebootRequest() { + inline SetAllowTakeoffRequest(const SetAllowTakeoffRequest& from) + : SetAllowTakeoffRequest(nullptr, from) {} + SetAllowTakeoffRequest(SetAllowTakeoffRequest&& from) noexcept + : SetAllowTakeoffRequest() { *this = ::std::move(from); } - inline SubscribeRebootRequest& operator=(const SubscribeRebootRequest& from) { + inline SetAllowTakeoffRequest& operator=(const SetAllowTakeoffRequest& from) { CopyFrom(from); return *this; } - inline SubscribeRebootRequest& operator=(SubscribeRebootRequest&& from) noexcept { + inline SetAllowTakeoffRequest& operator=(SetAllowTakeoffRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1593,121 +1607,171 @@ class SubscribeRebootRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeRebootRequest& default_instance() { + static const SetAllowTakeoffRequest& default_instance() { return *internal_default_instance(); } - static inline const SubscribeRebootRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeRebootRequest_default_instance_); + static inline const SetAllowTakeoffRequest* internal_default_instance() { + return reinterpret_cast( + &_SetAllowTakeoffRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 0; - friend void swap(SubscribeRebootRequest& a, SubscribeRebootRequest& b) { + friend void swap(SetAllowTakeoffRequest& a, SetAllowTakeoffRequest& b) { a.Swap(&b); } - inline void Swap(SubscribeRebootRequest* other) { + inline void Swap(SetAllowTakeoffRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeRebootRequest* other) { + void UnsafeArenaSwap(SetAllowTakeoffRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeRebootRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeRebootRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + SetAllowTakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeRebootRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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 ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeRebootRequest"; + return "mavsdk.rpc.action_server.SetAllowTakeoffRequest"; } protected: - explicit SubscribeRebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetAllowTakeoffRequest(::google::protobuf::Arena* arena); + SetAllowTakeoffRequest(::google::protobuf::Arena* arena, const SetAllowTakeoffRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeRebootRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 SubscribeShutdownRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeShutdownRequest) */ { +class GetAllowableFlightModesRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) */ { public: - inline SubscribeShutdownRequest() : SubscribeShutdownRequest(nullptr) {} + inline GetAllowableFlightModesRequest() : GetAllowableFlightModesRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR SubscribeShutdownRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesRequest(::google::protobuf::internal::ConstantInitialized); - SubscribeShutdownRequest(const SubscribeShutdownRequest& from); - SubscribeShutdownRequest(SubscribeShutdownRequest&& from) noexcept - : SubscribeShutdownRequest() { + inline GetAllowableFlightModesRequest(const GetAllowableFlightModesRequest& from) + : GetAllowableFlightModesRequest(nullptr, from) {} + GetAllowableFlightModesRequest(GetAllowableFlightModesRequest&& from) noexcept + : GetAllowableFlightModesRequest() { *this = ::std::move(from); } - inline SubscribeShutdownRequest& operator=(const SubscribeShutdownRequest& from) { + inline GetAllowableFlightModesRequest& operator=(const GetAllowableFlightModesRequest& from) { CopyFrom(from); return *this; } - inline SubscribeShutdownRequest& operator=(SubscribeShutdownRequest&& from) noexcept { + inline GetAllowableFlightModesRequest& operator=(GetAllowableFlightModesRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1717,121 +1781,134 @@ class SubscribeShutdownRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeShutdownRequest& default_instance() { + static const GetAllowableFlightModesRequest& default_instance() { return *internal_default_instance(); } - static inline const SubscribeShutdownRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeShutdownRequest_default_instance_); + static inline const GetAllowableFlightModesRequest* internal_default_instance() { + return reinterpret_cast( + &_GetAllowableFlightModesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 4; - friend void swap(SubscribeShutdownRequest& a, SubscribeShutdownRequest& b) { + friend void swap(GetAllowableFlightModesRequest& a, GetAllowableFlightModesRequest& b) { a.Swap(&b); } - inline void Swap(SubscribeShutdownRequest* other) { + inline void Swap(GetAllowableFlightModesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeShutdownRequest* other) { + void UnsafeArenaSwap(GetAllowableFlightModesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeShutdownRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetAllowableFlightModesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeShutdownRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const GetAllowableFlightModesRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeShutdownRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const GetAllowableFlightModesRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeShutdownRequest"; + return "mavsdk.rpc.action_server.GetAllowableFlightModesRequest"; } protected: - explicit SubscribeShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetAllowableFlightModesRequest(::google::protobuf::Arena* arena); + GetAllowableFlightModesRequest(::google::protobuf::Arena* arena, const GetAllowableFlightModesRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeShutdownRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 SubscribeTerminateRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTerminateRequest) */ { +class ArmDisarm final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarm) */ { public: - inline SubscribeTerminateRequest() : SubscribeTerminateRequest(nullptr) {} + inline ArmDisarm() : ArmDisarm(nullptr) {} + ~ArmDisarm() override; template - explicit PROTOBUF_CONSTEXPR SubscribeTerminateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ArmDisarm(::google::protobuf::internal::ConstantInitialized); - SubscribeTerminateRequest(const SubscribeTerminateRequest& from); - SubscribeTerminateRequest(SubscribeTerminateRequest&& from) noexcept - : SubscribeTerminateRequest() { + inline ArmDisarm(const ArmDisarm& from) + : ArmDisarm(nullptr, from) {} + ArmDisarm(ArmDisarm&& from) noexcept + : ArmDisarm() { *this = ::std::move(from); } - inline SubscribeTerminateRequest& operator=(const SubscribeTerminateRequest& from) { + inline ArmDisarm& operator=(const ArmDisarm& from) { CopyFrom(from); return *this; } - inline SubscribeTerminateRequest& operator=(SubscribeTerminateRequest&& from) noexcept { + inline ArmDisarm& operator=(ArmDisarm&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1841,122 +1918,184 @@ class SubscribeTerminateRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeTerminateRequest& default_instance() { + static const ArmDisarm& default_instance() { return *internal_default_instance(); } - static inline const SubscribeTerminateRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeTerminateRequest_default_instance_); + static inline const ArmDisarm* internal_default_instance() { + return reinterpret_cast( + &_ArmDisarm_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 25; - friend void swap(SubscribeTerminateRequest& a, SubscribeTerminateRequest& b) { + friend void swap(ArmDisarm& a, ArmDisarm& b) { a.Swap(&b); } - inline void Swap(SubscribeTerminateRequest* other) { + inline void Swap(ArmDisarm* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeTerminateRequest* other) { + void UnsafeArenaSwap(ArmDisarm* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeTerminateRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ArmDisarm* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeTerminateRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeTerminateRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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 ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeTerminateRequest"; + return "mavsdk.rpc.action_server.ArmDisarm"; } protected: - explicit SubscribeTerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ArmDisarm(::google::protobuf::Arena* arena); + ArmDisarm(::google::protobuf::Arena* arena, const ArmDisarm& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeTerminateRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 ArmDisarmResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarmResponse) */ { +class AllowableFlightModes final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.AllowableFlightModes) */ { public: - inline ArmDisarmResponse() : ArmDisarmResponse(nullptr) {} - ~ArmDisarmResponse() override; + inline AllowableFlightModes() : AllowableFlightModes(nullptr) {} + ~AllowableFlightModes() override; template - explicit PROTOBUF_CONSTEXPR ArmDisarmResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR AllowableFlightModes(::google::protobuf::internal::ConstantInitialized); - ArmDisarmResponse(const ArmDisarmResponse& from); - ArmDisarmResponse(ArmDisarmResponse&& from) noexcept - : ArmDisarmResponse() { + inline AllowableFlightModes(const AllowableFlightModes& from) + : AllowableFlightModes(nullptr, from) {} + AllowableFlightModes(AllowableFlightModes&& from) noexcept + : AllowableFlightModes() { *this = ::std::move(from); } - inline ArmDisarmResponse& operator=(const ArmDisarmResponse& from) { + inline AllowableFlightModes& operator=(const AllowableFlightModes& from) { CopyFrom(from); return *this; } - inline ArmDisarmResponse& operator=(ArmDisarmResponse&& from) noexcept { + inline AllowableFlightModes& operator=(AllowableFlightModes&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1966,173 +2105,196 @@ class ArmDisarmResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ArmDisarmResponse& default_instance() { + static const AllowableFlightModes& default_instance() { return *internal_default_instance(); } - static inline const ArmDisarmResponse* internal_default_instance() { - return reinterpret_cast( - &_ArmDisarmResponse_default_instance_); + static inline const AllowableFlightModes* internal_default_instance() { + return reinterpret_cast( + &_AllowableFlightModes_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 24; - friend void swap(ArmDisarmResponse& a, ArmDisarmResponse& b) { + friend void swap(AllowableFlightModes& a, AllowableFlightModes& b) { a.Swap(&b); } - inline void Swap(ArmDisarmResponse* other) { + inline void Swap(AllowableFlightModes* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ArmDisarmResponse* other) { + void UnsafeArenaSwap(AllowableFlightModes* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ArmDisarmResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AllowableFlightModes* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ArmDisarmResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ArmDisarmResponse& from) { - ArmDisarmResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ArmDisarmResponse* other); + void InternalSwap(AllowableFlightModes* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ArmDisarmResponse"; + return "mavsdk.rpc.action_server.AllowableFlightModes"; } protected: - explicit ArmDisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit AllowableFlightModes(::google::protobuf::Arena* arena); + AllowableFlightModes(::google::protobuf::Arena* arena, const AllowableFlightModes& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kActionServerResultFieldNumber = 1, - kArmFieldNumber = 2, + kCanAutoModeFieldNumber = 1, + kCanGuidedModeFieldNumber = 2, + kCanStabilizeModeFieldNumber = 3, }; - // .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* action_server_result); + // bool can_auto_mode = 1; + void clear_can_auto_mode() ; + bool can_auto_mode() const; + void set_can_auto_mode(bool value); + private: - const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + bool _internal_can_auto_mode() const; + void _internal_set_can_auto_mode(bool value); + public: - void unsafe_arena_set_allocated_action_server_result( - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // .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* arm); + // bool can_guided_mode = 2; + void clear_can_guided_mode() ; + bool can_guided_mode() const; + void set_can_guided_mode(bool value); + private: - const ::mavsdk::rpc::action_server::ArmDisarm& _internal_arm() const; - ::mavsdk::rpc::action_server::ArmDisarm* _internal_mutable_arm(); + bool _internal_can_guided_mode() const; + void _internal_set_can_guided_mode(bool value); + public: - void unsafe_arena_set_allocated_arm( - ::mavsdk::rpc::action_server::ArmDisarm* arm); - ::mavsdk::rpc::action_server::ArmDisarm* unsafe_arena_release_arm(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ArmDisarmResponse) + // 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - ::mavsdk::rpc::action_server::ArmDisarm* arm_; + + 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 FlightModeChangeResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.FlightModeChangeResponse) */ { +class ActionServerResult final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ActionServerResult) */ { public: - inline FlightModeChangeResponse() : FlightModeChangeResponse(nullptr) {} - ~FlightModeChangeResponse() override; + inline ActionServerResult() : ActionServerResult(nullptr) {} + ~ActionServerResult() override; template - explicit PROTOBUF_CONSTEXPR FlightModeChangeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ActionServerResult(::google::protobuf::internal::ConstantInitialized); - FlightModeChangeResponse(const FlightModeChangeResponse& from); - FlightModeChangeResponse(FlightModeChangeResponse&& from) noexcept - : FlightModeChangeResponse() { + inline ActionServerResult(const ActionServerResult& from) + : ActionServerResult(nullptr, from) {} + ActionServerResult(ActionServerResult&& from) noexcept + : ActionServerResult() { *this = ::std::move(from); } - inline FlightModeChangeResponse& operator=(const FlightModeChangeResponse& from) { + inline ActionServerResult& operator=(const ActionServerResult& from) { CopyFrom(from); return *this; } - inline FlightModeChangeResponse& operator=(FlightModeChangeResponse&& from) noexcept { + inline ActionServerResult& operator=(ActionServerResult&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2142,169 +2304,221 @@ class FlightModeChangeResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FlightModeChangeResponse& default_instance() { + static const ActionServerResult& default_instance() { return *internal_default_instance(); } - static inline const FlightModeChangeResponse* internal_default_instance() { - return reinterpret_cast( - &_FlightModeChangeResponse_default_instance_); + static inline const ActionServerResult* internal_default_instance() { + return reinterpret_cast( + &_ActionServerResult_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 26; - friend void swap(FlightModeChangeResponse& a, FlightModeChangeResponse& b) { + friend void swap(ActionServerResult& a, ActionServerResult& b) { a.Swap(&b); } - inline void Swap(FlightModeChangeResponse* other) { + inline void Swap(ActionServerResult* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FlightModeChangeResponse* other) { + void UnsafeArenaSwap(ActionServerResult* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FlightModeChangeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ActionServerResult* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const FlightModeChangeResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FlightModeChangeResponse& from) { - FlightModeChangeResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FlightModeChangeResponse* other); + void InternalSwap(ActionServerResult* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.FlightModeChangeResponse"; + return "mavsdk.rpc.action_server.ActionServerResult"; } protected: - explicit FlightModeChangeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ActionServerResult(::google::protobuf::Arena* arena); + ActionServerResult(::google::protobuf::Arena* arena, const ActionServerResult& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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 { - kActionServerResultFieldNumber = 1, - kFlightModeFieldNumber = 2, + kResultStrFieldNumber = 2, + kResultFieldNumber = 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* action_server_result); + // 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 ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + 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: - void unsafe_arena_set_allocated_action_server_result( - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // .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); + // .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::FlightMode _internal_flight_mode() const; - void _internal_set_flight_mode(::mavsdk::rpc::action_server::FlightMode value); + ::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.FlightModeChangeResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ActionServerResult) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - int flight_mode_; + + 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 TakeoffResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TakeoffResponse) */ { +class TerminateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TerminateResponse) */ { public: - inline TakeoffResponse() : TakeoffResponse(nullptr) {} - ~TakeoffResponse() override; + inline TerminateResponse() : TerminateResponse(nullptr) {} + ~TerminateResponse() override; template - explicit PROTOBUF_CONSTEXPR TakeoffResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TerminateResponse(::google::protobuf::internal::ConstantInitialized); - TakeoffResponse(const TakeoffResponse& from); - TakeoffResponse(TakeoffResponse&& from) noexcept - : TakeoffResponse() { + inline TerminateResponse(const TerminateResponse& from) + : TerminateResponse(nullptr, from) {} + TerminateResponse(TerminateResponse&& from) noexcept + : TerminateResponse() { *this = ::std::move(from); } - inline TakeoffResponse& operator=(const TakeoffResponse& from) { + inline TerminateResponse& operator=(const TerminateResponse& from) { CopyFrom(from); return *this; } - inline TakeoffResponse& operator=(TakeoffResponse&& from) noexcept { + inline TerminateResponse& operator=(TerminateResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2314,96 +2528,99 @@ class TakeoffResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TakeoffResponse& default_instance() { + static const TerminateResponse& default_instance() { return *internal_default_instance(); } - static inline const TakeoffResponse* internal_default_instance() { - return reinterpret_cast( - &_TakeoffResponse_default_instance_); + static inline const TerminateResponse* internal_default_instance() { + return reinterpret_cast( + &_TerminateResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 18; - friend void swap(TakeoffResponse& a, TakeoffResponse& b) { + friend void swap(TerminateResponse& a, TerminateResponse& b) { a.Swap(&b); } - inline void Swap(TakeoffResponse* other) { + inline void Swap(TerminateResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TakeoffResponse* other) { + void UnsafeArenaSwap(TerminateResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TakeoffResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TerminateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TakeoffResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TakeoffResponse& from) { - TakeoffResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TakeoffResponse* other); + void InternalSwap(TerminateResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.TakeoffResponse"; + return "mavsdk.rpc.action_server.TerminateResponse"; } protected: - explicit TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TerminateResponse(::google::protobuf::Arena* arena); + TerminateResponse(::google::protobuf::Arena* arena, const TerminateResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2411,7 +2628,7 @@ class TakeoffResponse final : enum : int { kActionServerResultFieldNumber = 1, - kTakeoffFieldNumber = 2, + kTerminateFieldNumber = 2, }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; @@ -2419,64 +2636,82 @@ class TakeoffResponse final : 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* 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: - void unsafe_arena_set_allocated_action_server_result( - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // bool takeoff = 2; - void clear_takeoff() ; - bool takeoff() const; - void set_takeoff(bool value); + // bool terminate = 2; + void clear_terminate() ; + bool terminate() const; + void set_terminate(bool value); private: - bool _internal_takeoff() const; - void _internal_set_takeoff(bool value); + bool _internal_terminate() const; + void _internal_set_terminate(bool value); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.TakeoffResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.TerminateResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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_; + bool terminate_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; };// ------------------------------------------------------------------- -class LandResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.LandResponse) */ { +class TakeoffResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TakeoffResponse) */ { public: - inline LandResponse() : LandResponse(nullptr) {} - ~LandResponse() override; + inline TakeoffResponse() : TakeoffResponse(nullptr) {} + ~TakeoffResponse() override; template - explicit PROTOBUF_CONSTEXPR LandResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TakeoffResponse(::google::protobuf::internal::ConstantInitialized); - LandResponse(const LandResponse& from); - LandResponse(LandResponse&& from) noexcept - : LandResponse() { + inline TakeoffResponse(const TakeoffResponse& from) + : TakeoffResponse(nullptr, from) {} + TakeoffResponse(TakeoffResponse&& from) noexcept + : TakeoffResponse() { *this = ::std::move(from); } - inline LandResponse& operator=(const LandResponse& from) { + inline TakeoffResponse& operator=(const TakeoffResponse& from) { CopyFrom(from); return *this; } - inline LandResponse& operator=(LandResponse&& from) noexcept { + inline TakeoffResponse& operator=(TakeoffResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2486,96 +2721,99 @@ class LandResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const LandResponse& default_instance() { + static const TakeoffResponse& default_instance() { return *internal_default_instance(); } - static inline const LandResponse* internal_default_instance() { - return reinterpret_cast( - &_LandResponse_default_instance_); + static inline const TakeoffResponse* internal_default_instance() { + return reinterpret_cast( + &_TakeoffResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 14; - friend void swap(LandResponse& a, LandResponse& b) { + friend void swap(TakeoffResponse& a, TakeoffResponse& b) { a.Swap(&b); } - inline void Swap(LandResponse* other) { + inline void Swap(TakeoffResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(LandResponse* other) { + void UnsafeArenaSwap(TakeoffResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LandResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const LandResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const LandResponse& from) { - LandResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LandResponse* other); + void InternalSwap(TakeoffResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.LandResponse"; + return "mavsdk.rpc.action_server.TakeoffResponse"; } protected: - explicit LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TakeoffResponse(::google::protobuf::Arena* arena); + TakeoffResponse(::google::protobuf::Arena* arena, const TakeoffResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2583,7 +2821,7 @@ class LandResponse final : enum : int { kActionServerResultFieldNumber = 1, - kLandFieldNumber = 2, + kTakeoffFieldNumber = 2, }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; @@ -2591,64 +2829,82 @@ class LandResponse final : 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* 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: - void unsafe_arena_set_allocated_action_server_result( - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // bool land = 2; - void clear_land() ; - bool land() const; - void set_land(bool value); + // bool takeoff = 2; + void clear_takeoff() ; + bool takeoff() const; + void set_takeoff(bool value); private: - bool _internal_land() const; - void _internal_set_land(bool value); + bool _internal_takeoff() const; + void _internal_set_takeoff(bool value); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.LandResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.TakeoffResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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_; + bool takeoff_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; };// ------------------------------------------------------------------- -class RebootResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.RebootResponse) */ { +class ShutdownResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ShutdownResponse) */ { public: - inline RebootResponse() : RebootResponse(nullptr) {} - ~RebootResponse() override; + inline ShutdownResponse() : ShutdownResponse(nullptr) {} + ~ShutdownResponse() override; template - explicit PROTOBUF_CONSTEXPR RebootResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShutdownResponse(::google::protobuf::internal::ConstantInitialized); - RebootResponse(const RebootResponse& from); - RebootResponse(RebootResponse&& from) noexcept - : RebootResponse() { + inline ShutdownResponse(const ShutdownResponse& from) + : ShutdownResponse(nullptr, from) {} + ShutdownResponse(ShutdownResponse&& from) noexcept + : ShutdownResponse() { *this = ::std::move(from); } - inline RebootResponse& operator=(const RebootResponse& from) { + inline ShutdownResponse& operator=(const ShutdownResponse& from) { CopyFrom(from); return *this; } - inline RebootResponse& operator=(RebootResponse&& from) noexcept { + inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2658,96 +2914,99 @@ class RebootResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RebootResponse& default_instance() { + static const ShutdownResponse& default_instance() { return *internal_default_instance(); } - static inline const RebootResponse* internal_default_instance() { - return reinterpret_cast( - &_RebootResponse_default_instance_); + static inline const ShutdownResponse* internal_default_instance() { + return reinterpret_cast( + &_ShutdownResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; - friend void swap(RebootResponse& a, RebootResponse& b) { + friend void swap(ShutdownResponse& a, ShutdownResponse& b) { a.Swap(&b); } - inline void Swap(RebootResponse* other) { + inline void Swap(ShutdownResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RebootResponse* other) { + void UnsafeArenaSwap(ShutdownResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - RebootResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ShutdownResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RebootResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RebootResponse& from) { - RebootResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RebootResponse* other); + void InternalSwap(ShutdownResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.RebootResponse"; + return "mavsdk.rpc.action_server.ShutdownResponse"; } protected: - explicit RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ShutdownResponse(::google::protobuf::Arena* arena); + ShutdownResponse(::google::protobuf::Arena* arena, const ShutdownResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2755,7 +3014,7 @@ class RebootResponse final : enum : int { kActionServerResultFieldNumber = 1, - kRebootFieldNumber = 2, + kShutdownFieldNumber = 2, }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; @@ -2763,64 +3022,82 @@ class RebootResponse final : 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* 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: - void unsafe_arena_set_allocated_action_server_result( - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // bool reboot = 2; - void clear_reboot() ; - bool reboot() const; - void set_reboot(bool value); + // bool shutdown = 2; + void clear_shutdown() ; + bool shutdown() const; + void set_shutdown(bool value); private: - bool _internal_reboot() const; - void _internal_set_reboot(bool value); + bool _internal_shutdown() const; + void _internal_set_shutdown(bool value); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.RebootResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ShutdownResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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_; + bool shutdown_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; };// ------------------------------------------------------------------- -class ShutdownResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ShutdownResponse) */ { +class SetDisarmableResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableResponse) */ { public: - inline ShutdownResponse() : ShutdownResponse(nullptr) {} - ~ShutdownResponse() override; + inline SetDisarmableResponse() : SetDisarmableResponse(nullptr) {} + ~SetDisarmableResponse() override; template - explicit PROTOBUF_CONSTEXPR ShutdownResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetDisarmableResponse(::google::protobuf::internal::ConstantInitialized); - ShutdownResponse(const ShutdownResponse& from); - ShutdownResponse(ShutdownResponse&& from) noexcept - : ShutdownResponse() { + inline SetDisarmableResponse(const SetDisarmableResponse& from) + : SetDisarmableResponse(nullptr, from) {} + SetDisarmableResponse(SetDisarmableResponse&& from) noexcept + : SetDisarmableResponse() { *this = ::std::move(from); } - inline ShutdownResponse& operator=(const ShutdownResponse& from) { + inline SetDisarmableResponse& operator=(const SetDisarmableResponse& from) { CopyFrom(from); return *this; } - inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept { + inline SetDisarmableResponse& operator=(SetDisarmableResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2830,96 +3107,99 @@ class ShutdownResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ShutdownResponse& default_instance() { + static const SetDisarmableResponse& default_instance() { return *internal_default_instance(); } - static inline const ShutdownResponse* internal_default_instance() { - return reinterpret_cast( - &_ShutdownResponse_default_instance_); + static inline const SetDisarmableResponse* internal_default_instance() { + return reinterpret_cast( + &_SetDisarmableResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 20; - friend void swap(ShutdownResponse& a, ShutdownResponse& b) { + friend void swap(SetDisarmableResponse& a, SetDisarmableResponse& b) { a.Swap(&b); } - inline void Swap(ShutdownResponse* other) { + inline void Swap(SetDisarmableResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShutdownResponse* other) { + void UnsafeArenaSwap(SetDisarmableResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ShutdownResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetDisarmableResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ShutdownResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ShutdownResponse& from) { - ShutdownResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ShutdownResponse* other); + void InternalSwap(SetDisarmableResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ShutdownResponse"; + return "mavsdk.rpc.action_server.SetDisarmableResponse"; } protected: - explicit ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetDisarmableResponse(::google::protobuf::Arena* arena); + SetDisarmableResponse(::google::protobuf::Arena* arena, const SetDisarmableResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2927,7 +3207,6 @@ class ShutdownResponse final : enum : int { kActionServerResultFieldNumber = 1, - kShutdownFieldNumber = 2, }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; @@ -2935,64 +3214,71 @@ class ShutdownResponse final : 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* 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: - void unsafe_arena_set_allocated_action_server_result( - ::mavsdk::rpc::action_server::ActionServerResult* 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(); - // 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); + 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.ShutdownResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetDisarmableResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 TerminateResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TerminateResponse) */ { +class SetArmableResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableResponse) */ { public: - inline TerminateResponse() : TerminateResponse(nullptr) {} - ~TerminateResponse() override; + inline SetArmableResponse() : SetArmableResponse(nullptr) {} + ~SetArmableResponse() override; template - explicit PROTOBUF_CONSTEXPR TerminateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetArmableResponse(::google::protobuf::internal::ConstantInitialized); - TerminateResponse(const TerminateResponse& from); - TerminateResponse(TerminateResponse&& from) noexcept - : TerminateResponse() { + inline SetArmableResponse(const SetArmableResponse& from) + : SetArmableResponse(nullptr, from) {} + SetArmableResponse(SetArmableResponse&& from) noexcept + : SetArmableResponse() { *this = ::std::move(from); } - inline TerminateResponse& operator=(const TerminateResponse& from) { + inline SetArmableResponse& operator=(const SetArmableResponse& from) { CopyFrom(from); return *this; } - inline TerminateResponse& operator=(TerminateResponse&& from) noexcept { + inline SetArmableResponse& operator=(SetArmableResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3002,96 +3288,99 @@ class TerminateResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TerminateResponse& default_instance() { + static const SetArmableResponse& default_instance() { return *internal_default_instance(); } - static inline const TerminateResponse* internal_default_instance() { - return reinterpret_cast( - &_TerminateResponse_default_instance_); + static inline const SetArmableResponse* internal_default_instance() { + return reinterpret_cast( + &_SetArmableResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; - friend void swap(TerminateResponse& a, TerminateResponse& b) { + friend void swap(SetArmableResponse& a, SetArmableResponse& b) { a.Swap(&b); } - inline void Swap(TerminateResponse* other) { + inline void Swap(SetArmableResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TerminateResponse* other) { + void UnsafeArenaSwap(SetArmableResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TerminateResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetArmableResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TerminateResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TerminateResponse& from) { - TerminateResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TerminateResponse* other); + void InternalSwap(SetArmableResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.TerminateResponse"; + return "mavsdk.rpc.action_server.SetArmableResponse"; } protected: - explicit TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetArmableResponse(::google::protobuf::Arena* arena); + SetArmableResponse(::google::protobuf::Arena* arena, const SetArmableResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3099,7 +3388,6 @@ class TerminateResponse final : enum : int { kActionServerResultFieldNumber = 1, - kTerminateFieldNumber = 2, }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; @@ -3107,64 +3395,71 @@ class TerminateResponse final : 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* 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: - void unsafe_arena_set_allocated_action_server_result( - ::mavsdk::rpc::action_server::ActionServerResult* 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(); - // 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); + 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.TerminateResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetArmableResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 SetArmableResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableResponse) */ { +class SetAllowableFlightModesResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) */ { public: - inline SetArmableResponse() : SetArmableResponse(nullptr) {} - ~SetArmableResponse() override; + inline SetAllowableFlightModesResponse() : SetAllowableFlightModesResponse(nullptr) {} + ~SetAllowableFlightModesResponse() override; template - explicit PROTOBUF_CONSTEXPR SetArmableResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesResponse(::google::protobuf::internal::ConstantInitialized); - SetArmableResponse(const SetArmableResponse& from); - SetArmableResponse(SetArmableResponse&& from) noexcept - : SetArmableResponse() { + inline SetAllowableFlightModesResponse(const SetAllowableFlightModesResponse& from) + : SetAllowableFlightModesResponse(nullptr, from) {} + SetAllowableFlightModesResponse(SetAllowableFlightModesResponse&& from) noexcept + : SetAllowableFlightModesResponse() { *this = ::std::move(from); } - inline SetArmableResponse& operator=(const SetArmableResponse& from) { + inline SetAllowableFlightModesResponse& operator=(const SetAllowableFlightModesResponse& from) { CopyFrom(from); return *this; } - inline SetArmableResponse& operator=(SetArmableResponse&& from) noexcept { + inline SetAllowableFlightModesResponse& operator=(SetAllowableFlightModesResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3174,96 +3469,99 @@ class SetArmableResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetArmableResponse& default_instance() { + static const SetAllowableFlightModesResponse& default_instance() { return *internal_default_instance(); } - static inline const SetArmableResponse* internal_default_instance() { - return reinterpret_cast( - &_SetArmableResponse_default_instance_); + static inline const SetAllowableFlightModesResponse* internal_default_instance() { + return reinterpret_cast( + &_SetAllowableFlightModesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 21; - friend void swap(SetArmableResponse& a, SetArmableResponse& b) { + friend void swap(SetAllowableFlightModesResponse& a, SetAllowableFlightModesResponse& b) { a.Swap(&b); } - inline void Swap(SetArmableResponse* other) { + inline void Swap(SetAllowableFlightModesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetArmableResponse* other) { + void UnsafeArenaSwap(SetAllowableFlightModesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetArmableResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetAllowableFlightModesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetArmableResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetArmableResponse& from) { - SetArmableResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetArmableResponse* other); + void InternalSwap(SetAllowableFlightModesResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetArmableResponse"; + return "mavsdk.rpc.action_server.SetAllowableFlightModesResponse"; } protected: - explicit SetArmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetAllowableFlightModesResponse(::google::protobuf::Arena* arena); + SetAllowableFlightModesResponse(::google::protobuf::Arena* arena, const SetAllowableFlightModesResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3278,53 +3576,71 @@ class SetArmableResponse final : 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* 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: - void unsafe_arena_set_allocated_action_server_result( - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetArmableResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 SetDisarmableResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableResponse) */ { +class SetAllowableFlightModesRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) */ { public: - inline SetDisarmableResponse() : SetDisarmableResponse(nullptr) {} - ~SetDisarmableResponse() override; + inline SetAllowableFlightModesRequest() : SetAllowableFlightModesRequest(nullptr) {} + ~SetAllowableFlightModesRequest() override; template - explicit PROTOBUF_CONSTEXPR SetDisarmableResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesRequest(::google::protobuf::internal::ConstantInitialized); - SetDisarmableResponse(const SetDisarmableResponse& from); - SetDisarmableResponse(SetDisarmableResponse&& from) noexcept - : SetDisarmableResponse() { + inline SetAllowableFlightModesRequest(const SetAllowableFlightModesRequest& from) + : SetAllowableFlightModesRequest(nullptr, from) {} + SetAllowableFlightModesRequest(SetAllowableFlightModesRequest&& from) noexcept + : SetAllowableFlightModesRequest() { *this = ::std::move(from); } - inline SetDisarmableResponse& operator=(const SetDisarmableResponse& from) { + inline SetAllowableFlightModesRequest& operator=(const SetAllowableFlightModesRequest& from) { CopyFrom(from); return *this; } - inline SetDisarmableResponse& operator=(SetDisarmableResponse&& from) noexcept { + inline SetAllowableFlightModesRequest& operator=(SetAllowableFlightModesRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3334,157 +3650,178 @@ class SetDisarmableResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetDisarmableResponse& default_instance() { + static const SetAllowableFlightModesRequest& default_instance() { return *internal_default_instance(); } - static inline const SetDisarmableResponse* internal_default_instance() { - return reinterpret_cast( - &_SetDisarmableResponse_default_instance_); + static inline const SetAllowableFlightModesRequest* internal_default_instance() { + return reinterpret_cast( + &_SetAllowableFlightModesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 3; - friend void swap(SetDisarmableResponse& a, SetDisarmableResponse& b) { + friend void swap(SetAllowableFlightModesRequest& a, SetAllowableFlightModesRequest& b) { a.Swap(&b); } - inline void Swap(SetDisarmableResponse* other) { + inline void Swap(SetAllowableFlightModesRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetDisarmableResponse* other) { + void UnsafeArenaSwap(SetAllowableFlightModesRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetDisarmableResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetAllowableFlightModesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetDisarmableResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetDisarmableResponse& from) { - SetDisarmableResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetDisarmableResponse* other); + void InternalSwap(SetAllowableFlightModesRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetDisarmableResponse"; + return "mavsdk.rpc.action_server.SetAllowableFlightModesRequest"; } protected: - explicit SetDisarmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetAllowableFlightModesRequest(::google::protobuf::Arena* arena); + SetAllowableFlightModesRequest(::google::protobuf::Arena* arena, const SetAllowableFlightModesRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kActionServerResultFieldNumber = 1, + kFlightModesFieldNumber = 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* action_server_result); + // .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::ActionServerResult& _internal_action_server_result() const; - ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + const ::mavsdk::rpc::action_server::AllowableFlightModes& _internal_flight_modes() const; + ::mavsdk::rpc::action_server::AllowableFlightModes* _internal_mutable_flight_modes(); + public: - void unsafe_arena_set_allocated_action_server_result( - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetDisarmableResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + + 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 SetAllowableFlightModesResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) */ { +class SetAllowTakeoffResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffResponse) */ { public: - inline SetAllowableFlightModesResponse() : SetAllowableFlightModesResponse(nullptr) {} - ~SetAllowableFlightModesResponse() override; + inline SetAllowTakeoffResponse() : SetAllowTakeoffResponse(nullptr) {} + ~SetAllowTakeoffResponse() override; template - explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetAllowTakeoffResponse(::google::protobuf::internal::ConstantInitialized); - SetAllowableFlightModesResponse(const SetAllowableFlightModesResponse& from); - SetAllowableFlightModesResponse(SetAllowableFlightModesResponse&& from) noexcept - : SetAllowableFlightModesResponse() { + inline SetAllowTakeoffResponse(const SetAllowTakeoffResponse& from) + : SetAllowTakeoffResponse(nullptr, from) {} + SetAllowTakeoffResponse(SetAllowTakeoffResponse&& from) noexcept + : SetAllowTakeoffResponse() { *this = ::std::move(from); } - inline SetAllowableFlightModesResponse& operator=(const SetAllowableFlightModesResponse& from) { + inline SetAllowTakeoffResponse& operator=(const SetAllowTakeoffResponse& from) { CopyFrom(from); return *this; } - inline SetAllowableFlightModesResponse& operator=(SetAllowableFlightModesResponse&& from) noexcept { + inline SetAllowTakeoffResponse& operator=(SetAllowTakeoffResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3494,96 +3831,99 @@ class SetAllowableFlightModesResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetAllowableFlightModesResponse& default_instance() { + static const SetAllowTakeoffResponse& default_instance() { return *internal_default_instance(); } - static inline const SetAllowableFlightModesResponse* internal_default_instance() { - return reinterpret_cast( - &_SetAllowableFlightModesResponse_default_instance_); + static inline const SetAllowTakeoffResponse* internal_default_instance() { + return reinterpret_cast( + &_SetAllowTakeoffResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 22; - friend void swap(SetAllowableFlightModesResponse& a, SetAllowableFlightModesResponse& b) { + friend void swap(SetAllowTakeoffResponse& a, SetAllowTakeoffResponse& b) { a.Swap(&b); } - inline void Swap(SetAllowableFlightModesResponse* other) { + inline void Swap(SetAllowTakeoffResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetAllowableFlightModesResponse* other) { + void UnsafeArenaSwap(SetAllowTakeoffResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetAllowableFlightModesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetAllowTakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetAllowableFlightModesResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetAllowableFlightModesResponse& from) { - SetAllowableFlightModesResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetAllowableFlightModesResponse* other); + void InternalSwap(SetAllowTakeoffResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowableFlightModesResponse"; + return "mavsdk.rpc.action_server.SetAllowTakeoffResponse"; } protected: - explicit SetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetAllowTakeoffResponse(::google::protobuf::Arena* arena); + SetAllowTakeoffResponse(::google::protobuf::Arena* arena, const SetAllowTakeoffResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3598,53 +3938,71 @@ class SetAllowableFlightModesResponse final : 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* 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: - void unsafe_arena_set_allocated_action_server_result( - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowTakeoffResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 SetAllowTakeoffResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffResponse) */ { +class RebootResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.RebootResponse) */ { public: - inline SetAllowTakeoffResponse() : SetAllowTakeoffResponse(nullptr) {} - ~SetAllowTakeoffResponse() override; + inline RebootResponse() : RebootResponse(nullptr) {} + ~RebootResponse() override; template - explicit PROTOBUF_CONSTEXPR SetAllowTakeoffResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RebootResponse(::google::protobuf::internal::ConstantInitialized); - SetAllowTakeoffResponse(const SetAllowTakeoffResponse& from); - SetAllowTakeoffResponse(SetAllowTakeoffResponse&& from) noexcept - : SetAllowTakeoffResponse() { + inline RebootResponse(const RebootResponse& from) + : RebootResponse(nullptr, from) {} + RebootResponse(RebootResponse&& from) noexcept + : RebootResponse() { *this = ::std::move(from); } - inline SetAllowTakeoffResponse& operator=(const SetAllowTakeoffResponse& from) { + inline RebootResponse& operator=(const RebootResponse& from) { CopyFrom(from); return *this; } - inline SetAllowTakeoffResponse& operator=(SetAllowTakeoffResponse&& from) noexcept { + inline RebootResponse& operator=(RebootResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3654,96 +4012,99 @@ class SetAllowTakeoffResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetAllowTakeoffResponse& default_instance() { + static const RebootResponse& default_instance() { return *internal_default_instance(); } - static inline const SetAllowTakeoffResponse* internal_default_instance() { - return reinterpret_cast( - &_SetAllowTakeoffResponse_default_instance_); + static inline const RebootResponse* internal_default_instance() { + return reinterpret_cast( + &_RebootResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 16; - friend void swap(SetAllowTakeoffResponse& a, SetAllowTakeoffResponse& b) { + friend void swap(RebootResponse& a, RebootResponse& b) { a.Swap(&b); } - inline void Swap(SetAllowTakeoffResponse* other) { + inline void Swap(RebootResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetAllowTakeoffResponse* other) { + void UnsafeArenaSwap(RebootResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetAllowTakeoffResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RebootResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetAllowTakeoffResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetAllowTakeoffResponse& from) { - SetAllowTakeoffResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetAllowTakeoffResponse* other); + void InternalSwap(RebootResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowTakeoffResponse"; + return "mavsdk.rpc.action_server.RebootResponse"; } protected: - explicit SetAllowTakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RebootResponse(::google::protobuf::Arena* arena); + RebootResponse(::google::protobuf::Arena* arena, const RebootResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3751,6 +4112,7 @@ class SetAllowTakeoffResponse final : enum : int { kActionServerResultFieldNumber = 1, + kRebootFieldNumber = 2, }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; @@ -3758,53 +4120,82 @@ class SetAllowTakeoffResponse final : 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* 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: - void unsafe_arena_set_allocated_action_server_result( - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); - ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + // 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 GetAllowableFlightModesResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) */ { +class LandResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.LandResponse) */ { public: - inline GetAllowableFlightModesResponse() : GetAllowableFlightModesResponse(nullptr) {} - ~GetAllowableFlightModesResponse() override; + inline LandResponse() : LandResponse(nullptr) {} + ~LandResponse() override; template - explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR LandResponse(::google::protobuf::internal::ConstantInitialized); - GetAllowableFlightModesResponse(const GetAllowableFlightModesResponse& from); - GetAllowableFlightModesResponse(GetAllowableFlightModesResponse&& from) noexcept - : GetAllowableFlightModesResponse() { + inline LandResponse(const LandResponse& from) + : LandResponse(nullptr, from) {} + LandResponse(LandResponse&& from) noexcept + : LandResponse() { *this = ::std::move(from); } - inline GetAllowableFlightModesResponse& operator=(const GetAllowableFlightModesResponse& from) { + inline LandResponse& operator=(const LandResponse& from) { CopyFrom(from); return *this; } - inline GetAllowableFlightModesResponse& operator=(GetAllowableFlightModesResponse&& from) noexcept { + inline LandResponse& operator=(LandResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3814,157 +4205,190 @@ class GetAllowableFlightModesResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetAllowableFlightModesResponse& default_instance() { + static const LandResponse& default_instance() { return *internal_default_instance(); } - static inline const GetAllowableFlightModesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetAllowableFlightModesResponse_default_instance_); + static inline const LandResponse* internal_default_instance() { + return reinterpret_cast( + &_LandResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 15; - friend void swap(GetAllowableFlightModesResponse& a, GetAllowableFlightModesResponse& b) { + friend void swap(LandResponse& a, LandResponse& b) { a.Swap(&b); } - inline void Swap(GetAllowableFlightModesResponse* other) { + inline void Swap(LandResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetAllowableFlightModesResponse* other) { + void UnsafeArenaSwap(LandResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GetAllowableFlightModesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + LandResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetAllowableFlightModesResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GetAllowableFlightModesResponse& from) { - GetAllowableFlightModesResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetAllowableFlightModesResponse* other); + void InternalSwap(LandResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.GetAllowableFlightModesResponse"; + return "mavsdk.rpc.action_server.LandResponse"; } protected: - explicit GetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit LandResponse(::google::protobuf::Arena* arena); + LandResponse(::google::protobuf::Arena* arena, const LandResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kFlightModesFieldNumber = 1, + kActionServerResultFieldNumber = 1, + kLandFieldNumber = 2, }; - // .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* flight_modes); + // .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::AllowableFlightModes& _internal_flight_modes() const; - ::mavsdk::rpc::action_server::AllowableFlightModes* _internal_mutable_flight_modes(); + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); + public: - void unsafe_arena_set_allocated_flight_modes( - ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes); - ::mavsdk::rpc::action_server::AllowableFlightModes* unsafe_arena_release_flight_modes(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + // 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; + + 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 AllowableFlightModes final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.AllowableFlightModes) */ { +class GetAllowableFlightModesResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) */ { public: - inline AllowableFlightModes() : AllowableFlightModes(nullptr) {} - ~AllowableFlightModes() override; + inline GetAllowableFlightModesResponse() : GetAllowableFlightModesResponse(nullptr) {} + ~GetAllowableFlightModesResponse() override; template - explicit PROTOBUF_CONSTEXPR AllowableFlightModes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesResponse(::google::protobuf::internal::ConstantInitialized); - AllowableFlightModes(const AllowableFlightModes& from); - AllowableFlightModes(AllowableFlightModes&& from) noexcept - : AllowableFlightModes() { + inline GetAllowableFlightModesResponse(const GetAllowableFlightModesResponse& from) + : GetAllowableFlightModesResponse(nullptr, from) {} + GetAllowableFlightModesResponse(GetAllowableFlightModesResponse&& from) noexcept + : GetAllowableFlightModesResponse() { *this = ::std::move(from); } - inline AllowableFlightModes& operator=(const AllowableFlightModes& from) { + inline GetAllowableFlightModesResponse& operator=(const GetAllowableFlightModesResponse& from) { CopyFrom(from); return *this; } - inline AllowableFlightModes& operator=(AllowableFlightModes&& from) noexcept { + inline GetAllowableFlightModesResponse& operator=(GetAllowableFlightModesResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3974,176 +4398,178 @@ class AllowableFlightModes final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AllowableFlightModes& default_instance() { + static const GetAllowableFlightModesResponse& default_instance() { return *internal_default_instance(); } - static inline const AllowableFlightModes* internal_default_instance() { - return reinterpret_cast( - &_AllowableFlightModes_default_instance_); + static inline const GetAllowableFlightModesResponse* internal_default_instance() { + return reinterpret_cast( + &_GetAllowableFlightModesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 23; - friend void swap(AllowableFlightModes& a, AllowableFlightModes& b) { + friend void swap(GetAllowableFlightModesResponse& a, GetAllowableFlightModesResponse& b) { a.Swap(&b); } - inline void Swap(AllowableFlightModes* other) { + inline void Swap(GetAllowableFlightModesResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AllowableFlightModes* other) { + void UnsafeArenaSwap(GetAllowableFlightModesResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AllowableFlightModes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetAllowableFlightModesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AllowableFlightModes& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AllowableFlightModes& from) { - AllowableFlightModes::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AllowableFlightModes* other); + void InternalSwap(GetAllowableFlightModesResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.AllowableFlightModes"; + return "mavsdk.rpc.action_server.GetAllowableFlightModesResponse"; } protected: - explicit AllowableFlightModes(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GetAllowableFlightModesResponse(::google::protobuf::Arena* arena); + GetAllowableFlightModesResponse(::google::protobuf::Arena* arena, const GetAllowableFlightModesResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kCanAutoModeFieldNumber = 1, - kCanGuidedModeFieldNumber = 2, - kCanStabilizeModeFieldNumber = 3, + kFlightModesFieldNumber = 1, }; - // 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); + // .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: - bool _internal_can_stabilize_mode() const; - void _internal_set_can_stabilize_mode(bool value); + 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.AllowableFlightModes) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - bool can_auto_mode_; - bool can_guided_mode_; - bool can_stabilize_mode_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 ArmDisarm final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarm) */ { +class FlightModeChangeResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.FlightModeChangeResponse) */ { public: - inline ArmDisarm() : ArmDisarm(nullptr) {} - ~ArmDisarm() override; + inline FlightModeChangeResponse() : FlightModeChangeResponse(nullptr) {} + ~FlightModeChangeResponse() override; template - explicit PROTOBUF_CONSTEXPR ArmDisarm(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR FlightModeChangeResponse(::google::protobuf::internal::ConstantInitialized); - ArmDisarm(const ArmDisarm& from); - ArmDisarm(ArmDisarm&& from) noexcept - : ArmDisarm() { + inline FlightModeChangeResponse(const FlightModeChangeResponse& from) + : FlightModeChangeResponse(nullptr, from) {} + FlightModeChangeResponse(FlightModeChangeResponse&& from) noexcept + : FlightModeChangeResponse() { *this = ::std::move(from); } - inline ArmDisarm& operator=(const ArmDisarm& from) { + inline FlightModeChangeResponse& operator=(const FlightModeChangeResponse& from) { CopyFrom(from); return *this; } - inline ArmDisarm& operator=(ArmDisarm&& from) noexcept { + inline FlightModeChangeResponse& operator=(FlightModeChangeResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4153,164 +4579,190 @@ class ArmDisarm final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ArmDisarm& default_instance() { + static const FlightModeChangeResponse& default_instance() { return *internal_default_instance(); } - static inline const ArmDisarm* internal_default_instance() { - return reinterpret_cast( - &_ArmDisarm_default_instance_); + static inline const FlightModeChangeResponse* internal_default_instance() { + return reinterpret_cast( + &_FlightModeChangeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 13; - friend void swap(ArmDisarm& a, ArmDisarm& b) { + friend void swap(FlightModeChangeResponse& a, FlightModeChangeResponse& b) { a.Swap(&b); } - inline void Swap(ArmDisarm* other) { + inline void Swap(FlightModeChangeResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ArmDisarm* other) { + void UnsafeArenaSwap(FlightModeChangeResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ArmDisarm* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + FlightModeChangeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ArmDisarm& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ArmDisarm& from) { - ArmDisarm::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ArmDisarm* other); + void InternalSwap(FlightModeChangeResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ArmDisarm"; + return "mavsdk.rpc.action_server.FlightModeChangeResponse"; } protected: - explicit ArmDisarm(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit FlightModeChangeResponse(::google::protobuf::Arena* arena); + FlightModeChangeResponse(::google::protobuf::Arena* arena, const FlightModeChangeResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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); + 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: - bool _internal_arm() const; - void _internal_set_arm(bool value); + const ::mavsdk::rpc::action_server::ActionServerResult& _internal_action_server_result() const; + ::mavsdk::rpc::action_server::ActionServerResult* _internal_mutable_action_server_result(); public: - // bool force = 2; - void clear_force() ; - bool force() const; - void set_force(bool value); + // .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: - bool _internal_force() const; - void _internal_set_force(bool value); + ::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.ArmDisarm) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.FlightModeChangeResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - bool arm_; - bool force_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 ActionServerResult final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ActionServerResult) */ { +class ArmDisarmResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarmResponse) */ { public: - inline ActionServerResult() : ActionServerResult(nullptr) {} - ~ActionServerResult() override; + inline ArmDisarmResponse() : ArmDisarmResponse(nullptr) {} + ~ArmDisarmResponse() override; template - explicit PROTOBUF_CONSTEXPR ActionServerResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ArmDisarmResponse(::google::protobuf::internal::ConstantInitialized); - ActionServerResult(const ActionServerResult& from); - ActionServerResult(ActionServerResult&& from) noexcept - : ActionServerResult() { + inline ArmDisarmResponse(const ArmDisarmResponse& from) + : ArmDisarmResponse(nullptr, from) {} + ArmDisarmResponse(ArmDisarmResponse&& from) noexcept + : ArmDisarmResponse() { *this = ::std::move(from); } - inline ActionServerResult& operator=(const ActionServerResult& from) { + inline ArmDisarmResponse& operator=(const ArmDisarmResponse& from) { CopyFrom(from); return *this; } - inline ActionServerResult& operator=(ActionServerResult&& from) noexcept { + inline ArmDisarmResponse& operator=(ArmDisarmResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -4320,177 +4772,166 @@ class ActionServerResult final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ActionServerResult& default_instance() { + static const ArmDisarmResponse& default_instance() { return *internal_default_instance(); } - static inline const ActionServerResult* internal_default_instance() { - return reinterpret_cast( - &_ActionServerResult_default_instance_); + static inline const ArmDisarmResponse* internal_default_instance() { + return reinterpret_cast( + &_ArmDisarmResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 12; - friend void swap(ActionServerResult& a, ActionServerResult& b) { + friend void swap(ArmDisarmResponse& a, ArmDisarmResponse& b) { a.Swap(&b); } - inline void Swap(ActionServerResult* other) { + inline void Swap(ArmDisarmResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ActionServerResult* other) { + void UnsafeArenaSwap(ArmDisarmResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ActionServerResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ArmDisarmResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ActionServerResult& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ActionServerResult& from) { - ActionServerResult::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ActionServerResult* other); + void InternalSwap(ArmDisarmResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ActionServerResult"; + return "mavsdk.rpc.action_server.ArmDisarmResponse"; } protected: - explicit ActionServerResult(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ArmDisarmResponse(::google::protobuf::Arena* arena); + ArmDisarmResponse(::google::protobuf::Arena* arena, const ArmDisarmResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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 ::PROTOBUF_NAMESPACE_ID::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, + kActionServerResultFieldNumber = 1, + kArmFieldNumber = 2, }; - // 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* ptr); + // .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 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(); + 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.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); + // .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: - ::mavsdk::rpc::action_server::ActionServerResult_Result _internal_result() const; - void _internal_set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value); + 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.ActionServerResult) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ArmDisarmResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr result_str_; - int result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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; @@ -4514,6 +4955,7 @@ class ActionServerResult final : // 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 { @@ -4525,9 +4967,11 @@ inline void SetAllowTakeoffRequest::set_allow_takeoff(bool 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; } @@ -4538,6 +4982,7 @@ inline void SetAllowTakeoffRequest::_internal_set_allow_takeoff(bool value) { // bool armable = 1; inline void SetArmableRequest::clear_armable() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.armable_ = false; } inline bool SetArmableRequest::armable() const { @@ -4549,15 +4994,18 @@ inline void SetArmableRequest::set_armable(bool 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; } // 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 { @@ -4569,9 +5017,11 @@ inline void SetArmableRequest::set_force_armable(bool 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; } @@ -4582,6 +5032,7 @@ inline void SetArmableRequest::_internal_set_force_armable(bool value) { // bool disarmable = 1; inline void SetDisarmableRequest::clear_disarmable() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.disarmable_ = false; } inline bool SetDisarmableRequest::disarmable() const { @@ -4593,15 +5044,18 @@ inline void SetDisarmableRequest::set_disarmable(bool 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; } // 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 { @@ -4613,9 +5067,11 @@ inline void SetDisarmableRequest::set_force_disarmable(bool 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; } @@ -4631,25 +5087,26 @@ inline bool SetAllowableFlightModesRequest::has_flight_modes() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_); } -inline const ::mavsdk::rpc::action_server::AllowableFlightModes& SetAllowableFlightModesRequest::flight_modes() const { +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* flight_modes) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = flight_modes; - if (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; @@ -4657,57 +5114,65 @@ inline void SetAllowableFlightModesRequest::unsafe_arena_set_allocated_flight_mo // @@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* temp = _impl_.flight_modes_; + ::mavsdk::rpc::action_server::AllowableFlightModes* released = _impl_.flight_modes_; _impl_.flight_modes_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.flight_modes_ = p; + 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() { +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* flight_modes) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.flight_modes_; + delete reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(_impl_.flight_modes_); } - if (flight_modes) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(flight_modes); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value)->GetArena(); if (message_arena != submessage_arena) { - flight_modes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, flight_modes, 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_ = flight_modes; + + _impl_.flight_modes_ = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) } @@ -4754,25 +5219,26 @@ inline bool ArmDisarmResponse::has_action_server_result() const { 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_); + 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 { +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* action_server_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_server_result; - if (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; @@ -4780,57 +5246,65 @@ inline void ArmDisarmResponse::unsafe_arena_set_allocated_action_server_result( // @@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* temp = _impl_.action_server_result_; + ::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<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_server_result_ = p; + 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() { +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* action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_server_result_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); } - if (action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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) { - action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_server_result, 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_ = 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.ArmDisarmResponse.action_server_result) } @@ -4841,25 +5315,26 @@ inline bool ArmDisarmResponse::has_arm() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ArmDisarm_default_instance_); } -inline const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::arm() const { +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* arm) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = arm; - if (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; @@ -4867,57 +5342,65 @@ inline void ArmDisarmResponse::unsafe_arena_set_allocated_arm( // @@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* temp = _impl_.arm_; + ::mavsdk::rpc::action_server::ArmDisarm* released = _impl_.arm_; _impl_.arm_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.arm_ = p; + 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() { +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* arm) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.arm_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(_impl_.arm_); } - if (arm) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arm); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(value)->GetArena(); if (message_arena != submessage_arena) { - arm = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, arm, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.arm_ = arm; + + _impl_.arm_ = reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.arm) } @@ -4932,25 +5415,26 @@ inline bool FlightModeChangeResponse::has_action_server_result() const { 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_); + 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 { +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* action_server_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_server_result; - if (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; @@ -4958,62 +5442,71 @@ inline void FlightModeChangeResponse::unsafe_arena_set_allocated_action_server_r // @@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* temp = _impl_.action_server_result_; + ::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<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_server_result_ = p; + 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() { +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* action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_server_result_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); } - if (action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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) { - action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_server_result, 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_ = 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.FlightModeChangeResponse.action_server_result) } // .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 { @@ -5021,13 +5514,15 @@ inline ::mavsdk::rpc::action_server::FlightMode FlightModeChangeResponse::flight return _internal_flight_mode(); } inline void FlightModeChangeResponse::set_flight_mode(::mavsdk::rpc::action_server::FlightMode value) { - _internal_set_flight_mode(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 { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::mavsdk::rpc::action_server::FlightMode>(_impl_.flight_mode_); } inline void FlightModeChangeResponse::_internal_set_flight_mode(::mavsdk::rpc::action_server::FlightMode value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.flight_mode_ = value; } @@ -5043,25 +5538,26 @@ inline bool TakeoffResponse::has_action_server_result() const { 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_); + 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 { +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* action_server_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_server_result; - if (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; @@ -5069,62 +5565,71 @@ inline void TakeoffResponse::unsafe_arena_set_allocated_action_server_result( // @@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* temp = _impl_.action_server_result_; + ::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<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_server_result_ = p; + 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() { +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* action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_server_result_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); } - if (action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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) { - action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_server_result, 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_ = 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 bool TakeoffResponse::takeoff() const { @@ -5136,9 +5641,11 @@ inline void TakeoffResponse::set_takeoff(bool 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 void TakeoffResponse::_internal_set_takeoff(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.takeoff_ = value; } @@ -5154,25 +5661,26 @@ inline bool LandResponse::has_action_server_result() const { 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_); + 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 { +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* action_server_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_server_result; - if (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; @@ -5180,62 +5688,71 @@ inline void LandResponse::unsafe_arena_set_allocated_action_server_result( // @@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* temp = _impl_.action_server_result_; + ::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<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_server_result_ = p; + 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() { +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* action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_server_result_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); } - if (action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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) { - action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_server_result, 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_ = 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 bool LandResponse::land() const { @@ -5247,9 +5764,11 @@ inline void LandResponse::set_land(bool 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 void LandResponse::_internal_set_land(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.land_ = value; } @@ -5265,25 +5784,26 @@ inline bool RebootResponse::has_action_server_result() const { 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_); + 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 { +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* action_server_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_server_result; - if (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; @@ -5291,62 +5811,71 @@ inline void RebootResponse::unsafe_arena_set_allocated_action_server_result( // @@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* temp = _impl_.action_server_result_; + ::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<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_server_result_ = p; + 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() { +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* action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_server_result_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); } - if (action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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) { - action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_server_result, 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_ = 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 bool RebootResponse::reboot() const { @@ -5358,9 +5887,11 @@ inline void RebootResponse::set_reboot(bool 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 void RebootResponse::_internal_set_reboot(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.reboot_ = value; } @@ -5376,25 +5907,26 @@ inline bool ShutdownResponse::has_action_server_result() const { 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_); + 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 { +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* action_server_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_server_result; - if (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; @@ -5402,62 +5934,71 @@ inline void ShutdownResponse::unsafe_arena_set_allocated_action_server_result( // @@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* temp = _impl_.action_server_result_; + ::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<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_server_result_ = p; + 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() { +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* action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_server_result_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); } - if (action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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) { - action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_server_result, 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_ = 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 bool ShutdownResponse::shutdown() const { @@ -5469,9 +6010,11 @@ inline void ShutdownResponse::set_shutdown(bool 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 void ShutdownResponse::_internal_set_shutdown(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.shutdown_ = value; } @@ -5487,25 +6030,26 @@ inline bool TerminateResponse::has_action_server_result() const { 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_); + 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 { +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* action_server_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_server_result; - if (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; @@ -5513,62 +6057,71 @@ inline void TerminateResponse::unsafe_arena_set_allocated_action_server_result( // @@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* temp = _impl_.action_server_result_; + ::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<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_server_result_ = p; + 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() { +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* action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_server_result_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); } - if (action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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) { - action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_server_result, 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_ = 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 bool TerminateResponse::terminate() const { @@ -5580,9 +6133,11 @@ inline void TerminateResponse::set_terminate(bool 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 void TerminateResponse::_internal_set_terminate(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.terminate_ = value; } @@ -5598,25 +6153,26 @@ inline bool SetArmableResponse::has_action_server_result() const { 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_); + 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 { +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* action_server_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_server_result; - if (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; @@ -5624,57 +6180,65 @@ inline void SetArmableResponse::unsafe_arena_set_allocated_action_server_result( // @@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* temp = _impl_.action_server_result_; + ::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<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_server_result_ = p; + 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() { +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* action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_server_result_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); } - if (action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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) { - action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_server_result, 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_ = 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) } @@ -5689,25 +6253,26 @@ inline bool SetDisarmableResponse::has_action_server_result() const { 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_); + 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 { +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* action_server_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_server_result; - if (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; @@ -5715,57 +6280,65 @@ inline void SetDisarmableResponse::unsafe_arena_set_allocated_action_server_resu // @@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* temp = _impl_.action_server_result_; + ::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<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_server_result_ = p; + 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() { +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* action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_server_result_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); } - if (action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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) { - action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_server_result, 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_ = 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) } @@ -5780,25 +6353,26 @@ inline bool SetAllowableFlightModesResponse::has_action_server_result() const { 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_); + 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 { +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* action_server_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_server_result; - if (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; @@ -5806,57 +6380,65 @@ inline void SetAllowableFlightModesResponse::unsafe_arena_set_allocated_action_s // @@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* temp = _impl_.action_server_result_; + ::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<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_server_result_ = p; + 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() { +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* action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_server_result_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); } - if (action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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) { - action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_server_result, 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_ = 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) } @@ -5871,25 +6453,26 @@ inline bool SetAllowTakeoffResponse::has_action_server_result() const { 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_); + 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 { +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* action_server_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = action_server_result; - if (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; @@ -5897,57 +6480,65 @@ inline void SetAllowTakeoffResponse::unsafe_arena_set_allocated_action_server_re // @@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* temp = _impl_.action_server_result_; + ::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<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.action_server_result_ = p; + 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() { +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* action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.action_server_result_; + delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); } - if (action_server_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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) { - action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, action_server_result, 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_ = 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) } @@ -5962,25 +6553,26 @@ inline bool GetAllowableFlightModesResponse::has_flight_modes() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_); } -inline const ::mavsdk::rpc::action_server::AllowableFlightModes& GetAllowableFlightModesResponse::flight_modes() const { +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* flight_modes) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = flight_modes; - if (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; @@ -5988,57 +6580,65 @@ inline void GetAllowableFlightModesResponse::unsafe_arena_set_allocated_flight_m // @@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* temp = _impl_.flight_modes_; + ::mavsdk::rpc::action_server::AllowableFlightModes* released = _impl_.flight_modes_; _impl_.flight_modes_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.flight_modes_ = p; + 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() { +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* flight_modes) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.flight_modes_; + delete reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(_impl_.flight_modes_); } - if (flight_modes) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(flight_modes); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value)->GetArena(); if (message_arena != submessage_arena) { - flight_modes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, flight_modes, 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_ = 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) } @@ -6048,6 +6648,7 @@ inline void GetAllowableFlightModesResponse::set_allocated_flight_modes(::mavsdk // 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 bool AllowableFlightModes::can_auto_mode() const { @@ -6059,15 +6660,18 @@ inline void AllowableFlightModes::set_can_auto_mode(bool 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 void AllowableFlightModes::_internal_set_can_auto_mode(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 bool AllowableFlightModes::can_guided_mode() const { @@ -6079,15 +6683,18 @@ inline void AllowableFlightModes::set_can_guided_mode(bool 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 void AllowableFlightModes::_internal_set_can_guided_mode(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 bool AllowableFlightModes::can_stabilize_mode() const { @@ -6099,9 +6706,11 @@ inline void AllowableFlightModes::set_can_stabilize_mode(bool 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 void AllowableFlightModes::_internal_set_can_stabilize_mode(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.can_stabilize_mode_ = value; } @@ -6112,6 +6721,7 @@ inline void AllowableFlightModes::_internal_set_can_stabilize_mode(bool value) { // bool arm = 1; inline void ArmDisarm::clear_arm() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.arm_ = false; } inline bool ArmDisarm::arm() const { @@ -6123,15 +6733,18 @@ inline void ArmDisarm::set_arm(bool 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 void ArmDisarm::_internal_set_arm(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.arm_ = value; } // bool force = 2; inline void ArmDisarm::clear_force() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.force_ = false; } inline bool ArmDisarm::force() const { @@ -6143,9 +6756,11 @@ inline void ArmDisarm::set_force(bool 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 void ArmDisarm::_internal_set_force(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _impl_.force_ = value; } @@ -6156,6 +6771,7 @@ inline void ArmDisarm::_internal_set_force(bool value) { // .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 { @@ -6163,59 +6779,67 @@ inline ::mavsdk::rpc::action_server::ActionServerResult_Result ActionServerResul return _internal_result(); } inline void ActionServerResult::set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value) { - _internal_set_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; } // 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 { +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..., GetArenaForAllocation()); + _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() { +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, GetArenaForAllocation()); + _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( GetArenaForAllocation()); + 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) { - _impl_.result_str_.SetAllocated(value, GetArenaForAllocation()); + 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("", GetArenaForAllocation()); + _impl_.result_str_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ActionServerResult.result_str) @@ -6231,7 +6855,8 @@ inline void ActionServerResult::set_allocated_result_str(std::string* value) { } // namespace mavsdk -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { template <> struct is_proto_enum<::mavsdk::rpc::action_server::ActionServerResult_Result> : std::true_type {}; @@ -6246,7 +6871,8 @@ inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action_server::Fli return ::mavsdk::rpc::action_server::FlightMode_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) diff --git a/src/mavsdk_server/src/generated/calibration/calibration.pb.cc b/src/mavsdk_server/src/generated/calibration/calibration.pb.cc index 4a04d83657..fbb5ecf546 100644 --- a/src/mavsdk_server/src/generated/calibration/calibration.pb.cc +++ b/src/mavsdk_server/src/generated/calibration/calibration.pb.cc @@ -11,19 +11,44 @@ #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. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace calibration { -template -PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest( - ::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(::_pbi::ConstantInitialized) {} +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 SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal _SubscribeCalibrateLevelHorizonRequest_default_instance_; + template +PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(::_pbi::ConstantInitialized) {} struct SubscribeCalibrateGyroRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateGyroRequestDefaultTypeInternal() {} @@ -34,26 +59,20 @@ struct SubscribeCalibrateGyroRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateGyroRequestDefaultTypeInternal _SubscribeCalibrateGyroRequest_default_instance_; -template -PROTOBUF_CONSTEXPR CalibrateGyroResponse::CalibrateGyroResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.calibration_result_)*/nullptr - , /*decltype(_impl_.progress_data_)*/nullptr} {} -struct CalibrateGyroResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateGyroResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CalibrateGyroResponseDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(::_pbi::ConstantInitialized) {} +struct SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() {} union { - CalibrateGyroResponse _instance; + SubscribeCalibrateGimbalAccelerometerRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateGyroResponseDefaultTypeInternal _CalibrateGyroResponse_default_instance_; -template -PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest( - ::_pbi::ConstantInitialized) {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal _SubscribeCalibrateGimbalAccelerometerRequest_default_instance_; + template +PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(::_pbi::ConstantInitialized) {} struct SubscribeCalibrateAccelerometerRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateAccelerometerRequestDefaultTypeInternal() {} @@ -64,73 +83,113 @@ struct SubscribeCalibrateAccelerometerRequestDefaultTypeInternal { 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} {} + template -PROTOBUF_CONSTEXPR CalibrateAccelerometerResponse::CalibrateAccelerometerResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.calibration_result_)*/nullptr - , /*decltype(_impl_.progress_data_)*/nullptr} {} -struct CalibrateAccelerometerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateAccelerometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CalibrateAccelerometerResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR ProgressData::ProgressData(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ProgressDataDefaultTypeInternal { + PROTOBUF_CONSTEXPR ProgressDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ProgressDataDefaultTypeInternal() {} union { - CalibrateAccelerometerResponse _instance; + ProgressData _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateAccelerometerResponseDefaultTypeInternal _CalibrateAccelerometerResponse_default_instance_; + 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 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} {} + template -PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeCalibrateMagnetometerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCalibrateMagnetometerRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR CalibrationResult::CalibrationResult(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CalibrationResultDefaultTypeInternal { + PROTOBUF_CONSTEXPR CalibrationResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CalibrationResultDefaultTypeInternal() {} union { - SubscribeCalibrateMagnetometerRequest _instance; + CalibrationResult _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateMagnetometerRequestDefaultTypeInternal _SubscribeCalibrateMagnetometerRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrationResultDefaultTypeInternal _CalibrationResult_default_instance_; + +inline constexpr CancelResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + calibration_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR CalibrateMagnetometerResponse::CalibrateMagnetometerResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.calibration_result_)*/nullptr - , /*decltype(_impl_.progress_data_)*/nullptr} {} -struct CalibrateMagnetometerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateMagnetometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CalibrateMagnetometerResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR CancelResponse::CancelResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CancelResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CancelResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CancelResponseDefaultTypeInternal() {} union { - CalibrateMagnetometerResponse _instance; + CancelResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateMagnetometerResponseDefaultTypeInternal _CalibrateMagnetometerResponse_default_instance_; + 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 SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CalibrateMagnetometerResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CalibrateMagnetometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CalibrateMagnetometerResponseDefaultTypeInternal() {} union { - SubscribeCalibrateLevelHorizonRequest _instance; + CalibrateMagnetometerResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal _SubscribeCalibrateLevelHorizonRequest_default_instance_; + 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_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.calibration_result_)*/nullptr - , /*decltype(_impl_.progress_data_)*/nullptr} {} +PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct CalibrateLevelHorizonResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateLevelHorizonResponseDefaultTypeInternal() {} @@ -141,26 +200,36 @@ struct CalibrateLevelHorizonResponseDefaultTypeInternal { 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} {} + template -PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR CalibrateGyroResponse::CalibrateGyroResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CalibrateGyroResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CalibrateGyroResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CalibrateGyroResponseDefaultTypeInternal() {} union { - SubscribeCalibrateGimbalAccelerometerRequest _instance; + CalibrateGyroResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal _SubscribeCalibrateGimbalAccelerometerRequest_default_instance_; + 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_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.calibration_result_)*/nullptr - , /*decltype(_impl_.progress_data_)*/nullptr} {} +PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct CalibrateGimbalAccelerometerResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateGimbalAccelerometerResponseDefaultTypeInternal() {} @@ -171,79 +240,26 @@ struct CalibrateGimbalAccelerometerResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateGimbalAccelerometerResponseDefaultTypeInternal _CalibrateGimbalAccelerometerResponse_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 CancelRequestDefaultTypeInternal _CancelRequest_default_instance_; -template -PROTOBUF_CONSTEXPR CancelResponse::CancelResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.calibration_result_)*/nullptr} {} -struct CancelResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CancelResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CancelResponseDefaultTypeInternal() {} - union { - CancelResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelResponseDefaultTypeInternal _CancelResponse_default_instance_; -template -PROTOBUF_CONSTEXPR CalibrationResult::CalibrationResult( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.result_str_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.result_)*/ 0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct CalibrationResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrationResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CalibrationResultDefaultTypeInternal() {} - union { - CalibrationResult _instance; - }; -}; +inline constexpr CalibrateAccelerometerResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + calibration_result_{nullptr}, + progress_data_{nullptr} {} -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrationResultDefaultTypeInternal _CalibrationResult_default_instance_; template -PROTOBUF_CONSTEXPR ProgressData::ProgressData( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.status_text_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.progress_)*/ 0 - - , /*decltype(_impl_.has_progress_)*/ false - - , /*decltype(_impl_.has_status_text_)*/ false - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ProgressDataDefaultTypeInternal { - PROTOBUF_CONSTEXPR ProgressDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ProgressDataDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CalibrateAccelerometerResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CalibrateAccelerometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CalibrateAccelerometerResponseDefaultTypeInternal() {} union { - ProgressData _instance; + CalibrateAccelerometerResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProgressDataDefaultTypeInternal _ProgressData_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateAccelerometerResponseDefaultTypeInternal _CalibrateAccelerometerResponse_default_instance_; } // namespace calibration } // namespace rpc } // namespace mavsdk @@ -397,20 +413,20 @@ const ::uint32_t TableStruct_calibration_2fcalibration_2eproto::offsets[] PROTOB 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)}, + {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[] = { @@ -543,28 +559,14 @@ static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_calibration_2fcalibration namespace mavsdk { namespace rpc { namespace calibration { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CalibrationResult_Result_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_calibration_2fcalibration_2eproto); +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) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - return true; - default: - return false; - } + return 0 <= value && value <= 11; } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -593,14 +595,19 @@ class SubscribeCalibrateGyroRequest::_Internal { public: }; -SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) } -SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(const SubscribeCalibrateGyroRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeCalibrateGyroRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -608,19 +615,11 @@ SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(const SubscribeCali -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeCalibrateGyroRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeCalibrateGyroRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCalibrateGyroRequest::GetMetadata() const { +::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]); @@ -642,69 +641,71 @@ class CalibrateGyroResponse::_Internal { } }; -const ::mavsdk::rpc::calibration::CalibrationResult& -CalibrateGyroResponse::_Internal::calibration_result(const CalibrateGyroResponse* msg) { +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) { +const ::mavsdk::rpc::calibration::ProgressData& CalibrateGyroResponse::_Internal::progress_data(const CalibrateGyroResponse* msg) { return *msg->_impl_.progress_data_; } -CalibrateGyroResponse::CalibrateGyroResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CalibrateGyroResponse::CalibrateGyroResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateGyroResponse) } -CalibrateGyroResponse::CalibrateGyroResponse(const CalibrateGyroResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CalibrateGyroResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr} - , decltype(_impl_.progress_data_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from._impl_.progress_data_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr} - , decltype(_impl_.progress_data_){nullptr} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CalibrateGyroResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.calibration_result_; - if (this != internal_default_instance()) delete _impl_.progress_data_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.calibration_result_; + delete _impl_.progress_data_; + _impl_.~Impl_(); } -void CalibrateGyroResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void CalibrateGyroResponse::Clear() { +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; @@ -721,82 +722,79 @@ void CalibrateGyroResponse::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CalibrateGyroResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_progress_data(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* CalibrateGyroResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::calibration_result(this), + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::progress_data(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -814,30 +812,29 @@ ::size_t CalibrateGyroResponse::ByteSizeLong() const { if (cached_has_bits & 0x00000003u) { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.calibration_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.progress_data_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrateGyroResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CalibrateGyroResponse::MergeImpl +const ::google::protobuf::Message::ClassData CalibrateGyroResponse::_class_data_ = { + CalibrateGyroResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrateGyroResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* CalibrateGyroResponse::GetClassData() const { + return &_class_data_; +} -void CalibrateGyroResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -856,7 +853,7 @@ void CalibrateGyroResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, from._internal_progress_data()); } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CalibrateGyroResponse::CopyFrom(const CalibrateGyroResponse& from) { @@ -866,15 +863,18 @@ void CalibrateGyroResponse::CopyFrom(const CalibrateGyroResponse& from) { MergeFrom(from); } -bool CalibrateGyroResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool CalibrateGyroResponse::IsInitialized() const { return true; } -void CalibrateGyroResponse::InternalSwap(CalibrateGyroResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.progress_data_) + sizeof(CalibrateGyroResponse::_impl_.progress_data_) - PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.calibration_result_)>( @@ -882,7 +882,7 @@ void CalibrateGyroResponse::InternalSwap(CalibrateGyroResponse* other) { reinterpret_cast(&other->_impl_.calibration_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata CalibrateGyroResponse::GetMetadata() const { +::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]); @@ -893,14 +893,19 @@ class SubscribeCalibrateAccelerometerRequest::_Internal { public: }; -SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) } -SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(const SubscribeCalibrateAccelerometerRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeCalibrateAccelerometerRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest( + ::google::protobuf::Arena* arena, + const SubscribeCalibrateAccelerometerRequest& from) + : ::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) } @@ -908,19 +913,11 @@ SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(c -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeCalibrateAccelerometerRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeCalibrateAccelerometerRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCalibrateAccelerometerRequest::GetMetadata() const { +::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]); @@ -942,69 +939,71 @@ class CalibrateAccelerometerResponse::_Internal { } }; -const ::mavsdk::rpc::calibration::CalibrationResult& -CalibrateAccelerometerResponse::_Internal::calibration_result(const CalibrateAccelerometerResponse* msg) { +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) { +const ::mavsdk::rpc::calibration::ProgressData& CalibrateAccelerometerResponse::_Internal::progress_data(const CalibrateAccelerometerResponse* msg) { return *msg->_impl_.progress_data_; } -CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) } -CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(const CalibrateAccelerometerResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CalibrateAccelerometerResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr} - , decltype(_impl_.progress_data_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from._impl_.progress_data_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr} - , decltype(_impl_.progress_data_){nullptr} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CalibrateAccelerometerResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.calibration_result_; - if (this != internal_default_instance()) delete _impl_.progress_data_; -} - -void CalibrateAccelerometerResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.calibration_result_; + delete _impl_.progress_data_; + _impl_.~Impl_(); } -void CalibrateAccelerometerResponse::Clear() { +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; @@ -1021,82 +1020,79 @@ void CalibrateAccelerometerResponse::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CalibrateAccelerometerResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_progress_data(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* CalibrateAccelerometerResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::calibration_result(this), + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::progress_data(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -1114,30 +1110,29 @@ ::size_t CalibrateAccelerometerResponse::ByteSizeLong() const { if (cached_has_bits & 0x00000003u) { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.calibration_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.progress_data_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrateAccelerometerResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CalibrateAccelerometerResponse::MergeImpl +const ::google::protobuf::Message::ClassData CalibrateAccelerometerResponse::_class_data_ = { + CalibrateAccelerometerResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrateAccelerometerResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* CalibrateAccelerometerResponse::GetClassData() const { + return &_class_data_; +} -void CalibrateAccelerometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -1156,7 +1151,7 @@ void CalibrateAccelerometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& from._internal_progress_data()); } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CalibrateAccelerometerResponse::CopyFrom(const CalibrateAccelerometerResponse& from) { @@ -1166,15 +1161,18 @@ void CalibrateAccelerometerResponse::CopyFrom(const CalibrateAccelerometerRespon MergeFrom(from); } -bool CalibrateAccelerometerResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool CalibrateAccelerometerResponse::IsInitialized() const { return true; } -void CalibrateAccelerometerResponse::InternalSwap(CalibrateAccelerometerResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.progress_data_) + sizeof(CalibrateAccelerometerResponse::_impl_.progress_data_) - PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.calibration_result_)>( @@ -1182,7 +1180,7 @@ void CalibrateAccelerometerResponse::InternalSwap(CalibrateAccelerometerResponse reinterpret_cast(&other->_impl_.calibration_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata CalibrateAccelerometerResponse::GetMetadata() const { +::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]); @@ -1193,14 +1191,19 @@ class SubscribeCalibrateMagnetometerRequest::_Internal { public: }; -SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) } -SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(const SubscribeCalibrateMagnetometerRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeCalibrateMagnetometerRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest( + ::google::protobuf::Arena* arena, + const SubscribeCalibrateMagnetometerRequest& from) + : ::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) } @@ -1208,19 +1211,11 @@ SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(con -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeCalibrateMagnetometerRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeCalibrateMagnetometerRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCalibrateMagnetometerRequest::GetMetadata() const { +::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]); @@ -1242,69 +1237,71 @@ class CalibrateMagnetometerResponse::_Internal { } }; -const ::mavsdk::rpc::calibration::CalibrationResult& -CalibrateMagnetometerResponse::_Internal::calibration_result(const CalibrateMagnetometerResponse* msg) { +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) { +const ::mavsdk::rpc::calibration::ProgressData& CalibrateMagnetometerResponse::_Internal::progress_data(const CalibrateMagnetometerResponse* msg) { return *msg->_impl_.progress_data_; } -CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) } -CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(const CalibrateMagnetometerResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CalibrateMagnetometerResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr} - , decltype(_impl_.progress_data_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from._impl_.progress_data_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr} - , decltype(_impl_.progress_data_){nullptr} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CalibrateMagnetometerResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.calibration_result_; - if (this != internal_default_instance()) delete _impl_.progress_data_; -} - -void CalibrateMagnetometerResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.calibration_result_; + delete _impl_.progress_data_; + _impl_.~Impl_(); } -void CalibrateMagnetometerResponse::Clear() { +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; @@ -1321,82 +1318,79 @@ void CalibrateMagnetometerResponse::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CalibrateMagnetometerResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_progress_data(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* CalibrateMagnetometerResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::calibration_result(this), + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::progress_data(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -1414,30 +1408,29 @@ ::size_t CalibrateMagnetometerResponse::ByteSizeLong() const { if (cached_has_bits & 0x00000003u) { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.calibration_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.progress_data_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrateMagnetometerResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CalibrateMagnetometerResponse::MergeImpl +const ::google::protobuf::Message::ClassData CalibrateMagnetometerResponse::_class_data_ = { + CalibrateMagnetometerResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrateMagnetometerResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* CalibrateMagnetometerResponse::GetClassData() const { + return &_class_data_; +} -void CalibrateMagnetometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -1456,7 +1449,7 @@ void CalibrateMagnetometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& from._internal_progress_data()); } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CalibrateMagnetometerResponse::CopyFrom(const CalibrateMagnetometerResponse& from) { @@ -1466,15 +1459,18 @@ void CalibrateMagnetometerResponse::CopyFrom(const CalibrateMagnetometerResponse MergeFrom(from); } -bool CalibrateMagnetometerResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool CalibrateMagnetometerResponse::IsInitialized() const { return true; } -void CalibrateMagnetometerResponse::InternalSwap(CalibrateMagnetometerResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.progress_data_) + sizeof(CalibrateMagnetometerResponse::_impl_.progress_data_) - PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.calibration_result_)>( @@ -1482,7 +1478,7 @@ void CalibrateMagnetometerResponse::InternalSwap(CalibrateMagnetometerResponse* reinterpret_cast(&other->_impl_.calibration_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata CalibrateMagnetometerResponse::GetMetadata() const { +::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]); @@ -1493,14 +1489,19 @@ class SubscribeCalibrateLevelHorizonRequest::_Internal { public: }; -SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) } -SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(const SubscribeCalibrateLevelHorizonRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeCalibrateLevelHorizonRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest( + ::google::protobuf::Arena* arena, + const SubscribeCalibrateLevelHorizonRequest& from) + : ::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) } @@ -1508,19 +1509,11 @@ SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(con -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeCalibrateLevelHorizonRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeCalibrateLevelHorizonRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCalibrateLevelHorizonRequest::GetMetadata() const { +::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]); @@ -1542,69 +1535,71 @@ class CalibrateLevelHorizonResponse::_Internal { } }; -const ::mavsdk::rpc::calibration::CalibrationResult& -CalibrateLevelHorizonResponse::_Internal::calibration_result(const CalibrateLevelHorizonResponse* msg) { +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) { +const ::mavsdk::rpc::calibration::ProgressData& CalibrateLevelHorizonResponse::_Internal::progress_data(const CalibrateLevelHorizonResponse* msg) { return *msg->_impl_.progress_data_; } -CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) } -CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(const CalibrateLevelHorizonResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CalibrateLevelHorizonResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr} - , decltype(_impl_.progress_data_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from._impl_.progress_data_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr} - , decltype(_impl_.progress_data_){nullptr} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CalibrateLevelHorizonResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.calibration_result_; - if (this != internal_default_instance()) delete _impl_.progress_data_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.calibration_result_; + delete _impl_.progress_data_; + _impl_.~Impl_(); } -void CalibrateLevelHorizonResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void CalibrateLevelHorizonResponse::Clear() { +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; @@ -1621,82 +1616,79 @@ void CalibrateLevelHorizonResponse::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CalibrateLevelHorizonResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_progress_data(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* CalibrateLevelHorizonResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::calibration_result(this), + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::progress_data(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -1714,30 +1706,29 @@ ::size_t CalibrateLevelHorizonResponse::ByteSizeLong() const { if (cached_has_bits & 0x00000003u) { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.calibration_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.progress_data_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrateLevelHorizonResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CalibrateLevelHorizonResponse::MergeImpl +const ::google::protobuf::Message::ClassData CalibrateLevelHorizonResponse::_class_data_ = { + CalibrateLevelHorizonResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrateLevelHorizonResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* CalibrateLevelHorizonResponse::GetClassData() const { + return &_class_data_; +} -void CalibrateLevelHorizonResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -1756,7 +1747,7 @@ void CalibrateLevelHorizonResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& from._internal_progress_data()); } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CalibrateLevelHorizonResponse::CopyFrom(const CalibrateLevelHorizonResponse& from) { @@ -1766,15 +1757,18 @@ void CalibrateLevelHorizonResponse::CopyFrom(const CalibrateLevelHorizonResponse MergeFrom(from); } -bool CalibrateLevelHorizonResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool CalibrateLevelHorizonResponse::IsInitialized() const { return true; } -void CalibrateLevelHorizonResponse::InternalSwap(CalibrateLevelHorizonResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.progress_data_) + sizeof(CalibrateLevelHorizonResponse::_impl_.progress_data_) - PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.calibration_result_)>( @@ -1782,7 +1776,7 @@ void CalibrateLevelHorizonResponse::InternalSwap(CalibrateLevelHorizonResponse* reinterpret_cast(&other->_impl_.calibration_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata CalibrateLevelHorizonResponse::GetMetadata() const { +::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]); @@ -1793,14 +1787,19 @@ class SubscribeCalibrateGimbalAccelerometerRequest::_Internal { public: }; -SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) } -SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(const SubscribeCalibrateGimbalAccelerometerRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeCalibrateGimbalAccelerometerRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest( + ::google::protobuf::Arena* arena, + const SubscribeCalibrateGimbalAccelerometerRequest& from) + : ::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) } @@ -1808,19 +1807,11 @@ SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerome -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeCalibrateGimbalAccelerometerRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeCalibrateGimbalAccelerometerRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCalibrateGimbalAccelerometerRequest::GetMetadata() const { +::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]); @@ -1842,69 +1833,71 @@ class CalibrateGimbalAccelerometerResponse::_Internal { } }; -const ::mavsdk::rpc::calibration::CalibrationResult& -CalibrateGimbalAccelerometerResponse::_Internal::calibration_result(const CalibrateGimbalAccelerometerResponse* msg) { +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) { +const ::mavsdk::rpc::calibration::ProgressData& CalibrateGimbalAccelerometerResponse::_Internal::progress_data(const CalibrateGimbalAccelerometerResponse* msg) { return *msg->_impl_.progress_data_; } -CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) } -CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse(const CalibrateGimbalAccelerometerResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CalibrateGimbalAccelerometerResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr} - , decltype(_impl_.progress_data_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from._impl_.progress_data_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr} - , decltype(_impl_.progress_data_){nullptr} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CalibrateGimbalAccelerometerResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.calibration_result_; - if (this != internal_default_instance()) delete _impl_.progress_data_; -} - -void CalibrateGimbalAccelerometerResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.calibration_result_; + delete _impl_.progress_data_; + _impl_.~Impl_(); } -void CalibrateGimbalAccelerometerResponse::Clear() { +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; @@ -1921,82 +1914,79 @@ void CalibrateGimbalAccelerometerResponse::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CalibrateGimbalAccelerometerResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_progress_data(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* CalibrateGimbalAccelerometerResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::calibration_result(this), + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::progress_data(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2014,30 +2004,29 @@ ::size_t CalibrateGimbalAccelerometerResponse::ByteSizeLong() const { if (cached_has_bits & 0x00000003u) { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.calibration_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.progress_data_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrateGimbalAccelerometerResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CalibrateGimbalAccelerometerResponse::MergeImpl +const ::google::protobuf::Message::ClassData CalibrateGimbalAccelerometerResponse::_class_data_ = { + CalibrateGimbalAccelerometerResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrateGimbalAccelerometerResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* CalibrateGimbalAccelerometerResponse::GetClassData() const { + return &_class_data_; +} -void CalibrateGimbalAccelerometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2056,7 +2045,7 @@ void CalibrateGimbalAccelerometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Me from._internal_progress_data()); } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CalibrateGimbalAccelerometerResponse::CopyFrom(const CalibrateGimbalAccelerometerResponse& from) { @@ -2066,15 +2055,18 @@ void CalibrateGimbalAccelerometerResponse::CopyFrom(const CalibrateGimbalAcceler MergeFrom(from); } -bool CalibrateGimbalAccelerometerResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool CalibrateGimbalAccelerometerResponse::IsInitialized() const { return true; } -void CalibrateGimbalAccelerometerResponse::InternalSwap(CalibrateGimbalAccelerometerResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.progress_data_) + sizeof(CalibrateGimbalAccelerometerResponse::_impl_.progress_data_) - PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_)>( @@ -2082,7 +2074,7 @@ void CalibrateGimbalAccelerometerResponse::InternalSwap(CalibrateGimbalAccelerom reinterpret_cast(&other->_impl_.calibration_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata CalibrateGimbalAccelerometerResponse::GetMetadata() const { +::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]); @@ -2093,14 +2085,19 @@ class CancelRequest::_Internal { public: }; -CancelRequest::CancelRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +CancelRequest::CancelRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CancelRequest) } -CancelRequest::CancelRequest(const CancelRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - CancelRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -2108,19 +2105,11 @@ CancelRequest::CancelRequest(const CancelRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CancelRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CancelRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata CancelRequest::GetMetadata() const { +::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]); @@ -2138,59 +2127,59 @@ class CancelResponse::_Internal { } }; -const ::mavsdk::rpc::calibration::CalibrationResult& -CancelResponse::_Internal::calibration_result(const CancelResponse* msg) { +const ::mavsdk::rpc::calibration::CalibrationResult& CancelResponse::_Internal::calibration_result(const CancelResponse* msg) { return *msg->_impl_.calibration_result_; } -CancelResponse::CancelResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CancelResponse::CancelResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CancelResponse) } -CancelResponse::CancelResponse(const CancelResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CancelResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr}}; +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::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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.calibration_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.calibration_result_ = {}; } - CancelResponse::~CancelResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CancelResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CancelResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.calibration_result_; -} - -void CancelResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.calibration_result_; + _impl_.~Impl_(); } -void CancelResponse::Clear() { +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; @@ -2201,66 +2190,65 @@ void CancelResponse::Clear() { _impl_.calibration_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CancelResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* CancelResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::calibration_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2277,22 +2265,22 @@ ::size_t CancelResponse::ByteSizeLong() const { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.calibration_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CancelResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CancelResponse::MergeImpl +const ::google::protobuf::Message::ClassData CancelResponse::_class_data_ = { + CancelResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CancelResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* CancelResponse::GetClassData() const { + return &_class_data_; +} -void CancelResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2304,7 +2292,7 @@ void CancelResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( from._internal_calibration_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CancelResponse::CopyFrom(const CancelResponse& from) { @@ -2314,18 +2302,21 @@ void CancelResponse::CopyFrom(const CancelResponse& from) { MergeFrom(from); } -bool CancelResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool CancelResponse::IsInitialized() const { return true; } -void CancelResponse::InternalSwap(CancelResponse* other) { +::_pbi::CachedSize* CancelResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata CancelResponse::GetMetadata() const { +::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]); @@ -2336,132 +2327,115 @@ class CalibrationResult::_Internal { public: }; -CalibrationResult::CalibrationResult(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CalibrationResult::CalibrationResult(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrationResult) } -CalibrationResult::CalibrationResult(const CalibrationResult& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CalibrationResult* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.result_str_) {} - - , decltype(_impl_.result_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +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::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_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.result_str_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_result_str().empty()) { - _this->_impl_.result_str_.Set(from._internal_result_str(), _this->GetArenaForAllocation()); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.result_str_) {} - - , decltype(_impl_.result_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.result_str_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.result_ = {}; } - CalibrationResult::~CalibrationResult() { // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrationResult) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CalibrationResult::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.result_str_.Destroy(); + _impl_.~Impl_(); } -void CalibrationResult::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void CalibrationResult::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CalibrationResult::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_result(static_cast<::mavsdk::rpc::calibration::CalibrationResult_Result>(val)); - } else { - goto handle_unusual; - } - continue; - // string result_str = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_result_str(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.calibration.CalibrationResult.result_str")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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" + }}, +}; + ::uint8_t* CalibrationResult::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; if (this->_internal_result() != 0) { @@ -2473,14 +2447,15 @@ ::uint8_t* CalibrationResult::_InternalSerialize( // string result_str = 2; if (!this->_internal_result_str().empty()) { const std::string& _s = this->_internal_result_str(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.calibration.CalibrationResult.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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2496,7 +2471,7 @@ ::size_t CalibrationResult::ByteSizeLong() const { // string result_str = 2; if (!this->_internal_result_str().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_result_str()); } @@ -2509,14 +2484,15 @@ ::size_t CalibrationResult::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrationResult::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CalibrationResult::MergeImpl +const ::google::protobuf::Message::ClassData CalibrationResult::_class_data_ = { + CalibrationResult::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrationResult::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* CalibrationResult::GetClassData() const { + return &_class_data_; +} -void CalibrationResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2530,7 +2506,7 @@ void CalibrationResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons if (from._internal_result() != 0) { _this->_internal_set_result(from._internal_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CalibrationResult::CopyFrom(const CalibrationResult& from) { @@ -2540,21 +2516,23 @@ void CalibrationResult::CopyFrom(const CalibrationResult& from) { MergeFrom(from); } -bool CalibrationResult::IsInitialized() const { +PROTOBUF_NOINLINE bool CalibrationResult::IsInitialized() const { return true; } -void CalibrationResult::InternalSwap(CalibrationResult* other) { +::_pbi::CachedSize* CalibrationResult::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void CalibrationResult::InternalSwap(CalibrationResult* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, lhs_arena, - &other->_impl_.result_str_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); swap(_impl_.result_, other->_impl_.result_); } -::PROTOBUF_NAMESPACE_ID::Metadata CalibrationResult::GetMetadata() const { +::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]); @@ -2565,78 +2543,65 @@ class ProgressData::_Internal { public: }; -ProgressData::ProgressData(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ProgressData::ProgressData(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.ProgressData) } -ProgressData::ProgressData(const ProgressData& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ProgressData* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.status_text_) {} - - , decltype(_impl_.progress_) {} - - , decltype(_impl_.has_progress_) {} - - , decltype(_impl_.has_status_text_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +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::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_)); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.status_text_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.status_text_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_status_text().empty()) { - _this->_impl_.status_text_.Set(from._internal_status_text(), _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.progress_, &from._impl_.progress_, - static_cast<::size_t>(reinterpret_cast(&_impl_.has_status_text_) - - reinterpret_cast(&_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.status_text_) {} - - , decltype(_impl_.progress_) { 0 } - - , decltype(_impl_.has_progress_) { false } - - , decltype(_impl_.has_status_text_) { false } - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.status_text_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.status_text_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ProgressData::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.status_text_.Destroy(); + _impl_.~Impl_(); } -void ProgressData::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ProgressData::Clear() { +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; @@ -2645,81 +2610,73 @@ void ProgressData::Clear() { ::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ProgressData::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.has_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { - _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - _impl_.has_status_text_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // string status_text = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - auto str = _internal_mutable_status_text(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.calibration.ProgressData.status_text")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // 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" + }}, +}; + ::uint8_t* ProgressData::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; if (this->_internal_has_progress() != 0) { @@ -2729,7 +2686,8 @@ ::uint8_t* ProgressData::_InternalSerialize( } // 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."); + 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)); @@ -2749,14 +2707,15 @@ ::uint8_t* ProgressData::_InternalSerialize( // string status_text = 4; if (!this->_internal_status_text().empty()) { const std::string& _s = this->_internal_status_text(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.calibration.ProgressData.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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2772,12 +2731,13 @@ ::size_t ProgressData::ByteSizeLong() const { // string status_text = 4; if (!this->_internal_status_text().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + 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."); + 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)); @@ -2798,14 +2758,15 @@ ::size_t ProgressData::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProgressData::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ProgressData::MergeImpl +const ::google::protobuf::Message::ClassData ProgressData::_class_data_ = { + ProgressData::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProgressData::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ProgressData::GetClassData() const { + return &_class_data_; +} -void ProgressData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2816,7 +2777,8 @@ void ProgressData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P 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."); + 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)); @@ -2829,7 +2791,7 @@ void ProgressData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P if (from._internal_has_status_text() != 0) { _this->_internal_set_has_status_text(from._internal_has_status_text()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ProgressData::CopyFrom(const ProgressData& from) { @@ -2839,18 +2801,20 @@ void ProgressData::CopyFrom(const ProgressData& from) { MergeFrom(from); } -bool ProgressData::IsInitialized() const { +PROTOBUF_NOINLINE bool ProgressData::IsInitialized() const { return true; } -void ProgressData::InternalSwap(ProgressData* other) { +::_pbi::CachedSize* ProgressData::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void ProgressData::InternalSwap(ProgressData* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.status_text_, lhs_arena, - &other->_impl_.status_text_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_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_)>( @@ -2858,7 +2822,7 @@ void ProgressData::InternalSwap(ProgressData* other) { reinterpret_cast(&other->_impl_.progress_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ProgressData::GetMetadata() const { +::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]); @@ -2867,63 +2831,9 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ProgressData::GetMetadata() const { } // namespace calibration } // namespace rpc } // namespace mavsdk -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::CalibrateGyroResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::CalibrateGyroResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::CalibrateGyroResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::CalibrateAccelerometerResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::CalibrateAccelerometerResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::CalibrateAccelerometerResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::CalibrateMagnetometerResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::CalibrateMagnetometerResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::CalibrateMagnetometerResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::CancelRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::CancelRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::CancelRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::CancelResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::CancelResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::CancelResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::CalibrationResult* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::CalibrationResult >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::CalibrationResult >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::calibration::ProgressData* -Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::ProgressData >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::ProgressData >(arena); -} -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) #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 6f8712524d..aec1afa038 100644 --- a/src/mavsdk_server/src/generated/calibration/calibration.pb.h +++ b/src/mavsdk_server/src/generated/calibration/calibration.pb.h @@ -1,5 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: calibration/calibration.proto +// Protobuf C++ Version: 4.25.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto_2epb_2eh @@ -7,15 +8,16 @@ #include #include #include +#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4023000 +#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 4023002 < PROTOBUF_MIN_PROTOC_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." @@ -25,6 +27,7 @@ #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" #include "google/protobuf/generated_message_bases.h" +#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -41,17 +44,19 @@ #define PROTOBUF_INTERNAL_EXPORT_calibration_2fcalibration_2eproto -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_calibration_2fcalibration_2eproto { static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_calibration_2fcalibration_2eproto; namespace mavsdk { namespace rpc { @@ -101,36 +106,10 @@ extern SubscribeCalibrateMagnetometerRequestDefaultTypeInternal _SubscribeCalibr } // namespace calibration } // namespace rpc } // namespace mavsdk -PROTOBUF_NAMESPACE_OPEN -template <> -::mavsdk::rpc::calibration::CalibrateAccelerometerResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateAccelerometerResponse>(Arena*); -template <> -::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse>(Arena*); -template <> -::mavsdk::rpc::calibration::CalibrateGyroResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateGyroResponse>(Arena*); -template <> -::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse>(Arena*); -template <> -::mavsdk::rpc::calibration::CalibrateMagnetometerResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateMagnetometerResponse>(Arena*); -template <> -::mavsdk::rpc::calibration::CalibrationResult* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(Arena*); -template <> -::mavsdk::rpc::calibration::CancelRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CancelRequest>(Arena*); -template <> -::mavsdk::rpc::calibration::CancelResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CancelResponse>(Arena*); -template <> -::mavsdk::rpc::calibration::ProgressData* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(Arena*); -template <> -::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest>(Arena*); -template <> -::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest>(Arena*); -template <> -::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest>(Arena*); -template <> -::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest>(Arena*); -template <> -::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google namespace mavsdk { namespace rpc { @@ -155,10 +134,11 @@ enum CalibrationResult_Result : int { }; 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 int CalibrationResult_Result_Result_ARRAYSIZE = 11 + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* CalibrationResult_Result_descriptor(); template const std::string& CalibrationResult_Result_Name(T value) { @@ -169,12 +149,12 @@ const std::string& CalibrationResult_Result_Name(T value) { } template <> inline const std::string& CalibrationResult_Result_Name(CalibrationResult_Result value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool CalibrationResult_Result_Parse(absl::string_view name, CalibrationResult_Result* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( CalibrationResult_Result_descriptor(), name, value); } @@ -183,28 +163,29 @@ inline bool CalibrationResult_Result_Parse(absl::string_view name, CalibrationRe // ------------------------------------------------------------------- -class SubscribeCalibrateGyroRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) */ { +class SubscribeCalibrateMagnetometerRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) */ { public: - inline SubscribeCalibrateGyroRequest() : SubscribeCalibrateGyroRequest(nullptr) {} + inline SubscribeCalibrateMagnetometerRequest() : SubscribeCalibrateMagnetometerRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest(::google::protobuf::internal::ConstantInitialized); - SubscribeCalibrateGyroRequest(const SubscribeCalibrateGyroRequest& from); - SubscribeCalibrateGyroRequest(SubscribeCalibrateGyroRequest&& from) noexcept - : SubscribeCalibrateGyroRequest() { + inline SubscribeCalibrateMagnetometerRequest(const SubscribeCalibrateMagnetometerRequest& from) + : SubscribeCalibrateMagnetometerRequest(nullptr, from) {} + SubscribeCalibrateMagnetometerRequest(SubscribeCalibrateMagnetometerRequest&& from) noexcept + : SubscribeCalibrateMagnetometerRequest() { *this = ::std::move(from); } - inline SubscribeCalibrateGyroRequest& operator=(const SubscribeCalibrateGyroRequest& from) { + inline SubscribeCalibrateMagnetometerRequest& operator=(const SubscribeCalibrateMagnetometerRequest& from) { CopyFrom(from); return *this; } - inline SubscribeCalibrateGyroRequest& operator=(SubscribeCalibrateGyroRequest&& from) noexcept { + inline SubscribeCalibrateMagnetometerRequest& operator=(SubscribeCalibrateMagnetometerRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -214,122 +195,133 @@ class SubscribeCalibrateGyroRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeCalibrateGyroRequest& default_instance() { + static const SubscribeCalibrateMagnetometerRequest& default_instance() { return *internal_default_instance(); } - static inline const SubscribeCalibrateGyroRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeCalibrateGyroRequest_default_instance_); + static inline const SubscribeCalibrateMagnetometerRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeCalibrateMagnetometerRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 4; - friend void swap(SubscribeCalibrateGyroRequest& a, SubscribeCalibrateGyroRequest& b) { + friend void swap(SubscribeCalibrateMagnetometerRequest& a, SubscribeCalibrateMagnetometerRequest& b) { a.Swap(&b); } - inline void Swap(SubscribeCalibrateGyroRequest* other) { + inline void Swap(SubscribeCalibrateMagnetometerRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeCalibrateGyroRequest* other) { + void UnsafeArenaSwap(SubscribeCalibrateMagnetometerRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeCalibrateGyroRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCalibrateMagnetometerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeCalibrateGyroRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeCalibrateMagnetometerRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeCalibrateGyroRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeCalibrateMagnetometerRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest"; + return "mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest"; } protected: - explicit SubscribeCalibrateGyroRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeCalibrateMagnetometerRequest(::google::protobuf::Arena* arena); + SubscribeCalibrateMagnetometerRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateMagnetometerRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 CalibrateGyroResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGyroResponse) */ { +class SubscribeCalibrateLevelHorizonRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) */ { public: - inline CalibrateGyroResponse() : CalibrateGyroResponse(nullptr) {} - ~CalibrateGyroResponse() override; + inline SubscribeCalibrateLevelHorizonRequest() : SubscribeCalibrateLevelHorizonRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR CalibrateGyroResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequest(::google::protobuf::internal::ConstantInitialized); - CalibrateGyroResponse(const CalibrateGyroResponse& from); - CalibrateGyroResponse(CalibrateGyroResponse&& from) noexcept - : CalibrateGyroResponse() { + inline SubscribeCalibrateLevelHorizonRequest(const SubscribeCalibrateLevelHorizonRequest& from) + : SubscribeCalibrateLevelHorizonRequest(nullptr, from) {} + SubscribeCalibrateLevelHorizonRequest(SubscribeCalibrateLevelHorizonRequest&& from) noexcept + : SubscribeCalibrateLevelHorizonRequest() { *this = ::std::move(from); } - inline CalibrateGyroResponse& operator=(const CalibrateGyroResponse& from) { + inline SubscribeCalibrateLevelHorizonRequest& operator=(const SubscribeCalibrateLevelHorizonRequest& from) { CopyFrom(from); return *this; } - inline CalibrateGyroResponse& operator=(CalibrateGyroResponse&& from) noexcept { + inline SubscribeCalibrateLevelHorizonRequest& operator=(SubscribeCalibrateLevelHorizonRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -339,172 +331,133 @@ class CalibrateGyroResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CalibrateGyroResponse& default_instance() { + static const SubscribeCalibrateLevelHorizonRequest& default_instance() { return *internal_default_instance(); } - static inline const CalibrateGyroResponse* internal_default_instance() { - return reinterpret_cast( - &_CalibrateGyroResponse_default_instance_); + static inline const SubscribeCalibrateLevelHorizonRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeCalibrateLevelHorizonRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 6; - friend void swap(CalibrateGyroResponse& a, CalibrateGyroResponse& b) { + friend void swap(SubscribeCalibrateLevelHorizonRequest& a, SubscribeCalibrateLevelHorizonRequest& b) { a.Swap(&b); } - inline void Swap(CalibrateGyroResponse* other) { + inline void Swap(SubscribeCalibrateLevelHorizonRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CalibrateGyroResponse* other) { + void UnsafeArenaSwap(SubscribeCalibrateLevelHorizonRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CalibrateGyroResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCalibrateLevelHorizonRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CalibrateGyroResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CalibrateGyroResponse& from) { - CalibrateGyroResponse::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CalibrateGyroResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateGyroResponse"; + return "mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest"; } protected: - explicit CalibrateGyroResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeCalibrateLevelHorizonRequest(::google::protobuf::Arena* arena); + SubscribeCalibrateLevelHorizonRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateLevelHorizonRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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* calibration_result); - private: - const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; - ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); - public: - void unsafe_arena_set_allocated_calibration_result( - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - // .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* progress_data); - private: - const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; - ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); - public: - void unsafe_arena_set_allocated_progress_data( - ::mavsdk::rpc::calibration::ProgressData* progress_data); - ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateGyroResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; };// ------------------------------------------------------------------- -class SubscribeCalibrateAccelerometerRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) */ { +class SubscribeCalibrateGyroRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) */ { public: - inline SubscribeCalibrateAccelerometerRequest() : SubscribeCalibrateAccelerometerRequest(nullptr) {} + inline SubscribeCalibrateGyroRequest() : SubscribeCalibrateGyroRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest(::google::protobuf::internal::ConstantInitialized); - SubscribeCalibrateAccelerometerRequest(const SubscribeCalibrateAccelerometerRequest& from); - SubscribeCalibrateAccelerometerRequest(SubscribeCalibrateAccelerometerRequest&& from) noexcept - : SubscribeCalibrateAccelerometerRequest() { + inline SubscribeCalibrateGyroRequest(const SubscribeCalibrateGyroRequest& from) + : SubscribeCalibrateGyroRequest(nullptr, from) {} + SubscribeCalibrateGyroRequest(SubscribeCalibrateGyroRequest&& from) noexcept + : SubscribeCalibrateGyroRequest() { *this = ::std::move(from); } - inline SubscribeCalibrateAccelerometerRequest& operator=(const SubscribeCalibrateAccelerometerRequest& from) { + inline SubscribeCalibrateGyroRequest& operator=(const SubscribeCalibrateGyroRequest& from) { CopyFrom(from); return *this; } - inline SubscribeCalibrateAccelerometerRequest& operator=(SubscribeCalibrateAccelerometerRequest&& from) noexcept { + inline SubscribeCalibrateGyroRequest& operator=(SubscribeCalibrateGyroRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -514,122 +467,133 @@ class SubscribeCalibrateAccelerometerRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeCalibrateAccelerometerRequest& default_instance() { + static const SubscribeCalibrateGyroRequest& default_instance() { return *internal_default_instance(); } - static inline const SubscribeCalibrateAccelerometerRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeCalibrateAccelerometerRequest_default_instance_); + static inline const SubscribeCalibrateGyroRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeCalibrateGyroRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 0; - friend void swap(SubscribeCalibrateAccelerometerRequest& a, SubscribeCalibrateAccelerometerRequest& b) { + friend void swap(SubscribeCalibrateGyroRequest& a, SubscribeCalibrateGyroRequest& b) { a.Swap(&b); } - inline void Swap(SubscribeCalibrateAccelerometerRequest* other) { + inline void Swap(SubscribeCalibrateGyroRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeCalibrateAccelerometerRequest* other) { + void UnsafeArenaSwap(SubscribeCalibrateGyroRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeCalibrateAccelerometerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCalibrateGyroRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeCalibrateAccelerometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeCalibrateGyroRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeCalibrateAccelerometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeCalibrateGyroRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest"; + return "mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest"; } protected: - explicit SubscribeCalibrateAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeCalibrateGyroRequest(::google::protobuf::Arena* arena); + SubscribeCalibrateGyroRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateGyroRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 CalibrateAccelerometerResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) */ { +class SubscribeCalibrateGimbalAccelerometerRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) */ { public: - inline CalibrateAccelerometerResponse() : CalibrateAccelerometerResponse(nullptr) {} - ~CalibrateAccelerometerResponse() override; + inline SubscribeCalibrateGimbalAccelerometerRequest() : SubscribeCalibrateGimbalAccelerometerRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR CalibrateAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::internal::ConstantInitialized); - CalibrateAccelerometerResponse(const CalibrateAccelerometerResponse& from); - CalibrateAccelerometerResponse(CalibrateAccelerometerResponse&& from) noexcept - : CalibrateAccelerometerResponse() { + inline SubscribeCalibrateGimbalAccelerometerRequest(const SubscribeCalibrateGimbalAccelerometerRequest& from) + : SubscribeCalibrateGimbalAccelerometerRequest(nullptr, from) {} + SubscribeCalibrateGimbalAccelerometerRequest(SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept + : SubscribeCalibrateGimbalAccelerometerRequest() { *this = ::std::move(from); } - inline CalibrateAccelerometerResponse& operator=(const CalibrateAccelerometerResponse& from) { + inline SubscribeCalibrateGimbalAccelerometerRequest& operator=(const SubscribeCalibrateGimbalAccelerometerRequest& from) { CopyFrom(from); return *this; } - inline CalibrateAccelerometerResponse& operator=(CalibrateAccelerometerResponse&& from) noexcept { + inline SubscribeCalibrateGimbalAccelerometerRequest& operator=(SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -639,172 +603,133 @@ class CalibrateAccelerometerResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CalibrateAccelerometerResponse& default_instance() { + static const SubscribeCalibrateGimbalAccelerometerRequest& default_instance() { return *internal_default_instance(); } - static inline const CalibrateAccelerometerResponse* internal_default_instance() { - return reinterpret_cast( - &_CalibrateAccelerometerResponse_default_instance_); + static inline const SubscribeCalibrateGimbalAccelerometerRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 8; - friend void swap(CalibrateAccelerometerResponse& a, CalibrateAccelerometerResponse& b) { + friend void swap(SubscribeCalibrateGimbalAccelerometerRequest& a, SubscribeCalibrateGimbalAccelerometerRequest& b) { a.Swap(&b); } - inline void Swap(CalibrateAccelerometerResponse* other) { + inline void Swap(SubscribeCalibrateGimbalAccelerometerRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CalibrateAccelerometerResponse* other) { + void UnsafeArenaSwap(SubscribeCalibrateGimbalAccelerometerRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CalibrateAccelerometerResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCalibrateGimbalAccelerometerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CalibrateAccelerometerResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CalibrateAccelerometerResponse& from) { - CalibrateAccelerometerResponse::MergeImpl(*this, from); + 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); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CalibrateAccelerometerResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateAccelerometerResponse"; + return "mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest"; } protected: - explicit CalibrateAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::Arena* arena); + SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateGimbalAccelerometerRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCalibrationResultFieldNumber = 1, - kProgressDataFieldNumber = 2, + // @@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 }; - // .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* calibration_result); - private: - const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; - ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); - public: - void unsafe_arena_set_allocated_calibration_result( - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - // .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* progress_data); - private: - const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; - ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); - public: - void unsafe_arena_set_allocated_progress_data( - ::mavsdk::rpc::calibration::ProgressData* progress_data); - ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; };// ------------------------------------------------------------------- -class SubscribeCalibrateMagnetometerRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) */ { +class SubscribeCalibrateAccelerometerRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) */ { public: - inline SubscribeCalibrateMagnetometerRequest() : SubscribeCalibrateMagnetometerRequest(nullptr) {} + inline SubscribeCalibrateAccelerometerRequest() : SubscribeCalibrateAccelerometerRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest(::google::protobuf::internal::ConstantInitialized); - SubscribeCalibrateMagnetometerRequest(const SubscribeCalibrateMagnetometerRequest& from); - SubscribeCalibrateMagnetometerRequest(SubscribeCalibrateMagnetometerRequest&& from) noexcept - : SubscribeCalibrateMagnetometerRequest() { + inline SubscribeCalibrateAccelerometerRequest(const SubscribeCalibrateAccelerometerRequest& from) + : SubscribeCalibrateAccelerometerRequest(nullptr, from) {} + SubscribeCalibrateAccelerometerRequest(SubscribeCalibrateAccelerometerRequest&& from) noexcept + : SubscribeCalibrateAccelerometerRequest() { *this = ::std::move(from); } - inline SubscribeCalibrateMagnetometerRequest& operator=(const SubscribeCalibrateMagnetometerRequest& from) { + inline SubscribeCalibrateAccelerometerRequest& operator=(const SubscribeCalibrateAccelerometerRequest& from) { CopyFrom(from); return *this; } - inline SubscribeCalibrateMagnetometerRequest& operator=(SubscribeCalibrateMagnetometerRequest&& from) noexcept { + inline SubscribeCalibrateAccelerometerRequest& operator=(SubscribeCalibrateAccelerometerRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -814,122 +739,134 @@ class SubscribeCalibrateMagnetometerRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeCalibrateMagnetometerRequest& default_instance() { + static const SubscribeCalibrateAccelerometerRequest& default_instance() { return *internal_default_instance(); } - static inline const SubscribeCalibrateMagnetometerRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeCalibrateMagnetometerRequest_default_instance_); + static inline const SubscribeCalibrateAccelerometerRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeCalibrateAccelerometerRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 2; - friend void swap(SubscribeCalibrateMagnetometerRequest& a, SubscribeCalibrateMagnetometerRequest& b) { + friend void swap(SubscribeCalibrateAccelerometerRequest& a, SubscribeCalibrateAccelerometerRequest& b) { a.Swap(&b); } - inline void Swap(SubscribeCalibrateMagnetometerRequest* other) { + inline void Swap(SubscribeCalibrateAccelerometerRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeCalibrateMagnetometerRequest* other) { + void UnsafeArenaSwap(SubscribeCalibrateAccelerometerRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeCalibrateMagnetometerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCalibrateAccelerometerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeCalibrateMagnetometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeCalibrateAccelerometerRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeCalibrateMagnetometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeCalibrateAccelerometerRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest"; + return "mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest"; } protected: - explicit SubscribeCalibrateMagnetometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeCalibrateAccelerometerRequest(::google::protobuf::Arena* arena); + SubscribeCalibrateAccelerometerRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateAccelerometerRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 CalibrateMagnetometerResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) */ { +class ProgressData final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.ProgressData) */ { public: - inline CalibrateMagnetometerResponse() : CalibrateMagnetometerResponse(nullptr) {} - ~CalibrateMagnetometerResponse() override; + inline ProgressData() : ProgressData(nullptr) {} + ~ProgressData() override; template - explicit PROTOBUF_CONSTEXPR CalibrateMagnetometerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ProgressData(::google::protobuf::internal::ConstantInitialized); - CalibrateMagnetometerResponse(const CalibrateMagnetometerResponse& from); - CalibrateMagnetometerResponse(CalibrateMagnetometerResponse&& from) noexcept - : CalibrateMagnetometerResponse() { + inline ProgressData(const ProgressData& from) + : ProgressData(nullptr, from) {} + ProgressData(ProgressData&& from) noexcept + : ProgressData() { *this = ::std::move(from); } - inline CalibrateMagnetometerResponse& operator=(const CalibrateMagnetometerResponse& from) { + inline ProgressData& operator=(const ProgressData& from) { CopyFrom(from); return *this; } - inline CalibrateMagnetometerResponse& operator=(CalibrateMagnetometerResponse&& from) noexcept { + inline ProgressData& operator=(ProgressData&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -939,172 +876,213 @@ class CalibrateMagnetometerResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CalibrateMagnetometerResponse& default_instance() { + static const ProgressData& default_instance() { return *internal_default_instance(); } - static inline const CalibrateMagnetometerResponse* internal_default_instance() { - return reinterpret_cast( - &_CalibrateMagnetometerResponse_default_instance_); + static inline const ProgressData* internal_default_instance() { + return reinterpret_cast( + &_ProgressData_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 13; - friend void swap(CalibrateMagnetometerResponse& a, CalibrateMagnetometerResponse& b) { + friend void swap(ProgressData& a, ProgressData& b) { a.Swap(&b); } - inline void Swap(CalibrateMagnetometerResponse* other) { + inline void Swap(ProgressData* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CalibrateMagnetometerResponse* other) { + void UnsafeArenaSwap(ProgressData* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CalibrateMagnetometerResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ProgressData* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CalibrateMagnetometerResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CalibrateMagnetometerResponse& from) { - CalibrateMagnetometerResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CalibrateMagnetometerResponse* other); + void InternalSwap(ProgressData* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateMagnetometerResponse"; + return "mavsdk.rpc.calibration.ProgressData"; } protected: - explicit CalibrateMagnetometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ProgressData(::google::protobuf::Arena* arena); + ProgressData(::google::protobuf::Arena* arena, const ProgressData& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kCalibrationResultFieldNumber = 1, - kProgressDataFieldNumber = 2, + kStatusTextFieldNumber = 4, + kProgressFieldNumber = 2, + kHasProgressFieldNumber = 1, + kHasStatusTextFieldNumber = 3, }; - // .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* calibration_result); + // 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 ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; - ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); + 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: - void unsafe_arena_set_allocated_calibration_result( - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - // .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* progress_data); + // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; + void clear_progress() ; + float progress() const; + void set_progress(float value); + private: - const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; - ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); + float _internal_progress() const; + void _internal_set_progress(float value); + public: - void unsafe_arena_set_allocated_progress_data( - ::mavsdk::rpc::calibration::ProgressData* progress_data); - ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + // 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; + + 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 SubscribeCalibrateLevelHorizonRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) */ { +class CancelRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelRequest) */ { public: - inline SubscribeCalibrateLevelHorizonRequest() : SubscribeCalibrateLevelHorizonRequest(nullptr) {} + inline CancelRequest() : CancelRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CancelRequest(::google::protobuf::internal::ConstantInitialized); - SubscribeCalibrateLevelHorizonRequest(const SubscribeCalibrateLevelHorizonRequest& from); - SubscribeCalibrateLevelHorizonRequest(SubscribeCalibrateLevelHorizonRequest&& from) noexcept - : SubscribeCalibrateLevelHorizonRequest() { + inline CancelRequest(const CancelRequest& from) + : CancelRequest(nullptr, from) {} + CancelRequest(CancelRequest&& from) noexcept + : CancelRequest() { *this = ::std::move(from); } - inline SubscribeCalibrateLevelHorizonRequest& operator=(const SubscribeCalibrateLevelHorizonRequest& from) { + inline CancelRequest& operator=(const CancelRequest& from) { CopyFrom(from); return *this; } - inline SubscribeCalibrateLevelHorizonRequest& operator=(SubscribeCalibrateLevelHorizonRequest&& from) noexcept { + inline CancelRequest& operator=(CancelRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1114,122 +1092,134 @@ class SubscribeCalibrateLevelHorizonRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeCalibrateLevelHorizonRequest& default_instance() { + static const CancelRequest& default_instance() { return *internal_default_instance(); } - static inline const SubscribeCalibrateLevelHorizonRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeCalibrateLevelHorizonRequest_default_instance_); + static inline const CancelRequest* internal_default_instance() { + return reinterpret_cast( + &_CancelRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 10; - friend void swap(SubscribeCalibrateLevelHorizonRequest& a, SubscribeCalibrateLevelHorizonRequest& b) { + friend void swap(CancelRequest& a, CancelRequest& b) { a.Swap(&b); } - inline void Swap(SubscribeCalibrateLevelHorizonRequest* other) { + inline void Swap(CancelRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeCalibrateLevelHorizonRequest* other) { + void UnsafeArenaSwap(CancelRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeCalibrateLevelHorizonRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CancelRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeCalibrateLevelHorizonRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const CancelRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeCalibrateLevelHorizonRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const CancelRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest"; + return "mavsdk.rpc.calibration.CancelRequest"; } protected: - explicit SubscribeCalibrateLevelHorizonRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CancelRequest(::google::protobuf::Arena* arena); + CancelRequest(::google::protobuf::Arena* arena, const CancelRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CancelRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 CalibrateLevelHorizonResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) */ { +class CalibrationResult final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrationResult) */ { public: - inline CalibrateLevelHorizonResponse() : CalibrateLevelHorizonResponse(nullptr) {} - ~CalibrateLevelHorizonResponse() override; + inline CalibrationResult() : CalibrationResult(nullptr) {} + ~CalibrationResult() override; template - explicit PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CalibrationResult(::google::protobuf::internal::ConstantInitialized); - CalibrateLevelHorizonResponse(const CalibrateLevelHorizonResponse& from); - CalibrateLevelHorizonResponse(CalibrateLevelHorizonResponse&& from) noexcept - : CalibrateLevelHorizonResponse() { + inline CalibrationResult(const CalibrationResult& from) + : CalibrationResult(nullptr, from) {} + CalibrationResult(CalibrationResult&& from) noexcept + : CalibrationResult() { *this = ::std::move(from); } - inline CalibrateLevelHorizonResponse& operator=(const CalibrateLevelHorizonResponse& from) { + inline CalibrationResult& operator=(const CalibrationResult& from) { CopyFrom(from); return *this; } - inline CalibrateLevelHorizonResponse& operator=(CalibrateLevelHorizonResponse&& from) noexcept { + inline CalibrationResult& operator=(CalibrationResult&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1239,172 +1229,220 @@ class CalibrateLevelHorizonResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CalibrateLevelHorizonResponse& default_instance() { + static const CalibrationResult& default_instance() { return *internal_default_instance(); } - static inline const CalibrateLevelHorizonResponse* internal_default_instance() { - return reinterpret_cast( - &_CalibrateLevelHorizonResponse_default_instance_); + static inline const CalibrationResult* internal_default_instance() { + return reinterpret_cast( + &_CalibrationResult_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 12; - friend void swap(CalibrateLevelHorizonResponse& a, CalibrateLevelHorizonResponse& b) { + friend void swap(CalibrationResult& a, CalibrationResult& b) { a.Swap(&b); } - inline void Swap(CalibrateLevelHorizonResponse* other) { + inline void Swap(CalibrationResult* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CalibrateLevelHorizonResponse* other) { + void UnsafeArenaSwap(CalibrationResult* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CalibrateLevelHorizonResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CalibrationResult* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CalibrateLevelHorizonResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CalibrateLevelHorizonResponse& from) { - CalibrateLevelHorizonResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CalibrateLevelHorizonResponse* other); + void InternalSwap(CalibrationResult* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateLevelHorizonResponse"; + return "mavsdk.rpc.calibration.CalibrationResult"; } protected: - explicit CalibrateLevelHorizonResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CalibrationResult(::google::protobuf::Arena* arena); + CalibrationResult(::google::protobuf::Arena* arena, const CalibrationResult& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() 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 { - kCalibrationResultFieldNumber = 1, - kProgressDataFieldNumber = 2, + kResultStrFieldNumber = 2, + kResultFieldNumber = 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* calibration_result); + // 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 ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; - ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); + 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: - void unsafe_arena_set_allocated_calibration_result( - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - // .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* progress_data); + // .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: - const ::mavsdk::rpc::calibration::ProgressData& _internal_progress_data() const; - ::mavsdk::rpc::calibration::ProgressData* _internal_mutable_progress_data(); + ::mavsdk::rpc::calibration::CalibrationResult_Result _internal_result() const; + void _internal_set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value); + public: - void unsafe_arena_set_allocated_progress_data( - ::mavsdk::rpc::calibration::ProgressData* progress_data); - ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrationResult) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; + + 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 SubscribeCalibrateGimbalAccelerometerRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) */ { +class CancelResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelResponse) */ { public: - inline SubscribeCalibrateGimbalAccelerometerRequest() : SubscribeCalibrateGimbalAccelerometerRequest(nullptr) {} + inline CancelResponse() : CancelResponse(nullptr) {} + ~CancelResponse() override; template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CancelResponse(::google::protobuf::internal::ConstantInitialized); - SubscribeCalibrateGimbalAccelerometerRequest(const SubscribeCalibrateGimbalAccelerometerRequest& from); - SubscribeCalibrateGimbalAccelerometerRequest(SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept - : SubscribeCalibrateGimbalAccelerometerRequest() { + inline CancelResponse(const CancelResponse& from) + : CancelResponse(nullptr, from) {} + CancelResponse(CancelResponse&& from) noexcept + : CancelResponse() { *this = ::std::move(from); } - inline SubscribeCalibrateGimbalAccelerometerRequest& operator=(const SubscribeCalibrateGimbalAccelerometerRequest& from) { + inline CancelResponse& operator=(const CancelResponse& from) { CopyFrom(from); return *this; } - inline SubscribeCalibrateGimbalAccelerometerRequest& operator=(SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept { + inline CancelResponse& operator=(CancelResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1414,122 +1452,178 @@ class SubscribeCalibrateGimbalAccelerometerRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeCalibrateGimbalAccelerometerRequest& default_instance() { + static const CancelResponse& default_instance() { return *internal_default_instance(); } - static inline const SubscribeCalibrateGimbalAccelerometerRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_); + static inline const CancelResponse* internal_default_instance() { + return reinterpret_cast( + &_CancelResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 11; - friend void swap(SubscribeCalibrateGimbalAccelerometerRequest& a, SubscribeCalibrateGimbalAccelerometerRequest& b) { + friend void swap(CancelResponse& a, CancelResponse& b) { a.Swap(&b); } - inline void Swap(SubscribeCalibrateGimbalAccelerometerRequest* other) { + inline void Swap(CancelResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeCalibrateGimbalAccelerometerRequest* other) { + void UnsafeArenaSwap(CancelResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeCalibrateGimbalAccelerometerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeCalibrateGimbalAccelerometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + CancelResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeCalibrateGimbalAccelerometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + ::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.SubscribeCalibrateGimbalAccelerometerRequest"; + return "mavsdk.rpc.calibration.CancelResponse"; } protected: - explicit SubscribeCalibrateGimbalAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CancelResponse(::google::protobuf::Arena* arena); + CancelResponse(::google::protobuf::Arena* arena, const CancelResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 CalibrateGimbalAccelerometerResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) */ { +class CalibrateMagnetometerResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) */ { public: - inline CalibrateGimbalAccelerometerResponse() : CalibrateGimbalAccelerometerResponse(nullptr) {} - ~CalibrateGimbalAccelerometerResponse() override; + inline CalibrateMagnetometerResponse() : CalibrateMagnetometerResponse(nullptr) {} + ~CalibrateMagnetometerResponse() override; template - explicit PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CalibrateMagnetometerResponse(::google::protobuf::internal::ConstantInitialized); - CalibrateGimbalAccelerometerResponse(const CalibrateGimbalAccelerometerResponse& from); - CalibrateGimbalAccelerometerResponse(CalibrateGimbalAccelerometerResponse&& from) noexcept - : CalibrateGimbalAccelerometerResponse() { + inline CalibrateMagnetometerResponse(const CalibrateMagnetometerResponse& from) + : CalibrateMagnetometerResponse(nullptr, from) {} + CalibrateMagnetometerResponse(CalibrateMagnetometerResponse&& from) noexcept + : CalibrateMagnetometerResponse() { *this = ::std::move(from); } - inline CalibrateGimbalAccelerometerResponse& operator=(const CalibrateGimbalAccelerometerResponse& from) { + inline CalibrateMagnetometerResponse& operator=(const CalibrateMagnetometerResponse& from) { CopyFrom(from); return *this; } - inline CalibrateGimbalAccelerometerResponse& operator=(CalibrateGimbalAccelerometerResponse&& from) noexcept { + inline CalibrateMagnetometerResponse& operator=(CalibrateMagnetometerResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1539,96 +1633,99 @@ class CalibrateGimbalAccelerometerResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CalibrateGimbalAccelerometerResponse& default_instance() { + static const CalibrateMagnetometerResponse& default_instance() { return *internal_default_instance(); } - static inline const CalibrateGimbalAccelerometerResponse* internal_default_instance() { - return reinterpret_cast( - &_CalibrateGimbalAccelerometerResponse_default_instance_); + static inline const CalibrateMagnetometerResponse* internal_default_instance() { + return reinterpret_cast( + &_CalibrateMagnetometerResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 5; - friend void swap(CalibrateGimbalAccelerometerResponse& a, CalibrateGimbalAccelerometerResponse& b) { + friend void swap(CalibrateMagnetometerResponse& a, CalibrateMagnetometerResponse& b) { a.Swap(&b); } - inline void Swap(CalibrateGimbalAccelerometerResponse* other) { + inline void Swap(CalibrateMagnetometerResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CalibrateGimbalAccelerometerResponse* other) { + void UnsafeArenaSwap(CalibrateMagnetometerResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CalibrateGimbalAccelerometerResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CalibrateMagnetometerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CalibrateGimbalAccelerometerResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CalibrateGimbalAccelerometerResponse& from) { - CalibrateGimbalAccelerometerResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CalibrateGimbalAccelerometerResponse* other); + void InternalSwap(CalibrateMagnetometerResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse"; + return "mavsdk.rpc.calibration.CalibrateMagnetometerResponse"; } protected: - explicit CalibrateGimbalAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CalibrateMagnetometerResponse(::google::protobuf::Arena* arena); + CalibrateMagnetometerResponse(::google::protobuf::Arena* arena, const CalibrateMagnetometerResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1644,67 +1741,87 @@ class CalibrateGimbalAccelerometerResponse final : 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* 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: - void unsafe_arena_set_allocated_calibration_result( - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); // .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* 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: - void unsafe_arena_set_allocated_progress_data( - ::mavsdk::rpc::calibration::ProgressData* progress_data); - ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 CancelRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelRequest) */ { +class CalibrateLevelHorizonResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) */ { public: - inline CancelRequest() : CancelRequest(nullptr) {} + inline CalibrateLevelHorizonResponse() : CalibrateLevelHorizonResponse(nullptr) {} + ~CalibrateLevelHorizonResponse() override; template - explicit PROTOBUF_CONSTEXPR CancelRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponse(::google::protobuf::internal::ConstantInitialized); - CancelRequest(const CancelRequest& from); - CancelRequest(CancelRequest&& from) noexcept - : CancelRequest() { + inline CalibrateLevelHorizonResponse(const CalibrateLevelHorizonResponse& from) + : CalibrateLevelHorizonResponse(nullptr, from) {} + CalibrateLevelHorizonResponse(CalibrateLevelHorizonResponse&& from) noexcept + : CalibrateLevelHorizonResponse() { *this = ::std::move(from); } - inline CancelRequest& operator=(const CancelRequest& from) { + inline CalibrateLevelHorizonResponse& operator=(const CalibrateLevelHorizonResponse& from) { CopyFrom(from); return *this; } - inline CancelRequest& operator=(CancelRequest&& from) noexcept { + inline CalibrateLevelHorizonResponse& operator=(CalibrateLevelHorizonResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1714,122 +1831,195 @@ class CancelRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CancelRequest& default_instance() { + static const CalibrateLevelHorizonResponse& default_instance() { return *internal_default_instance(); } - static inline const CancelRequest* internal_default_instance() { - return reinterpret_cast( - &_CancelRequest_default_instance_); + static inline const CalibrateLevelHorizonResponse* internal_default_instance() { + return reinterpret_cast( + &_CalibrateLevelHorizonResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 7; - friend void swap(CancelRequest& a, CancelRequest& b) { + friend void swap(CalibrateLevelHorizonResponse& a, CalibrateLevelHorizonResponse& b) { a.Swap(&b); } - inline void Swap(CancelRequest* other) { + inline void Swap(CalibrateLevelHorizonResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CancelRequest* other) { + void UnsafeArenaSwap(CalibrateLevelHorizonResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CancelRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const CancelRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + CalibrateLevelHorizonResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const CancelRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + 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 ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CancelRequest"; + return "mavsdk.rpc.calibration.CalibrateLevelHorizonResponse"; } protected: - explicit CancelRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CalibrateLevelHorizonResponse(::google::protobuf::Arena* arena); + CalibrateLevelHorizonResponse(::google::protobuf::Arena* arena, const CalibrateLevelHorizonResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CancelRequest) + 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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 CancelResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelResponse) */ { +class CalibrateGyroResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGyroResponse) */ { public: - inline CancelResponse() : CancelResponse(nullptr) {} - ~CancelResponse() override; + inline CalibrateGyroResponse() : CalibrateGyroResponse(nullptr) {} + ~CalibrateGyroResponse() override; template - explicit PROTOBUF_CONSTEXPR CancelResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CalibrateGyroResponse(::google::protobuf::internal::ConstantInitialized); - CancelResponse(const CancelResponse& from); - CancelResponse(CancelResponse&& from) noexcept - : CancelResponse() { + inline CalibrateGyroResponse(const CalibrateGyroResponse& from) + : CalibrateGyroResponse(nullptr, from) {} + CalibrateGyroResponse(CalibrateGyroResponse&& from) noexcept + : CalibrateGyroResponse() { *this = ::std::move(from); } - inline CancelResponse& operator=(const CancelResponse& from) { + inline CalibrateGyroResponse& operator=(const CalibrateGyroResponse& from) { CopyFrom(from); return *this; } - inline CancelResponse& operator=(CancelResponse&& from) noexcept { + inline CalibrateGyroResponse& operator=(CalibrateGyroResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1839,96 +2029,99 @@ class CancelResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CancelResponse& default_instance() { + static const CalibrateGyroResponse& default_instance() { return *internal_default_instance(); } - static inline const CancelResponse* internal_default_instance() { - return reinterpret_cast( - &_CancelResponse_default_instance_); + static inline const CalibrateGyroResponse* internal_default_instance() { + return reinterpret_cast( + &_CalibrateGyroResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 1; - friend void swap(CancelResponse& a, CancelResponse& b) { + friend void swap(CalibrateGyroResponse& a, CalibrateGyroResponse& b) { a.Swap(&b); } - inline void Swap(CancelResponse* other) { + inline void Swap(CalibrateGyroResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CancelResponse* other) { + void UnsafeArenaSwap(CalibrateGyroResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CancelResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CalibrateGyroResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CancelResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CancelResponse& from) { - CancelResponse::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CancelResponse* other); + void InternalSwap(CalibrateGyroResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CancelResponse"; + return "mavsdk.rpc.calibration.CalibrateGyroResponse"; } protected: - explicit CancelResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CalibrateGyroResponse(::google::protobuf::Arena* arena); + CalibrateGyroResponse(::google::protobuf::Arena* arena, const CalibrateGyroResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1936,6 +2129,7 @@ class CancelResponse final : enum : int { kCalibrationResultFieldNumber = 1, + kProgressDataFieldNumber = 2, }; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; bool has_calibration_result() const; @@ -1943,53 +2137,87 @@ class CancelResponse final : 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* 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: - void unsafe_arena_set_allocated_calibration_result( - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); - ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CancelResponse) + // .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; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 CalibrationResult final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrationResult) */ { +class CalibrateGimbalAccelerometerResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) */ { public: - inline CalibrationResult() : CalibrationResult(nullptr) {} - ~CalibrationResult() override; + inline CalibrateGimbalAccelerometerResponse() : CalibrateGimbalAccelerometerResponse(nullptr) {} + ~CalibrateGimbalAccelerometerResponse() override; template - explicit PROTOBUF_CONSTEXPR CalibrationResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponse(::google::protobuf::internal::ConstantInitialized); - CalibrationResult(const CalibrationResult& from); - CalibrationResult(CalibrationResult&& from) noexcept - : CalibrationResult() { + inline CalibrateGimbalAccelerometerResponse(const CalibrateGimbalAccelerometerResponse& from) + : CalibrateGimbalAccelerometerResponse(nullptr, from) {} + CalibrateGimbalAccelerometerResponse(CalibrateGimbalAccelerometerResponse&& from) noexcept + : CalibrateGimbalAccelerometerResponse() { *this = ::std::move(from); } - inline CalibrationResult& operator=(const CalibrationResult& from) { + inline CalibrateGimbalAccelerometerResponse& operator=(const CalibrateGimbalAccelerometerResponse& from) { CopyFrom(from); return *this; } - inline CalibrationResult& operator=(CalibrationResult&& from) noexcept { + inline CalibrateGimbalAccelerometerResponse& operator=(CalibrateGimbalAccelerometerResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1999,204 +2227,195 @@ class CalibrationResult final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CalibrationResult& default_instance() { + static const CalibrateGimbalAccelerometerResponse& default_instance() { return *internal_default_instance(); } - static inline const CalibrationResult* internal_default_instance() { - return reinterpret_cast( - &_CalibrationResult_default_instance_); + static inline const CalibrateGimbalAccelerometerResponse* internal_default_instance() { + return reinterpret_cast( + &_CalibrateGimbalAccelerometerResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 9; - friend void swap(CalibrationResult& a, CalibrationResult& b) { + friend void swap(CalibrateGimbalAccelerometerResponse& a, CalibrateGimbalAccelerometerResponse& b) { a.Swap(&b); } - inline void Swap(CalibrationResult* other) { + inline void Swap(CalibrateGimbalAccelerometerResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CalibrationResult* other) { + void UnsafeArenaSwap(CalibrateGimbalAccelerometerResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CalibrationResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CalibrateGimbalAccelerometerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CalibrationResult& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CalibrationResult& from) { - CalibrationResult::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CalibrationResult* other); + void InternalSwap(CalibrateGimbalAccelerometerResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrationResult"; - } - protected: - explicit CalibrationResult(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::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 ::PROTOBUF_NAMESPACE_ID::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); + 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: - // accessors ------------------------------------------------------- - - enum : int { - kResultStrFieldNumber = 2, - kResultFieldNumber = 1, - }; - // string result_str = 2; - void clear_result_str() ; - const std::string& result_str() const; + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- - 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* ptr); + 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 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(); + const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; + ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); 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); + // .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: - ::mavsdk::rpc::calibration::CalibrationResult_Result _internal_result() const; - void _internal_set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value); + 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.CalibrationResult) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr result_str_; - int result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 ProgressData final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.ProgressData) */ { +class CalibrateAccelerometerResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) */ { public: - inline ProgressData() : ProgressData(nullptr) {} - ~ProgressData() override; + inline CalibrateAccelerometerResponse() : CalibrateAccelerometerResponse(nullptr) {} + ~CalibrateAccelerometerResponse() override; template - explicit PROTOBUF_CONSTEXPR ProgressData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CalibrateAccelerometerResponse(::google::protobuf::internal::ConstantInitialized); - ProgressData(const ProgressData& from); - ProgressData(ProgressData&& from) noexcept - : ProgressData() { + inline CalibrateAccelerometerResponse(const CalibrateAccelerometerResponse& from) + : CalibrateAccelerometerResponse(nullptr, from) {} + CalibrateAccelerometerResponse(CalibrateAccelerometerResponse&& from) noexcept + : CalibrateAccelerometerResponse() { *this = ::std::move(from); } - inline ProgressData& operator=(const ProgressData& from) { + inline CalibrateAccelerometerResponse& operator=(const CalibrateAccelerometerResponse& from) { CopyFrom(from); return *this; } - inline ProgressData& operator=(ProgressData&& from) noexcept { + inline CalibrateAccelerometerResponse& operator=(CalibrateAccelerometerResponse&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2206,170 +2425,166 @@ class ProgressData final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ProgressData& default_instance() { + static const CalibrateAccelerometerResponse& default_instance() { return *internal_default_instance(); } - static inline const ProgressData* internal_default_instance() { - return reinterpret_cast( - &_ProgressData_default_instance_); + static inline const CalibrateAccelerometerResponse* internal_default_instance() { + return reinterpret_cast( + &_CalibrateAccelerometerResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 3; - friend void swap(ProgressData& a, ProgressData& b) { + friend void swap(CalibrateAccelerometerResponse& a, CalibrateAccelerometerResponse& b) { a.Swap(&b); } - inline void Swap(ProgressData* other) { + inline void Swap(CalibrateAccelerometerResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ProgressData* other) { + void UnsafeArenaSwap(CalibrateAccelerometerResponse* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ProgressData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CalibrateAccelerometerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ProgressData& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ProgressData& from) { - ProgressData::MergeImpl(*this, from); + 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(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ProgressData* other); + void InternalSwap(CalibrateAccelerometerResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.ProgressData"; + return "mavsdk.rpc.calibration.CalibrateAccelerometerResponse"; } protected: - explicit ProgressData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CalibrateAccelerometerResponse(::google::protobuf::Arena* arena); + CalibrateAccelerometerResponse(::google::protobuf::Arena* arena, const CalibrateAccelerometerResponse& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kStatusTextFieldNumber = 4, - kProgressFieldNumber = 2, - kHasProgressFieldNumber = 1, - kHasStatusTextFieldNumber = 3, + kCalibrationResultFieldNumber = 1, + kProgressDataFieldNumber = 2, }; - // 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* ptr); - - 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); + // .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: - bool _internal_has_progress() const; - void _internal_set_has_progress(bool value); + const ::mavsdk::rpc::calibration::CalibrationResult& _internal_calibration_result() const; + ::mavsdk::rpc::calibration::CalibrationResult* _internal_mutable_calibration_result(); 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); + // .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: - bool _internal_has_status_text() const; - void _internal_set_has_status_text(bool value); + 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.ProgressData) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr status_text_; - float progress_; - bool has_progress_; - bool has_status_text_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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; @@ -2402,25 +2617,26 @@ inline bool CalibrateGyroResponse::has_calibration_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGyroResponse::calibration_result() const { +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* calibration_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = calibration_result; - if (calibration_result) { + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -2428,57 +2644,65 @@ inline void CalibrateGyroResponse::unsafe_arena_set_allocated_calibration_result // @@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* temp = _impl_.calibration_result_; + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.calibration_result_ = p; + 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() { +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* calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.calibration_result_; + delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); } - if (calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(calibration_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, calibration_result, 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_ = calibration_result; + + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) } @@ -2489,25 +2713,26 @@ inline bool CalibrateGyroResponse::has_progress_data() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); } -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGyroResponse::progress_data() const { +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* progress_data) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = progress_data; - if (progress_data) { + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; @@ -2515,57 +2740,65 @@ inline void CalibrateGyroResponse::unsafe_arena_set_allocated_progress_data( // @@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* temp = _impl_.progress_data_; + ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; _impl_.progress_data_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.progress_data_ = p; + 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() { +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* progress_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.progress_data_; + delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); } - if (progress_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(progress_data); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); if (message_arena != submessage_arena) { - progress_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, progress_data, 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_ = progress_data; + + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) } @@ -2584,25 +2817,26 @@ inline bool CalibrateAccelerometerResponse::has_calibration_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateAccelerometerResponse::calibration_result() const { +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* calibration_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = calibration_result; - if (calibration_result) { + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -2610,57 +2844,65 @@ inline void CalibrateAccelerometerResponse::unsafe_arena_set_allocated_calibrati // @@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* temp = _impl_.calibration_result_; + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.calibration_result_ = p; + 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() { +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* calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.calibration_result_; + delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); } - if (calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(calibration_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, calibration_result, 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_ = calibration_result; + + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) } @@ -2671,25 +2913,26 @@ inline bool CalibrateAccelerometerResponse::has_progress_data() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); } -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateAccelerometerResponse::progress_data() const { +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* progress_data) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = progress_data; - if (progress_data) { + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; @@ -2697,57 +2940,65 @@ inline void CalibrateAccelerometerResponse::unsafe_arena_set_allocated_progress_ // @@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* temp = _impl_.progress_data_; + ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; _impl_.progress_data_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.progress_data_ = p; + 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() { +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* progress_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.progress_data_; + delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); } - if (progress_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(progress_data); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); if (message_arena != submessage_arena) { - progress_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, progress_data, 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_ = progress_data; + + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) } @@ -2766,25 +3017,26 @@ inline bool CalibrateMagnetometerResponse::has_calibration_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateMagnetometerResponse::calibration_result() const { +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* calibration_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = calibration_result; - if (calibration_result) { + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -2792,57 +3044,65 @@ inline void CalibrateMagnetometerResponse::unsafe_arena_set_allocated_calibratio // @@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* temp = _impl_.calibration_result_; + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.calibration_result_ = p; + 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() { +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* calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.calibration_result_; + delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); } - if (calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(calibration_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, calibration_result, 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_ = calibration_result; + + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) } @@ -2853,25 +3113,26 @@ inline bool CalibrateMagnetometerResponse::has_progress_data() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); } -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateMagnetometerResponse::progress_data() const { +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* progress_data) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = progress_data; - if (progress_data) { + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; @@ -2879,57 +3140,65 @@ inline void CalibrateMagnetometerResponse::unsafe_arena_set_allocated_progress_d // @@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* temp = _impl_.progress_data_; + ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; _impl_.progress_data_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.progress_data_ = p; + 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() { +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* progress_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.progress_data_; + delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); } - if (progress_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(progress_data); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); if (message_arena != submessage_arena) { - progress_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, progress_data, 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_ = progress_data; + + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) } @@ -2948,25 +3217,26 @@ inline bool CalibrateLevelHorizonResponse::has_calibration_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateLevelHorizonResponse::calibration_result() const { +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* calibration_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = calibration_result; - if (calibration_result) { + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -2974,57 +3244,65 @@ inline void CalibrateLevelHorizonResponse::unsafe_arena_set_allocated_calibratio // @@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* temp = _impl_.calibration_result_; + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.calibration_result_ = p; + 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() { +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* calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.calibration_result_; + delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); } - if (calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(calibration_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, calibration_result, 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_ = calibration_result; + + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) } @@ -3035,25 +3313,26 @@ inline bool CalibrateLevelHorizonResponse::has_progress_data() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); } -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateLevelHorizonResponse::progress_data() const { +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* progress_data) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = progress_data; - if (progress_data) { + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; @@ -3061,57 +3340,65 @@ inline void CalibrateLevelHorizonResponse::unsafe_arena_set_allocated_progress_d // @@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* temp = _impl_.progress_data_; + ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; _impl_.progress_data_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.progress_data_ = p; + 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() { +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* progress_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.progress_data_; + delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); } - if (progress_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(progress_data); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); if (message_arena != submessage_arena) { - progress_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, progress_data, 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_ = progress_data; + + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) } @@ -3130,25 +3417,26 @@ inline bool CalibrateGimbalAccelerometerResponse::has_calibration_result() const 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } -inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGimbalAccelerometerResponse::calibration_result() const { +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* calibration_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = calibration_result; - if (calibration_result) { + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -3156,57 +3444,65 @@ inline void CalibrateGimbalAccelerometerResponse::unsafe_arena_set_allocated_cal // @@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* temp = _impl_.calibration_result_; + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.calibration_result_ = p; + 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() { +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* calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.calibration_result_; + delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); } - if (calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(calibration_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, calibration_result, 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_ = calibration_result; + + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) } @@ -3217,25 +3513,26 @@ inline bool CalibrateGimbalAccelerometerResponse::has_progress_data() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); } -inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGimbalAccelerometerResponse::progress_data() const { +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* progress_data) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = progress_data; - if (progress_data) { + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; @@ -3243,57 +3540,65 @@ inline void CalibrateGimbalAccelerometerResponse::unsafe_arena_set_allocated_pro // @@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* temp = _impl_.progress_data_; + ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; _impl_.progress_data_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.progress_data_ = p; + 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() { +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* progress_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.progress_data_; + delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); } - if (progress_data) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(progress_data); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); if (message_arena != submessage_arena) { - progress_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, progress_data, 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_ = progress_data; + + _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) } @@ -3312,25 +3617,26 @@ inline bool CancelResponse::has_calibration_result() const { 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_); + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } -inline const ::mavsdk::rpc::calibration::CalibrationResult& CancelResponse::calibration_result() const { +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* calibration_result) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.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_ = calibration_result; - if (calibration_result) { + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -3338,57 +3644,65 @@ inline void CancelResponse::unsafe_arena_set_allocated_calibration_result( // @@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* temp = _impl_.calibration_result_; + ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + 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 temp; + 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>(GetArenaForAllocation()); - _impl_.calibration_result_ = p; + 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() { +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* calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +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 _impl_.calibration_result_; + delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); } - if (calibration_result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(calibration_result); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); if (message_arena != submessage_arena) { - calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, calibration_result, 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_ = calibration_result; + + _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value); // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CancelResponse.calibration_result) } @@ -3398,6 +3712,7 @@ inline void CancelResponse::set_allocated_calibration_result(::mavsdk::rpc::cali // .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 { @@ -3405,59 +3720,67 @@ inline ::mavsdk::rpc::calibration::CalibrationResult_Result CalibrationResult::r return _internal_result(); } inline void CalibrationResult::set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value) { - _internal_set_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; } // 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 { +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..., GetArenaForAllocation()); + _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() { +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, GetArenaForAllocation()); + _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( GetArenaForAllocation()); + 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) { - _impl_.result_str_.SetAllocated(value, GetArenaForAllocation()); + 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("", GetArenaForAllocation()); + _impl_.result_str_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrationResult.result_str) @@ -3469,6 +3792,7 @@ inline void CalibrationResult::set_allocated_result_str(std::string* value) { // 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 bool ProgressData::has_progress() const { @@ -3480,15 +3804,18 @@ inline void ProgressData::set_has_progress(bool 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 void ProgressData::_internal_set_has_progress(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 float ProgressData::progress() const { @@ -3500,15 +3827,18 @@ inline void ProgressData::set_progress(float 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 void ProgressData::_internal_set_progress(float value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 bool ProgressData::has_status_text() const { @@ -3520,55 +3850,63 @@ inline void ProgressData::set_has_status_text(bool 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 void ProgressData::_internal_set_has_status_text(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ; _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 { +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..., GetArenaForAllocation()); + _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() { +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, GetArenaForAllocation()); + _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( GetArenaForAllocation()); + 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) { - _impl_.status_text_.SetAllocated(value, GetArenaForAllocation()); + 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("", GetArenaForAllocation()); + _impl_.status_text_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.ProgressData.status_text) @@ -3584,7 +3922,8 @@ inline void ProgressData::set_allocated_status_text(std::string* value) { } // namespace mavsdk -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { template <> struct is_proto_enum<::mavsdk::rpc::calibration::CalibrationResult_Result> : std::true_type {}; @@ -3593,7 +3932,8 @@ inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::calibration::Calib return ::mavsdk::rpc::calibration::CalibrationResult_Result_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) diff --git a/src/mavsdk_server/src/generated/camera/camera.pb.cc b/src/mavsdk_server/src/generated/camera/camera.pb.cc index 81acedcb8c..6a42fa9005 100644 --- a/src/mavsdk_server/src/generated/camera/camera.pb.cc +++ b/src/mavsdk_server/src/generated/camera/camera.pb.cc @@ -11,48 +11,47 @@ #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. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace camera { -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 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 PrepareResponse::PrepareResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct PrepareResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR PrepareResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PrepareResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR VideoStreamSettings::VideoStreamSettings(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct VideoStreamSettingsDefaultTypeInternal { + PROTOBUF_CONSTEXPR VideoStreamSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~VideoStreamSettingsDefaultTypeInternal() {} union { - PrepareResponse _instance; + VideoStreamSettings _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrepareResponseDefaultTypeInternal _PrepareResponse_default_instance_; -template -PROTOBUF_CONSTEXPR TakePhotoRequest::TakePhotoRequest( - ::_pbi::ConstantInitialized) {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamSettingsDefaultTypeInternal _VideoStreamSettings_default_instance_; + template +PROTOBUF_CONSTEXPR TakePhotoRequest::TakePhotoRequest(::_pbi::ConstantInitialized) {} struct TakePhotoRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TakePhotoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakePhotoRequestDefaultTypeInternal() {} @@ -63,115 +62,111 @@ struct TakePhotoRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakePhotoRequestDefaultTypeInternal _TakePhotoRequest_default_instance_; -template -PROTOBUF_CONSTEXPR TakePhotoResponse::TakePhotoResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct TakePhotoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakePhotoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TakePhotoResponseDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(::_pbi::ConstantInitialized) {} +struct SubscribeVideoStreamInfoRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SubscribeVideoStreamInfoRequestDefaultTypeInternal() {} union { - TakePhotoResponse _instance; + SubscribeVideoStreamInfoRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakePhotoResponseDefaultTypeInternal _TakePhotoResponse_default_instance_; -template -PROTOBUF_CONSTEXPR StartPhotoIntervalRequest::StartPhotoIntervalRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.interval_s_)*/ 0 + 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; + }; +}; - , /*decltype(_impl_._cached_size_)*/{}} {} -struct StartPhotoIntervalRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartPhotoIntervalRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartPhotoIntervalRequestDefaultTypeInternal() {} +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 { - StartPhotoIntervalRequest _instance; + SubscribePossibleSettingOptionsRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartPhotoIntervalRequestDefaultTypeInternal _StartPhotoIntervalRequest_default_instance_; -template -PROTOBUF_CONSTEXPR StartPhotoIntervalResponse::StartPhotoIntervalResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct StartPhotoIntervalResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartPhotoIntervalResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartPhotoIntervalResponseDefaultTypeInternal() {} + 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 { - StartPhotoIntervalResponse _instance; + SubscribeModeRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartPhotoIntervalResponseDefaultTypeInternal _StartPhotoIntervalResponse_default_instance_; -template -PROTOBUF_CONSTEXPR StopPhotoIntervalRequest::StopPhotoIntervalRequest( - ::_pbi::ConstantInitialized) {} -struct StopPhotoIntervalRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopPhotoIntervalRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopPhotoIntervalRequestDefaultTypeInternal() {} + 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 { - StopPhotoIntervalRequest _instance; + SubscribeInformationRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPhotoIntervalRequestDefaultTypeInternal _StopPhotoIntervalRequest_default_instance_; -template -PROTOBUF_CONSTEXPR StopPhotoIntervalResponse::StopPhotoIntervalResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct StopPhotoIntervalResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopPhotoIntervalResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopPhotoIntervalResponseDefaultTypeInternal() {} + 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 { - StopPhotoIntervalResponse _instance; + SubscribeCurrentSettingsRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPhotoIntervalResponseDefaultTypeInternal _StopPhotoIntervalResponse_default_instance_; -template -PROTOBUF_CONSTEXPR StartVideoRequest::StartVideoRequest( - ::_pbi::ConstantInitialized) {} -struct StartVideoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartVideoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartVideoRequestDefaultTypeInternal() {} + 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 { - StartVideoRequest _instance; + SubscribeCaptureInfoRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoRequestDefaultTypeInternal _StartVideoRequest_default_instance_; + 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 StartVideoResponse::StartVideoResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct StartVideoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartVideoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartVideoResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR StopVideoStreamingRequest::StopVideoStreamingRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct StopVideoStreamingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopVideoStreamingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StopVideoStreamingRequestDefaultTypeInternal() {} union { - StartVideoResponse _instance; + StopVideoStreamingRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoResponseDefaultTypeInternal _StartVideoResponse_default_instance_; -template -PROTOBUF_CONSTEXPR StopVideoRequest::StopVideoRequest( - ::_pbi::ConstantInitialized) {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoStreamingRequestDefaultTypeInternal _StopVideoStreamingRequest_default_instance_; + template +PROTOBUF_CONSTEXPR StopVideoRequest::StopVideoRequest(::_pbi::ConstantInitialized) {} struct StopVideoRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR StopVideoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopVideoRequestDefaultTypeInternal() {} @@ -182,28 +177,57 @@ struct StopVideoRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoRequestDefaultTypeInternal _StopVideoRequest_default_instance_; -template -PROTOBUF_CONSTEXPR StopVideoResponse::StopVideoResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct StopVideoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopVideoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopVideoResponseDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR StopPhotoIntervalRequest::StopPhotoIntervalRequest(::_pbi::ConstantInitialized) {} +struct StopPhotoIntervalRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopPhotoIntervalRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StopPhotoIntervalRequestDefaultTypeInternal() {} union { - StopVideoResponse _instance; + StopPhotoIntervalRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoResponseDefaultTypeInternal _StopVideoResponse_default_instance_; + 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 StartVideoStreamingRequest::StartVideoStreamingRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.stream_id_)*/ 0 +PROTOBUF_CONSTEXPR Status::Status(::_pbi::ConstantInitialized) + : _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} {} - , /*decltype(_impl_._cached_size_)*/{}} {} +template +PROTOBUF_CONSTEXPR StartVideoStreamingRequest::StartVideoStreamingRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct StartVideoStreamingRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR StartVideoStreamingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartVideoStreamingRequestDefaultTypeInternal() {} @@ -214,60 +238,46 @@ struct StartVideoStreamingRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoStreamingRequestDefaultTypeInternal _StartVideoStreamingRequest_default_instance_; -template -PROTOBUF_CONSTEXPR StartVideoStreamingResponse::StartVideoStreamingResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct StartVideoStreamingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartVideoStreamingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StartVideoStreamingResponseDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR StartVideoRequest::StartVideoRequest(::_pbi::ConstantInitialized) {} +struct StartVideoRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StartVideoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StartVideoRequestDefaultTypeInternal() {} union { - StartVideoStreamingResponse _instance; + StartVideoRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoStreamingResponseDefaultTypeInternal _StartVideoStreamingResponse_default_instance_; -template -PROTOBUF_CONSTEXPR StopVideoStreamingRequest::StopVideoStreamingRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.stream_id_)*/ 0 + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoRequestDefaultTypeInternal _StartVideoRequest_default_instance_; - , /*decltype(_impl_._cached_size_)*/{}} {} -struct StopVideoStreamingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopVideoStreamingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopVideoStreamingRequestDefaultTypeInternal() {} - union { - StopVideoStreamingRequest _instance; - }; -}; +inline constexpr StartPhotoIntervalRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : interval_s_{0}, + _cached_size_{0} {} -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoStreamingRequestDefaultTypeInternal _StopVideoStreamingRequest_default_instance_; template -PROTOBUF_CONSTEXPR StopVideoStreamingResponse::StopVideoStreamingResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct StopVideoStreamingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopVideoStreamingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StopVideoStreamingResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR StartPhotoIntervalRequest::StartPhotoIntervalRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct StartPhotoIntervalRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR StartPhotoIntervalRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StartPhotoIntervalRequestDefaultTypeInternal() {} union { - StopVideoStreamingResponse _instance; + StartPhotoIntervalRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoStreamingResponseDefaultTypeInternal _StopVideoStreamingResponse_default_instance_; -template -PROTOBUF_CONSTEXPR SetModeRequest::SetModeRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.mode_)*/ 0 + 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} {} - , /*decltype(_impl_._cached_size_)*/{}} {} +template +PROTOBUF_CONSTEXPR SetModeRequest::SetModeRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct SetModeRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SetModeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetModeRequestDefaultTypeInternal() {} @@ -278,103 +288,126 @@ struct SetModeRequestDefaultTypeInternal { 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} {} + template -PROTOBUF_CONSTEXPR SetModeResponse::SetModeResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct SetModeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetModeResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SelectCameraRequest::SelectCameraRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SelectCameraRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SelectCameraRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SelectCameraRequestDefaultTypeInternal() {} union { - SetModeResponse _instance; + SelectCameraRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeResponseDefaultTypeInternal _SetModeResponse_default_instance_; -template -PROTOBUF_CONSTEXPR ListPhotosRequest::ListPhotosRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.photos_range_)*/ 0 - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ListPhotosRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListPhotosRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListPhotosRequestDefaultTypeInternal() {} + 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 { - ListPhotosRequest _instance; + ResetSettingsRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPhotosRequestDefaultTypeInternal _ListPhotosRequest_default_instance_; + 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 ListPhotosResponse::ListPhotosResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.capture_infos_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct ListPhotosResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListPhotosResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListPhotosResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Quaternion::Quaternion(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct QuaternionDefaultTypeInternal { + PROTOBUF_CONSTEXPR QuaternionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~QuaternionDefaultTypeInternal() {} union { - ListPhotosResponse _instance; + Quaternion _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPhotosResponseDefaultTypeInternal _ListPhotosResponse_default_instance_; -template -PROTOBUF_CONSTEXPR SubscribeInformationRequest::SubscribeInformationRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeInformationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeInformationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeInformationRequestDefaultTypeInternal() {} + 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 { - SubscribeInformationRequest _instance; + PrepareRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeInformationRequestDefaultTypeInternal _SubscribeInformationRequest_default_instance_; + 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 InformationResponse::InformationResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.information_)*/nullptr} {} -struct InformationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR InformationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InformationResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Position::Position(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct PositionDefaultTypeInternal { + PROTOBUF_CONSTEXPR PositionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PositionDefaultTypeInternal() {} union { - InformationResponse _instance; + Position _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InformationResponseDefaultTypeInternal _InformationResponse_default_instance_; + 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} {} + template -PROTOBUF_CONSTEXPR SubscribeModeRequest::SubscribeModeRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeModeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeModeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeModeRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Option::Option(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct OptionDefaultTypeInternal { + PROTOBUF_CONSTEXPR OptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~OptionDefaultTypeInternal() {} union { - SubscribeModeRequest _instance; + Option _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeModeRequestDefaultTypeInternal _SubscribeModeRequest_default_instance_; -template -PROTOBUF_CONSTEXPR ModeResponse::ModeResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.mode_)*/ 0 + 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} {} - , /*decltype(_impl_._cached_size_)*/{}} {} +template +PROTOBUF_CONSTEXPR ModeResponse::ModeResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct ModeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ModeResponseDefaultTypeInternal() {} @@ -385,297 +418,407 @@ struct ModeResponseDefaultTypeInternal { 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} {} + template -PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeVideoStreamInfoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeVideoStreamInfoRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR ListPhotosRequest::ListPhotosRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ListPhotosRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListPhotosRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ListPhotosRequestDefaultTypeInternal() {} union { - SubscribeVideoStreamInfoRequest _instance; + ListPhotosRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeVideoStreamInfoRequestDefaultTypeInternal _SubscribeVideoStreamInfoRequest_default_instance_; -template -PROTOBUF_CONSTEXPR VideoStreamInfoResponse::VideoStreamInfoResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.video_stream_info_)*/nullptr} {} -struct VideoStreamInfoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR VideoStreamInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~VideoStreamInfoResponseDefaultTypeInternal() {} + 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()) {} +struct InformationDefaultTypeInternal { + PROTOBUF_CONSTEXPR InformationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~InformationDefaultTypeInternal() {} union { - VideoStreamInfoResponse _instance; + Information _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamInfoResponseDefaultTypeInternal _VideoStreamInfoResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InformationDefaultTypeInternal _Information_default_instance_; + +inline constexpr FormatStorageRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : storage_id_{0}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeCaptureInfoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCaptureInfoRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR FormatStorageRequest::FormatStorageRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct FormatStorageRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR FormatStorageRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~FormatStorageRequestDefaultTypeInternal() {} union { - SubscribeCaptureInfoRequest _instance; + FormatStorageRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCaptureInfoRequestDefaultTypeInternal _SubscribeCaptureInfoRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FormatStorageRequestDefaultTypeInternal _FormatStorageRequest_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 CaptureInfoResponse::CaptureInfoResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.capture_info_)*/nullptr} {} -struct CaptureInfoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CaptureInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CaptureInfoResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR EulerAngle::EulerAngle(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct EulerAngleDefaultTypeInternal { + PROTOBUF_CONSTEXPR EulerAngleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EulerAngleDefaultTypeInternal() {} union { - CaptureInfoResponse _instance; + EulerAngle _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureInfoResponseDefaultTypeInternal _CaptureInfoResponse_default_instance_; + 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} {} + template -PROTOBUF_CONSTEXPR SubscribeStatusRequest::SubscribeStatusRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeStatusRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeStatusRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeStatusRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR CameraResult::CameraResult(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CameraResultDefaultTypeInternal { + PROTOBUF_CONSTEXPR CameraResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CameraResultDefaultTypeInternal() {} union { - SubscribeStatusRequest _instance; + CameraResult _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeStatusRequestDefaultTypeInternal _SubscribeStatusRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CameraResultDefaultTypeInternal _CameraResult_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 StatusResponse::StatusResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_status_)*/nullptr} {} -struct StatusResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR VideoStreamInfo::VideoStreamInfo(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct VideoStreamInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR VideoStreamInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~VideoStreamInfoDefaultTypeInternal() {} union { - StatusResponse _instance; + VideoStreamInfo _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamInfoDefaultTypeInternal _VideoStreamInfo_default_instance_; + +inline constexpr TakePhotoResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribeCurrentSettingsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribeCurrentSettingsRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR TakePhotoResponse::TakePhotoResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct TakePhotoResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR TakePhotoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TakePhotoResponseDefaultTypeInternal() {} union { - SubscribeCurrentSettingsRequest _instance; + TakePhotoResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCurrentSettingsRequestDefaultTypeInternal _SubscribeCurrentSettingsRequest_default_instance_; + 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 CurrentSettingsResponse::CurrentSettingsResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.current_settings_)*/{} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct CurrentSettingsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CurrentSettingsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CurrentSettingsResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR StopVideoStreamingResponse::StopVideoStreamingResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct StopVideoStreamingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopVideoStreamingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StopVideoStreamingResponseDefaultTypeInternal() {} union { - CurrentSettingsResponse _instance; + StopVideoStreamingResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CurrentSettingsResponseDefaultTypeInternal _CurrentSettingsResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoStreamingResponseDefaultTypeInternal _StopVideoStreamingResponse_default_instance_; + +inline constexpr StopVideoResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest( - ::_pbi::ConstantInitialized) {} -struct SubscribePossibleSettingOptionsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribePossibleSettingOptionsRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR StopVideoResponse::StopVideoResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct StopVideoResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopVideoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StopVideoResponseDefaultTypeInternal() {} union { - SubscribePossibleSettingOptionsRequest _instance; + StopVideoResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribePossibleSettingOptionsRequestDefaultTypeInternal _SubscribePossibleSettingOptionsRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoResponseDefaultTypeInternal _StopVideoResponse_default_instance_; + +inline constexpr StopPhotoIntervalResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR PossibleSettingOptionsResponse::PossibleSettingOptionsResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.setting_options_)*/{} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct PossibleSettingOptionsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR PossibleSettingOptionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PossibleSettingOptionsResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR StopPhotoIntervalResponse::StopPhotoIntervalResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct StopPhotoIntervalResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StopPhotoIntervalResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StopPhotoIntervalResponseDefaultTypeInternal() {} union { - PossibleSettingOptionsResponse _instance; + StopPhotoIntervalResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PossibleSettingOptionsResponseDefaultTypeInternal _PossibleSettingOptionsResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPhotoIntervalResponseDefaultTypeInternal _StopPhotoIntervalResponse_default_instance_; + +inline constexpr StatusResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_status_{nullptr} {} + template -PROTOBUF_CONSTEXPR SetSettingRequest::SetSettingRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.setting_)*/nullptr} {} -struct SetSettingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetSettingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetSettingRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR StatusResponse::StatusResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct StatusResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StatusResponseDefaultTypeInternal() {} union { - SetSettingRequest _instance; + StatusResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetSettingRequestDefaultTypeInternal _SetSettingRequest_default_instance_; + 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 SetSettingResponse::SetSettingResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct SetSettingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetSettingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetSettingResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR StartVideoStreamingResponse::StartVideoStreamingResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct StartVideoStreamingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StartVideoStreamingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StartVideoStreamingResponseDefaultTypeInternal() {} union { - SetSettingResponse _instance; + StartVideoStreamingResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetSettingResponseDefaultTypeInternal _SetSettingResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoStreamingResponseDefaultTypeInternal _StartVideoStreamingResponse_default_instance_; + +inline constexpr StartVideoResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR GetSettingRequest::GetSettingRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.setting_)*/nullptr} {} -struct GetSettingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSettingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetSettingRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR StartVideoResponse::StartVideoResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct StartVideoResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StartVideoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StartVideoResponseDefaultTypeInternal() {} union { - GetSettingRequest _instance; + StartVideoResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSettingRequestDefaultTypeInternal _GetSettingRequest_default_instance_; + 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 GetSettingResponse::GetSettingResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr - , /*decltype(_impl_.setting_)*/nullptr} {} -struct GetSettingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSettingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetSettingResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR StartPhotoIntervalResponse::StartPhotoIntervalResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct StartPhotoIntervalResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StartPhotoIntervalResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StartPhotoIntervalResponseDefaultTypeInternal() {} union { - GetSettingResponse _instance; + StartPhotoIntervalResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSettingResponseDefaultTypeInternal _GetSettingResponse_default_instance_; -template -PROTOBUF_CONSTEXPR FormatStorageRequest::FormatStorageRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.storage_id_)*/ 0 + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartPhotoIntervalResponseDefaultTypeInternal _StartPhotoIntervalResponse_default_instance_; - , /*decltype(_impl_._cached_size_)*/{}} {} -struct FormatStorageRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR FormatStorageRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FormatStorageRequestDefaultTypeInternal() {} +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()) {} +struct SettingOptionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SettingOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SettingOptionsDefaultTypeInternal() {} union { - FormatStorageRequest _instance; + SettingOptions _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FormatStorageRequestDefaultTypeInternal _FormatStorageRequest_default_instance_; + 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 FormatStorageResponse::FormatStorageResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct FormatStorageResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FormatStorageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FormatStorageResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Setting::Setting(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SettingDefaultTypeInternal { + PROTOBUF_CONSTEXPR SettingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SettingDefaultTypeInternal() {} union { - FormatStorageResponse _instance; + Setting _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FormatStorageResponseDefaultTypeInternal _FormatStorageResponse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SettingDefaultTypeInternal _Setting_default_instance_; + +inline constexpr SetSettingResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR SelectCameraResponse::SelectCameraResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} -struct SelectCameraResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SelectCameraResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SelectCameraResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetSettingResponse::SetSettingResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetSettingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetSettingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetSettingResponseDefaultTypeInternal() {} union { - SelectCameraResponse _instance; + SetSettingResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectCameraResponseDefaultTypeInternal _SelectCameraResponse_default_instance_; -template -PROTOBUF_CONSTEXPR SelectCameraRequest::SelectCameraRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.camera_id_)*/ 0 + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetSettingResponseDefaultTypeInternal _SetSettingResponse_default_instance_; - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SelectCameraRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SelectCameraRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SelectCameraRequestDefaultTypeInternal() {} +inline constexpr SetModeResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_result_{nullptr} {} + +template +PROTOBUF_CONSTEXPR SetModeResponse::SetModeResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetModeResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetModeResponseDefaultTypeInternal() {} union { - SelectCameraRequest _instance; + SetModeResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectCameraRequestDefaultTypeInternal _SelectCameraRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeResponseDefaultTypeInternal _SetModeResponse_default_instance_; + +inline constexpr SelectCameraResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR ResetSettingsRequest::ResetSettingsRequest( - ::_pbi::ConstantInitialized) {} -struct ResetSettingsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResetSettingsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResetSettingsRequestDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SelectCameraResponse::SelectCameraResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SelectCameraResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SelectCameraResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SelectCameraResponseDefaultTypeInternal() {} union { - ResetSettingsRequest _instance; + SelectCameraResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetSettingsRequestDefaultTypeInternal _ResetSettingsRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectCameraResponseDefaultTypeInternal _SelectCameraResponse_default_instance_; + +inline constexpr ResetSettingsResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_result_{nullptr} {} + template -PROTOBUF_CONSTEXPR ResetSettingsResponse::ResetSettingsResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.camera_result_)*/nullptr} {} +PROTOBUF_CONSTEXPR ResetSettingsResponse::ResetSettingsResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct ResetSettingsResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ResetSettingsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ResetSettingsResponseDefaultTypeInternal() {} @@ -686,108 +829,80 @@ struct ResetSettingsResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetSettingsResponseDefaultTypeInternal _ResetSettingsResponse_default_instance_; -template -PROTOBUF_CONSTEXPR CameraResult::CameraResult( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.result_str_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - , /*decltype(_impl_.result_)*/ 0 +inline constexpr PrepareResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_result_{nullptr} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct CameraResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR CameraResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CameraResultDefaultTypeInternal() {} - union { - CameraResult _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CameraResultDefaultTypeInternal _CameraResult_default_instance_; template -PROTOBUF_CONSTEXPR Position::Position( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.latitude_deg_)*/ 0 - - , /*decltype(_impl_.longitude_deg_)*/ 0 - - , /*decltype(_impl_.absolute_altitude_m_)*/ 0 - - , /*decltype(_impl_.relative_altitude_m_)*/ 0 - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct PositionDefaultTypeInternal { - PROTOBUF_CONSTEXPR PositionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PositionDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR PrepareResponse::PrepareResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct PrepareResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PrepareResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PrepareResponseDefaultTypeInternal() {} union { - Position _instance; + PrepareResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PositionDefaultTypeInternal _Position_default_instance_; -template -PROTOBUF_CONSTEXPR Quaternion::Quaternion( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.w_)*/ 0 - - , /*decltype(_impl_.x_)*/ 0 - - , /*decltype(_impl_.y_)*/ 0 + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrepareResponseDefaultTypeInternal _PrepareResponse_default_instance_; - , /*decltype(_impl_.z_)*/ 0 +inline constexpr InformationResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + information_{nullptr} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct QuaternionDefaultTypeInternal { - PROTOBUF_CONSTEXPR QuaternionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~QuaternionDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR InformationResponse::InformationResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct InformationResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR InformationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~InformationResponseDefaultTypeInternal() {} union { - Quaternion _instance; + InformationResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuaternionDefaultTypeInternal _Quaternion_default_instance_; -template -PROTOBUF_CONSTEXPR EulerAngle::EulerAngle( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.roll_deg_)*/ 0 - - , /*decltype(_impl_.pitch_deg_)*/ 0 + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InformationResponseDefaultTypeInternal _InformationResponse_default_instance_; - , /*decltype(_impl_.yaw_deg_)*/ 0 +inline constexpr FormatStorageResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_result_{nullptr} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct EulerAngleDefaultTypeInternal { - PROTOBUF_CONSTEXPR EulerAngleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EulerAngleDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR FormatStorageResponse::FormatStorageResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct FormatStorageResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR FormatStorageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~FormatStorageResponseDefaultTypeInternal() {} union { - EulerAngle _instance; + FormatStorageResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EulerAngleDefaultTypeInternal _EulerAngle_default_instance_; -template -PROTOBUF_CONSTEXPR CaptureInfo::CaptureInfo( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.file_url_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.position_)*/nullptr - , /*decltype(_impl_.attitude_quaternion_)*/nullptr - , /*decltype(_impl_.attitude_euler_angle_)*/nullptr - , /*decltype(_impl_.time_utc_us_)*/ ::uint64_t{0u} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FormatStorageResponseDefaultTypeInternal _FormatStorageResponse_default_instance_; - , /*decltype(_impl_.is_success_)*/ false +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} {} - , /*decltype(_impl_.index_)*/ 0 -} {} +template +PROTOBUF_CONSTEXPR CaptureInfo::CaptureInfo(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct CaptureInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR CaptureInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CaptureInfoDefaultTypeInternal() {} @@ -798,197 +913,160 @@ struct CaptureInfoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureInfoDefaultTypeInternal _CaptureInfo_default_instance_; -template -PROTOBUF_CONSTEXPR VideoStreamSettings::VideoStreamSettings( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.uri_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.frame_rate_hz_)*/ 0 - - , /*decltype(_impl_.horizontal_resolution_pix_)*/ 0u - , /*decltype(_impl_.vertical_resolution_pix_)*/ 0u +inline constexpr VideoStreamInfoResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + video_stream_info_{nullptr} {} - , /*decltype(_impl_.bit_rate_b_s_)*/ 0u - - , /*decltype(_impl_.rotation_deg_)*/ 0u - - , /*decltype(_impl_.horizontal_fov_deg_)*/ 0 - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct VideoStreamSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR VideoStreamSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~VideoStreamSettingsDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR VideoStreamInfoResponse::VideoStreamInfoResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct VideoStreamInfoResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR VideoStreamInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~VideoStreamInfoResponseDefaultTypeInternal() {} union { - VideoStreamSettings _instance; + VideoStreamInfoResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamSettingsDefaultTypeInternal _VideoStreamSettings_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamInfoResponseDefaultTypeInternal _VideoStreamInfoResponse_default_instance_; + +inline constexpr SetSettingRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + setting_{nullptr} {} + template -PROTOBUF_CONSTEXPR VideoStreamInfo::VideoStreamInfo( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.settings_)*/nullptr - , /*decltype(_impl_.status_)*/ 0 - - , /*decltype(_impl_.spectrum_)*/ 0 -} {} -struct VideoStreamInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR VideoStreamInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~VideoStreamInfoDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SetSettingRequest::SetSettingRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SetSettingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetSettingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SetSettingRequestDefaultTypeInternal() {} union { - VideoStreamInfo _instance; + SetSettingRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamInfoDefaultTypeInternal _VideoStreamInfo_default_instance_; -template -PROTOBUF_CONSTEXPR Status::Status( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.media_folder_name_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.video_on_)*/ false - - , /*decltype(_impl_.photo_interval_on_)*/ false - - , /*decltype(_impl_.used_storage_mib_)*/ 0 - - , /*decltype(_impl_.available_storage_mib_)*/ 0 - - , /*decltype(_impl_.total_storage_mib_)*/ 0 - - , /*decltype(_impl_.recording_time_s_)*/ 0 - - , /*decltype(_impl_.storage_status_)*/ 0 - - , /*decltype(_impl_.storage_id_)*/ 0u + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetSettingRequestDefaultTypeInternal _SetSettingRequest_default_instance_; - , /*decltype(_impl_.storage_type_)*/ 0 +inline constexpr PossibleSettingOptionsResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : setting_options_{}, + _cached_size_{0} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatusDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct PossibleSettingOptionsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR PossibleSettingOptionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~PossibleSettingOptionsResponseDefaultTypeInternal() {} union { - Status _instance; + PossibleSettingOptionsResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; -template -PROTOBUF_CONSTEXPR Option::Option( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.option_id_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PossibleSettingOptionsResponseDefaultTypeInternal _PossibleSettingOptionsResponse_default_instance_; - , /*decltype(_impl_.option_description_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } +inline constexpr ListPhotosResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + capture_infos_{}, + camera_result_{nullptr} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct OptionDefaultTypeInternal { - PROTOBUF_CONSTEXPR OptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OptionDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR ListPhotosResponse::ListPhotosResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ListPhotosResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListPhotosResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ListPhotosResponseDefaultTypeInternal() {} union { - Option _instance; + ListPhotosResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionDefaultTypeInternal _Option_default_instance_; -template -PROTOBUF_CONSTEXPR Setting::Setting( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.setting_id_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPhotosResponseDefaultTypeInternal _ListPhotosResponse_default_instance_; - , /*decltype(_impl_.setting_description_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } +inline constexpr GetSettingResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + camera_result_{nullptr}, + setting_{nullptr} {} - , /*decltype(_impl_.option_)*/nullptr - , /*decltype(_impl_.is_range_)*/ false -} {} -struct SettingDefaultTypeInternal { - PROTOBUF_CONSTEXPR SettingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SettingDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR GetSettingResponse::GetSettingResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GetSettingResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetSettingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetSettingResponseDefaultTypeInternal() {} union { - Setting _instance; + GetSettingResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SettingDefaultTypeInternal _Setting_default_instance_; -template -PROTOBUF_CONSTEXPR SettingOptions::SettingOptions( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.options_)*/{} - , /*decltype(_impl_.setting_id_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.setting_description_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSettingResponseDefaultTypeInternal _GetSettingResponse_default_instance_; - , /*decltype(_impl_.is_range_)*/ false +inline constexpr GetSettingRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + setting_{nullptr} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SettingOptionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR SettingOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SettingOptionsDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR GetSettingRequest::GetSettingRequest(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GetSettingRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetSettingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetSettingRequestDefaultTypeInternal() {} union { - SettingOptions _instance; + GetSettingRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SettingOptionsDefaultTypeInternal _SettingOptions_default_instance_; -template -PROTOBUF_CONSTEXPR Information::Information( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.vendor_name_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.model_name_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.focal_length_mm_)*/ 0 + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSettingRequestDefaultTypeInternal _GetSettingRequest_default_instance_; - , /*decltype(_impl_.horizontal_sensor_size_mm_)*/ 0 +inline constexpr CurrentSettingsResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : current_settings_{}, + _cached_size_{0} {} - , /*decltype(_impl_.vertical_sensor_size_mm_)*/ 0 +template +PROTOBUF_CONSTEXPR CurrentSettingsResponse::CurrentSettingsResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CurrentSettingsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CurrentSettingsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CurrentSettingsResponseDefaultTypeInternal() {} + union { + CurrentSettingsResponse _instance; + }; +}; - , /*decltype(_impl_.horizontal_resolution_px_)*/ 0u +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CurrentSettingsResponseDefaultTypeInternal _CurrentSettingsResponse_default_instance_; - , /*decltype(_impl_.vertical_resolution_px_)*/ 0u +inline constexpr CaptureInfoResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + capture_info_{nullptr} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct InformationDefaultTypeInternal { - PROTOBUF_CONSTEXPR InformationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InformationDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR CaptureInfoResponse::CaptureInfoResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CaptureInfoResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR CaptureInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CaptureInfoResponseDefaultTypeInternal() {} union { - Information _instance; + CaptureInfoResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InformationDefaultTypeInternal _Information_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureInfoResponseDefaultTypeInternal _CaptureInfoResponse_default_instance_; } // namespace camera } // namespace rpc } // namespace mavsdk @@ -1577,62 +1655,62 @@ const ::uint32_t TableStruct_camera_2fcamera_2eproto::offsets[] PROTOBUF_SECTION 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::CameraResult)}, - { 418, -1, -1, sizeof(::mavsdk::rpc::camera::Position)}, - { 430, -1, -1, sizeof(::mavsdk::rpc::camera::Quaternion)}, - { 442, -1, -1, sizeof(::mavsdk::rpc::camera::EulerAngle)}, - { 453, 468, -1, sizeof(::mavsdk::rpc::camera::CaptureInfo)}, - { 475, -1, -1, sizeof(::mavsdk::rpc::camera::VideoStreamSettings)}, - { 490, 501, -1, sizeof(::mavsdk::rpc::camera::VideoStreamInfo)}, - { 504, -1, -1, sizeof(::mavsdk::rpc::camera::Status)}, - { 522, -1, -1, sizeof(::mavsdk::rpc::camera::Option)}, - { 532, 544, -1, sizeof(::mavsdk::rpc::camera::Setting)}, - { 548, -1, -1, sizeof(::mavsdk::rpc::camera::SettingOptions)}, - { 560, -1, -1, sizeof(::mavsdk::rpc::camera::Information)}, + {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::CameraResult)}, + {418, -1, -1, sizeof(::mavsdk::rpc::camera::Position)}, + {430, -1, -1, sizeof(::mavsdk::rpc::camera::Quaternion)}, + {442, -1, -1, sizeof(::mavsdk::rpc::camera::EulerAngle)}, + {453, 468, -1, sizeof(::mavsdk::rpc::camera::CaptureInfo)}, + {475, -1, -1, sizeof(::mavsdk::rpc::camera::VideoStreamSettings)}, + {490, 501, -1, sizeof(::mavsdk::rpc::camera::VideoStreamInfo)}, + {504, -1, -1, sizeof(::mavsdk::rpc::camera::Status)}, + {522, -1, -1, sizeof(::mavsdk::rpc::camera::Option)}, + {532, 544, -1, sizeof(::mavsdk::rpc::camera::Setting)}, + {548, -1, -1, sizeof(::mavsdk::rpc::camera::SettingOptions)}, + {560, -1, -1, sizeof(::mavsdk::rpc::camera::Information)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1937,26 +2015,14 @@ static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_camera_2fcamera_2eproto(& namespace mavsdk { namespace rpc { namespace camera { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CameraResult_Result_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); +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) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - return true; - default: - return false; - } + return 0 <= value && value <= 9; } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -1977,18 +2043,14 @@ constexpr int CameraResult::Result_ARRAYSIZE; #endif // (__cplusplus < 201703) && // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoStreamInfo_VideoStreamStatus_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); +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) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } + return 0 <= value && value <= 1; } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -2001,19 +2063,14 @@ constexpr int VideoStreamInfo::VideoStreamStatus_ARRAYSIZE; #endif // (__cplusplus < 201703) && // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoStreamInfo_VideoStreamSpectrum_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); +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) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } + return 0 <= value && value <= 2; } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -2027,20 +2084,14 @@ constexpr int VideoStreamInfo::VideoStreamSpectrum_ARRAYSIZE; #endif // (__cplusplus < 201703) && // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Status_StorageStatus_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); +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) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } + return 0 <= value && value <= 3; } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -2055,22 +2106,14 @@ constexpr int Status::StorageStatus_ARRAYSIZE; #endif // (__cplusplus < 201703) && // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Status_StorageType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); +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) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 7: - case 254: - return true; - default: - return false; - } + return ::_pbi::ValidateEnum(value, Status_StorageType_internal_data_); } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -2087,32 +2130,23 @@ constexpr int Status::StorageType_ARRAYSIZE; #endif // (__cplusplus < 201703) && // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Mode_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); +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) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } + return 0 <= value && value <= 2; } -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PhotosRange_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); +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) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } + return 0 <= value && value <= 1; } // =================================================================== @@ -2120,14 +2154,19 @@ class PrepareRequest::_Internal { public: }; -PrepareRequest::PrepareRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +PrepareRequest::PrepareRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PrepareRequest) } -PrepareRequest::PrepareRequest(const PrepareRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - PrepareRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -2135,19 +2174,11 @@ PrepareRequest::PrepareRequest(const PrepareRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrepareRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrepareRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata PrepareRequest::GetMetadata() const { +::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]); @@ -2165,59 +2196,59 @@ class PrepareResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -PrepareResponse::_Internal::camera_result(const PrepareResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& PrepareResponse::_Internal::camera_result(const PrepareResponse* msg) { return *msg->_impl_.camera_result_; } -PrepareResponse::PrepareResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +PrepareResponse::PrepareResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PrepareResponse) } -PrepareResponse::PrepareResponse(const PrepareResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - PrepareResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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::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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - PrepareResponse::~PrepareResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.PrepareResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void PrepareResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void PrepareResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void PrepareResponse::Clear() { +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; @@ -2228,66 +2259,65 @@ void PrepareResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PrepareResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* PrepareResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2304,22 +2334,22 @@ ::size_t PrepareResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrepareResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - PrepareResponse::MergeImpl +const ::google::protobuf::Message::ClassData PrepareResponse::_class_data_ = { + PrepareResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrepareResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* PrepareResponse::GetClassData() const { + return &_class_data_; +} -void PrepareResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2331,7 +2361,7 @@ void PrepareResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void PrepareResponse::CopyFrom(const PrepareResponse& from) { @@ -2341,18 +2371,21 @@ void PrepareResponse::CopyFrom(const PrepareResponse& from) { MergeFrom(from); } -bool PrepareResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool PrepareResponse::IsInitialized() const { return true; } -void PrepareResponse::InternalSwap(PrepareResponse* other) { +::_pbi::CachedSize* PrepareResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata PrepareResponse::GetMetadata() const { +::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]); @@ -2363,14 +2396,19 @@ class TakePhotoRequest::_Internal { public: }; -TakePhotoRequest::TakePhotoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +TakePhotoRequest::TakePhotoRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TakePhotoRequest) } -TakePhotoRequest::TakePhotoRequest(const TakePhotoRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - TakePhotoRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -2378,19 +2416,11 @@ TakePhotoRequest::TakePhotoRequest(const TakePhotoRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TakePhotoRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TakePhotoRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata TakePhotoRequest::GetMetadata() const { +::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]); @@ -2408,59 +2438,59 @@ class TakePhotoResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -TakePhotoResponse::_Internal::camera_result(const TakePhotoResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& TakePhotoResponse::_Internal::camera_result(const TakePhotoResponse* msg) { return *msg->_impl_.camera_result_; } -TakePhotoResponse::TakePhotoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +TakePhotoResponse::TakePhotoResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TakePhotoResponse) } -TakePhotoResponse::TakePhotoResponse(const TakePhotoResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - TakePhotoResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - TakePhotoResponse::~TakePhotoResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TakePhotoResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void TakePhotoResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; -} - -void TakePhotoResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void TakePhotoResponse::Clear() { +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; @@ -2471,66 +2501,65 @@ void TakePhotoResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TakePhotoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* TakePhotoResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2547,22 +2576,22 @@ ::size_t TakePhotoResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TakePhotoResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - TakePhotoResponse::MergeImpl +const ::google::protobuf::Message::ClassData TakePhotoResponse::_class_data_ = { + TakePhotoResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TakePhotoResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* TakePhotoResponse::GetClassData() const { + return &_class_data_; +} -void TakePhotoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2574,7 +2603,7 @@ void TakePhotoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void TakePhotoResponse::CopyFrom(const TakePhotoResponse& from) { @@ -2584,18 +2613,21 @@ void TakePhotoResponse::CopyFrom(const TakePhotoResponse& from) { MergeFrom(from); } -bool TakePhotoResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool TakePhotoResponse::IsInitialized() const { return true; } -void TakePhotoResponse::InternalSwap(TakePhotoResponse* other) { +::_pbi::CachedSize* TakePhotoResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata TakePhotoResponse::GetMetadata() const { +::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]); @@ -2606,100 +2638,93 @@ class StartPhotoIntervalRequest::_Internal { public: }; -StartPhotoIntervalRequest::StartPhotoIntervalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +StartPhotoIntervalRequest::StartPhotoIntervalRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartPhotoIntervalRequest) } -StartPhotoIntervalRequest::StartPhotoIntervalRequest(const StartPhotoIntervalRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartPhotoIntervalRequest) +StartPhotoIntervalRequest::StartPhotoIntervalRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.interval_s_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.interval_s_ = {}; } - StartPhotoIntervalRequest::~StartPhotoIntervalRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartPhotoIntervalRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void StartPhotoIntervalRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void StartPhotoIntervalRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void StartPhotoIntervalRequest::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StartPhotoIntervalRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // float interval_s = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { - _impl_.interval_s_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* StartPhotoIntervalRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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."); + 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)); @@ -2710,8 +2735,9 @@ ::uint8_t* StartPhotoIntervalRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2726,7 +2752,8 @@ ::size_t StartPhotoIntervalRequest::ByteSizeLong() const { (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."); + 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)); @@ -2737,14 +2764,15 @@ ::size_t StartPhotoIntervalRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartPhotoIntervalRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StartPhotoIntervalRequest::MergeImpl +const ::google::protobuf::Message::ClassData StartPhotoIntervalRequest::_class_data_ = { + StartPhotoIntervalRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartPhotoIntervalRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* StartPhotoIntervalRequest::GetClassData() const { + return &_class_data_; +} -void StartPhotoIntervalRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2752,14 +2780,15 @@ void StartPhotoIntervalRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_m ::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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StartPhotoIntervalRequest::CopyFrom(const StartPhotoIntervalRequest& from) { @@ -2769,18 +2798,20 @@ void StartPhotoIntervalRequest::CopyFrom(const StartPhotoIntervalRequest& from) MergeFrom(from); } -bool StartPhotoIntervalRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool StartPhotoIntervalRequest::IsInitialized() const { return true; } -void StartPhotoIntervalRequest::InternalSwap(StartPhotoIntervalRequest* other) { +::_pbi::CachedSize* StartPhotoIntervalRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void StartPhotoIntervalRequest::InternalSwap(StartPhotoIntervalRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - - swap(_impl_.interval_s_, other->_impl_.interval_s_); + swap(_impl_.interval_s_, other->_impl_.interval_s_); } -::PROTOBUF_NAMESPACE_ID::Metadata StartPhotoIntervalRequest::GetMetadata() const { +::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]); @@ -2798,59 +2829,59 @@ class StartPhotoIntervalResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -StartPhotoIntervalResponse::_Internal::camera_result(const StartPhotoIntervalResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& StartPhotoIntervalResponse::_Internal::camera_result(const StartPhotoIntervalResponse* msg) { return *msg->_impl_.camera_result_; } -StartPhotoIntervalResponse::StartPhotoIntervalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +StartPhotoIntervalResponse::StartPhotoIntervalResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) } -StartPhotoIntervalResponse::StartPhotoIntervalResponse(const StartPhotoIntervalResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StartPhotoIntervalResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - StartPhotoIntervalResponse::~StartPhotoIntervalResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void StartPhotoIntervalResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void StartPhotoIntervalResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void StartPhotoIntervalResponse::Clear() { +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; @@ -2861,66 +2892,65 @@ void StartPhotoIntervalResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StartPhotoIntervalResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* StartPhotoIntervalResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -2937,22 +2967,22 @@ ::size_t StartPhotoIntervalResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartPhotoIntervalResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StartPhotoIntervalResponse::MergeImpl +const ::google::protobuf::Message::ClassData StartPhotoIntervalResponse::_class_data_ = { + StartPhotoIntervalResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartPhotoIntervalResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* StartPhotoIntervalResponse::GetClassData() const { + return &_class_data_; +} -void StartPhotoIntervalResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -2964,7 +2994,7 @@ void StartPhotoIntervalResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StartPhotoIntervalResponse::CopyFrom(const StartPhotoIntervalResponse& from) { @@ -2974,18 +3004,21 @@ void StartPhotoIntervalResponse::CopyFrom(const StartPhotoIntervalResponse& from MergeFrom(from); } -bool StartPhotoIntervalResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool StartPhotoIntervalResponse::IsInitialized() const { return true; } -void StartPhotoIntervalResponse::InternalSwap(StartPhotoIntervalResponse* other) { +::_pbi::CachedSize* StartPhotoIntervalResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata StartPhotoIntervalResponse::GetMetadata() const { +::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]); @@ -2996,14 +3029,19 @@ class StopPhotoIntervalRequest::_Internal { public: }; -StopPhotoIntervalRequest::StopPhotoIntervalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +StopPhotoIntervalRequest::StopPhotoIntervalRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopPhotoIntervalRequest) } -StopPhotoIntervalRequest::StopPhotoIntervalRequest(const StopPhotoIntervalRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - StopPhotoIntervalRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -3011,19 +3049,11 @@ StopPhotoIntervalRequest::StopPhotoIntervalRequest(const StopPhotoIntervalReques -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopPhotoIntervalRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopPhotoIntervalRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata StopPhotoIntervalRequest::GetMetadata() const { +::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]); @@ -3041,59 +3071,59 @@ class StopPhotoIntervalResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -StopPhotoIntervalResponse::_Internal::camera_result(const StopPhotoIntervalResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& StopPhotoIntervalResponse::_Internal::camera_result(const StopPhotoIntervalResponse* msg) { return *msg->_impl_.camera_result_; } -StopPhotoIntervalResponse::StopPhotoIntervalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +StopPhotoIntervalResponse::StopPhotoIntervalResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) } -StopPhotoIntervalResponse::StopPhotoIntervalResponse(const StopPhotoIntervalResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StopPhotoIntervalResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - StopPhotoIntervalResponse::~StopPhotoIntervalResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void StopPhotoIntervalResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; -} - -void StopPhotoIntervalResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void StopPhotoIntervalResponse::Clear() { +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; @@ -3104,66 +3134,65 @@ void StopPhotoIntervalResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StopPhotoIntervalResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* StopPhotoIntervalResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3180,22 +3209,22 @@ ::size_t StopPhotoIntervalResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopPhotoIntervalResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StopPhotoIntervalResponse::MergeImpl +const ::google::protobuf::Message::ClassData StopPhotoIntervalResponse::_class_data_ = { + StopPhotoIntervalResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopPhotoIntervalResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* StopPhotoIntervalResponse::GetClassData() const { + return &_class_data_; +} -void StopPhotoIntervalResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3207,7 +3236,7 @@ void StopPhotoIntervalResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_m _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StopPhotoIntervalResponse::CopyFrom(const StopPhotoIntervalResponse& from) { @@ -3217,18 +3246,21 @@ void StopPhotoIntervalResponse::CopyFrom(const StopPhotoIntervalResponse& from) MergeFrom(from); } -bool StopPhotoIntervalResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool StopPhotoIntervalResponse::IsInitialized() const { return true; } -void StopPhotoIntervalResponse::InternalSwap(StopPhotoIntervalResponse* other) { +::_pbi::CachedSize* StopPhotoIntervalResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata StopPhotoIntervalResponse::GetMetadata() const { +::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]); @@ -3239,14 +3271,19 @@ class StartVideoRequest::_Internal { public: }; -StartVideoRequest::StartVideoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +StartVideoRequest::StartVideoRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoRequest) } -StartVideoRequest::StartVideoRequest(const StartVideoRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - StartVideoRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -3254,19 +3291,11 @@ StartVideoRequest::StartVideoRequest(const StartVideoRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartVideoRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartVideoRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata StartVideoRequest::GetMetadata() const { +::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]); @@ -3284,59 +3313,59 @@ class StartVideoResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -StartVideoResponse::_Internal::camera_result(const StartVideoResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& StartVideoResponse::_Internal::camera_result(const StartVideoResponse* msg) { return *msg->_impl_.camera_result_; } -StartVideoResponse::StartVideoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +StartVideoResponse::StartVideoResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoResponse) } -StartVideoResponse::StartVideoResponse(const StartVideoResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StartVideoResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - StartVideoResponse::~StartVideoResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void StartVideoResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; -} - -void StartVideoResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void StartVideoResponse::Clear() { +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; @@ -3347,66 +3376,65 @@ void StartVideoResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StartVideoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* StartVideoResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3423,22 +3451,22 @@ ::size_t StartVideoResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartVideoResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StartVideoResponse::MergeImpl +const ::google::protobuf::Message::ClassData StartVideoResponse::_class_data_ = { + StartVideoResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartVideoResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* StartVideoResponse::GetClassData() const { + return &_class_data_; +} -void StartVideoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3450,7 +3478,7 @@ void StartVideoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StartVideoResponse::CopyFrom(const StartVideoResponse& from) { @@ -3460,18 +3488,21 @@ void StartVideoResponse::CopyFrom(const StartVideoResponse& from) { MergeFrom(from); } -bool StartVideoResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool StartVideoResponse::IsInitialized() const { return true; } -void StartVideoResponse::InternalSwap(StartVideoResponse* other) { +::_pbi::CachedSize* StartVideoResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata StartVideoResponse::GetMetadata() const { +::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]); @@ -3482,14 +3513,19 @@ class StopVideoRequest::_Internal { public: }; -StopVideoRequest::StopVideoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +StopVideoRequest::StopVideoRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoRequest) } -StopVideoRequest::StopVideoRequest(const StopVideoRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - StopVideoRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -3497,19 +3533,11 @@ StopVideoRequest::StopVideoRequest(const StopVideoRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopVideoRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopVideoRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata StopVideoRequest::GetMetadata() const { +::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]); @@ -3527,59 +3555,59 @@ class StopVideoResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -StopVideoResponse::_Internal::camera_result(const StopVideoResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& StopVideoResponse::_Internal::camera_result(const StopVideoResponse* msg) { return *msg->_impl_.camera_result_; } -StopVideoResponse::StopVideoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +StopVideoResponse::StopVideoResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoResponse) } -StopVideoResponse::StopVideoResponse(const StopVideoResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StopVideoResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - StopVideoResponse::~StopVideoResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void StopVideoResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; -} - -void StopVideoResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void StopVideoResponse::Clear() { +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; @@ -3590,66 +3618,65 @@ void StopVideoResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StopVideoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* StopVideoResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3666,22 +3693,22 @@ ::size_t StopVideoResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopVideoResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StopVideoResponse::MergeImpl +const ::google::protobuf::Message::ClassData StopVideoResponse::_class_data_ = { + StopVideoResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopVideoResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* StopVideoResponse::GetClassData() const { + return &_class_data_; +} -void StopVideoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3693,7 +3720,7 @@ void StopVideoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StopVideoResponse::CopyFrom(const StopVideoResponse& from) { @@ -3703,18 +3730,21 @@ void StopVideoResponse::CopyFrom(const StopVideoResponse& from) { MergeFrom(from); } -bool StopVideoResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool StopVideoResponse::IsInitialized() const { return true; } -void StopVideoResponse::InternalSwap(StopVideoResponse* other) { +::_pbi::CachedSize* StopVideoResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata StopVideoResponse::GetMetadata() const { +::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]); @@ -3725,108 +3755,101 @@ class StartVideoStreamingRequest::_Internal { public: }; -StartVideoStreamingRequest::StartVideoStreamingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +StartVideoStreamingRequest::StartVideoStreamingRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoStreamingRequest) } -StartVideoStreamingRequest::StartVideoStreamingRequest(const StartVideoStreamingRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoStreamingRequest) +StartVideoStreamingRequest::StartVideoStreamingRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.stream_id_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.stream_id_ = {}; } - StartVideoStreamingRequest::~StartVideoStreamingRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoStreamingRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void StartVideoStreamingRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void StartVideoStreamingRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void StartVideoStreamingRequest::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StartVideoStreamingRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int32 stream_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.stream_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* StartVideoStreamingRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // int32 stream_id = 1; if (this->_internal_stream_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 1, this->_internal_stream_id(), target); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -3849,14 +3872,15 @@ ::size_t StartVideoStreamingRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartVideoStreamingRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StartVideoStreamingRequest::MergeImpl +const ::google::protobuf::Message::ClassData StartVideoStreamingRequest::_class_data_ = { + StartVideoStreamingRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartVideoStreamingRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* StartVideoStreamingRequest::GetClassData() const { + return &_class_data_; +} -void StartVideoStreamingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -3867,7 +3891,7 @@ void StartVideoStreamingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ if (from._internal_stream_id() != 0) { _this->_internal_set_stream_id(from._internal_stream_id()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StartVideoStreamingRequest::CopyFrom(const StartVideoStreamingRequest& from) { @@ -3877,18 +3901,20 @@ void StartVideoStreamingRequest::CopyFrom(const StartVideoStreamingRequest& from MergeFrom(from); } -bool StartVideoStreamingRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool StartVideoStreamingRequest::IsInitialized() const { return true; } -void StartVideoStreamingRequest::InternalSwap(StartVideoStreamingRequest* other) { +::_pbi::CachedSize* StartVideoStreamingRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void StartVideoStreamingRequest::InternalSwap(StartVideoStreamingRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - - swap(_impl_.stream_id_, other->_impl_.stream_id_); + swap(_impl_.stream_id_, other->_impl_.stream_id_); } -::PROTOBUF_NAMESPACE_ID::Metadata StartVideoStreamingRequest::GetMetadata() const { +::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]); @@ -3906,59 +3932,59 @@ class StartVideoStreamingResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -StartVideoStreamingResponse::_Internal::camera_result(const StartVideoStreamingResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& StartVideoStreamingResponse::_Internal::camera_result(const StartVideoStreamingResponse* msg) { return *msg->_impl_.camera_result_; } -StartVideoStreamingResponse::StartVideoStreamingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +StartVideoStreamingResponse::StartVideoStreamingResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoStreamingResponse) } -StartVideoStreamingResponse::StartVideoStreamingResponse(const StartVideoStreamingResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StartVideoStreamingResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - StartVideoStreamingResponse::~StartVideoStreamingResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoStreamingResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void StartVideoStreamingResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; -} - -void StartVideoStreamingResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void StartVideoStreamingResponse::Clear() { +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; @@ -3969,66 +3995,65 @@ void StartVideoStreamingResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StartVideoStreamingResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* StartVideoStreamingResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4045,22 +4070,22 @@ ::size_t StartVideoStreamingResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartVideoStreamingResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StartVideoStreamingResponse::MergeImpl +const ::google::protobuf::Message::ClassData StartVideoStreamingResponse::_class_data_ = { + StartVideoStreamingResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartVideoStreamingResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* StartVideoStreamingResponse::GetClassData() const { + return &_class_data_; +} -void StartVideoStreamingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4072,7 +4097,7 @@ void StartVideoStreamingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StartVideoStreamingResponse::CopyFrom(const StartVideoStreamingResponse& from) { @@ -4082,18 +4107,21 @@ void StartVideoStreamingResponse::CopyFrom(const StartVideoStreamingResponse& fr MergeFrom(from); } -bool StartVideoStreamingResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool StartVideoStreamingResponse::IsInitialized() const { return true; } -void StartVideoStreamingResponse::InternalSwap(StartVideoStreamingResponse* other) { +::_pbi::CachedSize* StartVideoStreamingResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata StartVideoStreamingResponse::GetMetadata() const { +::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]); @@ -4104,108 +4132,101 @@ class StopVideoStreamingRequest::_Internal { public: }; -StopVideoStreamingRequest::StopVideoStreamingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +StopVideoStreamingRequest::StopVideoStreamingRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoStreamingRequest) } -StopVideoStreamingRequest::StopVideoStreamingRequest(const StopVideoStreamingRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoStreamingRequest) +StopVideoStreamingRequest::StopVideoStreamingRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.stream_id_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.stream_id_ = {}; } - StopVideoStreamingRequest::~StopVideoStreamingRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoStreamingRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void StopVideoStreamingRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void StopVideoStreamingRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void StopVideoStreamingRequest::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StopVideoStreamingRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int32 stream_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.stream_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* StopVideoStreamingRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // int32 stream_id = 1; if (this->_internal_stream_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 1, this->_internal_stream_id(), target); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4228,14 +4249,15 @@ ::size_t StopVideoStreamingRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopVideoStreamingRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StopVideoStreamingRequest::MergeImpl +const ::google::protobuf::Message::ClassData StopVideoStreamingRequest::_class_data_ = { + StopVideoStreamingRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopVideoStreamingRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* StopVideoStreamingRequest::GetClassData() const { + return &_class_data_; +} -void StopVideoStreamingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4246,7 +4268,7 @@ void StopVideoStreamingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_m if (from._internal_stream_id() != 0) { _this->_internal_set_stream_id(from._internal_stream_id()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StopVideoStreamingRequest::CopyFrom(const StopVideoStreamingRequest& from) { @@ -4256,18 +4278,20 @@ void StopVideoStreamingRequest::CopyFrom(const StopVideoStreamingRequest& from) MergeFrom(from); } -bool StopVideoStreamingRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool StopVideoStreamingRequest::IsInitialized() const { return true; } -void StopVideoStreamingRequest::InternalSwap(StopVideoStreamingRequest* other) { +::_pbi::CachedSize* StopVideoStreamingRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void StopVideoStreamingRequest::InternalSwap(StopVideoStreamingRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - - swap(_impl_.stream_id_, other->_impl_.stream_id_); + swap(_impl_.stream_id_, other->_impl_.stream_id_); } -::PROTOBUF_NAMESPACE_ID::Metadata StopVideoStreamingRequest::GetMetadata() const { +::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]); @@ -4285,59 +4309,59 @@ class StopVideoStreamingResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -StopVideoStreamingResponse::_Internal::camera_result(const StopVideoStreamingResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& StopVideoStreamingResponse::_Internal::camera_result(const StopVideoStreamingResponse* msg) { return *msg->_impl_.camera_result_; } -StopVideoStreamingResponse::StopVideoStreamingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +StopVideoStreamingResponse::StopVideoStreamingResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoStreamingResponse) } -StopVideoStreamingResponse::StopVideoStreamingResponse(const StopVideoStreamingResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StopVideoStreamingResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - StopVideoStreamingResponse::~StopVideoStreamingResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoStreamingResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void StopVideoStreamingResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; -} - -void StopVideoStreamingResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void StopVideoStreamingResponse::Clear() { +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; @@ -4348,66 +4372,65 @@ void StopVideoStreamingResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StopVideoStreamingResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* StopVideoStreamingResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4424,22 +4447,22 @@ ::size_t StopVideoStreamingResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopVideoStreamingResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StopVideoStreamingResponse::MergeImpl +const ::google::protobuf::Message::ClassData StopVideoStreamingResponse::_class_data_ = { + StopVideoStreamingResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopVideoStreamingResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* StopVideoStreamingResponse::GetClassData() const { + return &_class_data_; +} -void StopVideoStreamingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4451,7 +4474,7 @@ void StopVideoStreamingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StopVideoStreamingResponse::CopyFrom(const StopVideoStreamingResponse& from) { @@ -4461,18 +4484,21 @@ void StopVideoStreamingResponse::CopyFrom(const StopVideoStreamingResponse& from MergeFrom(from); } -bool StopVideoStreamingResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool StopVideoStreamingResponse::IsInitialized() const { return true; } -void StopVideoStreamingResponse::InternalSwap(StopVideoStreamingResponse* other) { +::_pbi::CachedSize* StopVideoStreamingResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata StopVideoStreamingResponse::GetMetadata() const { +::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]); @@ -4483,98 +4509,89 @@ class SetModeRequest::_Internal { public: }; -SetModeRequest::SetModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetModeRequest::SetModeRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetModeRequest) } -SetModeRequest::SetModeRequest(const SetModeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.mode_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.mode_ = {}; } - SetModeRequest::~SetModeRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetModeRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetModeRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void SetModeRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void SetModeRequest::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetModeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.Mode mode = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_mode(static_cast<::mavsdk::rpc::camera::Mode>(val)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* SetModeRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // .mavsdk.rpc.camera.Mode mode = 1; if (this->_internal_mode() != 0) { @@ -4584,8 +4601,9 @@ ::uint8_t* SetModeRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4608,14 +4626,15 @@ ::size_t SetModeRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetModeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetModeRequest::MergeImpl +const ::google::protobuf::Message::ClassData SetModeRequest::_class_data_ = { + SetModeRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetModeRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetModeRequest::GetClassData() const { + return &_class_data_; +} -void SetModeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4626,7 +4645,7 @@ void SetModeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : if (from._internal_mode() != 0) { _this->_internal_set_mode(from._internal_mode()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetModeRequest::CopyFrom(const SetModeRequest& from) { @@ -4636,17 +4655,20 @@ void SetModeRequest::CopyFrom(const SetModeRequest& from) { MergeFrom(from); } -bool SetModeRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetModeRequest::IsInitialized() const { return true; } -void SetModeRequest::InternalSwap(SetModeRequest* other) { +::_pbi::CachedSize* SetModeRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void SetModeRequest::InternalSwap(SetModeRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.mode_, other->_impl_.mode_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetModeRequest::GetMetadata() const { +::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]); @@ -4664,59 +4686,59 @@ class SetModeResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -SetModeResponse::_Internal::camera_result(const SetModeResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& SetModeResponse::_Internal::camera_result(const SetModeResponse* msg) { return *msg->_impl_.camera_result_; } -SetModeResponse::SetModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetModeResponse::SetModeResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetModeResponse) } -SetModeResponse::SetModeResponse(const SetModeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetModeResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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::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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - SetModeResponse::~SetModeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetModeResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetModeResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; -} - -void SetModeResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void SetModeResponse::Clear() { +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; @@ -4727,66 +4749,65 @@ void SetModeResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetModeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetModeResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4803,22 +4824,22 @@ ::size_t SetModeResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetModeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetModeResponse::MergeImpl +const ::google::protobuf::Message::ClassData SetModeResponse::_class_data_ = { + SetModeResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetModeResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetModeResponse::GetClassData() const { + return &_class_data_; +} -void SetModeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -4830,7 +4851,7 @@ void SetModeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetModeResponse::CopyFrom(const SetModeResponse& from) { @@ -4840,18 +4861,21 @@ void SetModeResponse::CopyFrom(const SetModeResponse& from) { MergeFrom(from); } -bool SetModeResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetModeResponse::IsInitialized() const { return true; } -void SetModeResponse::InternalSwap(SetModeResponse* other) { +::_pbi::CachedSize* SetModeResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetModeResponse::GetMetadata() const { +::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]); @@ -4862,98 +4886,89 @@ class ListPhotosRequest::_Internal { public: }; -ListPhotosRequest::ListPhotosRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ListPhotosRequest::ListPhotosRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ListPhotosRequest) } -ListPhotosRequest::ListPhotosRequest(const ListPhotosRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ListPhotosRequest) +ListPhotosRequest::ListPhotosRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.photos_range_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.photos_range_ = {}; } - ListPhotosRequest::~ListPhotosRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ListPhotosRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ListPhotosRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void ListPhotosRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ListPhotosRequest::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ListPhotosRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.PhotosRange photos_range = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_photos_range(static_cast<::mavsdk::rpc::camera::PhotosRange>(val)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* ListPhotosRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // .mavsdk.rpc.camera.PhotosRange photos_range = 1; if (this->_internal_photos_range() != 0) { @@ -4963,8 +4978,9 @@ ::uint8_t* ListPhotosRequest::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -4987,14 +5003,15 @@ ::size_t ListPhotosRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListPhotosRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ListPhotosRequest::MergeImpl +const ::google::protobuf::Message::ClassData ListPhotosRequest::_class_data_ = { + ListPhotosRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListPhotosRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ListPhotosRequest::GetClassData() const { + return &_class_data_; +} -void ListPhotosRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5005,7 +5022,7 @@ void ListPhotosRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons if (from._internal_photos_range() != 0) { _this->_internal_set_photos_range(from._internal_photos_range()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ListPhotosRequest::CopyFrom(const ListPhotosRequest& from) { @@ -5015,17 +5032,20 @@ void ListPhotosRequest::CopyFrom(const ListPhotosRequest& from) { MergeFrom(from); } -bool ListPhotosRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool ListPhotosRequest::IsInitialized() const { return true; } -void ListPhotosRequest::InternalSwap(ListPhotosRequest* other) { +::_pbi::CachedSize* ListPhotosRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void ListPhotosRequest::InternalSwap(ListPhotosRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.photos_range_, other->_impl_.photos_range_); } -::PROTOBUF_NAMESPACE_ID::Metadata ListPhotosRequest::GetMetadata() const { +::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]); @@ -5043,155 +5063,146 @@ class ListPhotosResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -ListPhotosResponse::_Internal::camera_result(const ListPhotosResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& ListPhotosResponse::_Internal::camera_result(const ListPhotosResponse* msg) { return *msg->_impl_.camera_result_; } -ListPhotosResponse::ListPhotosResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ListPhotosResponse::ListPhotosResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ListPhotosResponse) } -ListPhotosResponse::ListPhotosResponse(const ListPhotosResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ListPhotosResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.capture_infos_){from._impl_.capture_infos_} - , decltype(_impl_.camera_result_){nullptr}}; +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_} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.capture_infos_){arena} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - ListPhotosResponse::~ListPhotosResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ListPhotosResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ListPhotosResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_capture_infos()->~RepeatedPtrField(); - if (this != internal_default_instance()) delete _impl_.camera_result_; -} - -void ListPhotosResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void ListPhotosResponse::Clear() { +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; - _internal_mutable_capture_infos()->Clear(); + _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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ListPhotosResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_capture_infos(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -5209,28 +5220,27 @@ ::size_t ListPhotosResponse::ByteSizeLong() const { total_size += 1UL * this->_internal_capture_infos_size(); for (const auto& msg : this->_internal_capture_infos()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + ::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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListPhotosResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ListPhotosResponse::MergeImpl +const ::google::protobuf::Message::ClassData ListPhotosResponse::_class_data_ = { + ListPhotosResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListPhotosResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ListPhotosResponse::GetClassData() const { + return &_class_data_; +} -void ListPhotosResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5238,12 +5248,13 @@ void ListPhotosResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_capture_infos()->MergeFrom(from._internal_capture_infos()); + _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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ListPhotosResponse::CopyFrom(const ListPhotosResponse& from) { @@ -5253,19 +5264,22 @@ void ListPhotosResponse::CopyFrom(const ListPhotosResponse& from) { MergeFrom(from); } -bool ListPhotosResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool ListPhotosResponse::IsInitialized() const { return true; } -void ListPhotosResponse::InternalSwap(ListPhotosResponse* other) { +::_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]); - _internal_mutable_capture_infos()->InternalSwap(other->_internal_mutable_capture_infos()); + _impl_.capture_infos_.InternalSwap(&other->_impl_.capture_infos_); swap(_impl_.camera_result_, other->_impl_.camera_result_); } -::PROTOBUF_NAMESPACE_ID::Metadata ListPhotosResponse::GetMetadata() const { +::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]); @@ -5276,14 +5290,19 @@ class SubscribeInformationRequest::_Internal { public: }; -SubscribeInformationRequest::SubscribeInformationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeInformationRequest::SubscribeInformationRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeInformationRequest) } -SubscribeInformationRequest::SubscribeInformationRequest(const SubscribeInformationRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeInformationRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -5291,19 +5310,11 @@ SubscribeInformationRequest::SubscribeInformationRequest(const SubscribeInformat -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeInformationRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeInformationRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeInformationRequest::GetMetadata() const { +::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]); @@ -5321,59 +5332,59 @@ class InformationResponse::_Internal { } }; -const ::mavsdk::rpc::camera::Information& -InformationResponse::_Internal::information(const InformationResponse* msg) { +const ::mavsdk::rpc::camera::Information& InformationResponse::_Internal::information(const InformationResponse* msg) { return *msg->_impl_.information_; } -InformationResponse::InformationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +InformationResponse::InformationResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.InformationResponse) } -InformationResponse::InformationResponse(const InformationResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - InformationResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.information_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.information_ = new ::mavsdk::rpc::camera::Information(*from._impl_.information_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.information_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.information_ = {}; } - InformationResponse::~InformationResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.InformationResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void InformationResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.information_; -} - -void InformationResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.information_; + _impl_.~Impl_(); } -void InformationResponse::Clear() { +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; @@ -5384,66 +5395,65 @@ void InformationResponse::Clear() { _impl_.information_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* InformationResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.Information information = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_information(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* InformationResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.Information information = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::information(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -5460,22 +5470,22 @@ ::size_t InformationResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.Information information = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.information_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.information_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InformationResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - InformationResponse::MergeImpl +const ::google::protobuf::Message::ClassData InformationResponse::_class_data_ = { + InformationResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InformationResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* InformationResponse::GetClassData() const { + return &_class_data_; +} -void InformationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5487,7 +5497,7 @@ void InformationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co _this->_internal_mutable_information()->::mavsdk::rpc::camera::Information::MergeFrom( from._internal_information()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void InformationResponse::CopyFrom(const InformationResponse& from) { @@ -5497,18 +5507,21 @@ void InformationResponse::CopyFrom(const InformationResponse& from) { MergeFrom(from); } -bool InformationResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool InformationResponse::IsInitialized() const { return true; } -void InformationResponse::InternalSwap(InformationResponse* other) { +::_pbi::CachedSize* InformationResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata InformationResponse::GetMetadata() const { +::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]); @@ -5519,14 +5532,19 @@ class SubscribeModeRequest::_Internal { public: }; -SubscribeModeRequest::SubscribeModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeModeRequest::SubscribeModeRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeModeRequest) } -SubscribeModeRequest::SubscribeModeRequest(const SubscribeModeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeModeRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -5534,19 +5552,11 @@ SubscribeModeRequest::SubscribeModeRequest(const SubscribeModeRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeModeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeModeRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeModeRequest::GetMetadata() const { +::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]); @@ -5557,98 +5567,89 @@ class ModeResponse::_Internal { public: }; -ModeResponse::ModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ModeResponse::ModeResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ModeResponse) } -ModeResponse::ModeResponse(const ModeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.mode_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.mode_ = {}; } - ModeResponse::~ModeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ModeResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ModeResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void ModeResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ModeResponse::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ModeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.Mode mode = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_mode(static_cast<::mavsdk::rpc::camera::Mode>(val)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* ModeResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // .mavsdk.rpc.camera.Mode mode = 1; if (this->_internal_mode() != 0) { @@ -5658,8 +5659,9 @@ ::uint8_t* ModeResponse::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -5682,14 +5684,15 @@ ::size_t ModeResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ModeResponse::MergeImpl +const ::google::protobuf::Message::ClassData ModeResponse::_class_data_ = { + ModeResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModeResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ModeResponse::GetClassData() const { + return &_class_data_; +} -void ModeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5700,7 +5703,7 @@ void ModeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P if (from._internal_mode() != 0) { _this->_internal_set_mode(from._internal_mode()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ModeResponse::CopyFrom(const ModeResponse& from) { @@ -5710,17 +5713,20 @@ void ModeResponse::CopyFrom(const ModeResponse& from) { MergeFrom(from); } -bool ModeResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool ModeResponse::IsInitialized() const { return true; } -void ModeResponse::InternalSwap(ModeResponse* other) { +::_pbi::CachedSize* ModeResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void ModeResponse::InternalSwap(ModeResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.mode_, other->_impl_.mode_); } -::PROTOBUF_NAMESPACE_ID::Metadata ModeResponse::GetMetadata() const { +::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]); @@ -5731,14 +5737,19 @@ class SubscribeVideoStreamInfoRequest::_Internal { public: }; -SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest) } -SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(const SubscribeVideoStreamInfoRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeVideoStreamInfoRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -5746,19 +5757,11 @@ SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(const Subscribe -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeVideoStreamInfoRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeVideoStreamInfoRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeVideoStreamInfoRequest::GetMetadata() const { +::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]); @@ -5776,59 +5779,59 @@ class VideoStreamInfoResponse::_Internal { } }; -const ::mavsdk::rpc::camera::VideoStreamInfo& -VideoStreamInfoResponse::_Internal::video_stream_info(const VideoStreamInfoResponse* msg) { +const ::mavsdk::rpc::camera::VideoStreamInfo& VideoStreamInfoResponse::_Internal::video_stream_info(const VideoStreamInfoResponse* msg) { return *msg->_impl_.video_stream_info_; } -VideoStreamInfoResponse::VideoStreamInfoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +VideoStreamInfoResponse::VideoStreamInfoResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamInfoResponse) } -VideoStreamInfoResponse::VideoStreamInfoResponse(const VideoStreamInfoResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - VideoStreamInfoResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.video_stream_info_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.video_stream_info_ = new ::mavsdk::rpc::camera::VideoStreamInfo(*from._impl_.video_stream_info_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.video_stream_info_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.video_stream_info_ = {}; } - VideoStreamInfoResponse::~VideoStreamInfoResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.VideoStreamInfoResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void VideoStreamInfoResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.video_stream_info_; -} - -void VideoStreamInfoResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.video_stream_info_; + _impl_.~Impl_(); } -void VideoStreamInfoResponse::Clear() { +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; @@ -5839,66 +5842,65 @@ void VideoStreamInfoResponse::Clear() { _impl_.video_stream_info_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* VideoStreamInfoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_video_stream_info(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* VideoStreamInfoResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::video_stream_info(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -5915,22 +5917,22 @@ ::size_t VideoStreamInfoResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.video_stream_info_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.video_stream_info_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VideoStreamInfoResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - VideoStreamInfoResponse::MergeImpl +const ::google::protobuf::Message::ClassData VideoStreamInfoResponse::_class_data_ = { + VideoStreamInfoResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VideoStreamInfoResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* VideoStreamInfoResponse::GetClassData() const { + return &_class_data_; +} -void VideoStreamInfoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -5942,7 +5944,7 @@ void VideoStreamInfoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg _this->_internal_mutable_video_stream_info()->::mavsdk::rpc::camera::VideoStreamInfo::MergeFrom( from._internal_video_stream_info()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void VideoStreamInfoResponse::CopyFrom(const VideoStreamInfoResponse& from) { @@ -5952,18 +5954,21 @@ void VideoStreamInfoResponse::CopyFrom(const VideoStreamInfoResponse& from) { MergeFrom(from); } -bool VideoStreamInfoResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool VideoStreamInfoResponse::IsInitialized() const { return true; } -void VideoStreamInfoResponse::InternalSwap(VideoStreamInfoResponse* other) { +::_pbi::CachedSize* VideoStreamInfoResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata VideoStreamInfoResponse::GetMetadata() const { +::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]); @@ -5974,14 +5979,19 @@ class SubscribeCaptureInfoRequest::_Internal { public: }; -SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeCaptureInfoRequest) } -SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(const SubscribeCaptureInfoRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeCaptureInfoRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -5989,19 +5999,11 @@ SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(const SubscribeCaptureI -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeCaptureInfoRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeCaptureInfoRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCaptureInfoRequest::GetMetadata() const { +::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]); @@ -6019,59 +6021,59 @@ class CaptureInfoResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CaptureInfo& -CaptureInfoResponse::_Internal::capture_info(const CaptureInfoResponse* msg) { +const ::mavsdk::rpc::camera::CaptureInfo& CaptureInfoResponse::_Internal::capture_info(const CaptureInfoResponse* msg) { return *msg->_impl_.capture_info_; } -CaptureInfoResponse::CaptureInfoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CaptureInfoResponse::CaptureInfoResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CaptureInfoResponse) } -CaptureInfoResponse::CaptureInfoResponse(const CaptureInfoResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CaptureInfoResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.capture_info_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.capture_info_ = new ::mavsdk::rpc::camera::CaptureInfo(*from._impl_.capture_info_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.capture_info_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.capture_info_ = {}; } - CaptureInfoResponse::~CaptureInfoResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CaptureInfoResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CaptureInfoResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.capture_info_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.capture_info_; + _impl_.~Impl_(); } -void CaptureInfoResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void CaptureInfoResponse::Clear() { +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; @@ -6082,66 +6084,65 @@ void CaptureInfoResponse::Clear() { _impl_.capture_info_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CaptureInfoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_capture_info(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* CaptureInfoResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::capture_info(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -6158,22 +6159,22 @@ ::size_t CaptureInfoResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.capture_info_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.capture_info_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CaptureInfoResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CaptureInfoResponse::MergeImpl +const ::google::protobuf::Message::ClassData CaptureInfoResponse::_class_data_ = { + CaptureInfoResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CaptureInfoResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* CaptureInfoResponse::GetClassData() const { + return &_class_data_; +} -void CaptureInfoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -6185,7 +6186,7 @@ void CaptureInfoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co _this->_internal_mutable_capture_info()->::mavsdk::rpc::camera::CaptureInfo::MergeFrom( from._internal_capture_info()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CaptureInfoResponse::CopyFrom(const CaptureInfoResponse& from) { @@ -6195,18 +6196,21 @@ void CaptureInfoResponse::CopyFrom(const CaptureInfoResponse& from) { MergeFrom(from); } -bool CaptureInfoResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool CaptureInfoResponse::IsInitialized() const { return true; } -void CaptureInfoResponse::InternalSwap(CaptureInfoResponse* other) { +::_pbi::CachedSize* CaptureInfoResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata CaptureInfoResponse::GetMetadata() const { +::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]); @@ -6217,14 +6221,19 @@ class SubscribeStatusRequest::_Internal { public: }; -SubscribeStatusRequest::SubscribeStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeStatusRequest::SubscribeStatusRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeStatusRequest) } -SubscribeStatusRequest::SubscribeStatusRequest(const SubscribeStatusRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeStatusRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -6232,19 +6241,11 @@ SubscribeStatusRequest::SubscribeStatusRequest(const SubscribeStatusRequest& fro -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeStatusRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeStatusRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeStatusRequest::GetMetadata() const { +::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]); @@ -6262,59 +6263,59 @@ class StatusResponse::_Internal { } }; -const ::mavsdk::rpc::camera::Status& -StatusResponse::_Internal::camera_status(const StatusResponse* msg) { +const ::mavsdk::rpc::camera::Status& StatusResponse::_Internal::camera_status(const StatusResponse* msg) { return *msg->_impl_.camera_status_; } -StatusResponse::StatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +StatusResponse::StatusResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StatusResponse) } -StatusResponse::StatusResponse(const StatusResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StatusResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_status_){nullptr}}; +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::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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_status_ = new ::mavsdk::rpc::camera::Status(*from._impl_.camera_status_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_status_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_status_ = {}; } - StatusResponse::~StatusResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StatusResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void StatusResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_status_; -} - -void StatusResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_status_; + _impl_.~Impl_(); } -void StatusResponse::Clear() { +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; @@ -6325,66 +6326,65 @@ void StatusResponse::Clear() { _impl_.camera_status_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StatusResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.Status camera_status = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_status(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* StatusResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.Status camera_status = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_status(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -6401,22 +6401,22 @@ ::size_t StatusResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.Status camera_status = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_status_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_status_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StatusResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StatusResponse::MergeImpl +const ::google::protobuf::Message::ClassData StatusResponse::_class_data_ = { + StatusResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StatusResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* StatusResponse::GetClassData() const { + return &_class_data_; +} -void StatusResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -6428,7 +6428,7 @@ void StatusResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : _this->_internal_mutable_camera_status()->::mavsdk::rpc::camera::Status::MergeFrom( from._internal_camera_status()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StatusResponse::CopyFrom(const StatusResponse& from) { @@ -6438,18 +6438,21 @@ void StatusResponse::CopyFrom(const StatusResponse& from) { MergeFrom(from); } -bool StatusResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool StatusResponse::IsInitialized() const { return true; } -void StatusResponse::InternalSwap(StatusResponse* other) { +::_pbi::CachedSize* StatusResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata StatusResponse::GetMetadata() const { +::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]); @@ -6460,14 +6463,19 @@ class SubscribeCurrentSettingsRequest::_Internal { public: }; -SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeCurrentSettingsRequest) } -SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(const SubscribeCurrentSettingsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribeCurrentSettingsRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -6475,19 +6483,11 @@ SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(const Subscribe -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribeCurrentSettingsRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribeCurrentSettingsRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCurrentSettingsRequest::GetMetadata() const { +::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]); @@ -6498,118 +6498,115 @@ class CurrentSettingsResponse::_Internal { public: }; -CurrentSettingsResponse::CurrentSettingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CurrentSettingsResponse::CurrentSettingsResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CurrentSettingsResponse) } -CurrentSettingsResponse::CurrentSettingsResponse(const CurrentSettingsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CurrentSettingsResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.current_settings_){from._impl_.current_settings_} - , /*decltype(_impl_._cached_size_)*/{}}; +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::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_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.current_settings_){arena} - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); } - CurrentSettingsResponse::~CurrentSettingsResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CurrentSettingsResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CurrentSettingsResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_current_settings()->~RepeatedPtrField(); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void CurrentSettingsResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void CurrentSettingsResponse::Clear() { +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; - _internal_mutable_current_settings()->Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CurrentSettingsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .mavsdk.rpc.camera.Setting current_settings = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_current_settings(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // 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>()}, + }}, {{ + }}, +}; + ::uint8_t* CurrentSettingsResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -6627,20 +6624,20 @@ ::size_t CurrentSettingsResponse::ByteSizeLong() const { total_size += 1UL * this->_internal_current_settings_size(); for (const auto& msg : this->_internal_current_settings()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CurrentSettingsResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CurrentSettingsResponse::MergeImpl +const ::google::protobuf::Message::ClassData CurrentSettingsResponse::_class_data_ = { + CurrentSettingsResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CurrentSettingsResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* CurrentSettingsResponse::GetClassData() const { + return &_class_data_; +} -void CurrentSettingsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -6648,8 +6645,9 @@ void CurrentSettingsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_current_settings()->MergeFrom(from._internal_current_settings()); - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::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) { @@ -6659,17 +6657,20 @@ void CurrentSettingsResponse::CopyFrom(const CurrentSettingsResponse& from) { MergeFrom(from); } -bool CurrentSettingsResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool CurrentSettingsResponse::IsInitialized() const { return true; } -void CurrentSettingsResponse::InternalSwap(CurrentSettingsResponse* other) { +::_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_); - _internal_mutable_current_settings()->InternalSwap(other->_internal_mutable_current_settings()); + _impl_.current_settings_.InternalSwap(&other->_impl_.current_settings_); } -::PROTOBUF_NAMESPACE_ID::Metadata CurrentSettingsResponse::GetMetadata() const { +::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]); @@ -6680,14 +6681,19 @@ class SubscribePossibleSettingOptionsRequest::_Internal { public: }; -SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest) } -SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(const SubscribePossibleSettingOptionsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - SubscribePossibleSettingOptionsRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest( + ::google::protobuf::Arena* arena, + const SubscribePossibleSettingOptionsRequest& from) + : ::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) } @@ -6695,19 +6701,11 @@ SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(c -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubscribePossibleSettingOptionsRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubscribePossibleSettingOptionsRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata SubscribePossibleSettingOptionsRequest::GetMetadata() const { +::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]); @@ -6718,118 +6716,115 @@ class PossibleSettingOptionsResponse::_Internal { public: }; -PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) } -PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(const PossibleSettingOptionsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - PossibleSettingOptionsResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.setting_options_){from._impl_.setting_options_} - , /*decltype(_impl_._cached_size_)*/{}}; +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::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_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.setting_options_){arena} - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); } - PossibleSettingOptionsResponse::~PossibleSettingOptionsResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void PossibleSettingOptionsResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_setting_options()->~RepeatedPtrField(); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void PossibleSettingOptionsResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void PossibleSettingOptionsResponse::Clear() { +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; - _internal_mutable_setting_options()->Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PossibleSettingOptionsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_setting_options(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -6847,20 +6842,20 @@ ::size_t PossibleSettingOptionsResponse::ByteSizeLong() const { total_size += 1UL * this->_internal_setting_options_size(); for (const auto& msg : this->_internal_setting_options()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PossibleSettingOptionsResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - PossibleSettingOptionsResponse::MergeImpl +const ::google::protobuf::Message::ClassData PossibleSettingOptionsResponse::_class_data_ = { + PossibleSettingOptionsResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PossibleSettingOptionsResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* PossibleSettingOptionsResponse::GetClassData() const { + return &_class_data_; +} -void PossibleSettingOptionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -6868,8 +6863,9 @@ void PossibleSettingOptionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_setting_options()->MergeFrom(from._internal_setting_options()); - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_mutable_setting_options()->MergeFrom( + from._internal_setting_options()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void PossibleSettingOptionsResponse::CopyFrom(const PossibleSettingOptionsResponse& from) { @@ -6879,17 +6875,20 @@ void PossibleSettingOptionsResponse::CopyFrom(const PossibleSettingOptionsRespon MergeFrom(from); } -bool PossibleSettingOptionsResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool PossibleSettingOptionsResponse::IsInitialized() const { return true; } -void PossibleSettingOptionsResponse::InternalSwap(PossibleSettingOptionsResponse* other) { +::_pbi::CachedSize* PossibleSettingOptionsResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void PossibleSettingOptionsResponse::InternalSwap(PossibleSettingOptionsResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _internal_mutable_setting_options()->InternalSwap(other->_internal_mutable_setting_options()); + _impl_.setting_options_.InternalSwap(&other->_impl_.setting_options_); } -::PROTOBUF_NAMESPACE_ID::Metadata PossibleSettingOptionsResponse::GetMetadata() const { +::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]); @@ -6907,59 +6906,59 @@ class SetSettingRequest::_Internal { } }; -const ::mavsdk::rpc::camera::Setting& -SetSettingRequest::_Internal::setting(const SetSettingRequest* msg) { +const ::mavsdk::rpc::camera::Setting& SetSettingRequest::_Internal::setting(const SetSettingRequest* msg) { return *msg->_impl_.setting_; } -SetSettingRequest::SetSettingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetSettingRequest::SetSettingRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetSettingRequest) } -SetSettingRequest::SetSettingRequest(const SetSettingRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetSettingRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.setting_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.setting_ = new ::mavsdk::rpc::camera::Setting(*from._impl_.setting_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.setting_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.setting_ = {}; } - SetSettingRequest::~SetSettingRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetSettingRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetSettingRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.setting_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.setting_; + _impl_.~Impl_(); } -void SetSettingRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SetSettingRequest::Clear() { +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; @@ -6970,66 +6969,65 @@ void SetSettingRequest::Clear() { _impl_.setting_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetSettingRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.Setting setting = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_setting(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetSettingRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.Setting setting = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::setting(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -7046,22 +7044,22 @@ ::size_t SetSettingRequest::ByteSizeLong() const { // .mavsdk.rpc.camera.Setting setting = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.setting_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.setting_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetSettingRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetSettingRequest::MergeImpl +const ::google::protobuf::Message::ClassData SetSettingRequest::_class_data_ = { + SetSettingRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetSettingRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetSettingRequest::GetClassData() const { + return &_class_data_; +} -void SetSettingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -7073,7 +7071,7 @@ void SetSettingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom( from._internal_setting()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetSettingRequest::CopyFrom(const SetSettingRequest& from) { @@ -7083,18 +7081,21 @@ void SetSettingRequest::CopyFrom(const SetSettingRequest& from) { MergeFrom(from); } -bool SetSettingRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetSettingRequest::IsInitialized() const { return true; } -void SetSettingRequest::InternalSwap(SetSettingRequest* other) { +::_pbi::CachedSize* SetSettingRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetSettingRequest::GetMetadata() const { +::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]); @@ -7112,59 +7113,59 @@ class SetSettingResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -SetSettingResponse::_Internal::camera_result(const SetSettingResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& SetSettingResponse::_Internal::camera_result(const SetSettingResponse* msg) { return *msg->_impl_.camera_result_; } -SetSettingResponse::SetSettingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SetSettingResponse::SetSettingResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetSettingResponse) } -SetSettingResponse::SetSettingResponse(const SetSettingResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SetSettingResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - SetSettingResponse::~SetSettingResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetSettingResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SetSettingResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; -} - -void SetSettingResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void SetSettingResponse::Clear() { +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; @@ -7175,66 +7176,65 @@ void SetSettingResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SetSettingResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SetSettingResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -7251,22 +7251,22 @@ ::size_t SetSettingResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetSettingResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetSettingResponse::MergeImpl +const ::google::protobuf::Message::ClassData SetSettingResponse::_class_data_ = { + SetSettingResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetSettingResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SetSettingResponse::GetClassData() const { + return &_class_data_; +} -void SetSettingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -7278,7 +7278,7 @@ void SetSettingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SetSettingResponse::CopyFrom(const SetSettingResponse& from) { @@ -7288,18 +7288,21 @@ void SetSettingResponse::CopyFrom(const SetSettingResponse& from) { MergeFrom(from); } -bool SetSettingResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetSettingResponse::IsInitialized() const { return true; } -void SetSettingResponse::InternalSwap(SetSettingResponse* other) { +::_pbi::CachedSize* SetSettingResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SetSettingResponse::GetMetadata() const { +::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]); @@ -7317,59 +7320,59 @@ class GetSettingRequest::_Internal { } }; -const ::mavsdk::rpc::camera::Setting& -GetSettingRequest::_Internal::setting(const GetSettingRequest* msg) { +const ::mavsdk::rpc::camera::Setting& GetSettingRequest::_Internal::setting(const GetSettingRequest* msg) { return *msg->_impl_.setting_; } -GetSettingRequest::GetSettingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GetSettingRequest::GetSettingRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.GetSettingRequest) } -GetSettingRequest::GetSettingRequest(const GetSettingRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GetSettingRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.setting_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.setting_ = new ::mavsdk::rpc::camera::Setting(*from._impl_.setting_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.setting_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.setting_ = {}; } - GetSettingRequest::~GetSettingRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.GetSettingRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GetSettingRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.setting_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.setting_; + _impl_.~Impl_(); } -void GetSettingRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GetSettingRequest::Clear() { +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; @@ -7380,66 +7383,65 @@ void GetSettingRequest::Clear() { _impl_.setting_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetSettingRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.Setting setting = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_setting(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* GetSettingRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.Setting setting = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::setting(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -7456,22 +7458,22 @@ ::size_t GetSettingRequest::ByteSizeLong() const { // .mavsdk.rpc.camera.Setting setting = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.setting_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.setting_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSettingRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GetSettingRequest::MergeImpl +const ::google::protobuf::Message::ClassData GetSettingRequest::_class_data_ = { + GetSettingRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSettingRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* GetSettingRequest::GetClassData() const { + return &_class_data_; +} -void GetSettingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -7483,7 +7485,7 @@ void GetSettingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom( from._internal_setting()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetSettingRequest::CopyFrom(const GetSettingRequest& from) { @@ -7493,18 +7495,21 @@ void GetSettingRequest::CopyFrom(const GetSettingRequest& from) { MergeFrom(from); } -bool GetSettingRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool GetSettingRequest::IsInitialized() const { return true; } -void GetSettingRequest::InternalSwap(GetSettingRequest* other) { +::_pbi::CachedSize* GetSettingRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata GetSettingRequest::GetMetadata() const { +::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]); @@ -7526,69 +7531,71 @@ class GetSettingResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -GetSettingResponse::_Internal::camera_result(const GetSettingResponse* msg) { +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) { +const ::mavsdk::rpc::camera::Setting& GetSettingResponse::_Internal::setting(const GetSettingResponse* msg) { return *msg->_impl_.setting_; } -GetSettingResponse::GetSettingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GetSettingResponse::GetSettingResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.GetSettingResponse) } -GetSettingResponse::GetSettingResponse(const GetSettingResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GetSettingResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - , decltype(_impl_.setting_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.setting_ = new ::mavsdk::rpc::camera::Setting(*from._impl_.setting_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - , decltype(_impl_.setting_){nullptr} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GetSettingResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; - if (this != internal_default_instance()) delete _impl_.setting_; -} - -void GetSettingResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + delete _impl_.setting_; + _impl_.~Impl_(); } -void GetSettingResponse::Clear() { +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; @@ -7605,82 +7612,79 @@ void GetSettingResponse::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetSettingResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.camera.Setting setting = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_setting(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* GetSettingResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::setting(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -7698,30 +7702,29 @@ ::size_t GetSettingResponse::ByteSizeLong() const { if (cached_has_bits & 0x00000003u) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } // .mavsdk.rpc.camera.Setting setting = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.setting_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.setting_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSettingResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GetSettingResponse::MergeImpl +const ::google::protobuf::Message::ClassData GetSettingResponse::_class_data_ = { + GetSettingResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSettingResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* GetSettingResponse::GetClassData() const { + return &_class_data_; +} -void GetSettingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -7740,7 +7743,7 @@ void GetSettingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con from._internal_setting()); } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GetSettingResponse::CopyFrom(const GetSettingResponse& from) { @@ -7750,15 +7753,18 @@ void GetSettingResponse::CopyFrom(const GetSettingResponse& from) { MergeFrom(from); } -bool GetSettingResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool GetSettingResponse::IsInitialized() const { return true; } -void GetSettingResponse::InternalSwap(GetSettingResponse* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.setting_) + sizeof(GetSettingResponse::_impl_.setting_) - PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.camera_result_)>( @@ -7766,7 +7772,7 @@ void GetSettingResponse::InternalSwap(GetSettingResponse* other) { reinterpret_cast(&other->_impl_.camera_result_)); } -::PROTOBUF_NAMESPACE_ID::Metadata GetSettingResponse::GetMetadata() const { +::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]); @@ -7777,108 +7783,101 @@ class FormatStorageRequest::_Internal { public: }; -FormatStorageRequest::FormatStorageRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +FormatStorageRequest::FormatStorageRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FormatStorageRequest) } -FormatStorageRequest::FormatStorageRequest(const FormatStorageRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FormatStorageRequest) +FormatStorageRequest::FormatStorageRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.storage_id_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.storage_id_ = {}; } - FormatStorageRequest::~FormatStorageRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FormatStorageRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - -inline void FormatStorageRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void FormatStorageRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void FormatStorageRequest::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void FormatStorageRequest::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* FormatStorageRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int32 storage_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.storage_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* FormatStorageRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // int32 storage_id = 1; if (this->_internal_storage_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 1, this->_internal_storage_id(), target); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -7901,14 +7900,15 @@ ::size_t FormatStorageRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FormatStorageRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - FormatStorageRequest::MergeImpl +const ::google::protobuf::Message::ClassData FormatStorageRequest::_class_data_ = { + FormatStorageRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FormatStorageRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* FormatStorageRequest::GetClassData() const { + return &_class_data_; +} -void FormatStorageRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -7919,7 +7919,7 @@ void FormatStorageRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, c if (from._internal_storage_id() != 0) { _this->_internal_set_storage_id(from._internal_storage_id()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void FormatStorageRequest::CopyFrom(const FormatStorageRequest& from) { @@ -7929,18 +7929,20 @@ void FormatStorageRequest::CopyFrom(const FormatStorageRequest& from) { MergeFrom(from); } -bool FormatStorageRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool FormatStorageRequest::IsInitialized() const { return true; } -void FormatStorageRequest::InternalSwap(FormatStorageRequest* other) { +::_pbi::CachedSize* FormatStorageRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void FormatStorageRequest::InternalSwap(FormatStorageRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - - swap(_impl_.storage_id_, other->_impl_.storage_id_); + swap(_impl_.storage_id_, other->_impl_.storage_id_); } -::PROTOBUF_NAMESPACE_ID::Metadata FormatStorageRequest::GetMetadata() const { +::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]); @@ -7958,59 +7960,59 @@ class FormatStorageResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -FormatStorageResponse::_Internal::camera_result(const FormatStorageResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& FormatStorageResponse::_Internal::camera_result(const FormatStorageResponse* msg) { return *msg->_impl_.camera_result_; } -FormatStorageResponse::FormatStorageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +FormatStorageResponse::FormatStorageResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FormatStorageResponse) } -FormatStorageResponse::FormatStorageResponse(const FormatStorageResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - FormatStorageResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - FormatStorageResponse::~FormatStorageResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FormatStorageResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void FormatStorageResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void FormatStorageResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void FormatStorageResponse::Clear() { +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; @@ -8021,66 +8023,65 @@ void FormatStorageResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* FormatStorageResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* FormatStorageResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -8097,22 +8098,22 @@ ::size_t FormatStorageResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FormatStorageResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - FormatStorageResponse::MergeImpl +const ::google::protobuf::Message::ClassData FormatStorageResponse::_class_data_ = { + FormatStorageResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FormatStorageResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* FormatStorageResponse::GetClassData() const { + return &_class_data_; +} -void FormatStorageResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -8124,7 +8125,7 @@ void FormatStorageResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void FormatStorageResponse::CopyFrom(const FormatStorageResponse& from) { @@ -8134,18 +8135,21 @@ void FormatStorageResponse::CopyFrom(const FormatStorageResponse& from) { MergeFrom(from); } -bool FormatStorageResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool FormatStorageResponse::IsInitialized() const { return true; } -void FormatStorageResponse::InternalSwap(FormatStorageResponse* other) { +::_pbi::CachedSize* FormatStorageResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata FormatStorageResponse::GetMetadata() const { +::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]); @@ -8163,59 +8167,59 @@ class SelectCameraResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -SelectCameraResponse::_Internal::camera_result(const SelectCameraResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& SelectCameraResponse::_Internal::camera_result(const SelectCameraResponse* msg) { return *msg->_impl_.camera_result_; } -SelectCameraResponse::SelectCameraResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SelectCameraResponse::SelectCameraResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SelectCameraResponse) } -SelectCameraResponse::SelectCameraResponse(const SelectCameraResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SelectCameraResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - SelectCameraResponse::~SelectCameraResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SelectCameraResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SelectCameraResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; -} - -void SelectCameraResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void SelectCameraResponse::Clear() { +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; @@ -8226,66 +8230,65 @@ void SelectCameraResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SelectCameraResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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>()}, + }}, {{ + }}, +}; + ::uint8_t* SelectCameraResponse::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -8302,22 +8305,22 @@ ::size_t SelectCameraResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SelectCameraResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SelectCameraResponse::MergeImpl +const ::google::protobuf::Message::ClassData SelectCameraResponse::_class_data_ = { + SelectCameraResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SelectCameraResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SelectCameraResponse::GetClassData() const { + return &_class_data_; +} -void SelectCameraResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -8329,7 +8332,7 @@ void SelectCameraResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, c _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SelectCameraResponse::CopyFrom(const SelectCameraResponse& from) { @@ -8339,18 +8342,21 @@ void SelectCameraResponse::CopyFrom(const SelectCameraResponse& from) { MergeFrom(from); } -bool SelectCameraResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SelectCameraResponse::IsInitialized() const { return true; } -void SelectCameraResponse::InternalSwap(SelectCameraResponse* other) { +::_pbi::CachedSize* SelectCameraResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata SelectCameraResponse::GetMetadata() const { +::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]); @@ -8361,108 +8367,101 @@ class SelectCameraRequest::_Internal { public: }; -SelectCameraRequest::SelectCameraRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SelectCameraRequest::SelectCameraRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SelectCameraRequest) } -SelectCameraRequest::SelectCameraRequest(const SelectCameraRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SelectCameraRequest) +SelectCameraRequest::SelectCameraRequest( + ::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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.camera_id_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_id_ = {}; } - SelectCameraRequest::~SelectCameraRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SelectCameraRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SelectCameraRequest::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void SelectCameraRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void SelectCameraRequest::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SelectCameraRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int32 camera_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.camera_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + {{ + }}, +}; + ::uint8_t* SelectCameraRequest::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // int32 camera_id = 1; if (this->_internal_camera_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 1, this->_internal_camera_id(), target); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -8485,14 +8484,15 @@ ::size_t SelectCameraRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SelectCameraRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SelectCameraRequest::MergeImpl +const ::google::protobuf::Message::ClassData SelectCameraRequest::_class_data_ = { + SelectCameraRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SelectCameraRequest::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SelectCameraRequest::GetClassData() const { + return &_class_data_; +} -void SelectCameraRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -8503,7 +8503,7 @@ void SelectCameraRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co if (from._internal_camera_id() != 0) { _this->_internal_set_camera_id(from._internal_camera_id()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SelectCameraRequest::CopyFrom(const SelectCameraRequest& from) { @@ -8513,18 +8513,20 @@ void SelectCameraRequest::CopyFrom(const SelectCameraRequest& from) { MergeFrom(from); } -bool SelectCameraRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SelectCameraRequest::IsInitialized() const { return true; } -void SelectCameraRequest::InternalSwap(SelectCameraRequest* other) { +::_pbi::CachedSize* SelectCameraRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void SelectCameraRequest::InternalSwap(SelectCameraRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - - swap(_impl_.camera_id_, other->_impl_.camera_id_); + swap(_impl_.camera_id_, other->_impl_.camera_id_); } -::PROTOBUF_NAMESPACE_ID::Metadata SelectCameraRequest::GetMetadata() const { +::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]); @@ -8535,14 +8537,19 @@ class ResetSettingsRequest::_Internal { public: }; -ResetSettingsRequest::ResetSettingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +ResetSettingsRequest::ResetSettingsRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ResetSettingsRequest) } -ResetSettingsRequest::ResetSettingsRequest(const ResetSettingsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - ResetSettingsRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +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) } @@ -8550,19 +8557,11 @@ ResetSettingsRequest::ResetSettingsRequest(const ResetSettingsRequest& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResetSettingsRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResetSettingsRequest::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata ResetSettingsRequest::GetMetadata() const { +::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]); @@ -8580,59 +8579,59 @@ class ResetSettingsResponse::_Internal { } }; -const ::mavsdk::rpc::camera::CameraResult& -ResetSettingsResponse::_Internal::camera_result(const ResetSettingsResponse* msg) { +const ::mavsdk::rpc::camera::CameraResult& ResetSettingsResponse::_Internal::camera_result(const ResetSettingsResponse* msg) { return *msg->_impl_.camera_result_; } -ResetSettingsResponse::ResetSettingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ResetSettingsResponse::ResetSettingsResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ResetSettingsResponse) } -ResetSettingsResponse::ResetSettingsResponse(const ResetSettingsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ResetSettingsResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr}}; +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} {} + +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; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.camera_result_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.camera_result_ = {}; } - ResetSettingsResponse::~ResetSettingsResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ResetSettingsResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ResetSettingsResponse::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.camera_result_; -} - -void ResetSettingsResponse::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.camera_result_; + _impl_.~Impl_(); } -void ResetSettingsResponse::Clear() { +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; @@ -8643,66 +8642,65 @@ void ResetSettingsResponse::Clear() { _impl_.camera_result_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ResetSettingsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::camera_result(this), + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -8719,22 +8717,22 @@ ::size_t ResetSettingsResponse::ByteSizeLong() const { // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.camera_result_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResetSettingsResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ResetSettingsResponse::MergeImpl +const ::google::protobuf::Message::ClassData ResetSettingsResponse::_class_data_ = { + ResetSettingsResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResetSettingsResponse::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* ResetSettingsResponse::GetClassData() const { + return &_class_data_; +} -void ResetSettingsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -8746,7 +8744,7 @@ void ResetSettingsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( from._internal_camera_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ResetSettingsResponse::CopyFrom(const ResetSettingsResponse& from) { @@ -8756,18 +8754,21 @@ void ResetSettingsResponse::CopyFrom(const ResetSettingsResponse& from) { MergeFrom(from); } -bool ResetSettingsResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool ResetSettingsResponse::IsInitialized() const { return true; } -void ResetSettingsResponse::InternalSwap(ResetSettingsResponse* other) { +::_pbi::CachedSize* ResetSettingsResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); } -::PROTOBUF_NAMESPACE_ID::Metadata ResetSettingsResponse::GetMetadata() const { +::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]); @@ -8778,132 +8779,115 @@ class CameraResult::_Internal { public: }; -CameraResult::CameraResult(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CameraResult::CameraResult(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CameraResult) } -CameraResult::CameraResult(const CameraResult& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CameraResult* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.result_str_) {} - - , decltype(_impl_.result_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +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::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_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.result_str_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_result_str().empty()) { - _this->_impl_.result_str_.Set(from._internal_result_str(), _this->GetArenaForAllocation()); - } - _this->_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.result_str_) {} - - , decltype(_impl_.result_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.result_str_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.result_ = {}; } - CameraResult::~CameraResult() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CameraResult) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CameraResult::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.result_str_.Destroy(); + _impl_.~Impl_(); } -void CameraResult::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void CameraResult::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CameraResult::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.CameraResult.Result result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_result(static_cast<::mavsdk::rpc::camera::CameraResult_Result>(val)); - } else { - goto handle_unusual; - } - continue; - // string result_str = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_result_str(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.CameraResult.result_str")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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" + }}, +}; + ::uint8_t* CameraResult::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // .mavsdk.rpc.camera.CameraResult.Result result = 1; if (this->_internal_result() != 0) { @@ -8915,14 +8899,15 @@ ::uint8_t* CameraResult::_InternalSerialize( // string result_str = 2; if (!this->_internal_result_str().empty()) { const std::string& _s = this->_internal_result_str(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.CameraResult.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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -8938,7 +8923,7 @@ ::size_t CameraResult::ByteSizeLong() const { // string result_str = 2; if (!this->_internal_result_str().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_result_str()); } @@ -8951,14 +8936,15 @@ ::size_t CameraResult::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CameraResult::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CameraResult::MergeImpl +const ::google::protobuf::Message::ClassData CameraResult::_class_data_ = { + CameraResult::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CameraResult::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* CameraResult::GetClassData() const { + return &_class_data_; +} -void CameraResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -8972,7 +8958,7 @@ void CameraResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P if (from._internal_result() != 0) { _this->_internal_set_result(from._internal_result()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CameraResult::CopyFrom(const CameraResult& from) { @@ -8982,21 +8968,23 @@ void CameraResult::CopyFrom(const CameraResult& from) { MergeFrom(from); } -bool CameraResult::IsInitialized() const { +PROTOBUF_NOINLINE bool CameraResult::IsInitialized() const { return true; } -void CameraResult::InternalSwap(CameraResult* other) { +::_pbi::CachedSize* CameraResult::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void CameraResult::InternalSwap(CameraResult* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, lhs_arena, - &other->_impl_.result_str_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, &other->_impl_.result_str_, arena); swap(_impl_.result_, other->_impl_.result_); } -::PROTOBUF_NAMESPACE_ID::Metadata CameraResult::GetMetadata() const { +::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[44]); @@ -9007,52 +8995,43 @@ class Position::_Internal { public: }; -Position::Position(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Position::Position(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Position) } -Position::Position(const Position& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.latitude_deg_) { 0 } - - , decltype(_impl_.longitude_deg_) { 0 } - - , decltype(_impl_.absolute_altitude_m_) { 0 } - - , decltype(_impl_.relative_altitude_m_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Position::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void Position::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void Position::Clear() { +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; @@ -9060,82 +9039,74 @@ void Position::Clear() { ::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Position::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // double latitude_deg = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 9)) { - _impl_.latitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else { - goto handle_unusual; - } - continue; - // double longitude_deg = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 17)) { - _impl_.longitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else { - goto handle_unusual; - } - continue; - // float absolute_altitude_m = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) { - _impl_.absolute_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float relative_altitude_m = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) { - _impl_.relative_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // 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 + {{ + }}, +}; + ::uint8_t* Position::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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."); + 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)); @@ -9146,7 +9117,8 @@ ::uint8_t* Position::_InternalSerialize( } // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + 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)); @@ -9157,7 +9129,8 @@ ::uint8_t* Position::_InternalSerialize( } // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9168,7 +9141,8 @@ ::uint8_t* Position::_InternalSerialize( } // float relative_altitude_m = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9179,8 +9153,9 @@ ::uint8_t* Position::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -9195,7 +9170,8 @@ ::size_t Position::ByteSizeLong() const { (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."); + 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)); @@ -9204,7 +9180,8 @@ ::size_t Position::ByteSizeLong() const { } // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + 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)); @@ -9213,7 +9190,8 @@ ::size_t Position::ByteSizeLong() const { } // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9222,7 +9200,8 @@ ::size_t Position::ByteSizeLong() const { } // float relative_altitude_m = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9233,14 +9212,15 @@ ::size_t Position::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Position::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Position::MergeImpl +const ::google::protobuf::Message::ClassData Position::_class_data_ = { + Position::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Position::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* Position::GetClassData() const { + return &_class_data_; +} -void Position::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -9248,35 +9228,39 @@ void Position::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO ::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."); + 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."); + 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."); + 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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Position::CopyFrom(const Position& from) { @@ -9286,14 +9270,17 @@ void Position::CopyFrom(const Position& from) { MergeFrom(from); } -bool Position::IsInitialized() const { +PROTOBUF_NOINLINE bool Position::IsInitialized() const { return true; } -void Position::InternalSwap(Position* other) { +::_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_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::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_)>( @@ -9301,7 +9288,7 @@ void Position::InternalSwap(Position* other) { reinterpret_cast(&other->_impl_.latitude_deg_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Position::GetMetadata() const { +::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[45]); @@ -9312,52 +9299,43 @@ class Quaternion::_Internal { public: }; -Quaternion::Quaternion(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Quaternion::Quaternion(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Quaternion) } -Quaternion::Quaternion(const Quaternion& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.w_) { 0 } - - , decltype(_impl_.x_) { 0 } - - , decltype(_impl_.y_) { 0 } - - , decltype(_impl_.z_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Quaternion::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void Quaternion::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Quaternion::Clear() { +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; @@ -9365,82 +9343,74 @@ void Quaternion::Clear() { ::memset(&_impl_.w_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.z_) - reinterpret_cast(&_impl_.w_)) + sizeof(_impl_.z_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Quaternion::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // float w = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { - _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float x = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float y = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float z = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) { - _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // 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 + {{ + }}, +}; + ::uint8_t* Quaternion::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // float w = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9451,7 +9421,8 @@ ::uint8_t* Quaternion::_InternalSerialize( } // float x = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9462,7 +9433,8 @@ ::uint8_t* Quaternion::_InternalSerialize( } // float y = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9473,7 +9445,8 @@ ::uint8_t* Quaternion::_InternalSerialize( } // float z = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9484,8 +9457,9 @@ ::uint8_t* Quaternion::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -9500,7 +9474,8 @@ ::size_t Quaternion::ByteSizeLong() const { (void) cached_has_bits; // float w = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9509,7 +9484,8 @@ ::size_t Quaternion::ByteSizeLong() const { } // float x = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9518,7 +9494,8 @@ ::size_t Quaternion::ByteSizeLong() const { } // float y = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9527,7 +9504,8 @@ ::size_t Quaternion::ByteSizeLong() const { } // float z = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9538,14 +9516,15 @@ ::size_t Quaternion::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Quaternion::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Quaternion::MergeImpl +const ::google::protobuf::Message::ClassData Quaternion::_class_data_ = { + Quaternion::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Quaternion::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* Quaternion::GetClassData() const { + return &_class_data_; +} -void Quaternion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -9553,35 +9532,39 @@ void Quaternion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO ::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."); + 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."); + 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."); + 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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Quaternion::CopyFrom(const Quaternion& from) { @@ -9591,14 +9574,17 @@ void Quaternion::CopyFrom(const Quaternion& from) { MergeFrom(from); } -bool Quaternion::IsInitialized() const { +PROTOBUF_NOINLINE bool Quaternion::IsInitialized() const { return true; } -void Quaternion::InternalSwap(Quaternion* other) { +::_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_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.z_) + sizeof(Quaternion::_impl_.z_) - PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.w_)>( @@ -9606,7 +9592,7 @@ void Quaternion::InternalSwap(Quaternion* other) { reinterpret_cast(&other->_impl_.w_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Quaternion::GetMetadata() const { +::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[46]); @@ -9617,50 +9603,43 @@ class EulerAngle::_Internal { public: }; -EulerAngle::EulerAngle(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +EulerAngle::EulerAngle(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.EulerAngle) } -EulerAngle::EulerAngle(const EulerAngle& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.roll_deg_) { 0 } - - , decltype(_impl_.pitch_deg_) { 0 } - - , decltype(_impl_.yaw_deg_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void EulerAngle::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void EulerAngle::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void EulerAngle::Clear() { +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; @@ -9668,73 +9647,69 @@ void EulerAngle::Clear() { ::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EulerAngle::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // float roll_deg = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { - _impl_.roll_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float pitch_deg = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { - _impl_.pitch_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float yaw_deg = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) { - _impl_.yaw_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // 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 + {{ + }}, +}; + ::uint8_t* EulerAngle::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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."); + 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)); @@ -9745,7 +9720,8 @@ ::uint8_t* EulerAngle::_InternalSerialize( } // float pitch_deg = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9756,7 +9732,8 @@ ::uint8_t* EulerAngle::_InternalSerialize( } // float yaw_deg = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9767,8 +9744,9 @@ ::uint8_t* EulerAngle::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -9783,7 +9761,8 @@ ::size_t EulerAngle::ByteSizeLong() const { (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."); + 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)); @@ -9792,7 +9771,8 @@ ::size_t EulerAngle::ByteSizeLong() const { } // float pitch_deg = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9801,7 +9781,8 @@ ::size_t EulerAngle::ByteSizeLong() const { } // float yaw_deg = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -9812,14 +9793,15 @@ ::size_t EulerAngle::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EulerAngle::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EulerAngle::MergeImpl +const ::google::protobuf::Message::ClassData EulerAngle::_class_data_ = { + EulerAngle::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EulerAngle::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* EulerAngle::GetClassData() const { + return &_class_data_; +} -void EulerAngle::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -9827,28 +9809,31 @@ void EulerAngle::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO ::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."); + 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."); + 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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void EulerAngle::CopyFrom(const EulerAngle& from) { @@ -9858,14 +9843,17 @@ void EulerAngle::CopyFrom(const EulerAngle& from) { MergeFrom(from); } -bool EulerAngle::IsInitialized() const { +PROTOBUF_NOINLINE bool EulerAngle::IsInitialized() const { return true; } -void EulerAngle::InternalSwap(EulerAngle* other) { +::_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_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.yaw_deg_) + sizeof(EulerAngle::_impl_.yaw_deg_) - PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.roll_deg_)>( @@ -9873,7 +9861,7 @@ void EulerAngle::InternalSwap(EulerAngle* other) { reinterpret_cast(&other->_impl_.roll_deg_)); } -::PROTOBUF_NAMESPACE_ID::Metadata EulerAngle::GetMetadata() const { +::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[47]); @@ -9899,110 +9887,88 @@ class CaptureInfo::_Internal { } }; -const ::mavsdk::rpc::camera::Position& -CaptureInfo::_Internal::position(const CaptureInfo* msg) { +const ::mavsdk::rpc::camera::Position& CaptureInfo::_Internal::position(const CaptureInfo* msg) { return *msg->_impl_.position_; } -const ::mavsdk::rpc::camera::Quaternion& -CaptureInfo::_Internal::attitude_quaternion(const CaptureInfo* msg) { +const ::mavsdk::rpc::camera::Quaternion& CaptureInfo::_Internal::attitude_quaternion(const CaptureInfo* msg) { return *msg->_impl_.attitude_quaternion_; } -const ::mavsdk::rpc::camera::EulerAngle& -CaptureInfo::_Internal::attitude_euler_angle(const CaptureInfo* msg) { +const ::mavsdk::rpc::camera::EulerAngle& CaptureInfo::_Internal::attitude_euler_angle(const CaptureInfo* msg) { return *msg->_impl_.attitude_euler_angle_; } -CaptureInfo::CaptureInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CaptureInfo::CaptureInfo(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CaptureInfo) } -CaptureInfo::CaptureInfo(const CaptureInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CaptureInfo* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.file_url_) {} - - , decltype(_impl_.position_){nullptr} - , decltype(_impl_.attitude_quaternion_){nullptr} - , decltype(_impl_.attitude_euler_angle_){nullptr} - , decltype(_impl_.time_utc_us_) {} - - , decltype(_impl_.is_success_) {} - - , decltype(_impl_.index_) {} - }; +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::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_)); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.file_url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.file_url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_file_url().empty()) { - _this->_impl_.file_url_.Set(from._internal_file_url(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.position_ = new ::mavsdk::rpc::camera::Position(*from._impl_.position_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.attitude_quaternion_ = new ::mavsdk::rpc::camera::Quaternion(*from._impl_.attitude_quaternion_); - } - if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) { - _this->_impl_.attitude_euler_angle_ = new ::mavsdk::rpc::camera::EulerAngle(*from._impl_.attitude_euler_angle_); - } - ::memcpy(&_impl_.time_utc_us_, &from._impl_.time_utc_us_, - static_cast<::size_t>(reinterpret_cast(&_impl_.index_) - - reinterpret_cast(&_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.file_url_) {} - - , decltype(_impl_.position_){nullptr} - , decltype(_impl_.attitude_quaternion_){nullptr} - , decltype(_impl_.attitude_euler_angle_){nullptr} - , decltype(_impl_.time_utc_us_) { ::uint64_t{0u} } - - , decltype(_impl_.is_success_) { false } - - , decltype(_impl_.index_) { 0 } - - }; - _impl_.file_url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.file_url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CaptureInfo::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.file_url_.Destroy(); - if (this != internal_default_instance()) delete _impl_.position_; - if (this != internal_default_instance()) delete _impl_.attitude_quaternion_; - if (this != internal_default_instance()) delete _impl_.attitude_euler_angle_; + delete _impl_.position_; + delete _impl_.attitude_quaternion_; + delete _impl_.attitude_euler_angle_; + _impl_.~Impl_(); } -void CaptureInfo::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void CaptureInfo::Clear() { +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; @@ -10027,130 +9993,114 @@ void CaptureInfo::Clear() { reinterpret_cast(&_impl_.index_) - reinterpret_cast(&_impl_.time_utc_us_)) + sizeof(_impl_.index_)); _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CaptureInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.Position position = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_position(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_attitude_quaternion(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_attitude_euler_angle(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // uint64 time_utc_us = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { - _impl_.time_utc_us_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool is_success = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { - _impl_.is_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // int32 index = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) { - _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // string file_url = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - auto str = _internal_mutable_file_url(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.CaptureInfo.file_url")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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" + }}, +}; + ::uint8_t* CaptureInfo::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.Position position = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::position(this), + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::attitude_quaternion(this), + 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::attitude_euler_angle(this), + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, _Internal::attitude_euler_angle(this), _Internal::attitude_euler_angle(this).GetCachedSize(), target, stream); } @@ -10170,22 +10120,23 @@ ::uint8_t* CaptureInfo::_InternalSerialize( // int32 index = 6; if (this->_internal_index() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 6, this->_internal_index(), target); + 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(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.CaptureInfo.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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -10201,7 +10152,7 @@ ::size_t CaptureInfo::ByteSizeLong() const { // string file_url = 7; if (!this->_internal_file_url().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_file_url()); } @@ -10209,23 +10160,20 @@ ::size_t CaptureInfo::ByteSizeLong() const { if (cached_has_bits & 0x00000007u) { // .mavsdk.rpc.camera.Position position = 1; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.position_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.position_); } // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.attitude_quaternion_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.attitude_quaternion_); } // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.attitude_euler_angle_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.attitude_euler_angle_); } } @@ -10249,14 +10197,15 @@ ::size_t CaptureInfo::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CaptureInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CaptureInfo::MergeImpl +const ::google::protobuf::Message::ClassData CaptureInfo::_class_data_ = { + CaptureInfo::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CaptureInfo::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* CaptureInfo::GetClassData() const { + return &_class_data_; +} -void CaptureInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -10291,7 +10240,7 @@ void CaptureInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR if (from._internal_index() != 0) { _this->_internal_set_index(from._internal_index()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CaptureInfo::CopyFrom(const CaptureInfo& from) { @@ -10301,19 +10250,21 @@ void CaptureInfo::CopyFrom(const CaptureInfo& from) { MergeFrom(from); } -bool CaptureInfo::IsInitialized() const { +PROTOBUF_NOINLINE bool CaptureInfo::IsInitialized() const { return true; } -void CaptureInfo::InternalSwap(CaptureInfo* other) { +::_pbi::CachedSize* CaptureInfo::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void CaptureInfo::InternalSwap(CaptureInfo* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + 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_, lhs_arena, - &other->_impl_.file_url_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_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_)>( @@ -10321,7 +10272,7 @@ void CaptureInfo::InternalSwap(CaptureInfo* other) { reinterpret_cast(&other->_impl_.position_)); } -::PROTOBUF_NAMESPACE_ID::Metadata CaptureInfo::GetMetadata() const { +::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[48]); @@ -10332,90 +10283,65 @@ class VideoStreamSettings::_Internal { public: }; -VideoStreamSettings::VideoStreamSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +VideoStreamSettings::VideoStreamSettings(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamSettings) } -VideoStreamSettings::VideoStreamSettings(const VideoStreamSettings& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - VideoStreamSettings* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.uri_) {} - - , decltype(_impl_.frame_rate_hz_) {} - - , decltype(_impl_.horizontal_resolution_pix_) {} - - , decltype(_impl_.vertical_resolution_pix_) {} - - , decltype(_impl_.bit_rate_b_s_) {} - - , decltype(_impl_.rotation_deg_) {} - - , decltype(_impl_.horizontal_fov_deg_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +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} {} + +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_)); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.uri_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.uri_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_uri().empty()) { - _this->_impl_.uri_.Set(from._internal_uri(), _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.frame_rate_hz_, &from._impl_.frame_rate_hz_, - static_cast<::size_t>(reinterpret_cast(&_impl_.horizontal_fov_deg_) - - reinterpret_cast(&_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.uri_) {} - - , decltype(_impl_.frame_rate_hz_) { 0 } - - , decltype(_impl_.horizontal_resolution_pix_) { 0u } - - , decltype(_impl_.vertical_resolution_pix_) { 0u } - - , decltype(_impl_.bit_rate_b_s_) { 0u } - - , decltype(_impl_.rotation_deg_) { 0u } - - , decltype(_impl_.horizontal_fov_deg_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.uri_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.uri_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - +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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void VideoStreamSettings::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.uri_.Destroy(); + _impl_.~Impl_(); } -void VideoStreamSettings::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void VideoStreamSettings::Clear() { +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; @@ -10424,111 +10350,96 @@ void VideoStreamSettings::Clear() { ::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* VideoStreamSettings::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // float frame_rate_hz = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { - _impl_.frame_rate_hz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // uint32 horizontal_resolution_pix = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.horizontal_resolution_pix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // uint32 vertical_resolution_pix = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - _impl_.vertical_resolution_pix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // uint32 bit_rate_b_s = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { - _impl_.bit_rate_b_s_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // uint32 rotation_deg = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { - _impl_.rotation_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // string uri = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - auto str = _internal_mutable_uri(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.VideoStreamSettings.uri")); - } else { - goto handle_unusual; - } - continue; - // float horizontal_fov_deg = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 61)) { - _impl_.horizontal_fov_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // 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" + }}, +}; + ::uint8_t* VideoStreamSettings::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (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."); + 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)); @@ -10569,13 +10480,14 @@ ::uint8_t* VideoStreamSettings::_InternalSerialize( // string uri = 6; if (!this->_internal_uri().empty()) { const std::string& _s = this->_internal_uri(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.VideoStreamSettings.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."); + 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)); @@ -10586,8 +10498,9 @@ ::uint8_t* VideoStreamSettings::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -10603,12 +10516,13 @@ ::size_t VideoStreamSettings::ByteSizeLong() const { // string uri = 6; if (!this->_internal_uri().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + 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."); + 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)); @@ -10641,7 +10555,8 @@ ::size_t VideoStreamSettings::ByteSizeLong() const { } // float horizontal_fov_deg = 7; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -10652,14 +10567,15 @@ ::size_t VideoStreamSettings::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VideoStreamSettings::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - VideoStreamSettings::MergeImpl +const ::google::protobuf::Message::ClassData VideoStreamSettings::_class_data_ = { + VideoStreamSettings::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VideoStreamSettings::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* VideoStreamSettings::GetClassData() const { + return &_class_data_; +} -void VideoStreamSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -10670,7 +10586,8 @@ void VideoStreamSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co 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."); + 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)); @@ -10689,14 +10606,15 @@ void VideoStreamSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co 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."); + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void VideoStreamSettings::CopyFrom(const VideoStreamSettings& from) { @@ -10706,18 +10624,20 @@ void VideoStreamSettings::CopyFrom(const VideoStreamSettings& from) { MergeFrom(from); } -bool VideoStreamSettings::IsInitialized() const { +PROTOBUF_NOINLINE bool VideoStreamSettings::IsInitialized() const { return true; } -void VideoStreamSettings::InternalSwap(VideoStreamSettings* other) { +::_pbi::CachedSize* VideoStreamSettings::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void VideoStreamSettings::InternalSwap(VideoStreamSettings* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uri_, lhs_arena, - &other->_impl_.uri_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_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_)>( @@ -10725,7 +10645,7 @@ void VideoStreamSettings::InternalSwap(VideoStreamSettings* other) { reinterpret_cast(&other->_impl_.frame_rate_hz_)); } -::PROTOBUF_NAMESPACE_ID::Metadata VideoStreamSettings::GetMetadata() const { +::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[49]); @@ -10743,70 +10663,71 @@ class VideoStreamInfo::_Internal { } }; -const ::mavsdk::rpc::camera::VideoStreamSettings& -VideoStreamInfo::_Internal::settings(const VideoStreamInfo* msg) { +const ::mavsdk::rpc::camera::VideoStreamSettings& VideoStreamInfo::_Internal::settings(const VideoStreamInfo* msg) { return *msg->_impl_.settings_; } -VideoStreamInfo::VideoStreamInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +VideoStreamInfo::VideoStreamInfo(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamInfo) } -VideoStreamInfo::VideoStreamInfo(const VideoStreamInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - VideoStreamInfo* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.settings_){nullptr} - , decltype(_impl_.status_) {} - - , decltype(_impl_.spectrum_) {} - }; +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::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_)); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.settings_ = new ::mavsdk::rpc::camera::VideoStreamSettings(*from._impl_.settings_); - } - ::memcpy(&_impl_.status_, &from._impl_.status_, - static_cast<::size_t>(reinterpret_cast(&_impl_.spectrum_) - - reinterpret_cast(&_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.settings_){nullptr} - , decltype(_impl_.status_) { 0 } - - , decltype(_impl_.spectrum_) { 0 } - - }; + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void VideoStreamInfo::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.settings_; -} - -void VideoStreamInfo::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.settings_; + _impl_.~Impl_(); } -void VideoStreamInfo::Clear() { +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; @@ -10820,80 +10741,71 @@ void VideoStreamInfo::Clear() { reinterpret_cast(&_impl_.spectrum_) - reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.spectrum_)); _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* VideoStreamInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_settings(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_status(static_cast<::mavsdk::rpc::camera::VideoStreamInfo_VideoStreamStatus>(val)); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_spectrum(static_cast<::mavsdk::rpc::camera::VideoStreamInfo_VideoStreamSpectrum>(val)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // .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>()}, + }}, {{ + }}, +}; + ::uint8_t* VideoStreamInfo::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::settings(this), + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, _Internal::settings(this), _Internal::settings(this).GetCachedSize(), target, stream); } @@ -10912,8 +10824,9 @@ ::uint8_t* VideoStreamInfo::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -10930,9 +10843,8 @@ ::size_t VideoStreamInfo::ByteSizeLong() const { // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.settings_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.settings_); } // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; @@ -10950,14 +10862,15 @@ ::size_t VideoStreamInfo::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VideoStreamInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - VideoStreamInfo::MergeImpl +const ::google::protobuf::Message::ClassData VideoStreamInfo::_class_data_ = { + VideoStreamInfo::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VideoStreamInfo::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* VideoStreamInfo::GetClassData() const { + return &_class_data_; +} -void VideoStreamInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -10975,7 +10888,7 @@ void VideoStreamInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const if (from._internal_spectrum() != 0) { _this->_internal_set_spectrum(from._internal_spectrum()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void VideoStreamInfo::CopyFrom(const VideoStreamInfo& from) { @@ -10985,15 +10898,18 @@ void VideoStreamInfo::CopyFrom(const VideoStreamInfo& from) { MergeFrom(from); } -bool VideoStreamInfo::IsInitialized() const { +PROTOBUF_NOINLINE bool VideoStreamInfo::IsInitialized() const { return true; } -void VideoStreamInfo::InternalSwap(VideoStreamInfo* other) { +::_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]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.spectrum_) + sizeof(VideoStreamInfo::_impl_.spectrum_) - PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.settings_)>( @@ -11001,7 +10917,7 @@ void VideoStreamInfo::InternalSwap(VideoStreamInfo* other) { reinterpret_cast(&other->_impl_.settings_)); } -::PROTOBUF_NAMESPACE_ID::Metadata VideoStreamInfo::GetMetadata() const { +::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[50]); @@ -11012,102 +10928,65 @@ class Status::_Internal { public: }; -Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Status::Status(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Status) } -Status::Status(const Status& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Status* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.media_folder_name_) {} - - , decltype(_impl_.video_on_) {} - - , decltype(_impl_.photo_interval_on_) {} - - , decltype(_impl_.used_storage_mib_) {} - - , decltype(_impl_.available_storage_mib_) {} - - , decltype(_impl_.total_storage_mib_) {} - - , decltype(_impl_.recording_time_s_) {} - - , decltype(_impl_.storage_status_) {} - - , decltype(_impl_.storage_id_) {} - - , decltype(_impl_.storage_type_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +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::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_)); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.media_folder_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.media_folder_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_media_folder_name().empty()) { - _this->_impl_.media_folder_name_.Set(from._internal_media_folder_name(), _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.video_on_, &from._impl_.video_on_, - static_cast<::size_t>(reinterpret_cast(&_impl_.storage_type_) - - reinterpret_cast(&_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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.media_folder_name_) {} - - , decltype(_impl_.video_on_) { false } - - , decltype(_impl_.photo_interval_on_) { false } - - , decltype(_impl_.used_storage_mib_) { 0 } - - , decltype(_impl_.available_storage_mib_) { 0 } - - , decltype(_impl_.total_storage_mib_) { 0 } - - , decltype(_impl_.recording_time_s_) { 0 } - - , decltype(_impl_.storage_status_) { 0 } - - , decltype(_impl_.storage_id_) { 0u } - - , decltype(_impl_.storage_type_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.media_folder_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.media_folder_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + 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) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Status::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.media_folder_name_.Destroy(); + _impl_.~Impl_(); } -void Status::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Status::Clear() { +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; @@ -11116,137 +10995,115 @@ void Status::Clear() { ::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Status::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bool video_on = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.video_on_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool photo_interval_on = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.photo_interval_on_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // float used_storage_mib = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) { - _impl_.used_storage_mib_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float available_storage_mib = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) { - _impl_.available_storage_mib_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float total_storage_mib = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) { - _impl_.total_storage_mib_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float recording_time_s = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 53)) { - _impl_.recording_time_s_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // string media_folder_name = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - auto str = _internal_mutable_media_folder_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.Status.media_folder_name")); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_storage_status(static_cast<::mavsdk::rpc::camera::Status_StorageStatus>(val)); - } else { - goto handle_unusual; - } - continue; - // uint32 storage_id = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) { - _impl_.storage_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_storage_type(static_cast<::mavsdk::rpc::camera::Status_StorageType>(val)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // 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" + }}, +}; + ::uint8_t* Status::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::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; + (void)cached_has_bits; // bool video_on = 1; if (this->_internal_video_on() != 0) { @@ -11263,7 +11120,8 @@ ::uint8_t* Status::_InternalSerialize( } // float used_storage_mib = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -11274,7 +11132,8 @@ ::uint8_t* Status::_InternalSerialize( } // float available_storage_mib = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -11285,7 +11144,8 @@ ::uint8_t* Status::_InternalSerialize( } // float total_storage_mib = 5; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -11296,7 +11156,8 @@ ::uint8_t* Status::_InternalSerialize( } // float recording_time_s = 6; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -11309,8 +11170,8 @@ ::uint8_t* Status::_InternalSerialize( // string media_folder_name = 7; if (!this->_internal_media_folder_name().empty()) { const std::string& _s = this->_internal_media_folder_name(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Status.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); } @@ -11336,8 +11197,9 @@ ::uint8_t* Status::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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; @@ -11353,7 +11215,7 @@ ::size_t Status::ByteSizeLong() const { // string media_folder_name = 7; if (!this->_internal_media_folder_name().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_media_folder_name()); } @@ -11368,7 +11230,8 @@ ::size_t Status::ByteSizeLong() const { } // float used_storage_mib = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -11377,7 +11240,8 @@ ::size_t Status::ByteSizeLong() const { } // float available_storage_mib = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -11386,7 +11250,8 @@ ::size_t Status::ByteSizeLong() const { } // float total_storage_mib = 5; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -11395,7 +11260,8 @@ ::size_t Status::ByteSizeLong() const { } // float recording_time_s = 6; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + 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)); @@ -11424,14 +11290,15 @@ ::size_t Status::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Status::MergeImpl +const ::google::protobuf::Message::ClassData Status::_class_data_ = { + Status::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* Status::GetClassData() const { + return &_class_data_; +} -void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +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) @@ -11448,28 +11315,32 @@ void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU 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."); + 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."); + 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."); + 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."); + 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)); @@ -11485,7 +11356,7 @@ void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU if (from._internal_storage_type() != 0) { _this->_internal_set_storage_type(from._internal_storage_type()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Status::CopyFrom(const Status& from) { @@ -11495,18 +11366,20 @@ void Status::CopyFrom(const Status& from) { MergeFrom(from); } -bool Status::IsInitialized() const { +PROTOBUF_NOINLINE bool Status::IsInitialized() const { return true; } -void Status::InternalSwap(Status* other) { +::_pbi::CachedSize* Status::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.media_folder_name_, lhs_arena, - &other->_impl_.media_folder_name_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_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_)>( @@ -11514,7 +11387,7 @@ void Status::InternalSwap(Status* other) { reinterpret_cast(&other->_impl_.video_on_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { +::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[51]); @@ -11525,164 +11398,138 @@ class Option::_Internal { public: }; -Option::Option(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Option::Option(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Option) } -Option::Option(const Option& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Option* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.option_id_) {} - - , decltype(_impl_.option_description_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +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::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_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.option_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.option_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_option_id().empty()) { - _this->_impl_.option_id_.Set(from._internal_option_id(), _this->GetArenaForAllocation()); - } - _impl_.option_description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.option_description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_option_description().empty()) { - _this->_impl_.option_description_.Set(from._internal_option_description(), _this->GetArenaForAllocation()); - } // @@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) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.option_id_) {} - - , decltype(_impl_.option_description_) {} - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.option_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.option_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.option_description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.option_description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); } - Option::~Option() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Option) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Option::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.option_id_.Destroy(); _impl_.option_description_.Destroy(); + _impl_.~Impl_(); } -void Option::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Option::Clear() { +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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Option::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string option_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_option_id(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.Option.option_id")); - } else { - goto handle_unusual; - } - continue; - // string option_description = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_option_description(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.Option.option_description")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _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; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +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 + }}, {{ + // string option_id = 1; + {PROTOBUF_FIELD_OFFSET(Option, _impl_.option_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string option_description = 2; + {PROTOBUF_FIELD_OFFSET(Option, _impl_.option_description_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\30\11\22\0\0\0\0\0" + "mavsdk.rpc.camera.Option" + "option_id" + "option_description" + }}, +}; + ::uint8_t* Option::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Option) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string option_id = 1; if (!this->_internal_option_id().empty()) { const std::string& _s = this->_internal_option_id(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Option.option_id"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Option.option_id"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string option_description = 2; if (!this->_internal_option_description().empty()) { const std::string& _s = this->_internal_option_description(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Option.option_description"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Option.option_description"); target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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.Option) return target; @@ -11698,27 +11545,28 @@ ::size_t Option::ByteSizeLong() const { // string option_id = 1; if (!this->_internal_option_id().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_option_id()); } // string option_description = 2; if (!this->_internal_option_description().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_option_description()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Option::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Option::MergeImpl +const ::google::protobuf::Message::ClassData Option::_class_data_ = { + Option::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Option::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* Option::GetClassData() const { + return &_class_data_; +} -void Option::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Option::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.Option) @@ -11732,7 +11580,7 @@ void Option::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU if (!from._internal_option_description().empty()) { _this->_internal_set_option_description(from._internal_option_description()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Option::CopyFrom(const Option& from) { @@ -11742,22 +11590,23 @@ void Option::CopyFrom(const Option& from) { MergeFrom(from); } -bool Option::IsInitialized() const { +PROTOBUF_NOINLINE bool Option::IsInitialized() const { return true; } -void Option::InternalSwap(Option* other) { +::_pbi::CachedSize* Option::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void Option::InternalSwap(Option* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.option_id_, lhs_arena, - &other->_impl_.option_id_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.option_description_, lhs_arena, - &other->_impl_.option_description_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.option_id_, &other->_impl_.option_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.option_description_, &other->_impl_.option_description_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata Option::GetMetadata() const { +::google::protobuf::Metadata Option::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[52]); @@ -11775,96 +11624,71 @@ class Setting::_Internal { } }; -const ::mavsdk::rpc::camera::Option& -Setting::_Internal::option(const Setting* msg) { +const ::mavsdk::rpc::camera::Option& Setting::_Internal::option(const Setting* msg) { return *msg->_impl_.option_; } -Setting::Setting(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Setting::Setting(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Setting) } -Setting::Setting(const Setting& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Setting* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.setting_id_) {} - - , decltype(_impl_.setting_description_) {} - - , decltype(_impl_.option_){nullptr} - , decltype(_impl_.is_range_) {} - }; +inline PROTOBUF_NDEBUG_INLINE Setting::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + setting_id_(arena, from.setting_id_), + setting_description_(arena, from.setting_description_) {} + +Setting::Setting( + ::google::protobuf::Arena* arena, + const Setting& from) + : ::google::protobuf::Message(arena) { + Setting* 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_.option_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::mavsdk::rpc::camera::Option>(arena, *from._impl_.option_) + : nullptr; + _impl_.is_range_ = from._impl_.is_range_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.setting_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.setting_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_setting_id().empty()) { - _this->_impl_.setting_id_.Set(from._internal_setting_id(), _this->GetArenaForAllocation()); - } - _impl_.setting_description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.setting_description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_setting_description().empty()) { - _this->_impl_.setting_description_.Set(from._internal_setting_description(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.option_ = new ::mavsdk::rpc::camera::Option(*from._impl_.option_); - } - _this->_impl_.is_range_ = from._impl_.is_range_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.Setting) } +inline PROTOBUF_NDEBUG_INLINE Setting::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + setting_id_(arena), + setting_description_(arena) {} inline void Setting::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.setting_id_) {} - - , decltype(_impl_.setting_description_) {} - - , decltype(_impl_.option_){nullptr} - , decltype(_impl_.is_range_) { false } - - }; - _impl_.setting_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.setting_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.setting_description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.setting_description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, option_), + 0, + offsetof(Impl_, is_range_) - + offsetof(Impl_, option_) + + sizeof(Impl_::is_range_)); } - Setting::~Setting() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Setting) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Setting::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.setting_id_.Destroy(); _impl_.setting_description_.Destroy(); - if (this != internal_default_instance()) delete _impl_.option_; -} - -void Setting::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + delete _impl_.option_; + _impl_.~Impl_(); } -void Setting::Clear() { +PROTOBUF_NOINLINE void Setting::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Setting) + 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; @@ -11878,107 +11702,96 @@ void Setting::Clear() { } _impl_.is_range_ = false; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Setting::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string setting_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_setting_id(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.Setting.setting_id")); - } else { - goto handle_unusual; - } - continue; - // string setting_description = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_setting_description(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.Setting.setting_description")); - } else { - goto handle_unusual; - } - continue; - // .mavsdk.rpc.camera.Option option = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_option(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool is_range = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { - _impl_.is_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Setting::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 63, 2> Setting::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Setting, _impl_._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 + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Setting_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // bool is_range = 4; + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 63, 0, PROTOBUF_FIELD_OFFSET(Setting, _impl_.is_range_)}}, + // string setting_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Setting, _impl_.setting_id_)}}, + // string setting_description = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Setting, _impl_.setting_description_)}}, + // .mavsdk.rpc.camera.Option option = 3; + {::_pbi::TcParser::FastMtS1, + {26, 0, 0, PROTOBUF_FIELD_OFFSET(Setting, _impl_.option_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string setting_id = 1; + {PROTOBUF_FIELD_OFFSET(Setting, _impl_.setting_id_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string setting_description = 2; + {PROTOBUF_FIELD_OFFSET(Setting, _impl_.setting_description_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .mavsdk.rpc.camera.Option option = 3; + {PROTOBUF_FIELD_OFFSET(Setting, _impl_.option_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool is_range = 4; + {PROTOBUF_FIELD_OFFSET(Setting, _impl_.is_range_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Option>()}, + }}, {{ + "\31\12\23\0\0\0\0\0" + "mavsdk.rpc.camera.Setting" + "setting_id" + "setting_description" + }}, +}; + ::uint8_t* Setting::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Setting) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string setting_id = 1; if (!this->_internal_setting_id().empty()) { const std::string& _s = this->_internal_setting_id(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Setting.setting_id"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Setting.setting_id"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string setting_description = 2; if (!this->_internal_setting_description().empty()) { const std::string& _s = this->_internal_setting_description(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Setting.setting_description"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Setting.setting_description"); target = stream->WriteStringMaybeAliased(2, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.Option option = 3; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::option(this), + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, _Internal::option(this), _Internal::option(this).GetCachedSize(), target, stream); } @@ -11990,8 +11803,9 @@ ::uint8_t* Setting::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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.Setting) return target; @@ -12007,22 +11821,21 @@ ::size_t Setting::ByteSizeLong() const { // string setting_id = 1; if (!this->_internal_setting_id().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_setting_id()); } // string setting_description = 2; if (!this->_internal_setting_description().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_setting_description()); } // .mavsdk.rpc.camera.Option option = 3; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.option_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.option_); } // bool is_range = 4; @@ -12033,14 +11846,15 @@ ::size_t Setting::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Setting::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Setting::MergeImpl +const ::google::protobuf::Message::ClassData Setting::_class_data_ = { + Setting::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Setting::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* Setting::GetClassData() const { + return &_class_data_; +} -void Setting::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Setting::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.Setting) @@ -12061,7 +11875,7 @@ void Setting::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOB if (from._internal_is_range() != 0) { _this->_internal_set_is_range(from._internal_is_range()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Setting::CopyFrom(const Setting& from) { @@ -12071,21 +11885,22 @@ void Setting::CopyFrom(const Setting& from) { MergeFrom(from); } -bool Setting::IsInitialized() const { +PROTOBUF_NOINLINE bool Setting::IsInitialized() const { return true; } -void Setting::InternalSwap(Setting* other) { +::_pbi::CachedSize* Setting::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void Setting::InternalSwap(Setting* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + 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_.setting_id_, lhs_arena, - &other->_impl_.setting_id_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.setting_description_, lhs_arena, - &other->_impl_.setting_description_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.setting_id_, &other->_impl_.setting_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.setting_description_, &other->_impl_.setting_description_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Setting, _impl_.is_range_) + sizeof(Setting::_impl_.is_range_) - PROTOBUF_FIELD_OFFSET(Setting, _impl_.option_)>( @@ -12093,7 +11908,7 @@ void Setting::InternalSwap(Setting* other) { reinterpret_cast(&other->_impl_.option_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Setting::GetMetadata() const { +::google::protobuf::Metadata Setting::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[53]); @@ -12104,199 +11919,157 @@ class SettingOptions::_Internal { public: }; -SettingOptions::SettingOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SettingOptions::SettingOptions(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SettingOptions) } -SettingOptions::SettingOptions(const SettingOptions& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SettingOptions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.options_){from._impl_.options_} - , decltype(_impl_.setting_id_) {} - - , decltype(_impl_.setting_description_) {} - - , decltype(_impl_.is_range_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE SettingOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : options_{visibility, arena, from.options_}, + setting_id_(arena, from.setting_id_), + setting_description_(arena, from.setting_description_), + _cached_size_{0} {} + +SettingOptions::SettingOptions( + ::google::protobuf::Arena* arena, + const SettingOptions& from) + : ::google::protobuf::Message(arena) { + SettingOptions* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_.is_range_ = from._impl_.is_range_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.setting_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.setting_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_setting_id().empty()) { - _this->_impl_.setting_id_.Set(from._internal_setting_id(), _this->GetArenaForAllocation()); - } - _impl_.setting_description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.setting_description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_setting_description().empty()) { - _this->_impl_.setting_description_.Set(from._internal_setting_description(), _this->GetArenaForAllocation()); - } - _this->_impl_.is_range_ = from._impl_.is_range_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SettingOptions) } +inline PROTOBUF_NDEBUG_INLINE SettingOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : options_{visibility, arena}, + setting_id_(arena), + setting_description_(arena), + _cached_size_{0} {} inline void SettingOptions::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.options_){arena} - , decltype(_impl_.setting_id_) {} - - , decltype(_impl_.setting_description_) {} - - , decltype(_impl_.is_range_) { false } - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.setting_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.setting_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.setting_description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.setting_description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.is_range_ = {}; } - SettingOptions::~SettingOptions() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SettingOptions) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SettingOptions::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_options()->~RepeatedPtrField(); + ABSL_DCHECK(GetArena() == nullptr); _impl_.setting_id_.Destroy(); _impl_.setting_description_.Destroy(); + _impl_.~Impl_(); } -void SettingOptions::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SettingOptions::Clear() { +PROTOBUF_NOINLINE void SettingOptions::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SettingOptions) + 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; - _internal_mutable_options()->Clear(); + _impl_.options_.Clear(); _impl_.setting_id_.ClearToEmpty(); _impl_.setting_description_.ClearToEmpty(); _impl_.is_range_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SettingOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string setting_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_setting_id(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.SettingOptions.setting_id")); - } else { - goto handle_unusual; - } - continue; - // string setting_description = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_setting_description(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.SettingOptions.setting_description")); - } else { - goto handle_unusual; - } - continue; - // repeated .mavsdk.rpc.camera.Option options = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_options(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else { - goto handle_unusual; - } - continue; - // bool is_range = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { - _impl_.is_range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* SettingOptions::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 70, 2> SettingOptions::_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 + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_SettingOptions_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // bool is_range = 4; + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 63, 0, PROTOBUF_FIELD_OFFSET(SettingOptions, _impl_.is_range_)}}, + // string setting_id = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(SettingOptions, _impl_.setting_id_)}}, + // string setting_description = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(SettingOptions, _impl_.setting_description_)}}, + // repeated .mavsdk.rpc.camera.Option options = 3; + {::_pbi::TcParser::FastMtR1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(SettingOptions, _impl_.options_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string setting_id = 1; + {PROTOBUF_FIELD_OFFSET(SettingOptions, _impl_.setting_id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string setting_description = 2; + {PROTOBUF_FIELD_OFFSET(SettingOptions, _impl_.setting_description_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .mavsdk.rpc.camera.Option options = 3; + {PROTOBUF_FIELD_OFFSET(SettingOptions, _impl_.options_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool is_range = 4; + {PROTOBUF_FIELD_OFFSET(SettingOptions, _impl_.is_range_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Option>()}, + }}, {{ + "\40\12\23\0\0\0\0\0" + "mavsdk.rpc.camera.SettingOptions" + "setting_id" + "setting_description" + }}, +}; + ::uint8_t* SettingOptions::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SettingOptions) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string setting_id = 1; if (!this->_internal_setting_id().empty()) { const std::string& _s = this->_internal_setting_id(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.SettingOptions.setting_id"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.SettingOptions.setting_id"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string setting_description = 2; if (!this->_internal_setting_description().empty()) { const std::string& _s = this->_internal_setting_description(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.SettingOptions.setting_description"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.SettingOptions.setting_description"); target = stream->WriteStringMaybeAliased(2, _s, target); } // repeated .mavsdk.rpc.camera.Option options = 3; for (unsigned i = 0, n = static_cast(this->_internal_options_size()); i < n; i++) { - const auto& repfield = this->_internal_options(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + const auto& repfield = this->_internal_options().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } @@ -12308,8 +12081,9 @@ ::uint8_t* SettingOptions::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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.SettingOptions) return target; @@ -12327,18 +12101,17 @@ ::size_t SettingOptions::ByteSizeLong() const { total_size += 1UL * this->_internal_options_size(); for (const auto& msg : this->_internal_options()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - // string setting_id = 1; if (!this->_internal_setting_id().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_setting_id()); } // string setting_description = 2; if (!this->_internal_setting_description().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_setting_description()); } @@ -12350,14 +12123,15 @@ ::size_t SettingOptions::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SettingOptions::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SettingOptions::MergeImpl +const ::google::protobuf::Message::ClassData SettingOptions::_class_data_ = { + SettingOptions::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SettingOptions::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* SettingOptions::GetClassData() const { + return &_class_data_; +} -void SettingOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void SettingOptions::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.SettingOptions) @@ -12365,7 +12139,8 @@ void SettingOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_options()->MergeFrom(from._internal_options()); + _this->_internal_mutable_options()->MergeFrom( + from._internal_options()); if (!from._internal_setting_id().empty()) { _this->_internal_set_setting_id(from._internal_setting_id()); } @@ -12375,7 +12150,7 @@ void SettingOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : if (from._internal_is_range() != 0) { _this->_internal_set_is_range(from._internal_is_range()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SettingOptions::CopyFrom(const SettingOptions& from) { @@ -12385,25 +12160,25 @@ void SettingOptions::CopyFrom(const SettingOptions& from) { MergeFrom(from); } -bool SettingOptions::IsInitialized() const { +PROTOBUF_NOINLINE bool SettingOptions::IsInitialized() const { return true; } -void SettingOptions::InternalSwap(SettingOptions* other) { +::_pbi::CachedSize* SettingOptions::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void SettingOptions::InternalSwap(SettingOptions* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _internal_mutable_options()->InternalSwap(other->_internal_mutable_options()); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.setting_id_, lhs_arena, - &other->_impl_.setting_id_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.setting_description_, lhs_arena, - &other->_impl_.setting_description_, rhs_arena); - - swap(_impl_.is_range_, other->_impl_.is_range_); + _impl_.options_.InternalSwap(&other->_impl_.options_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.setting_id_, &other->_impl_.setting_id_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.setting_description_, &other->_impl_.setting_description_, arena); + swap(_impl_.is_range_, other->_impl_.is_range_); } -::PROTOBUF_NAMESPACE_ID::Metadata SettingOptions::GetMetadata() const { +::google::protobuf::Metadata SettingOptions::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[54]); @@ -12414,102 +12189,68 @@ class Information::_Internal { public: }; -Information::Information(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Information::Information(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Information) } -Information::Information(const Information& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Information* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.vendor_name_) {} - - , decltype(_impl_.model_name_) {} - - , decltype(_impl_.focal_length_mm_) {} - - , decltype(_impl_.horizontal_sensor_size_mm_) {} - - , decltype(_impl_.vertical_sensor_size_mm_) {} - - , decltype(_impl_.horizontal_resolution_px_) {} - - , decltype(_impl_.vertical_resolution_px_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE Information::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : vendor_name_(arena, from.vendor_name_), + model_name_(arena, from.model_name_), + _cached_size_{0} {} + +Information::Information( + ::google::protobuf::Arena* arena, + const Information& from) + : ::google::protobuf::Message(arena) { + Information* 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_, focal_length_mm_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, focal_length_mm_), + offsetof(Impl_, vertical_resolution_px_) - + offsetof(Impl_, focal_length_mm_) + + sizeof(Impl_::vertical_resolution_px_)); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.vendor_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vendor_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_vendor_name().empty()) { - _this->_impl_.vendor_name_.Set(from._internal_vendor_name(), _this->GetArenaForAllocation()); - } - _impl_.model_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.model_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_model_name().empty()) { - _this->_impl_.model_name_.Set(from._internal_model_name(), _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.focal_length_mm_, &from._impl_.focal_length_mm_, - static_cast<::size_t>(reinterpret_cast(&_impl_.vertical_resolution_px_) - - reinterpret_cast(&_impl_.focal_length_mm_)) + sizeof(_impl_.vertical_resolution_px_)); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.Information) } +inline PROTOBUF_NDEBUG_INLINE Information::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : vendor_name_(arena), + model_name_(arena), + _cached_size_{0} {} inline void Information::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.vendor_name_) {} - - , decltype(_impl_.model_name_) {} - - , decltype(_impl_.focal_length_mm_) { 0 } - - , decltype(_impl_.horizontal_sensor_size_mm_) { 0 } - - , decltype(_impl_.vertical_sensor_size_mm_) { 0 } - - , decltype(_impl_.horizontal_resolution_px_) { 0u } - - , decltype(_impl_.vertical_resolution_px_) { 0u } - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.vendor_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vendor_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.model_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.model_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, focal_length_mm_), + 0, + offsetof(Impl_, vertical_resolution_px_) - + offsetof(Impl_, focal_length_mm_) + + sizeof(Impl_::vertical_resolution_px_)); } - Information::~Information() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Information) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Information::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.vendor_name_.Destroy(); _impl_.model_name_.Destroy(); + _impl_.~Impl_(); } -void Information::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Information::Clear() { +PROTOBUF_NOINLINE void Information::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Information) + 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; @@ -12519,129 +12260,113 @@ void Information::Clear() { ::memset(&_impl_.focal_length_mm_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.vertical_resolution_px_) - reinterpret_cast(&_impl_.focal_length_mm_)) + sizeof(_impl_.vertical_resolution_px_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Information::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string vendor_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_vendor_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.Information.vendor_name")); - } else { - goto handle_unusual; - } - continue; - // string model_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_model_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.Information.model_name")); - } else { - goto handle_unusual; - } - continue; - // float focal_length_mm = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) { - _impl_.focal_length_mm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float horizontal_sensor_size_mm = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) { - _impl_.horizontal_sensor_size_mm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // float vertical_sensor_size_mm = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) { - _impl_.vertical_sensor_size_mm_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else { - goto handle_unusual; - } - continue; - // uint32 horizontal_resolution_px = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) { - _impl_.horizontal_resolution_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // uint32 vertical_resolution_px = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) { - _impl_.vertical_resolution_px_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Information::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 7, 0, 59, 2> Information::_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 + &_Information_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string vendor_name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Information, _impl_.vendor_name_)}}, + // string model_name = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Information, _impl_.model_name_)}}, + // float focal_length_mm = 3; + {::_pbi::TcParser::FastF32S1, + {29, 63, 0, PROTOBUF_FIELD_OFFSET(Information, _impl_.focal_length_mm_)}}, + // float horizontal_sensor_size_mm = 4; + {::_pbi::TcParser::FastF32S1, + {37, 63, 0, PROTOBUF_FIELD_OFFSET(Information, _impl_.horizontal_sensor_size_mm_)}}, + // float vertical_sensor_size_mm = 5; + {::_pbi::TcParser::FastF32S1, + {45, 63, 0, PROTOBUF_FIELD_OFFSET(Information, _impl_.vertical_sensor_size_mm_)}}, + // uint32 horizontal_resolution_px = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Information, _impl_.horizontal_resolution_px_), 63>(), + {48, 63, 0, PROTOBUF_FIELD_OFFSET(Information, _impl_.horizontal_resolution_px_)}}, + // uint32 vertical_resolution_px = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Information, _impl_.vertical_resolution_px_), 63>(), + {56, 63, 0, PROTOBUF_FIELD_OFFSET(Information, _impl_.vertical_resolution_px_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string vendor_name = 1; + {PROTOBUF_FIELD_OFFSET(Information, _impl_.vendor_name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string model_name = 2; + {PROTOBUF_FIELD_OFFSET(Information, _impl_.model_name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // float focal_length_mm = 3; + {PROTOBUF_FIELD_OFFSET(Information, _impl_.focal_length_mm_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float horizontal_sensor_size_mm = 4; + {PROTOBUF_FIELD_OFFSET(Information, _impl_.horizontal_sensor_size_mm_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // float vertical_sensor_size_mm = 5; + {PROTOBUF_FIELD_OFFSET(Information, _impl_.vertical_sensor_size_mm_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, + // uint32 horizontal_resolution_px = 6; + {PROTOBUF_FIELD_OFFSET(Information, _impl_.horizontal_resolution_px_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // uint32 vertical_resolution_px = 7; + {PROTOBUF_FIELD_OFFSET(Information, _impl_.vertical_resolution_px_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + }}, + // no aux_entries + {{ + "\35\13\12\0\0\0\0\0" + "mavsdk.rpc.camera.Information" + "vendor_name" + "model_name" + }}, +}; + ::uint8_t* Information::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Information) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string vendor_name = 1; if (!this->_internal_vendor_name().empty()) { const std::string& _s = this->_internal_vendor_name(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Information.vendor_name"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Information.vendor_name"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string model_name = 2; if (!this->_internal_model_name().empty()) { const std::string& _s = this->_internal_model_name(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Information.model_name"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Information.model_name"); target = stream->WriteStringMaybeAliased(2, _s, target); } // float focal_length_mm = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_focal_length_mm = this->_internal_focal_length_mm(); ::uint32_t raw_focal_length_mm; memcpy(&raw_focal_length_mm, &tmp_focal_length_mm, sizeof(tmp_focal_length_mm)); @@ -12652,7 +12377,8 @@ ::uint8_t* Information::_InternalSerialize( } // float horizontal_sensor_size_mm = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_horizontal_sensor_size_mm = this->_internal_horizontal_sensor_size_mm(); ::uint32_t raw_horizontal_sensor_size_mm; memcpy(&raw_horizontal_sensor_size_mm, &tmp_horizontal_sensor_size_mm, sizeof(tmp_horizontal_sensor_size_mm)); @@ -12663,7 +12389,8 @@ ::uint8_t* Information::_InternalSerialize( } // float vertical_sensor_size_mm = 5; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_vertical_sensor_size_mm = this->_internal_vertical_sensor_size_mm(); ::uint32_t raw_vertical_sensor_size_mm; memcpy(&raw_vertical_sensor_size_mm, &tmp_vertical_sensor_size_mm, sizeof(tmp_vertical_sensor_size_mm)); @@ -12688,8 +12415,9 @@ ::uint8_t* Information::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + 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.Information) return target; @@ -12705,18 +12433,19 @@ ::size_t Information::ByteSizeLong() const { // string vendor_name = 1; if (!this->_internal_vendor_name().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_vendor_name()); } // string model_name = 2; if (!this->_internal_model_name().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_model_name()); } // float focal_length_mm = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_focal_length_mm = this->_internal_focal_length_mm(); ::uint32_t raw_focal_length_mm; memcpy(&raw_focal_length_mm, &tmp_focal_length_mm, sizeof(tmp_focal_length_mm)); @@ -12725,7 +12454,8 @@ ::size_t Information::ByteSizeLong() const { } // float horizontal_sensor_size_mm = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_horizontal_sensor_size_mm = this->_internal_horizontal_sensor_size_mm(); ::uint32_t raw_horizontal_sensor_size_mm; memcpy(&raw_horizontal_sensor_size_mm, &tmp_horizontal_sensor_size_mm, sizeof(tmp_horizontal_sensor_size_mm)); @@ -12734,7 +12464,8 @@ ::size_t Information::ByteSizeLong() const { } // float vertical_sensor_size_mm = 5; - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_vertical_sensor_size_mm = this->_internal_vertical_sensor_size_mm(); ::uint32_t raw_vertical_sensor_size_mm; memcpy(&raw_vertical_sensor_size_mm, &tmp_vertical_sensor_size_mm, sizeof(tmp_vertical_sensor_size_mm)); @@ -12757,14 +12488,15 @@ ::size_t Information::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Information::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Information::MergeImpl +const ::google::protobuf::Message::ClassData Information::_class_data_ = { + Information::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Information::GetClassData() const { return &_class_data_; } - +const ::google::protobuf::Message::ClassData* Information::GetClassData() const { + return &_class_data_; +} -void Information::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Information::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.Information) @@ -12778,21 +12510,24 @@ void Information::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR if (!from._internal_model_name().empty()) { _this->_internal_set_model_name(from._internal_model_name()); } - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_focal_length_mm = from._internal_focal_length_mm(); ::uint32_t raw_focal_length_mm; memcpy(&raw_focal_length_mm, &tmp_focal_length_mm, sizeof(tmp_focal_length_mm)); if (raw_focal_length_mm != 0) { _this->_internal_set_focal_length_mm(from._internal_focal_length_mm()); } - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_horizontal_sensor_size_mm = from._internal_horizontal_sensor_size_mm(); ::uint32_t raw_horizontal_sensor_size_mm; memcpy(&raw_horizontal_sensor_size_mm, &tmp_horizontal_sensor_size_mm, sizeof(tmp_horizontal_sensor_size_mm)); if (raw_horizontal_sensor_size_mm != 0) { _this->_internal_set_horizontal_sensor_size_mm(from._internal_horizontal_sensor_size_mm()); } - static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), + "Code assumes ::uint32_t and float are the same size."); float tmp_vertical_sensor_size_mm = from._internal_vertical_sensor_size_mm(); ::uint32_t raw_vertical_sensor_size_mm; memcpy(&raw_vertical_sensor_size_mm, &tmp_vertical_sensor_size_mm, sizeof(tmp_vertical_sensor_size_mm)); @@ -12805,7 +12540,7 @@ void Information::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR if (from._internal_vertical_resolution_px() != 0) { _this->_internal_set_vertical_resolution_px(from._internal_vertical_resolution_px()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Information::CopyFrom(const Information& from) { @@ -12815,20 +12550,21 @@ void Information::CopyFrom(const Information& from) { MergeFrom(from); } -bool Information::IsInitialized() const { +PROTOBUF_NOINLINE bool Information::IsInitialized() const { return true; } -void Information::InternalSwap(Information* other) { +::_pbi::CachedSize* Information::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void Information::InternalSwap(Information* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.vendor_name_, lhs_arena, - &other->_impl_.vendor_name_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_name_, lhs_arena, - &other->_impl_.model_name_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.vendor_name_, &other->_impl_.vendor_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_name_, &other->_impl_.model_name_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Information, _impl_.vertical_resolution_px_) + sizeof(Information::_impl_.vertical_resolution_px_) - PROTOBUF_FIELD_OFFSET(Information, _impl_.focal_length_mm_)>( @@ -12836,7 +12572,7 @@ void Information::InternalSwap(Information* other) { reinterpret_cast(&other->_impl_.focal_length_mm_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Information::GetMetadata() const { +::google::protobuf::Metadata Information::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[55]); @@ -12845,231 +12581,9 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Information::GetMetadata() const { } // namespace camera } // namespace rpc } // namespace mavsdk -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::PrepareRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::PrepareRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::PrepareRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::PrepareResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::PrepareResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::PrepareResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::TakePhotoRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::TakePhotoRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::TakePhotoRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::TakePhotoResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::TakePhotoResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::TakePhotoResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StartPhotoIntervalRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StartPhotoIntervalRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StartPhotoIntervalRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StartPhotoIntervalResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StartPhotoIntervalResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StartPhotoIntervalResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StopPhotoIntervalRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StopPhotoIntervalRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StopPhotoIntervalRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StopPhotoIntervalResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StopPhotoIntervalResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StopPhotoIntervalResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StartVideoRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StartVideoRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StartVideoRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StartVideoResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StartVideoResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StartVideoResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StopVideoRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StopVideoRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StopVideoRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StopVideoResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StopVideoResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StopVideoResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StartVideoStreamingRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StartVideoStreamingRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StartVideoStreamingRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StartVideoStreamingResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StartVideoStreamingResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StartVideoStreamingResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StopVideoStreamingRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StopVideoStreamingRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StopVideoStreamingRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StopVideoStreamingResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StopVideoStreamingResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StopVideoStreamingResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SetModeRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SetModeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SetModeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SetModeResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SetModeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SetModeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::ListPhotosRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::ListPhotosRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::ListPhotosRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::ListPhotosResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::ListPhotosResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::ListPhotosResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SubscribeInformationRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SubscribeInformationRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SubscribeInformationRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::InformationResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::InformationResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::InformationResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SubscribeModeRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SubscribeModeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SubscribeModeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::ModeResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::ModeResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::ModeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::VideoStreamInfoResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::VideoStreamInfoResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::VideoStreamInfoResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SubscribeCaptureInfoRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SubscribeCaptureInfoRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SubscribeCaptureInfoRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::CaptureInfoResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::CaptureInfoResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::CaptureInfoResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SubscribeStatusRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SubscribeStatusRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SubscribeStatusRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::StatusResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::StatusResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::StatusResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::CurrentSettingsResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::CurrentSettingsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::CurrentSettingsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::PossibleSettingOptionsResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::PossibleSettingOptionsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::PossibleSettingOptionsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SetSettingRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SetSettingRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SetSettingRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SetSettingResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SetSettingResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SetSettingResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::GetSettingRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::GetSettingRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::GetSettingRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::GetSettingResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::GetSettingResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::GetSettingResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::FormatStorageRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::FormatStorageRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::FormatStorageRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::FormatStorageResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::FormatStorageResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::FormatStorageResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SelectCameraResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SelectCameraResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SelectCameraResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SelectCameraRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SelectCameraRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SelectCameraRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::ResetSettingsRequest* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::ResetSettingsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::ResetSettingsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::ResetSettingsResponse* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::ResetSettingsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::ResetSettingsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::CameraResult* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::CameraResult >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::CameraResult >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::Position* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::Position >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::Position >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::Quaternion* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::Quaternion >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::Quaternion >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::EulerAngle* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::EulerAngle >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::EulerAngle >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::CaptureInfo* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::CaptureInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::CaptureInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::VideoStreamSettings* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::VideoStreamSettings >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::VideoStreamSettings >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::VideoStreamInfo* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::VideoStreamInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::VideoStreamInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::Status* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::Status >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::Status >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::Option* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::Option >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::Option >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::Setting* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::Setting >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::Setting >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::SettingOptions* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::SettingOptions >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::SettingOptions >(arena); -} -template<> PROTOBUF_NOINLINE ::mavsdk::rpc::camera::Information* -Arena::CreateMaybeMessage< ::mavsdk::rpc::camera::Information >(Arena* arena) { - return Arena::CreateMessageInternal< ::mavsdk::rpc::camera::Information >(arena); -} -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/camera/camera.pb.h b/src/mavsdk_server/src/generated/camera/camera.pb.h index a38247bbed..eabc9a72cc 100644 --- a/src/mavsdk_server/src/generated/camera/camera.pb.h +++ b/src/mavsdk_server/src/generated/camera/camera.pb.h @@ -1,5 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: camera/camera.proto +// Protobuf C++ Version: 4.25.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_camera_2fcamera_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_camera_2fcamera_2eproto_2epb_2eh @@ -7,15 +8,16 @@ #include #include #include +#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4023000 +#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 4023002 < PROTOBUF_MIN_PROTOC_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." @@ -25,6 +27,7 @@ #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" #include "google/protobuf/generated_message_bases.h" +#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -41,17 +44,19 @@ #define PROTOBUF_INTERNAL_EXPORT_camera_2fcamera_2eproto -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_camera_2fcamera_2eproto { static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_camera_2fcamera_2eproto; namespace mavsdk { namespace rpc { @@ -227,120 +232,10 @@ extern VideoStreamSettingsDefaultTypeInternal _VideoStreamSettings_default_insta } // namespace camera } // namespace rpc } // namespace mavsdk -PROTOBUF_NAMESPACE_OPEN -template <> -::mavsdk::rpc::camera::CameraResult* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(Arena*); -template <> -::mavsdk::rpc::camera::CaptureInfo* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::CaptureInfo>(Arena*); -template <> -::mavsdk::rpc::camera::CaptureInfoResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::CaptureInfoResponse>(Arena*); -template <> -::mavsdk::rpc::camera::CurrentSettingsResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::CurrentSettingsResponse>(Arena*); -template <> -::mavsdk::rpc::camera::EulerAngle* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::EulerAngle>(Arena*); -template <> -::mavsdk::rpc::camera::FormatStorageRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::FormatStorageRequest>(Arena*); -template <> -::mavsdk::rpc::camera::FormatStorageResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::FormatStorageResponse>(Arena*); -template <> -::mavsdk::rpc::camera::GetSettingRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::GetSettingRequest>(Arena*); -template <> -::mavsdk::rpc::camera::GetSettingResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::GetSettingResponse>(Arena*); -template <> -::mavsdk::rpc::camera::Information* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::Information>(Arena*); -template <> -::mavsdk::rpc::camera::InformationResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::InformationResponse>(Arena*); -template <> -::mavsdk::rpc::camera::ListPhotosRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::ListPhotosRequest>(Arena*); -template <> -::mavsdk::rpc::camera::ListPhotosResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::ListPhotosResponse>(Arena*); -template <> -::mavsdk::rpc::camera::ModeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::ModeResponse>(Arena*); -template <> -::mavsdk::rpc::camera::Option* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::Option>(Arena*); -template <> -::mavsdk::rpc::camera::Position* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::Position>(Arena*); -template <> -::mavsdk::rpc::camera::PossibleSettingOptionsResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::PossibleSettingOptionsResponse>(Arena*); -template <> -::mavsdk::rpc::camera::PrepareRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::PrepareRequest>(Arena*); -template <> -::mavsdk::rpc::camera::PrepareResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::PrepareResponse>(Arena*); -template <> -::mavsdk::rpc::camera::Quaternion* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::Quaternion>(Arena*); -template <> -::mavsdk::rpc::camera::ResetSettingsRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::ResetSettingsRequest>(Arena*); -template <> -::mavsdk::rpc::camera::ResetSettingsResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::ResetSettingsResponse>(Arena*); -template <> -::mavsdk::rpc::camera::SelectCameraRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SelectCameraRequest>(Arena*); -template <> -::mavsdk::rpc::camera::SelectCameraResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SelectCameraResponse>(Arena*); -template <> -::mavsdk::rpc::camera::SetModeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SetModeRequest>(Arena*); -template <> -::mavsdk::rpc::camera::SetModeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SetModeResponse>(Arena*); -template <> -::mavsdk::rpc::camera::SetSettingRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SetSettingRequest>(Arena*); -template <> -::mavsdk::rpc::camera::SetSettingResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SetSettingResponse>(Arena*); -template <> -::mavsdk::rpc::camera::Setting* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::Setting>(Arena*); -template <> -::mavsdk::rpc::camera::SettingOptions* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SettingOptions>(Arena*); -template <> -::mavsdk::rpc::camera::StartPhotoIntervalRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StartPhotoIntervalRequest>(Arena*); -template <> -::mavsdk::rpc::camera::StartPhotoIntervalResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StartPhotoIntervalResponse>(Arena*); -template <> -::mavsdk::rpc::camera::StartVideoRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StartVideoRequest>(Arena*); -template <> -::mavsdk::rpc::camera::StartVideoResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StartVideoResponse>(Arena*); -template <> -::mavsdk::rpc::camera::StartVideoStreamingRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StartVideoStreamingRequest>(Arena*); -template <> -::mavsdk::rpc::camera::StartVideoStreamingResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StartVideoStreamingResponse>(Arena*); -template <> -::mavsdk::rpc::camera::Status* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::Status>(Arena*); -template <> -::mavsdk::rpc::camera::StatusResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StatusResponse>(Arena*); -template <> -::mavsdk::rpc::camera::StopPhotoIntervalRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StopPhotoIntervalRequest>(Arena*); -template <> -::mavsdk::rpc::camera::StopPhotoIntervalResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StopPhotoIntervalResponse>(Arena*); -template <> -::mavsdk::rpc::camera::StopVideoRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StopVideoRequest>(Arena*); -template <> -::mavsdk::rpc::camera::StopVideoResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StopVideoResponse>(Arena*); -template <> -::mavsdk::rpc::camera::StopVideoStreamingRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StopVideoStreamingRequest>(Arena*); -template <> -::mavsdk::rpc::camera::StopVideoStreamingResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::StopVideoStreamingResponse>(Arena*); -template <> -::mavsdk::rpc::camera::SubscribeCaptureInfoRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SubscribeCaptureInfoRequest>(Arena*); -template <> -::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest>(Arena*); -template <> -::mavsdk::rpc::camera::SubscribeInformationRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SubscribeInformationRequest>(Arena*); -template <> -::mavsdk::rpc::camera::SubscribeModeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SubscribeModeRequest>(Arena*); -template <> -::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest>(Arena*); -template <> -::mavsdk::rpc::camera::SubscribeStatusRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SubscribeStatusRequest>(Arena*); -template <> -::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest>(Arena*); -template <> -::mavsdk::rpc::camera::TakePhotoRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::TakePhotoRequest>(Arena*); -template <> -::mavsdk::rpc::camera::TakePhotoResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::TakePhotoResponse>(Arena*); -template <> -::mavsdk::rpc::camera::VideoStreamInfo* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::VideoStreamInfo>(Arena*); -template <> -::mavsdk::rpc::camera::VideoStreamInfoResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::VideoStreamInfoResponse>(Arena*); -template <> -::mavsdk::rpc::camera::VideoStreamSettings* Arena::CreateMaybeMessage<::mavsdk::rpc::camera::VideoStreamSettings>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google namespace mavsdk { namespace rpc { @@ -363,10 +258,11 @@ enum CameraResult_Result : int { }; bool CameraResult_Result_IsValid(int value); +extern const uint32_t CameraResult_Result_internal_data_[]; constexpr CameraResult_Result CameraResult_Result_Result_MIN = static_cast(0); constexpr CameraResult_Result CameraResult_Result_Result_MAX = static_cast(9); constexpr int CameraResult_Result_Result_ARRAYSIZE = 9 + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* CameraResult_Result_descriptor(); template const std::string& CameraResult_Result_Name(T value) { @@ -377,12 +273,12 @@ const std::string& CameraResult_Result_Name(T value) { } template <> inline const std::string& CameraResult_Result_Name(CameraResult_Result value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool CameraResult_Result_Parse(absl::string_view name, CameraResult_Result* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( CameraResult_Result_descriptor(), name, value); } enum VideoStreamInfo_VideoStreamStatus : int { @@ -395,10 +291,11 @@ enum VideoStreamInfo_VideoStreamStatus : int { }; bool VideoStreamInfo_VideoStreamStatus_IsValid(int value); +extern const uint32_t VideoStreamInfo_VideoStreamStatus_internal_data_[]; constexpr VideoStreamInfo_VideoStreamStatus VideoStreamInfo_VideoStreamStatus_VideoStreamStatus_MIN = static_cast(0); constexpr VideoStreamInfo_VideoStreamStatus VideoStreamInfo_VideoStreamStatus_VideoStreamStatus_MAX = static_cast(1); constexpr int VideoStreamInfo_VideoStreamStatus_VideoStreamStatus_ARRAYSIZE = 1 + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* VideoStreamInfo_VideoStreamStatus_descriptor(); template const std::string& VideoStreamInfo_VideoStreamStatus_Name(T value) { @@ -409,12 +306,12 @@ const std::string& VideoStreamInfo_VideoStreamStatus_Name(T value) { } template <> inline const std::string& VideoStreamInfo_VideoStreamStatus_Name(VideoStreamInfo_VideoStreamStatus value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool VideoStreamInfo_VideoStreamStatus_Parse(absl::string_view name, VideoStreamInfo_VideoStreamStatus* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( VideoStreamInfo_VideoStreamStatus_descriptor(), name, value); } enum VideoStreamInfo_VideoStreamSpectrum : int { @@ -428,10 +325,11 @@ enum VideoStreamInfo_VideoStreamSpectrum : int { }; bool VideoStreamInfo_VideoStreamSpectrum_IsValid(int value); +extern const uint32_t VideoStreamInfo_VideoStreamSpectrum_internal_data_[]; constexpr VideoStreamInfo_VideoStreamSpectrum VideoStreamInfo_VideoStreamSpectrum_VideoStreamSpectrum_MIN = static_cast(0); constexpr VideoStreamInfo_VideoStreamSpectrum VideoStreamInfo_VideoStreamSpectrum_VideoStreamSpectrum_MAX = static_cast(2); constexpr int VideoStreamInfo_VideoStreamSpectrum_VideoStreamSpectrum_ARRAYSIZE = 2 + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* VideoStreamInfo_VideoStreamSpectrum_descriptor(); template const std::string& VideoStreamInfo_VideoStreamSpectrum_Name(T value) { @@ -442,12 +340,12 @@ const std::string& VideoStreamInfo_VideoStreamSpectrum_Name(T value) { } template <> inline const std::string& VideoStreamInfo_VideoStreamSpectrum_Name(VideoStreamInfo_VideoStreamSpectrum value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool VideoStreamInfo_VideoStreamSpectrum_Parse(absl::string_view name, VideoStreamInfo_VideoStreamSpectrum* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( VideoStreamInfo_VideoStreamSpectrum_descriptor(), name, value); } enum Status_StorageStatus : int { @@ -462,10 +360,11 @@ enum Status_StorageStatus : int { }; bool Status_StorageStatus_IsValid(int value); +extern const uint32_t Status_StorageStatus_internal_data_[]; constexpr Status_StorageStatus Status_StorageStatus_StorageStatus_MIN = static_cast(0); constexpr Status_StorageStatus Status_StorageStatus_StorageStatus_MAX = static_cast(3); constexpr int Status_StorageStatus_StorageStatus_ARRAYSIZE = 3 + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* Status_StorageStatus_descriptor(); template const std::string& Status_StorageStatus_Name(T value) { @@ -476,12 +375,12 @@ const std::string& Status_StorageStatus_Name(T value) { } template <> inline const std::string& Status_StorageStatus_Name(Status_StorageStatus value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool Status_StorageStatus_Parse(absl::string_view name, Status_StorageStatus* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( Status_StorageStatus_descriptor(), name, value); } enum Status_StorageType : int { @@ -498,20 +397,21 @@ enum Status_StorageType : int { }; bool Status_StorageType_IsValid(int value); +extern const uint32_t Status_StorageType_internal_data_[]; constexpr Status_StorageType Status_StorageType_StorageType_MIN = static_cast(0); constexpr Status_StorageType Status_StorageType_StorageType_MAX = static_cast(254); constexpr int Status_StorageType_StorageType_ARRAYSIZE = 254 + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* Status_StorageType_descriptor(); template const std::string& Status_StorageType_Name(T value) { static_assert(std::is_same::value || std::is_integral::value, "Incorrect type passed to StorageType_Name()."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(Status_StorageType_descriptor(), value); + return ::google::protobuf::internal::NameOfEnum(Status_StorageType_descriptor(), value); } inline bool Status_StorageType_Parse(absl::string_view name, Status_StorageType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( Status_StorageType_descriptor(), name, value); } enum Mode : int { @@ -525,10 +425,11 @@ enum Mode : int { }; bool Mode_IsValid(int value); +extern const uint32_t Mode_internal_data_[]; constexpr Mode Mode_MIN = static_cast(0); constexpr Mode Mode_MAX = static_cast(2); constexpr int Mode_ARRAYSIZE = 2 + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* Mode_descriptor(); template const std::string& Mode_Name(T value) { @@ -539,12 +440,12 @@ const std::string& Mode_Name(T value) { } template <> inline const std::string& Mode_Name(Mode value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool Mode_Parse(absl::string_view name, Mode* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( Mode_descriptor(), name, value); } enum PhotosRange : int { @@ -557,10 +458,11 @@ enum PhotosRange : int { }; bool PhotosRange_IsValid(int value); +extern const uint32_t PhotosRange_internal_data_[]; constexpr PhotosRange PhotosRange_MIN = static_cast(0); constexpr PhotosRange PhotosRange_MAX = static_cast(1); constexpr int PhotosRange_ARRAYSIZE = 1 + 1; -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +const ::google::protobuf::EnumDescriptor* PhotosRange_descriptor(); template const std::string& PhotosRange_Name(T value) { @@ -571,12 +473,12 @@ const std::string& PhotosRange_Name(T value) { } template <> inline const std::string& PhotosRange_Name(PhotosRange value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool PhotosRange_Parse(absl::string_view name, PhotosRange* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( PhotosRange_descriptor(), name, value); } @@ -585,28 +487,30 @@ inline bool PhotosRange_Parse(absl::string_view name, PhotosRange* value) { // ------------------------------------------------------------------- -class PrepareRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.PrepareRequest) */ { +class VideoStreamSettings final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.VideoStreamSettings) */ { public: - inline PrepareRequest() : PrepareRequest(nullptr) {} + inline VideoStreamSettings() : VideoStreamSettings(nullptr) {} + ~VideoStreamSettings() override; template - explicit PROTOBUF_CONSTEXPR PrepareRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR VideoStreamSettings(::google::protobuf::internal::ConstantInitialized); - PrepareRequest(const PrepareRequest& from); - PrepareRequest(PrepareRequest&& from) noexcept - : PrepareRequest() { + inline VideoStreamSettings(const VideoStreamSettings& from) + : VideoStreamSettings(nullptr, from) {} + VideoStreamSettings(VideoStreamSettings&& from) noexcept + : VideoStreamSettings() { *this = ::std::move(from); } - inline PrepareRequest& operator=(const PrepareRequest& from) { + inline VideoStreamSettings& operator=(const VideoStreamSettings& from) { CopyFrom(from); return *this; } - inline PrepareRequest& operator=(PrepareRequest&& from) noexcept { + inline VideoStreamSettings& operator=(VideoStreamSettings&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -616,122 +520,249 @@ class PrepareRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PrepareRequest& default_instance() { + static const VideoStreamSettings& default_instance() { return *internal_default_instance(); } - static inline const PrepareRequest* internal_default_instance() { - return reinterpret_cast( - &_PrepareRequest_default_instance_); + static inline const VideoStreamSettings* internal_default_instance() { + return reinterpret_cast( + &_VideoStreamSettings_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 49; - friend void swap(PrepareRequest& a, PrepareRequest& b) { + friend void swap(VideoStreamSettings& a, VideoStreamSettings& b) { a.Swap(&b); } - inline void Swap(PrepareRequest* other) { + inline void Swap(VideoStreamSettings* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PrepareRequest* other) { + void UnsafeArenaSwap(VideoStreamSettings* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PrepareRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const PrepareRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + VideoStreamSettings* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const PrepareRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const VideoStreamSettings& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const VideoStreamSettings& from) { + VideoStreamSettings::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(VideoStreamSettings* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.PrepareRequest"; + return "mavsdk.rpc.camera.VideoStreamSettings"; } protected: - explicit PrepareRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit VideoStreamSettings(::google::protobuf::Arena* arena); + VideoStreamSettings(::google::protobuf::Arena* arena, const VideoStreamSettings& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.PrepareRequest) + enum : int { + kUriFieldNumber = 6, + kFrameRateHzFieldNumber = 1, + kHorizontalResolutionPixFieldNumber = 2, + kVerticalResolutionPixFieldNumber = 3, + kBitRateBSFieldNumber = 4, + kRotationDegFieldNumber = 5, + kHorizontalFovDegFieldNumber = 7, + }; + // string uri = 6; + void clear_uri() ; + const std::string& uri() const; + template + void set_uri(Arg_&& arg, Args_... args); + std::string* mutable_uri(); + PROTOBUF_NODISCARD std::string* release_uri(); + void set_allocated_uri(std::string* value); + + private: + const std::string& _internal_uri() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri( + const std::string& value); + std::string* _internal_mutable_uri(); + + public: + // float frame_rate_hz = 1; + void clear_frame_rate_hz() ; + float frame_rate_hz() const; + void set_frame_rate_hz(float value); + + private: + float _internal_frame_rate_hz() const; + void _internal_set_frame_rate_hz(float value); + + public: + // uint32 horizontal_resolution_pix = 2; + void clear_horizontal_resolution_pix() ; + ::uint32_t horizontal_resolution_pix() const; + void set_horizontal_resolution_pix(::uint32_t value); + + private: + ::uint32_t _internal_horizontal_resolution_pix() const; + void _internal_set_horizontal_resolution_pix(::uint32_t value); + + public: + // uint32 vertical_resolution_pix = 3; + void clear_vertical_resolution_pix() ; + ::uint32_t vertical_resolution_pix() const; + void set_vertical_resolution_pix(::uint32_t value); + + private: + ::uint32_t _internal_vertical_resolution_pix() const; + void _internal_set_vertical_resolution_pix(::uint32_t value); + + public: + // uint32 bit_rate_b_s = 4; + void clear_bit_rate_b_s() ; + ::uint32_t bit_rate_b_s() const; + void set_bit_rate_b_s(::uint32_t value); + + private: + ::uint32_t _internal_bit_rate_b_s() const; + void _internal_set_bit_rate_b_s(::uint32_t value); + + public: + // uint32 rotation_deg = 5; + void clear_rotation_deg() ; + ::uint32_t rotation_deg() const; + void set_rotation_deg(::uint32_t value); + + private: + ::uint32_t _internal_rotation_deg() const; + void _internal_set_rotation_deg(::uint32_t value); + + public: + // float horizontal_fov_deg = 7; + void clear_horizontal_fov_deg() ; + float horizontal_fov_deg() const; + void set_horizontal_fov_deg(float value); + + private: + float _internal_horizontal_fov_deg() const; + void _internal_set_horizontal_fov_deg(float value); + + public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.VideoStreamSettings) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 7, 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 uri_; + float frame_rate_hz_; + ::uint32_t horizontal_resolution_pix_; + ::uint32_t vertical_resolution_pix_; + ::uint32_t bit_rate_b_s_; + ::uint32_t rotation_deg_; + float horizontal_fov_deg_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; + union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class PrepareResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.PrepareResponse) */ { +class TakePhotoRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.TakePhotoRequest) */ { public: - inline PrepareResponse() : PrepareResponse(nullptr) {} - ~PrepareResponse() override; + inline TakePhotoRequest() : TakePhotoRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR PrepareResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR TakePhotoRequest(::google::protobuf::internal::ConstantInitialized); - PrepareResponse(const PrepareResponse& from); - PrepareResponse(PrepareResponse&& from) noexcept - : PrepareResponse() { + inline TakePhotoRequest(const TakePhotoRequest& from) + : TakePhotoRequest(nullptr, from) {} + TakePhotoRequest(TakePhotoRequest&& from) noexcept + : TakePhotoRequest() { *this = ::std::move(from); } - inline PrepareResponse& operator=(const PrepareResponse& from) { + inline TakePhotoRequest& operator=(const TakePhotoRequest& from) { CopyFrom(from); return *this; } - inline PrepareResponse& operator=(PrepareResponse&& from) noexcept { + inline TakePhotoRequest& operator=(TakePhotoRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -741,156 +772,133 @@ class PrepareResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const PrepareResponse& default_instance() { + static const TakePhotoRequest& default_instance() { return *internal_default_instance(); } - static inline const PrepareResponse* internal_default_instance() { - return reinterpret_cast( - &_PrepareResponse_default_instance_); + static inline const TakePhotoRequest* internal_default_instance() { + return reinterpret_cast( + &_TakePhotoRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; - friend void swap(PrepareResponse& a, PrepareResponse& b) { + friend void swap(TakePhotoRequest& a, TakePhotoRequest& b) { a.Swap(&b); } - inline void Swap(PrepareResponse* other) { + inline void Swap(TakePhotoRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(PrepareResponse* other) { + void UnsafeArenaSwap(TakePhotoRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PrepareResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TakePhotoRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PrepareResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PrepareResponse& from) { - PrepareResponse::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const TakePhotoRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const TakePhotoRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PrepareResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.PrepareResponse"; + return "mavsdk.rpc.camera.TakePhotoRequest"; } protected: - explicit PrepareResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TakePhotoRequest(::google::protobuf::Arena* arena); + TakePhotoRequest(::google::protobuf::Arena* arena, const TakePhotoRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCameraResultFieldNumber = 1, - }; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - bool has_camera_result() const; - void clear_camera_result() ; - const ::mavsdk::rpc::camera::CameraResult& camera_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::camera::CameraResult* release_camera_result(); - ::mavsdk::rpc::camera::CameraResult* mutable_camera_result(); - void set_allocated_camera_result(::mavsdk::rpc::camera::CameraResult* camera_result); - private: - const ::mavsdk::rpc::camera::CameraResult& _internal_camera_result() const; - ::mavsdk::rpc::camera::CameraResult* _internal_mutable_camera_result(); - public: - void unsafe_arena_set_allocated_camera_result( - ::mavsdk::rpc::camera::CameraResult* camera_result); - ::mavsdk::rpc::camera::CameraResult* unsafe_arena_release_camera_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.PrepareResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.TakePhotoRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::camera::CameraResult* camera_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class TakePhotoRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.TakePhotoRequest) */ { +class SubscribeVideoStreamInfoRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest) */ { public: - inline TakePhotoRequest() : TakePhotoRequest(nullptr) {} + inline SubscribeVideoStreamInfoRequest() : SubscribeVideoStreamInfoRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR TakePhotoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequest(::google::protobuf::internal::ConstantInitialized); - TakePhotoRequest(const TakePhotoRequest& from); - TakePhotoRequest(TakePhotoRequest&& from) noexcept - : TakePhotoRequest() { + inline SubscribeVideoStreamInfoRequest(const SubscribeVideoStreamInfoRequest& from) + : SubscribeVideoStreamInfoRequest(nullptr, from) {} + SubscribeVideoStreamInfoRequest(SubscribeVideoStreamInfoRequest&& from) noexcept + : SubscribeVideoStreamInfoRequest() { *this = ::std::move(from); } - inline TakePhotoRequest& operator=(const TakePhotoRequest& from) { + inline SubscribeVideoStreamInfoRequest& operator=(const SubscribeVideoStreamInfoRequest& from) { CopyFrom(from); return *this; } - inline TakePhotoRequest& operator=(TakePhotoRequest&& from) noexcept { + inline SubscribeVideoStreamInfoRequest& operator=(SubscribeVideoStreamInfoRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -900,122 +908,133 @@ class TakePhotoRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TakePhotoRequest& default_instance() { + static const SubscribeVideoStreamInfoRequest& default_instance() { return *internal_default_instance(); } - static inline const TakePhotoRequest* internal_default_instance() { - return reinterpret_cast( - &_TakePhotoRequest_default_instance_); + static inline const SubscribeVideoStreamInfoRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeVideoStreamInfoRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 24; - friend void swap(TakePhotoRequest& a, TakePhotoRequest& b) { + friend void swap(SubscribeVideoStreamInfoRequest& a, SubscribeVideoStreamInfoRequest& b) { a.Swap(&b); } - inline void Swap(TakePhotoRequest* other) { + inline void Swap(SubscribeVideoStreamInfoRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TakePhotoRequest* other) { + void UnsafeArenaSwap(SubscribeVideoStreamInfoRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TakePhotoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeVideoStreamInfoRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const TakePhotoRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeVideoStreamInfoRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const TakePhotoRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeVideoStreamInfoRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.TakePhotoRequest"; + return "mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest"; } protected: - explicit TakePhotoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeVideoStreamInfoRequest(::google::protobuf::Arena* arena); + SubscribeVideoStreamInfoRequest(::google::protobuf::Arena* arena, const SubscribeVideoStreamInfoRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.TakePhotoRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class TakePhotoResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.TakePhotoResponse) */ { +class SubscribeStatusRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SubscribeStatusRequest) */ { public: - inline TakePhotoResponse() : TakePhotoResponse(nullptr) {} - ~TakePhotoResponse() override; + inline SubscribeStatusRequest() : SubscribeStatusRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR TakePhotoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeStatusRequest(::google::protobuf::internal::ConstantInitialized); - TakePhotoResponse(const TakePhotoResponse& from); - TakePhotoResponse(TakePhotoResponse&& from) noexcept - : TakePhotoResponse() { + inline SubscribeStatusRequest(const SubscribeStatusRequest& from) + : SubscribeStatusRequest(nullptr, from) {} + SubscribeStatusRequest(SubscribeStatusRequest&& from) noexcept + : SubscribeStatusRequest() { *this = ::std::move(from); } - inline TakePhotoResponse& operator=(const TakePhotoResponse& from) { + inline SubscribeStatusRequest& operator=(const SubscribeStatusRequest& from) { CopyFrom(from); return *this; } - inline TakePhotoResponse& operator=(TakePhotoResponse&& from) noexcept { + inline SubscribeStatusRequest& operator=(SubscribeStatusRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1025,157 +1044,133 @@ class TakePhotoResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TakePhotoResponse& default_instance() { + static const SubscribeStatusRequest& default_instance() { return *internal_default_instance(); } - static inline const TakePhotoResponse* internal_default_instance() { - return reinterpret_cast( - &_TakePhotoResponse_default_instance_); + static inline const SubscribeStatusRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeStatusRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 28; - friend void swap(TakePhotoResponse& a, TakePhotoResponse& b) { + friend void swap(SubscribeStatusRequest& a, SubscribeStatusRequest& b) { a.Swap(&b); } - inline void Swap(TakePhotoResponse* other) { + inline void Swap(SubscribeStatusRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TakePhotoResponse* other) { + void UnsafeArenaSwap(SubscribeStatusRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - TakePhotoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeStatusRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TakePhotoResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TakePhotoResponse& from) { - TakePhotoResponse::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeStatusRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeStatusRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TakePhotoResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.TakePhotoResponse"; + return "mavsdk.rpc.camera.SubscribeStatusRequest"; } protected: - explicit TakePhotoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeStatusRequest(::google::protobuf::Arena* arena); + SubscribeStatusRequest(::google::protobuf::Arena* arena, const SubscribeStatusRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCameraResultFieldNumber = 1, - }; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - bool has_camera_result() const; - void clear_camera_result() ; - const ::mavsdk::rpc::camera::CameraResult& camera_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::camera::CameraResult* release_camera_result(); - ::mavsdk::rpc::camera::CameraResult* mutable_camera_result(); - void set_allocated_camera_result(::mavsdk::rpc::camera::CameraResult* camera_result); - private: - const ::mavsdk::rpc::camera::CameraResult& _internal_camera_result() const; - ::mavsdk::rpc::camera::CameraResult* _internal_mutable_camera_result(); - public: - void unsafe_arena_set_allocated_camera_result( - ::mavsdk::rpc::camera::CameraResult* camera_result); - ::mavsdk::rpc::camera::CameraResult* unsafe_arena_release_camera_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.TakePhotoResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SubscribeStatusRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::camera::CameraResult* camera_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class StartPhotoIntervalRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StartPhotoIntervalRequest) */ { +class SubscribePossibleSettingOptionsRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest) */ { public: - inline StartPhotoIntervalRequest() : StartPhotoIntervalRequest(nullptr) {} - ~StartPhotoIntervalRequest() override; + inline SubscribePossibleSettingOptionsRequest() : SubscribePossibleSettingOptionsRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR StartPhotoIntervalRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequest(::google::protobuf::internal::ConstantInitialized); - StartPhotoIntervalRequest(const StartPhotoIntervalRequest& from); - StartPhotoIntervalRequest(StartPhotoIntervalRequest&& from) noexcept - : StartPhotoIntervalRequest() { + inline SubscribePossibleSettingOptionsRequest(const SubscribePossibleSettingOptionsRequest& from) + : SubscribePossibleSettingOptionsRequest(nullptr, from) {} + SubscribePossibleSettingOptionsRequest(SubscribePossibleSettingOptionsRequest&& from) noexcept + : SubscribePossibleSettingOptionsRequest() { *this = ::std::move(from); } - inline StartPhotoIntervalRequest& operator=(const StartPhotoIntervalRequest& from) { + inline SubscribePossibleSettingOptionsRequest& operator=(const SubscribePossibleSettingOptionsRequest& from) { CopyFrom(from); return *this; } - inline StartPhotoIntervalRequest& operator=(StartPhotoIntervalRequest&& from) noexcept { + inline SubscribePossibleSettingOptionsRequest& operator=(SubscribePossibleSettingOptionsRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1185,152 +1180,133 @@ class StartPhotoIntervalRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StartPhotoIntervalRequest& default_instance() { + static const SubscribePossibleSettingOptionsRequest& default_instance() { return *internal_default_instance(); } - static inline const StartPhotoIntervalRequest* internal_default_instance() { - return reinterpret_cast( - &_StartPhotoIntervalRequest_default_instance_); + static inline const SubscribePossibleSettingOptionsRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribePossibleSettingOptionsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 32; - friend void swap(StartPhotoIntervalRequest& a, StartPhotoIntervalRequest& b) { + friend void swap(SubscribePossibleSettingOptionsRequest& a, SubscribePossibleSettingOptionsRequest& b) { a.Swap(&b); } - inline void Swap(StartPhotoIntervalRequest* other) { + inline void Swap(SubscribePossibleSettingOptionsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StartPhotoIntervalRequest* other) { + void UnsafeArenaSwap(SubscribePossibleSettingOptionsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StartPhotoIntervalRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribePossibleSettingOptionsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StartPhotoIntervalRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StartPhotoIntervalRequest& from) { - StartPhotoIntervalRequest::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribePossibleSettingOptionsRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribePossibleSettingOptionsRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StartPhotoIntervalRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.StartPhotoIntervalRequest"; + return "mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest"; } protected: - explicit StartPhotoIntervalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribePossibleSettingOptionsRequest(::google::protobuf::Arena* arena); + SubscribePossibleSettingOptionsRequest(::google::protobuf::Arena* arena, const SubscribePossibleSettingOptionsRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kIntervalSFieldNumber = 1, - }; - // float interval_s = 1; - void clear_interval_s() ; - float interval_s() const; - void set_interval_s(float value); - - private: - float _internal_interval_s() const; - void _internal_set_interval_s(float value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StartPhotoIntervalRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - float interval_s_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class StartPhotoIntervalResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StartPhotoIntervalResponse) */ { +class SubscribeModeRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SubscribeModeRequest) */ { public: - inline StartPhotoIntervalResponse() : StartPhotoIntervalResponse(nullptr) {} - ~StartPhotoIntervalResponse() override; + inline SubscribeModeRequest() : SubscribeModeRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR StartPhotoIntervalResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeModeRequest(::google::protobuf::internal::ConstantInitialized); - StartPhotoIntervalResponse(const StartPhotoIntervalResponse& from); - StartPhotoIntervalResponse(StartPhotoIntervalResponse&& from) noexcept - : StartPhotoIntervalResponse() { + inline SubscribeModeRequest(const SubscribeModeRequest& from) + : SubscribeModeRequest(nullptr, from) {} + SubscribeModeRequest(SubscribeModeRequest&& from) noexcept + : SubscribeModeRequest() { *this = ::std::move(from); } - inline StartPhotoIntervalResponse& operator=(const StartPhotoIntervalResponse& from) { + inline SubscribeModeRequest& operator=(const SubscribeModeRequest& from) { CopyFrom(from); return *this; } - inline StartPhotoIntervalResponse& operator=(StartPhotoIntervalResponse&& from) noexcept { + inline SubscribeModeRequest& operator=(SubscribeModeRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1340,156 +1316,133 @@ class StartPhotoIntervalResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StartPhotoIntervalResponse& default_instance() { + static const SubscribeModeRequest& default_instance() { return *internal_default_instance(); } - static inline const StartPhotoIntervalResponse* internal_default_instance() { - return reinterpret_cast( - &_StartPhotoIntervalResponse_default_instance_); + static inline const SubscribeModeRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeModeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 22; - friend void swap(StartPhotoIntervalResponse& a, StartPhotoIntervalResponse& b) { + friend void swap(SubscribeModeRequest& a, SubscribeModeRequest& b) { a.Swap(&b); } - inline void Swap(StartPhotoIntervalResponse* other) { + inline void Swap(SubscribeModeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StartPhotoIntervalResponse* other) { + void UnsafeArenaSwap(SubscribeModeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StartPhotoIntervalResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeModeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StartPhotoIntervalResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StartPhotoIntervalResponse& from) { - StartPhotoIntervalResponse::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeModeRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeModeRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StartPhotoIntervalResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.StartPhotoIntervalResponse"; + return "mavsdk.rpc.camera.SubscribeModeRequest"; } protected: - explicit StartPhotoIntervalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeModeRequest(::google::protobuf::Arena* arena); + SubscribeModeRequest(::google::protobuf::Arena* arena, const SubscribeModeRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCameraResultFieldNumber = 1, - }; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - bool has_camera_result() const; - void clear_camera_result() ; - const ::mavsdk::rpc::camera::CameraResult& camera_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::camera::CameraResult* release_camera_result(); - ::mavsdk::rpc::camera::CameraResult* mutable_camera_result(); - void set_allocated_camera_result(::mavsdk::rpc::camera::CameraResult* camera_result); - private: - const ::mavsdk::rpc::camera::CameraResult& _internal_camera_result() const; - ::mavsdk::rpc::camera::CameraResult* _internal_mutable_camera_result(); - public: - void unsafe_arena_set_allocated_camera_result( - ::mavsdk::rpc::camera::CameraResult* camera_result); - ::mavsdk::rpc::camera::CameraResult* unsafe_arena_release_camera_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StartPhotoIntervalResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SubscribeModeRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::camera::CameraResult* camera_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class StopPhotoIntervalRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StopPhotoIntervalRequest) */ { +class SubscribeInformationRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SubscribeInformationRequest) */ { public: - inline StopPhotoIntervalRequest() : StopPhotoIntervalRequest(nullptr) {} + inline SubscribeInformationRequest() : SubscribeInformationRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR StopPhotoIntervalRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeInformationRequest(::google::protobuf::internal::ConstantInitialized); - StopPhotoIntervalRequest(const StopPhotoIntervalRequest& from); - StopPhotoIntervalRequest(StopPhotoIntervalRequest&& from) noexcept - : StopPhotoIntervalRequest() { + inline SubscribeInformationRequest(const SubscribeInformationRequest& from) + : SubscribeInformationRequest(nullptr, from) {} + SubscribeInformationRequest(SubscribeInformationRequest&& from) noexcept + : SubscribeInformationRequest() { *this = ::std::move(from); } - inline StopPhotoIntervalRequest& operator=(const StopPhotoIntervalRequest& from) { + inline SubscribeInformationRequest& operator=(const SubscribeInformationRequest& from) { CopyFrom(from); return *this; } - inline StopPhotoIntervalRequest& operator=(StopPhotoIntervalRequest&& from) noexcept { + inline SubscribeInformationRequest& operator=(SubscribeInformationRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1499,122 +1452,133 @@ class StopPhotoIntervalRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopPhotoIntervalRequest& default_instance() { + static const SubscribeInformationRequest& default_instance() { return *internal_default_instance(); } - static inline const StopPhotoIntervalRequest* internal_default_instance() { - return reinterpret_cast( - &_StopPhotoIntervalRequest_default_instance_); + static inline const SubscribeInformationRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeInformationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 20; - friend void swap(StopPhotoIntervalRequest& a, StopPhotoIntervalRequest& b) { + friend void swap(SubscribeInformationRequest& a, SubscribeInformationRequest& b) { a.Swap(&b); } - inline void Swap(StopPhotoIntervalRequest* other) { + inline void Swap(SubscribeInformationRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopPhotoIntervalRequest* other) { + void UnsafeArenaSwap(SubscribeInformationRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopPhotoIntervalRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeInformationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StopPhotoIntervalRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeInformationRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StopPhotoIntervalRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeInformationRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.StopPhotoIntervalRequest"; + return "mavsdk.rpc.camera.SubscribeInformationRequest"; } protected: - explicit StopPhotoIntervalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeInformationRequest(::google::protobuf::Arena* arena); + SubscribeInformationRequest(::google::protobuf::Arena* arena, const SubscribeInformationRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StopPhotoIntervalRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SubscribeInformationRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class StopPhotoIntervalResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StopPhotoIntervalResponse) */ { +class SubscribeCurrentSettingsRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SubscribeCurrentSettingsRequest) */ { public: - inline StopPhotoIntervalResponse() : StopPhotoIntervalResponse(nullptr) {} - ~StopPhotoIntervalResponse() override; + inline SubscribeCurrentSettingsRequest() : SubscribeCurrentSettingsRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR StopPhotoIntervalResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequest(::google::protobuf::internal::ConstantInitialized); - StopPhotoIntervalResponse(const StopPhotoIntervalResponse& from); - StopPhotoIntervalResponse(StopPhotoIntervalResponse&& from) noexcept - : StopPhotoIntervalResponse() { + inline SubscribeCurrentSettingsRequest(const SubscribeCurrentSettingsRequest& from) + : SubscribeCurrentSettingsRequest(nullptr, from) {} + SubscribeCurrentSettingsRequest(SubscribeCurrentSettingsRequest&& from) noexcept + : SubscribeCurrentSettingsRequest() { *this = ::std::move(from); } - inline StopPhotoIntervalResponse& operator=(const StopPhotoIntervalResponse& from) { + inline SubscribeCurrentSettingsRequest& operator=(const SubscribeCurrentSettingsRequest& from) { CopyFrom(from); return *this; } - inline StopPhotoIntervalResponse& operator=(StopPhotoIntervalResponse&& from) noexcept { + inline SubscribeCurrentSettingsRequest& operator=(SubscribeCurrentSettingsRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1624,156 +1588,133 @@ class StopPhotoIntervalResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopPhotoIntervalResponse& default_instance() { + static const SubscribeCurrentSettingsRequest& default_instance() { return *internal_default_instance(); } - static inline const StopPhotoIntervalResponse* internal_default_instance() { - return reinterpret_cast( - &_StopPhotoIntervalResponse_default_instance_); + static inline const SubscribeCurrentSettingsRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeCurrentSettingsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 30; - friend void swap(StopPhotoIntervalResponse& a, StopPhotoIntervalResponse& b) { + friend void swap(SubscribeCurrentSettingsRequest& a, SubscribeCurrentSettingsRequest& b) { a.Swap(&b); } - inline void Swap(StopPhotoIntervalResponse* other) { + inline void Swap(SubscribeCurrentSettingsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopPhotoIntervalResponse* other) { + void UnsafeArenaSwap(SubscribeCurrentSettingsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopPhotoIntervalResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCurrentSettingsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StopPhotoIntervalResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StopPhotoIntervalResponse& from) { - StopPhotoIntervalResponse::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeCurrentSettingsRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeCurrentSettingsRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StopPhotoIntervalResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.StopPhotoIntervalResponse"; + return "mavsdk.rpc.camera.SubscribeCurrentSettingsRequest"; } protected: - explicit StopPhotoIntervalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeCurrentSettingsRequest(::google::protobuf::Arena* arena); + SubscribeCurrentSettingsRequest(::google::protobuf::Arena* arena, const SubscribeCurrentSettingsRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCameraResultFieldNumber = 1, - }; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - bool has_camera_result() const; - void clear_camera_result() ; - const ::mavsdk::rpc::camera::CameraResult& camera_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::camera::CameraResult* release_camera_result(); - ::mavsdk::rpc::camera::CameraResult* mutable_camera_result(); - void set_allocated_camera_result(::mavsdk::rpc::camera::CameraResult* camera_result); - private: - const ::mavsdk::rpc::camera::CameraResult& _internal_camera_result() const; - ::mavsdk::rpc::camera::CameraResult* _internal_mutable_camera_result(); - public: - void unsafe_arena_set_allocated_camera_result( - ::mavsdk::rpc::camera::CameraResult* camera_result); - ::mavsdk::rpc::camera::CameraResult* unsafe_arena_release_camera_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StopPhotoIntervalResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SubscribeCurrentSettingsRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::camera::CameraResult* camera_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class StartVideoRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StartVideoRequest) */ { +class SubscribeCaptureInfoRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SubscribeCaptureInfoRequest) */ { public: - inline StartVideoRequest() : StartVideoRequest(nullptr) {} + inline SubscribeCaptureInfoRequest() : SubscribeCaptureInfoRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR StartVideoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequest(::google::protobuf::internal::ConstantInitialized); - StartVideoRequest(const StartVideoRequest& from); - StartVideoRequest(StartVideoRequest&& from) noexcept - : StartVideoRequest() { + inline SubscribeCaptureInfoRequest(const SubscribeCaptureInfoRequest& from) + : SubscribeCaptureInfoRequest(nullptr, from) {} + SubscribeCaptureInfoRequest(SubscribeCaptureInfoRequest&& from) noexcept + : SubscribeCaptureInfoRequest() { *this = ::std::move(from); } - inline StartVideoRequest& operator=(const StartVideoRequest& from) { + inline SubscribeCaptureInfoRequest& operator=(const SubscribeCaptureInfoRequest& from) { CopyFrom(from); return *this; } - inline StartVideoRequest& operator=(StartVideoRequest&& from) noexcept { + inline SubscribeCaptureInfoRequest& operator=(SubscribeCaptureInfoRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1783,122 +1724,134 @@ class StartVideoRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StartVideoRequest& default_instance() { + static const SubscribeCaptureInfoRequest& default_instance() { return *internal_default_instance(); } - static inline const StartVideoRequest* internal_default_instance() { - return reinterpret_cast( - &_StartVideoRequest_default_instance_); + static inline const SubscribeCaptureInfoRequest* internal_default_instance() { + return reinterpret_cast( + &_SubscribeCaptureInfoRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 26; - friend void swap(StartVideoRequest& a, StartVideoRequest& b) { + friend void swap(SubscribeCaptureInfoRequest& a, SubscribeCaptureInfoRequest& b) { a.Swap(&b); } - inline void Swap(StartVideoRequest* other) { + inline void Swap(SubscribeCaptureInfoRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StartVideoRequest* other) { + void UnsafeArenaSwap(SubscribeCaptureInfoRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StartVideoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCaptureInfoRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const StartVideoRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const SubscribeCaptureInfoRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const StartVideoRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const SubscribeCaptureInfoRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.StartVideoRequest"; + return "mavsdk.rpc.camera.SubscribeCaptureInfoRequest"; } protected: - explicit StartVideoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SubscribeCaptureInfoRequest(::google::protobuf::Arena* arena); + SubscribeCaptureInfoRequest(::google::protobuf::Arena* arena, const SubscribeCaptureInfoRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StartVideoRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SubscribeCaptureInfoRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class StartVideoResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StartVideoResponse) */ { +class StopVideoStreamingRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StopVideoStreamingRequest) */ { public: - inline StartVideoResponse() : StartVideoResponse(nullptr) {} - ~StartVideoResponse() override; + inline StopVideoStreamingRequest() : StopVideoStreamingRequest(nullptr) {} + ~StopVideoStreamingRequest() override; template - explicit PROTOBUF_CONSTEXPR StartVideoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR StopVideoStreamingRequest(::google::protobuf::internal::ConstantInitialized); - StartVideoResponse(const StartVideoResponse& from); - StartVideoResponse(StartVideoResponse&& from) noexcept - : StartVideoResponse() { + inline StopVideoStreamingRequest(const StopVideoStreamingRequest& from) + : StopVideoStreamingRequest(nullptr, from) {} + StopVideoStreamingRequest(StopVideoStreamingRequest&& from) noexcept + : StopVideoStreamingRequest() { *this = ::std::move(from); } - inline StartVideoResponse& operator=(const StartVideoResponse& from) { + inline StopVideoStreamingRequest& operator=(const StopVideoStreamingRequest& from) { CopyFrom(from); return *this; } - inline StartVideoResponse& operator=(StartVideoResponse&& from) noexcept { + inline StopVideoStreamingRequest& operator=(StopVideoStreamingRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -1908,142 +1861,157 @@ class StartVideoResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StartVideoResponse& default_instance() { + static const StopVideoStreamingRequest& default_instance() { return *internal_default_instance(); } - static inline const StartVideoResponse* internal_default_instance() { - return reinterpret_cast( - &_StartVideoResponse_default_instance_); + static inline const StopVideoStreamingRequest* internal_default_instance() { + return reinterpret_cast( + &_StopVideoStreamingRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 14; - friend void swap(StartVideoResponse& a, StartVideoResponse& b) { + friend void swap(StopVideoStreamingRequest& a, StopVideoStreamingRequest& b) { a.Swap(&b); } - inline void Swap(StartVideoResponse* other) { + inline void Swap(StopVideoStreamingRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StartVideoResponse* other) { + void UnsafeArenaSwap(StopVideoStreamingRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StartVideoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopVideoStreamingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StartVideoResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StartVideoResponse& from) { - StartVideoResponse::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const StopVideoStreamingRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const StopVideoStreamingRequest& from) { + StopVideoStreamingRequest::MergeImpl(*this, from); } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StartVideoResponse* other); + void InternalSwap(StopVideoStreamingRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.StartVideoResponse"; + return "mavsdk.rpc.camera.StopVideoStreamingRequest"; } protected: - explicit StartVideoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit StopVideoStreamingRequest(::google::protobuf::Arena* arena); + StopVideoStreamingRequest(::google::protobuf::Arena* arena, const StopVideoStreamingRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kCameraResultFieldNumber = 1, + kStreamIdFieldNumber = 1, }; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - bool has_camera_result() const; - void clear_camera_result() ; - const ::mavsdk::rpc::camera::CameraResult& camera_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::camera::CameraResult* release_camera_result(); - ::mavsdk::rpc::camera::CameraResult* mutable_camera_result(); - void set_allocated_camera_result(::mavsdk::rpc::camera::CameraResult* camera_result); + // int32 stream_id = 1; + void clear_stream_id() ; + ::int32_t stream_id() const; + void set_stream_id(::int32_t value); + private: - const ::mavsdk::rpc::camera::CameraResult& _internal_camera_result() const; - ::mavsdk::rpc::camera::CameraResult* _internal_mutable_camera_result(); + ::int32_t _internal_stream_id() const; + void _internal_set_stream_id(::int32_t value); + public: - void unsafe_arena_set_allocated_camera_result( - ::mavsdk::rpc::camera::CameraResult* camera_result); - ::mavsdk::rpc::camera::CameraResult* unsafe_arena_release_camera_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StartVideoResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StopVideoStreamingRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::camera::CameraResult* camera_result_; + + 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 stream_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- class StopVideoRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StopVideoRequest) */ { + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StopVideoRequest) */ { public: inline StopVideoRequest() : StopVideoRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR StopVideoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR StopVideoRequest(::google::protobuf::internal::ConstantInitialized); - StopVideoRequest(const StopVideoRequest& from); + inline StopVideoRequest(const StopVideoRequest& from) + : StopVideoRequest(nullptr, from) {} StopVideoRequest(StopVideoRequest&& from) noexcept : StopVideoRequest() { *this = ::std::move(from); @@ -2055,9 +2023,9 @@ class StopVideoRequest final : } inline StopVideoRequest& operator=(StopVideoRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2067,20 +2035,22 @@ class StopVideoRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const StopVideoRequest& default_instance() { @@ -2099,50 +2069,48 @@ class StopVideoRequest final : inline void Swap(StopVideoRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(StopVideoRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopVideoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + StopVideoRequest* New(::google::protobuf::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const StopVideoRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const StopVideoRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { return "mavsdk.rpc.camera.StopVideoRequest"; } protected: - explicit StopVideoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit StopVideoRequest(::google::protobuf::Arena* arena); + StopVideoRequest(::google::protobuf::Arena* arena, const StopVideoRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2152,37 +2120,48 @@ class StopVideoRequest final : private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class StopVideoResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StopVideoResponse) */ { +class StopPhotoIntervalRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StopPhotoIntervalRequest) */ { public: - inline StopVideoResponse() : StopVideoResponse(nullptr) {} - ~StopVideoResponse() override; + inline StopPhotoIntervalRequest() : StopPhotoIntervalRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR StopVideoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR StopPhotoIntervalRequest(::google::protobuf::internal::ConstantInitialized); - StopVideoResponse(const StopVideoResponse& from); - StopVideoResponse(StopVideoResponse&& from) noexcept - : StopVideoResponse() { + inline StopPhotoIntervalRequest(const StopPhotoIntervalRequest& from) + : StopPhotoIntervalRequest(nullptr, from) {} + StopPhotoIntervalRequest(StopPhotoIntervalRequest&& from) noexcept + : StopPhotoIntervalRequest() { *this = ::std::move(from); } - inline StopVideoResponse& operator=(const StopVideoResponse& from) { + inline StopPhotoIntervalRequest& operator=(const StopPhotoIntervalRequest& from) { CopyFrom(from); return *this; } - inline StopVideoResponse& operator=(StopVideoResponse&& from) noexcept { + inline StopPhotoIntervalRequest& operator=(StopPhotoIntervalRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2192,157 +2171,134 @@ class StopVideoResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopVideoResponse& default_instance() { + static const StopPhotoIntervalRequest& default_instance() { return *internal_default_instance(); } - static inline const StopVideoResponse* internal_default_instance() { - return reinterpret_cast( - &_StopVideoResponse_default_instance_); + static inline const StopPhotoIntervalRequest* internal_default_instance() { + return reinterpret_cast( + &_StopPhotoIntervalRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 6; - friend void swap(StopVideoResponse& a, StopVideoResponse& b) { + friend void swap(StopPhotoIntervalRequest& a, StopPhotoIntervalRequest& b) { a.Swap(&b); } - inline void Swap(StopVideoResponse* other) { + inline void Swap(StopPhotoIntervalRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopVideoResponse* other) { + void UnsafeArenaSwap(StopPhotoIntervalRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopVideoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StopPhotoIntervalRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StopVideoResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StopVideoResponse& from) { - StopVideoResponse::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StopPhotoIntervalRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StopPhotoIntervalRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StopVideoResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.StopVideoResponse"; + return "mavsdk.rpc.camera.StopPhotoIntervalRequest"; } protected: - explicit StopVideoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit StopPhotoIntervalRequest(::google::protobuf::Arena* arena); + StopPhotoIntervalRequest(::google::protobuf::Arena* arena, const StopPhotoIntervalRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCameraResultFieldNumber = 1, - }; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - bool has_camera_result() const; - void clear_camera_result() ; - const ::mavsdk::rpc::camera::CameraResult& camera_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::camera::CameraResult* release_camera_result(); - ::mavsdk::rpc::camera::CameraResult* mutable_camera_result(); - void set_allocated_camera_result(::mavsdk::rpc::camera::CameraResult* camera_result); - private: - const ::mavsdk::rpc::camera::CameraResult& _internal_camera_result() const; - ::mavsdk::rpc::camera::CameraResult* _internal_mutable_camera_result(); - public: - void unsafe_arena_set_allocated_camera_result( - ::mavsdk::rpc::camera::CameraResult* camera_result); - ::mavsdk::rpc::camera::CameraResult* unsafe_arena_release_camera_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StopVideoResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StopPhotoIntervalRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::camera::CameraResult* camera_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class StartVideoStreamingRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StartVideoStreamingRequest) */ { +class Status final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.Status) */ { public: - inline StartVideoStreamingRequest() : StartVideoStreamingRequest(nullptr) {} - ~StartVideoStreamingRequest() override; + inline Status() : Status(nullptr) {} + ~Status() override; template - explicit PROTOBUF_CONSTEXPR StartVideoStreamingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Status(::google::protobuf::internal::ConstantInitialized); - StartVideoStreamingRequest(const StartVideoStreamingRequest& from); - StartVideoStreamingRequest(StartVideoStreamingRequest&& from) noexcept - : StartVideoStreamingRequest() { + inline Status(const Status& from) + : Status(nullptr, from) {} + Status(Status&& from) noexcept + : Status() { *this = ::std::move(from); } - inline StartVideoStreamingRequest& operator=(const StartVideoStreamingRequest& from) { + inline Status& operator=(const Status& from) { CopyFrom(from); return *this; } - inline StartVideoStreamingRequest& operator=(StartVideoStreamingRequest&& from) noexcept { + inline Status& operator=(Status&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2352,312 +2308,332 @@ class StartVideoStreamingRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StartVideoStreamingRequest& default_instance() { + static const Status& default_instance() { return *internal_default_instance(); } - static inline const StartVideoStreamingRequest* internal_default_instance() { - return reinterpret_cast( - &_StartVideoStreamingRequest_default_instance_); + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 51; - friend void swap(StartVideoStreamingRequest& a, StartVideoStreamingRequest& b) { + friend void swap(Status& a, Status& b) { a.Swap(&b); } - inline void Swap(StartVideoStreamingRequest* other) { + inline void Swap(Status* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StartVideoStreamingRequest* other) { + void UnsafeArenaSwap(Status* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StartVideoStreamingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Status* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StartVideoStreamingRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StartVideoStreamingRequest& from) { - StartVideoStreamingRequest::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const Status& from) { + Status::MergeImpl(*this, from); } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StartVideoStreamingRequest* other); + void InternalSwap(Status* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.StartVideoStreamingRequest"; + return "mavsdk.rpc.camera.Status"; } protected: - explicit StartVideoStreamingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Status(::google::protobuf::Arena* arena); + Status(::google::protobuf::Arena* arena, const Status& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - - enum : int { - kStreamIdFieldNumber = 1, - }; - // int32 stream_id = 1; - void clear_stream_id() ; - ::int32_t stream_id() const; - void set_stream_id(::int32_t value); - - private: - ::int32_t _internal_stream_id() const; - void _internal_set_stream_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StartVideoStreamingRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::int32_t stream_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_camera_2fcamera_2eproto; -};// ------------------------------------------------------------------- - -class StartVideoStreamingResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StartVideoStreamingResponse) */ { - public: - inline StartVideoStreamingResponse() : StartVideoStreamingResponse(nullptr) {} - ~StartVideoStreamingResponse() override; - template - explicit PROTOBUF_CONSTEXPR StartVideoStreamingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - StartVideoStreamingResponse(const StartVideoStreamingResponse& from); - StartVideoStreamingResponse(StartVideoStreamingResponse&& from) noexcept - : StartVideoStreamingResponse() { - *this = ::std::move(from); - } - - inline StartVideoStreamingResponse& operator=(const StartVideoStreamingResponse& from) { - CopyFrom(from); - return *this; + using StorageStatus = Status_StorageStatus; + static constexpr StorageStatus STORAGE_STATUS_NOT_AVAILABLE = Status_StorageStatus_STORAGE_STATUS_NOT_AVAILABLE; + static constexpr StorageStatus STORAGE_STATUS_UNFORMATTED = Status_StorageStatus_STORAGE_STATUS_UNFORMATTED; + static constexpr StorageStatus STORAGE_STATUS_FORMATTED = Status_StorageStatus_STORAGE_STATUS_FORMATTED; + static constexpr StorageStatus STORAGE_STATUS_NOT_SUPPORTED = Status_StorageStatus_STORAGE_STATUS_NOT_SUPPORTED; + static inline bool StorageStatus_IsValid(int value) { + return Status_StorageStatus_IsValid(value); } - inline StartVideoStreamingResponse& operator=(StartVideoStreamingResponse&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; + static constexpr StorageStatus StorageStatus_MIN = Status_StorageStatus_StorageStatus_MIN; + static constexpr StorageStatus StorageStatus_MAX = Status_StorageStatus_StorageStatus_MAX; + static constexpr int StorageStatus_ARRAYSIZE = Status_StorageStatus_StorageStatus_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* StorageStatus_descriptor() { + return Status_StorageStatus_descriptor(); } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + template + static inline const std::string& StorageStatus_Name(T value) { + return Status_StorageStatus_Name(value); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + static inline bool StorageStatus_Parse(absl::string_view name, StorageStatus* value) { + return Status_StorageStatus_Parse(name, value); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + using StorageType = Status_StorageType; + static constexpr StorageType STORAGE_TYPE_UNKNOWN = Status_StorageType_STORAGE_TYPE_UNKNOWN; + static constexpr StorageType STORAGE_TYPE_USB_STICK = Status_StorageType_STORAGE_TYPE_USB_STICK; + static constexpr StorageType STORAGE_TYPE_SD = Status_StorageType_STORAGE_TYPE_SD; + static constexpr StorageType STORAGE_TYPE_MICROSD = Status_StorageType_STORAGE_TYPE_MICROSD; + static constexpr StorageType STORAGE_TYPE_HD = Status_StorageType_STORAGE_TYPE_HD; + static constexpr StorageType STORAGE_TYPE_OTHER = Status_StorageType_STORAGE_TYPE_OTHER; + static inline bool StorageType_IsValid(int value) { + return Status_StorageType_IsValid(value); } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; + static constexpr StorageType StorageType_MIN = Status_StorageType_StorageType_MIN; + static constexpr StorageType StorageType_MAX = Status_StorageType_StorageType_MAX; + static constexpr int StorageType_ARRAYSIZE = Status_StorageType_StorageType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* StorageType_descriptor() { + return Status_StorageType_descriptor(); } - static const StartVideoStreamingResponse& default_instance() { - return *internal_default_instance(); + template + static inline const std::string& StorageType_Name(T value) { + return Status_StorageType_Name(value); } - static inline const StartVideoStreamingResponse* internal_default_instance() { - return reinterpret_cast( - &_StartVideoStreamingResponse_default_instance_); + static inline bool StorageType_Parse(absl::string_view name, StorageType* value) { + return Status_StorageType_Parse(name, value); } - static constexpr int kIndexInFileMessages = - 13; - friend void swap(StartVideoStreamingResponse& a, StartVideoStreamingResponse& b) { - a.Swap(&b); - } - inline void Swap(StartVideoStreamingResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(StartVideoStreamingResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } + // accessors ------------------------------------------------------- - // implements Message ---------------------------------------------- + enum : int { + kMediaFolderNameFieldNumber = 7, + kVideoOnFieldNumber = 1, + kPhotoIntervalOnFieldNumber = 2, + kUsedStorageMibFieldNumber = 3, + kAvailableStorageMibFieldNumber = 4, + kTotalStorageMibFieldNumber = 5, + kRecordingTimeSFieldNumber = 6, + kStorageStatusFieldNumber = 8, + kStorageIdFieldNumber = 9, + kStorageTypeFieldNumber = 10, + }; + // string media_folder_name = 7; + void clear_media_folder_name() ; + const std::string& media_folder_name() const; + template + void set_media_folder_name(Arg_&& arg, Args_... args); + std::string* mutable_media_folder_name(); + PROTOBUF_NODISCARD std::string* release_media_folder_name(); + void set_allocated_media_folder_name(std::string* value); - StartVideoStreamingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StartVideoStreamingResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StartVideoStreamingResponse& from) { - StartVideoStreamingResponse::MergeImpl(*this, from); - } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + const std::string& _internal_media_folder_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_media_folder_name( + const std::string& value); + std::string* _internal_mutable_media_folder_name(); - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + // bool video_on = 1; + void clear_video_on() ; + bool video_on() const; + void set_video_on(bool value); private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StartVideoStreamingResponse* other); + bool _internal_video_on() const; + void _internal_set_video_on(bool value); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.StartVideoStreamingResponse"; - } - protected: - explicit StartVideoStreamingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + // bool photo_interval_on = 2; + void clear_photo_interval_on() ; + bool photo_interval_on() const; + void set_photo_interval_on(bool value); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + private: + bool _internal_photo_interval_on() const; + void _internal_set_photo_interval_on(bool value); - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + public: + // float used_storage_mib = 3; + void clear_used_storage_mib() ; + float used_storage_mib() const; + void set_used_storage_mib(float value); - // nested types ---------------------------------------------------- + private: + float _internal_used_storage_mib() const; + void _internal_set_used_storage_mib(float value); - // accessors ------------------------------------------------------- + public: + // float available_storage_mib = 4; + void clear_available_storage_mib() ; + float available_storage_mib() const; + void set_available_storage_mib(float value); - enum : int { - kCameraResultFieldNumber = 1, - }; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - bool has_camera_result() const; - void clear_camera_result() ; - const ::mavsdk::rpc::camera::CameraResult& camera_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::camera::CameraResult* release_camera_result(); - ::mavsdk::rpc::camera::CameraResult* mutable_camera_result(); - void set_allocated_camera_result(::mavsdk::rpc::camera::CameraResult* camera_result); private: - const ::mavsdk::rpc::camera::CameraResult& _internal_camera_result() const; - ::mavsdk::rpc::camera::CameraResult* _internal_mutable_camera_result(); + float _internal_available_storage_mib() const; + void _internal_set_available_storage_mib(float value); + public: - void unsafe_arena_set_allocated_camera_result( - ::mavsdk::rpc::camera::CameraResult* camera_result); - ::mavsdk::rpc::camera::CameraResult* unsafe_arena_release_camera_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StartVideoStreamingResponse) + // float total_storage_mib = 5; + void clear_total_storage_mib() ; + float total_storage_mib() const; + void set_total_storage_mib(float value); + + private: + float _internal_total_storage_mib() const; + void _internal_set_total_storage_mib(float value); + + public: + // float recording_time_s = 6; + void clear_recording_time_s() ; + float recording_time_s() const; + void set_recording_time_s(float value); + + private: + float _internal_recording_time_s() const; + void _internal_set_recording_time_s(float value); + + public: + // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; + void clear_storage_status() ; + ::mavsdk::rpc::camera::Status_StorageStatus storage_status() const; + void set_storage_status(::mavsdk::rpc::camera::Status_StorageStatus value); + + private: + ::mavsdk::rpc::camera::Status_StorageStatus _internal_storage_status() const; + void _internal_set_storage_status(::mavsdk::rpc::camera::Status_StorageStatus value); + + public: + // uint32 storage_id = 9; + void clear_storage_id() ; + ::uint32_t storage_id() const; + void set_storage_id(::uint32_t value); + + private: + ::uint32_t _internal_storage_id() const; + void _internal_set_storage_id(::uint32_t value); + + public: + // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; + void clear_storage_type() ; + ::mavsdk::rpc::camera::Status_StorageType storage_type() const; + void set_storage_type(::mavsdk::rpc::camera::Status_StorageType value); + + private: + ::mavsdk::rpc::camera::Status_StorageType _internal_storage_type() const; + void _internal_set_storage_type(::mavsdk::rpc::camera::Status_StorageType value); + + public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.Status) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 10, 0, + 58, 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::camera::CameraResult* camera_result_; + + 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 media_folder_name_; + bool video_on_; + bool photo_interval_on_; + float used_storage_mib_; + float available_storage_mib_; + float total_storage_mib_; + float recording_time_s_; + int storage_status_; + ::uint32_t storage_id_; + int storage_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class StopVideoStreamingRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StopVideoStreamingRequest) */ { +class StartVideoStreamingRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StartVideoStreamingRequest) */ { public: - inline StopVideoStreamingRequest() : StopVideoStreamingRequest(nullptr) {} - ~StopVideoStreamingRequest() override; + inline StartVideoStreamingRequest() : StartVideoStreamingRequest(nullptr) {} + ~StartVideoStreamingRequest() override; template - explicit PROTOBUF_CONSTEXPR StopVideoStreamingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR StartVideoStreamingRequest(::google::protobuf::internal::ConstantInitialized); - StopVideoStreamingRequest(const StopVideoStreamingRequest& from); - StopVideoStreamingRequest(StopVideoStreamingRequest&& from) noexcept - : StopVideoStreamingRequest() { + inline StartVideoStreamingRequest(const StartVideoStreamingRequest& from) + : StartVideoStreamingRequest(nullptr, from) {} + StartVideoStreamingRequest(StartVideoStreamingRequest&& from) noexcept + : StartVideoStreamingRequest() { *this = ::std::move(from); } - inline StopVideoStreamingRequest& operator=(const StopVideoStreamingRequest& from) { + inline StartVideoStreamingRequest& operator=(const StartVideoStreamingRequest& from) { CopyFrom(from); return *this; } - inline StopVideoStreamingRequest& operator=(StopVideoStreamingRequest&& from) noexcept { + inline StartVideoStreamingRequest& operator=(StartVideoStreamingRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2667,96 +2643,99 @@ class StopVideoStreamingRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopVideoStreamingRequest& default_instance() { + static const StartVideoStreamingRequest& default_instance() { return *internal_default_instance(); } - static inline const StopVideoStreamingRequest* internal_default_instance() { - return reinterpret_cast( - &_StopVideoStreamingRequest_default_instance_); + static inline const StartVideoStreamingRequest* internal_default_instance() { + return reinterpret_cast( + &_StartVideoStreamingRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 12; - friend void swap(StopVideoStreamingRequest& a, StopVideoStreamingRequest& b) { + friend void swap(StartVideoStreamingRequest& a, StartVideoStreamingRequest& b) { a.Swap(&b); } - inline void Swap(StopVideoStreamingRequest* other) { + inline void Swap(StartVideoStreamingRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopVideoStreamingRequest* other) { + void UnsafeArenaSwap(StartVideoStreamingRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopVideoStreamingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StartVideoStreamingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StopVideoStreamingRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StopVideoStreamingRequest& from) { - StopVideoStreamingRequest::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const StartVideoStreamingRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const StartVideoStreamingRequest& from) { + StartVideoStreamingRequest::MergeImpl(*this, from); } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StopVideoStreamingRequest* other); + void InternalSwap(StartVideoStreamingRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.StopVideoStreamingRequest"; + return "mavsdk.rpc.camera.StartVideoStreamingRequest"; } protected: - explicit StopVideoStreamingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit StartVideoStreamingRequest(::google::protobuf::Arena* arena); + StartVideoStreamingRequest(::google::protobuf::Arena* arena, const StartVideoStreamingRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2775,44 +2754,60 @@ class StopVideoStreamingRequest final : void _internal_set_stream_id(::int32_t value); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StopVideoStreamingRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StartVideoStreamingRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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 stream_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class StopVideoStreamingResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StopVideoStreamingResponse) */ { +class StartVideoRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StartVideoRequest) */ { public: - inline StopVideoStreamingResponse() : StopVideoStreamingResponse(nullptr) {} - ~StopVideoStreamingResponse() override; + inline StartVideoRequest() : StartVideoRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR StopVideoStreamingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR StartVideoRequest(::google::protobuf::internal::ConstantInitialized); - StopVideoStreamingResponse(const StopVideoStreamingResponse& from); - StopVideoStreamingResponse(StopVideoStreamingResponse&& from) noexcept - : StopVideoStreamingResponse() { + inline StartVideoRequest(const StartVideoRequest& from) + : StartVideoRequest(nullptr, from) {} + StartVideoRequest(StartVideoRequest&& from) noexcept + : StartVideoRequest() { *this = ::std::move(from); } - inline StopVideoStreamingResponse& operator=(const StopVideoStreamingResponse& from) { + inline StartVideoRequest& operator=(const StartVideoRequest& from) { CopyFrom(from); return *this; } - inline StopVideoStreamingResponse& operator=(StopVideoStreamingResponse&& from) noexcept { + inline StartVideoRequest& operator=(StartVideoRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2822,157 +2817,134 @@ class StopVideoStreamingResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const StopVideoStreamingResponse& default_instance() { + static const StartVideoRequest& default_instance() { return *internal_default_instance(); } - static inline const StopVideoStreamingResponse* internal_default_instance() { - return reinterpret_cast( - &_StopVideoStreamingResponse_default_instance_); + static inline const StartVideoRequest* internal_default_instance() { + return reinterpret_cast( + &_StartVideoRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 8; - friend void swap(StopVideoStreamingResponse& a, StopVideoStreamingResponse& b) { + friend void swap(StartVideoRequest& a, StartVideoRequest& b) { a.Swap(&b); } - inline void Swap(StopVideoStreamingResponse* other) { + inline void Swap(StartVideoRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(StopVideoStreamingResponse* other) { + void UnsafeArenaSwap(StartVideoRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StopVideoStreamingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StartVideoRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const StopVideoStreamingResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StopVideoStreamingResponse& from) { - StopVideoStreamingResponse::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const StartVideoRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const StartVideoRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StopVideoStreamingResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.StopVideoStreamingResponse"; + return "mavsdk.rpc.camera.StartVideoRequest"; } protected: - explicit StopVideoStreamingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit StartVideoRequest(::google::protobuf::Arena* arena); + StartVideoRequest(::google::protobuf::Arena* arena, const StartVideoRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCameraResultFieldNumber = 1, - }; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - bool has_camera_result() const; - void clear_camera_result() ; - const ::mavsdk::rpc::camera::CameraResult& camera_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::camera::CameraResult* release_camera_result(); - ::mavsdk::rpc::camera::CameraResult* mutable_camera_result(); - void set_allocated_camera_result(::mavsdk::rpc::camera::CameraResult* camera_result); - private: - const ::mavsdk::rpc::camera::CameraResult& _internal_camera_result() const; - ::mavsdk::rpc::camera::CameraResult* _internal_mutable_camera_result(); - public: - void unsafe_arena_set_allocated_camera_result( - ::mavsdk::rpc::camera::CameraResult* camera_result); - ::mavsdk::rpc::camera::CameraResult* unsafe_arena_release_camera_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StopVideoStreamingResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StartVideoRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::camera::CameraResult* camera_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class SetModeRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SetModeRequest) */ { +class StartPhotoIntervalRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.StartPhotoIntervalRequest) */ { public: - inline SetModeRequest() : SetModeRequest(nullptr) {} - ~SetModeRequest() override; + inline StartPhotoIntervalRequest() : StartPhotoIntervalRequest(nullptr) {} + ~StartPhotoIntervalRequest() override; template - explicit PROTOBUF_CONSTEXPR SetModeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR StartPhotoIntervalRequest(::google::protobuf::internal::ConstantInitialized); - SetModeRequest(const SetModeRequest& from); - SetModeRequest(SetModeRequest&& from) noexcept - : SetModeRequest() { + inline StartPhotoIntervalRequest(const StartPhotoIntervalRequest& from) + : StartPhotoIntervalRequest(nullptr, from) {} + StartPhotoIntervalRequest(StartPhotoIntervalRequest&& from) noexcept + : StartPhotoIntervalRequest() { *this = ::std::move(from); } - inline SetModeRequest& operator=(const SetModeRequest& from) { + inline StartPhotoIntervalRequest& operator=(const StartPhotoIntervalRequest& from) { CopyFrom(from); return *this; } - inline SetModeRequest& operator=(SetModeRequest&& from) noexcept { + inline StartPhotoIntervalRequest& operator=(StartPhotoIntervalRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -2982,152 +2954,172 @@ class SetModeRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetModeRequest& default_instance() { + static const StartPhotoIntervalRequest& default_instance() { return *internal_default_instance(); } - static inline const SetModeRequest* internal_default_instance() { - return reinterpret_cast( - &_SetModeRequest_default_instance_); + static inline const StartPhotoIntervalRequest* internal_default_instance() { + return reinterpret_cast( + &_StartPhotoIntervalRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 4; - friend void swap(SetModeRequest& a, SetModeRequest& b) { + friend void swap(StartPhotoIntervalRequest& a, StartPhotoIntervalRequest& b) { a.Swap(&b); } - inline void Swap(SetModeRequest* other) { + inline void Swap(StartPhotoIntervalRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetModeRequest* other) { + void UnsafeArenaSwap(StartPhotoIntervalRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetModeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StartPhotoIntervalRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetModeRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetModeRequest& from) { - SetModeRequest::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const StartPhotoIntervalRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const StartPhotoIntervalRequest& from) { + StartPhotoIntervalRequest::MergeImpl(*this, from); } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetModeRequest* other); + void InternalSwap(StartPhotoIntervalRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.SetModeRequest"; + return "mavsdk.rpc.camera.StartPhotoIntervalRequest"; } protected: - explicit SetModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit StartPhotoIntervalRequest(::google::protobuf::Arena* arena); + StartPhotoIntervalRequest(::google::protobuf::Arena* arena, const StartPhotoIntervalRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kModeFieldNumber = 1, + kIntervalSFieldNumber = 1, }; - // .mavsdk.rpc.camera.Mode mode = 1; - void clear_mode() ; - ::mavsdk::rpc::camera::Mode mode() const; - void set_mode(::mavsdk::rpc::camera::Mode value); + // float interval_s = 1; + void clear_interval_s() ; + float interval_s() const; + void set_interval_s(float value); private: - ::mavsdk::rpc::camera::Mode _internal_mode() const; - void _internal_set_mode(::mavsdk::rpc::camera::Mode value); + float _internal_interval_s() const; + void _internal_set_interval_s(float value); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SetModeRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.StartPhotoIntervalRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - int mode_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 interval_s_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class SetModeResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SetModeResponse) */ { +class SetModeRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SetModeRequest) */ { public: - inline SetModeResponse() : SetModeResponse(nullptr) {} - ~SetModeResponse() override; + inline SetModeRequest() : SetModeRequest(nullptr) {} + ~SetModeRequest() override; template - explicit PROTOBUF_CONSTEXPR SetModeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SetModeRequest(::google::protobuf::internal::ConstantInitialized); - SetModeResponse(const SetModeResponse& from); - SetModeResponse(SetModeResponse&& from) noexcept - : SetModeResponse() { + inline SetModeRequest(const SetModeRequest& from) + : SetModeRequest(nullptr, from) {} + SetModeRequest(SetModeRequest&& from) noexcept + : SetModeRequest() { *this = ::std::move(from); } - inline SetModeResponse& operator=(const SetModeResponse& from) { + inline SetModeRequest& operator=(const SetModeRequest& from) { CopyFrom(from); return *this; } - inline SetModeResponse& operator=(SetModeResponse&& from) noexcept { + inline SetModeRequest& operator=(SetModeRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3137,157 +3129,172 @@ class SetModeResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SetModeResponse& default_instance() { + static const SetModeRequest& default_instance() { return *internal_default_instance(); } - static inline const SetModeResponse* internal_default_instance() { - return reinterpret_cast( - &_SetModeResponse_default_instance_); + static inline const SetModeRequest* internal_default_instance() { + return reinterpret_cast( + &_SetModeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 16; - friend void swap(SetModeResponse& a, SetModeResponse& b) { + friend void swap(SetModeRequest& a, SetModeRequest& b) { a.Swap(&b); } - inline void Swap(SetModeResponse* other) { + inline void Swap(SetModeRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SetModeResponse* other) { + void UnsafeArenaSwap(SetModeRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SetModeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetModeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SetModeResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SetModeResponse& from) { - SetModeResponse::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SetModeRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const SetModeRequest& from) { + SetModeRequest::MergeImpl(*this, from); } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SetModeResponse* other); + void InternalSwap(SetModeRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.SetModeResponse"; + return "mavsdk.rpc.camera.SetModeRequest"; } protected: - explicit SetModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SetModeRequest(::google::protobuf::Arena* arena); + SetModeRequest(::google::protobuf::Arena* arena, const SetModeRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kCameraResultFieldNumber = 1, + kModeFieldNumber = 1, }; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - bool has_camera_result() const; - void clear_camera_result() ; - const ::mavsdk::rpc::camera::CameraResult& camera_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::camera::CameraResult* release_camera_result(); - ::mavsdk::rpc::camera::CameraResult* mutable_camera_result(); - void set_allocated_camera_result(::mavsdk::rpc::camera::CameraResult* camera_result); + // .mavsdk.rpc.camera.Mode mode = 1; + void clear_mode() ; + ::mavsdk::rpc::camera::Mode mode() const; + void set_mode(::mavsdk::rpc::camera::Mode value); + private: - const ::mavsdk::rpc::camera::CameraResult& _internal_camera_result() const; - ::mavsdk::rpc::camera::CameraResult* _internal_mutable_camera_result(); + ::mavsdk::rpc::camera::Mode _internal_mode() const; + void _internal_set_mode(::mavsdk::rpc::camera::Mode value); + public: - void unsafe_arena_set_allocated_camera_result( - ::mavsdk::rpc::camera::CameraResult* camera_result); - ::mavsdk::rpc::camera::CameraResult* unsafe_arena_release_camera_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SetModeResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SetModeRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::camera::CameraResult* camera_result_; + + 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); + int mode_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class ListPhotosRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.ListPhotosRequest) */ { +class SelectCameraRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SelectCameraRequest) */ { public: - inline ListPhotosRequest() : ListPhotosRequest(nullptr) {} - ~ListPhotosRequest() override; + inline SelectCameraRequest() : SelectCameraRequest(nullptr) {} + ~SelectCameraRequest() override; template - explicit PROTOBUF_CONSTEXPR ListPhotosRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR SelectCameraRequest(::google::protobuf::internal::ConstantInitialized); - ListPhotosRequest(const ListPhotosRequest& from); - ListPhotosRequest(ListPhotosRequest&& from) noexcept - : ListPhotosRequest() { + inline SelectCameraRequest(const SelectCameraRequest& from) + : SelectCameraRequest(nullptr, from) {} + SelectCameraRequest(SelectCameraRequest&& from) noexcept + : SelectCameraRequest() { *this = ::std::move(from); } - inline ListPhotosRequest& operator=(const ListPhotosRequest& from) { + inline SelectCameraRequest& operator=(const SelectCameraRequest& from) { CopyFrom(from); return *this; } - inline ListPhotosRequest& operator=(ListPhotosRequest&& from) noexcept { + inline SelectCameraRequest& operator=(SelectCameraRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3297,152 +3304,171 @@ class ListPhotosRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListPhotosRequest& default_instance() { + static const SelectCameraRequest& default_instance() { return *internal_default_instance(); } - static inline const ListPhotosRequest* internal_default_instance() { - return reinterpret_cast( - &_ListPhotosRequest_default_instance_); + static inline const SelectCameraRequest* internal_default_instance() { + return reinterpret_cast( + &_SelectCameraRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 41; - friend void swap(ListPhotosRequest& a, ListPhotosRequest& b) { + friend void swap(SelectCameraRequest& a, SelectCameraRequest& b) { a.Swap(&b); } - inline void Swap(ListPhotosRequest* other) { + inline void Swap(SelectCameraRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListPhotosRequest* other) { + void UnsafeArenaSwap(SelectCameraRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListPhotosRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SelectCameraRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ListPhotosRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ListPhotosRequest& from) { - ListPhotosRequest::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SelectCameraRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const SelectCameraRequest& from) { + SelectCameraRequest::MergeImpl(*this, from); } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + 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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ListPhotosRequest* other); + void InternalSwap(SelectCameraRequest* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.ListPhotosRequest"; + return "mavsdk.rpc.camera.SelectCameraRequest"; } protected: - explicit ListPhotosRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SelectCameraRequest(::google::protobuf::Arena* arena); + SelectCameraRequest(::google::protobuf::Arena* arena, const SelectCameraRequest& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kPhotosRangeFieldNumber = 1, + kCameraIdFieldNumber = 1, }; - // .mavsdk.rpc.camera.PhotosRange photos_range = 1; - void clear_photos_range() ; - ::mavsdk::rpc::camera::PhotosRange photos_range() const; - void set_photos_range(::mavsdk::rpc::camera::PhotosRange value); + // int32 camera_id = 1; + void clear_camera_id() ; + ::int32_t camera_id() const; + void set_camera_id(::int32_t value); private: - ::mavsdk::rpc::camera::PhotosRange _internal_photos_range() const; - void _internal_set_photos_range(::mavsdk::rpc::camera::PhotosRange value); + ::int32_t _internal_camera_id() const; + void _internal_set_camera_id(::int32_t value); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.ListPhotosRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SelectCameraRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - int photos_range_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + + 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 camera_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class ListPhotosResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.ListPhotosResponse) */ { +class ResetSettingsRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.ResetSettingsRequest) */ { public: - inline ListPhotosResponse() : ListPhotosResponse(nullptr) {} - ~ListPhotosResponse() override; + inline ResetSettingsRequest() : ResetSettingsRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR ListPhotosResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ResetSettingsRequest(::google::protobuf::internal::ConstantInitialized); - ListPhotosResponse(const ListPhotosResponse& from); - ListPhotosResponse(ListPhotosResponse&& from) noexcept - : ListPhotosResponse() { + inline ResetSettingsRequest(const ResetSettingsRequest& from) + : ResetSettingsRequest(nullptr, from) {} + ResetSettingsRequest(ResetSettingsRequest&& from) noexcept + : ResetSettingsRequest() { *this = ::std::move(from); } - inline ListPhotosResponse& operator=(const ListPhotosResponse& from) { + inline ResetSettingsRequest& operator=(const ResetSettingsRequest& from) { CopyFrom(from); return *this; } - inline ListPhotosResponse& operator=(ListPhotosResponse&& from) noexcept { + inline ResetSettingsRequest& operator=(ResetSettingsRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3452,178 +3478,134 @@ class ListPhotosResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ListPhotosResponse& default_instance() { + static const ResetSettingsRequest& default_instance() { return *internal_default_instance(); } - static inline const ListPhotosResponse* internal_default_instance() { - return reinterpret_cast( - &_ListPhotosResponse_default_instance_); + static inline const ResetSettingsRequest* internal_default_instance() { + return reinterpret_cast( + &_ResetSettingsRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 42; - friend void swap(ListPhotosResponse& a, ListPhotosResponse& b) { + friend void swap(ResetSettingsRequest& a, ResetSettingsRequest& b) { a.Swap(&b); } - inline void Swap(ListPhotosResponse* other) { + inline void Swap(ResetSettingsRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ListPhotosResponse* other) { + void UnsafeArenaSwap(ResetSettingsRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ListPhotosResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ResetSettingsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ListPhotosResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ListPhotosResponse& from) { - ListPhotosResponse::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ResetSettingsRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ResetSettingsRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ListPhotosResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.ListPhotosResponse"; + return "mavsdk.rpc.camera.ResetSettingsRequest"; } protected: - explicit ListPhotosResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ResetSettingsRequest(::google::protobuf::Arena* arena); + ResetSettingsRequest(::google::protobuf::Arena* arena, const ResetSettingsRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCaptureInfosFieldNumber = 2, - kCameraResultFieldNumber = 1, - }; - // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; - int capture_infos_size() const; - private: - int _internal_capture_infos_size() const; - - public: - void clear_capture_infos() ; - ::mavsdk::rpc::camera::CaptureInfo* mutable_capture_infos(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::camera::CaptureInfo >* - mutable_capture_infos(); - private: - const ::mavsdk::rpc::camera::CaptureInfo& _internal_capture_infos(int index) const; - ::mavsdk::rpc::camera::CaptureInfo* _internal_add_capture_infos(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::mavsdk::rpc::camera::CaptureInfo>& _internal_capture_infos() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::mavsdk::rpc::camera::CaptureInfo>* _internal_mutable_capture_infos(); - public: - const ::mavsdk::rpc::camera::CaptureInfo& capture_infos(int index) const; - ::mavsdk::rpc::camera::CaptureInfo* add_capture_infos(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::camera::CaptureInfo >& - capture_infos() const; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - bool has_camera_result() const; - void clear_camera_result() ; - const ::mavsdk::rpc::camera::CameraResult& camera_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::camera::CameraResult* release_camera_result(); - ::mavsdk::rpc::camera::CameraResult* mutable_camera_result(); - void set_allocated_camera_result(::mavsdk::rpc::camera::CameraResult* camera_result); - private: - const ::mavsdk::rpc::camera::CameraResult& _internal_camera_result() const; - ::mavsdk::rpc::camera::CameraResult* _internal_mutable_camera_result(); - public: - void unsafe_arena_set_allocated_camera_result( - ::mavsdk::rpc::camera::CameraResult* camera_result); - ::mavsdk::rpc::camera::CameraResult* unsafe_arena_release_camera_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.ListPhotosResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.ResetSettingsRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::camera::CaptureInfo > capture_infos_; - ::mavsdk::rpc::camera::CameraResult* camera_result_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class SubscribeInformationRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SubscribeInformationRequest) */ { +class Quaternion final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.Quaternion) */ { public: - inline SubscribeInformationRequest() : SubscribeInformationRequest(nullptr) {} + inline Quaternion() : Quaternion(nullptr) {} + ~Quaternion() override; template - explicit PROTOBUF_CONSTEXPR SubscribeInformationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Quaternion(::google::protobuf::internal::ConstantInitialized); - SubscribeInformationRequest(const SubscribeInformationRequest& from); - SubscribeInformationRequest(SubscribeInformationRequest&& from) noexcept - : SubscribeInformationRequest() { + inline Quaternion(const Quaternion& from) + : Quaternion(nullptr, from) {} + Quaternion(Quaternion&& from) noexcept + : Quaternion() { *this = ::std::move(from); } - inline SubscribeInformationRequest& operator=(const SubscribeInformationRequest& from) { + inline Quaternion& operator=(const Quaternion& from) { CopyFrom(from); return *this; } - inline SubscribeInformationRequest& operator=(SubscribeInformationRequest&& from) noexcept { + inline Quaternion& operator=(Quaternion&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3633,122 +3615,207 @@ class SubscribeInformationRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeInformationRequest& default_instance() { + static const Quaternion& default_instance() { return *internal_default_instance(); } - static inline const SubscribeInformationRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeInformationRequest_default_instance_); + static inline const Quaternion* internal_default_instance() { + return reinterpret_cast( + &_Quaternion_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 46; - friend void swap(SubscribeInformationRequest& a, SubscribeInformationRequest& b) { + friend void swap(Quaternion& a, Quaternion& b) { a.Swap(&b); } - inline void Swap(SubscribeInformationRequest* other) { + inline void Swap(Quaternion* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeInformationRequest* other) { + void UnsafeArenaSwap(Quaternion* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeInformationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeInformationRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + Quaternion* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeInformationRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Quaternion& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const Quaternion& from) { + Quaternion::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(Quaternion* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.SubscribeInformationRequest"; + return "mavsdk.rpc.camera.Quaternion"; } protected: - explicit SubscribeInformationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Quaternion(::google::protobuf::Arena* arena); + Quaternion(::google::protobuf::Arena* arena, const Quaternion& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SubscribeInformationRequest) + enum : int { + kWFieldNumber = 1, + kXFieldNumber = 2, + kYFieldNumber = 3, + kZFieldNumber = 4, + }; + // float w = 1; + void clear_w() ; + float w() const; + void set_w(float value); + + private: + float _internal_w() const; + void _internal_set_w(float value); + + public: + // float x = 2; + void clear_x() ; + float x() const; + void set_x(float value); + + private: + float _internal_x() const; + void _internal_set_x(float value); + + public: + // float y = 3; + void clear_y() ; + float y() const; + void set_y(float value); + + private: + float _internal_y() const; + void _internal_set_y(float value); + + public: + // float z = 4; + void clear_z() ; + float z() const; + void set_z(float value); + + private: + float _internal_z() const; + void _internal_set_z(float value); + + public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.Quaternion) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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); + float w_; + float x_; + float y_; + float z_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; + union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class InformationResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.InformationResponse) */ { +class PrepareRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.PrepareRequest) */ { public: - inline InformationResponse() : InformationResponse(nullptr) {} - ~InformationResponse() override; + inline PrepareRequest() : PrepareRequest(nullptr) {} template - explicit PROTOBUF_CONSTEXPR InformationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR PrepareRequest(::google::protobuf::internal::ConstantInitialized); - InformationResponse(const InformationResponse& from); - InformationResponse(InformationResponse&& from) noexcept - : InformationResponse() { + inline PrepareRequest(const PrepareRequest& from) + : PrepareRequest(nullptr, from) {} + PrepareRequest(PrepareRequest&& from) noexcept + : PrepareRequest() { *this = ::std::move(from); } - inline InformationResponse& operator=(const InformationResponse& from) { + inline PrepareRequest& operator=(const PrepareRequest& from) { CopyFrom(from); return *this; } - inline InformationResponse& operator=(InformationResponse&& from) noexcept { + inline PrepareRequest& operator=(PrepareRequest&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3758,156 +3825,134 @@ class InformationResponse final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const InformationResponse& default_instance() { + static const PrepareRequest& default_instance() { return *internal_default_instance(); } - static inline const InformationResponse* internal_default_instance() { - return reinterpret_cast( - &_InformationResponse_default_instance_); + static inline const PrepareRequest* internal_default_instance() { + return reinterpret_cast( + &_PrepareRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 0; - friend void swap(InformationResponse& a, InformationResponse& b) { + friend void swap(PrepareRequest& a, PrepareRequest& b) { a.Swap(&b); } - inline void Swap(InformationResponse* other) { + inline void Swap(PrepareRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(InformationResponse* other) { + void UnsafeArenaSwap(PrepareRequest* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - InformationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PrepareRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const InformationResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const InformationResponse& from) { - InformationResponse::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const PrepareRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const PrepareRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::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, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(InformationResponse* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.InformationResponse"; + return "mavsdk.rpc.camera.PrepareRequest"; } protected: - explicit InformationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PrepareRequest(::google::protobuf::Arena* arena); + PrepareRequest(::google::protobuf::Arena* arena, const PrepareRequest& from); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kInformationFieldNumber = 1, - }; - // .mavsdk.rpc.camera.Information information = 1; - bool has_information() const; - void clear_information() ; - const ::mavsdk::rpc::camera::Information& information() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::camera::Information* release_information(); - ::mavsdk::rpc::camera::Information* mutable_information(); - void set_allocated_information(::mavsdk::rpc::camera::Information* information); - private: - const ::mavsdk::rpc::camera::Information& _internal_information() const; - ::mavsdk::rpc::camera::Information* _internal_mutable_information(); - public: - void unsafe_arena_set_allocated_information( - ::mavsdk::rpc::camera::Information* information); - ::mavsdk::rpc::camera::Information* unsafe_arena_release_information(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.InformationResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.PrepareRequest) private: class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + 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_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::mavsdk::rpc::camera::Information* information_; + + 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 }; - union { Impl_ _impl_; }; friend struct ::TableStruct_camera_2fcamera_2eproto; };// ------------------------------------------------------------------- -class SubscribeModeRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.SubscribeModeRequest) */ { +class Position final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.Position) */ { public: - inline SubscribeModeRequest() : SubscribeModeRequest(nullptr) {} + inline Position() : Position(nullptr) {} + ~Position() override; template - explicit PROTOBUF_CONSTEXPR SubscribeModeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Position(::google::protobuf::internal::ConstantInitialized); - SubscribeModeRequest(const SubscribeModeRequest& from); - SubscribeModeRequest(SubscribeModeRequest&& from) noexcept - : SubscribeModeRequest() { + inline Position(const Position& from) + : Position(nullptr, from) {} + Position(Position&& from) noexcept + : Position() { *this = ::std::move(from); } - inline SubscribeModeRequest& operator=(const SubscribeModeRequest& from) { + inline Position& operator=(const Position& from) { CopyFrom(from); return *this; } - inline SubscribeModeRequest& operator=(SubscribeModeRequest&& from) noexcept { + inline Position& operator=(Position&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() + if (GetArena() == from.GetArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr + && GetArena() != nullptr #endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); @@ -3917,276 +3962,407 @@ class SubscribeModeRequest final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubscribeModeRequest& default_instance() { + static const Position& default_instance() { return *internal_default_instance(); } - static inline const SubscribeModeRequest* internal_default_instance() { - return reinterpret_cast( - &_SubscribeModeRequest_default_instance_); + static inline const Position* internal_default_instance() { + return reinterpret_cast( + &_Position_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 45; - friend void swap(SubscribeModeRequest& a, SubscribeModeRequest& b) { + friend void swap(Position& a, Position& b) { a.Swap(&b); } - inline void Swap(SubscribeModeRequest* other) { + inline void Swap(Position* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubscribeModeRequest* other) { + void UnsafeArenaSwap(Position* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SubscribeModeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const SubscribeModeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + Position* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const SubscribeModeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Position& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const Position& from) { + Position::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(Position* other); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + friend class ::google::protobuf::internal::AnyMetadata; static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.camera.SubscribeModeRequest"; + return "mavsdk.rpc.camera.Position"; } protected: - explicit SubscribeModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Position(::google::protobuf::Arena* arena); + Position(::google::protobuf::Arena* arena, const Position& from); public: static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + const ::google::protobuf::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.camera.SubscribeModeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { + enum : int { + kLatitudeDegFieldNumber = 1, + kLongitudeDegFieldNumber = 2, + kAbsoluteAltitudeMFieldNumber = 3, + kRelativeAltitudeMFieldNumber = 4, }; - friend struct ::TableStruct_camera_2fcamera_2eproto; -};// ------------------------------------------------------------------- + // double latitude_deg = 1; + void clear_latitude_deg() ; + double latitude_deg() const; + void set_latitude_deg(double value); -class ModeResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.ModeResponse) */ { - public: - inline ModeResponse() : ModeResponse(nullptr) {} - ~ModeResponse() override; - template - explicit PROTOBUF_CONSTEXPR ModeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + private: + double _internal_latitude_deg() const; + void _internal_set_latitude_deg(double value); - ModeResponse(const ModeResponse& from); - ModeResponse(ModeResponse&& from) noexcept - : ModeResponse() { - *this = ::std::move(from); - } + public: + // double longitude_deg = 2; + void clear_longitude_deg() ; + double longitude_deg() const; + void set_longitude_deg(double value); - inline ModeResponse& operator=(const ModeResponse& from) { - CopyFrom(from); - return *this; - } - inline ModeResponse& operator=(ModeResponse&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } + 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 relative_altitude_m = 4; + 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.camera.Position) + 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 relative_altitude_m_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_camera_2fcamera_2eproto; +};// ------------------------------------------------------------------- + +class Option final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.camera.Option) */ { + public: + inline Option() : Option(nullptr) {} + ~Option() override; + template + explicit PROTOBUF_CONSTEXPR Option(::google::protobuf::internal::ConstantInitialized); + + inline Option(const Option& from) + : Option(nullptr, from) {} + Option(Option&& from) noexcept + : Option() { + *this = ::std::move(from); + } + + inline Option& operator=(const Option& from) { + CopyFrom(from); + return *this; + } + inline Option& operator=(Option&& 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + 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 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ModeResponse& default_instance() { + static const Option& default_instance() { return *internal_default_instance(); } - static inline const ModeResponse* internal_default_instance() { - return reinterpret_cast( - &_ModeResponse_default_instance_); + static inline const Option* internal_default_instance() { + return reinterpret_cast( + &_Option_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 52; - friend void swap(ModeResponse& a, ModeResponse& b) { + friend void swap(Option& a, Option& b) { a.Swap(&b); } - inline void Swap(ModeResponse* other) { + inline void Swap(Option* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { + if (GetArena() == other->GetArena()) { #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ModeResponse* other) { + void UnsafeArenaSwap(Option* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ModeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Option* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage