diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a057481c57..2018180e75 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -110,6 +110,11 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + android: 'false' + continue-on-error: true - uses: actions/cache@v4 id: cache with: diff --git a/src/mavsdk/core/curl_wrapper.cpp b/src/mavsdk/core/curl_wrapper.cpp index bda281adac..94cf34debb 100644 --- a/src/mavsdk/core/curl_wrapper.cpp +++ b/src/mavsdk/core/curl_wrapper.cpp @@ -29,6 +29,8 @@ bool CurlWrapper::download_text(const std::string& url, std::string& content) curl_easy_setopt(curl.get(), CURLOPT_URL, url.c_str()); curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, write_callback); curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, &readBuffer); + curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, 1L); + curl_easy_setopt(curl.get(), CURLOPT_FOLLOWLOCATION, 1L); res = curl_easy_perform(curl.get()); content = readBuffer; @@ -108,6 +110,8 @@ bool CurlWrapper::download_file_to_path( curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, NULL); curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, fp); curl_easy_setopt(curl.get(), CURLOPT_NOPROGRESS, 0L); + curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, 1L); + curl_easy_setopt(curl.get(), CURLOPT_FOLLOWLOCATION, 1L); res = curl_easy_perform(curl.get()); fclose(fp); diff --git a/src/mavsdk_server/src/generated/action/action.pb.cc b/src/mavsdk_server/src/generated/action/action.pb.cc index 61a9ed2ecf..b28afaa817 100644 --- a/src/mavsdk_server/src/generated/action/action.pb.cc +++ b/src/mavsdk_server/src/generated/action/action.pb.cc @@ -1,17 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: action/action.proto +// Protobuf C++ Version: 5.29.1 #include "action/action.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -23,8 +27,14 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace action { - template -PROTOBUF_CONSTEXPR TransitionToMulticopterRequest::TransitionToMulticopterRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR TransitionToMulticopterRequest::TransitionToMulticopterRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct TransitionToMulticopterRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TransitionToMulticopterRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransitionToMulticopterRequestDefaultTypeInternal() {} @@ -35,8 +45,14 @@ struct TransitionToMulticopterRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToMulticopterRequestDefaultTypeInternal _TransitionToMulticopterRequest_default_instance_; - template -PROTOBUF_CONSTEXPR TransitionToFixedwingRequest::TransitionToFixedwingRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR TransitionToFixedwingRequest::TransitionToFixedwingRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct TransitionToFixedwingRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TransitionToFixedwingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransitionToFixedwingRequestDefaultTypeInternal() {} @@ -47,8 +63,14 @@ struct TransitionToFixedwingRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToFixedwingRequestDefaultTypeInternal _TransitionToFixedwingRequest_default_instance_; - template -PROTOBUF_CONSTEXPR TerminateRequest::TerminateRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR TerminateRequest::TerminateRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct TerminateRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TerminateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TerminateRequestDefaultTypeInternal() {} @@ -59,8 +81,14 @@ struct TerminateRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateRequestDefaultTypeInternal _TerminateRequest_default_instance_; - template -PROTOBUF_CONSTEXPR TakeoffRequest::TakeoffRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR TakeoffRequest::TakeoffRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct TakeoffRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakeoffRequestDefaultTypeInternal() {} @@ -71,8 +99,14 @@ struct TakeoffRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffRequestDefaultTypeInternal _TakeoffRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ShutdownRequest::ShutdownRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR ShutdownRequest::ShutdownRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ShutdownRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ShutdownRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ShutdownRequestDefaultTypeInternal() {} @@ -91,7 +125,13 @@ inline constexpr SetTakeoffAltitudeRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetTakeoffAltitudeRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetTakeoffAltitudeRequestDefaultTypeInternal() {} @@ -110,7 +150,13 @@ inline constexpr SetReturnToLaunchAltitudeRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetReturnToLaunchAltitudeRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetReturnToLaunchAltitudeRequestDefaultTypeInternal() {} @@ -129,7 +175,13 @@ inline constexpr SetCurrentSpeedRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetCurrentSpeedRequest::SetCurrentSpeedRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetCurrentSpeedRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SetCurrentSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetCurrentSpeedRequestDefaultTypeInternal() {} @@ -149,7 +201,13 @@ inline constexpr SetActuatorRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetActuatorRequest::SetActuatorRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetActuatorRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SetActuatorRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetActuatorRequestDefaultTypeInternal() {} @@ -160,8 +218,14 @@ struct SetActuatorRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetActuatorRequestDefaultTypeInternal _SetActuatorRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ReturnToLaunchRequest::ReturnToLaunchRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR ReturnToLaunchRequest::ReturnToLaunchRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ReturnToLaunchRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ReturnToLaunchRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ReturnToLaunchRequestDefaultTypeInternal() {} @@ -172,8 +236,14 @@ struct ReturnToLaunchRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReturnToLaunchRequestDefaultTypeInternal _ReturnToLaunchRequest_default_instance_; - template -PROTOBUF_CONSTEXPR RebootRequest::RebootRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR RebootRequest::RebootRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct RebootRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR RebootRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RebootRequestDefaultTypeInternal() {} @@ -184,8 +254,14 @@ struct RebootRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootRequestDefaultTypeInternal _RebootRequest_default_instance_; - template -PROTOBUF_CONSTEXPR LandRequest::LandRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR LandRequest::LandRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct LandRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR LandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~LandRequestDefaultTypeInternal() {} @@ -196,8 +272,14 @@ struct LandRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandRequestDefaultTypeInternal _LandRequest_default_instance_; - template -PROTOBUF_CONSTEXPR KillRequest::KillRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR KillRequest::KillRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct KillRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR KillRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~KillRequestDefaultTypeInternal() {} @@ -208,8 +290,14 @@ struct KillRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KillRequestDefaultTypeInternal _KillRequest_default_instance_; - template -PROTOBUF_CONSTEXPR HoldRequest::HoldRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR HoldRequest::HoldRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct HoldRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR HoldRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~HoldRequestDefaultTypeInternal() {} @@ -231,7 +319,13 @@ inline constexpr GotoLocationRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR GotoLocationRequest::GotoLocationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GotoLocationRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GotoLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GotoLocationRequestDefaultTypeInternal() {} @@ -242,8 +336,14 @@ struct GotoLocationRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GotoLocationRequestDefaultTypeInternal _GotoLocationRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct GetTakeoffAltitudeRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetTakeoffAltitudeRequestDefaultTypeInternal() {} @@ -254,8 +354,14 @@ struct GetTakeoffAltitudeRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTakeoffAltitudeRequestDefaultTypeInternal _GetTakeoffAltitudeRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct GetReturnToLaunchAltitudeRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetReturnToLaunchAltitudeRequestDefaultTypeInternal() {} @@ -279,7 +385,13 @@ inline constexpr DoOrbitRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR DoOrbitRequest::DoOrbitRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct DoOrbitRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR DoOrbitRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DoOrbitRequestDefaultTypeInternal() {} @@ -290,8 +402,14 @@ struct DoOrbitRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoOrbitRequestDefaultTypeInternal _DoOrbitRequest_default_instance_; - template -PROTOBUF_CONSTEXPR DisarmRequest::DisarmRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR DisarmRequest::DisarmRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct DisarmRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR DisarmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DisarmRequestDefaultTypeInternal() {} @@ -302,8 +420,14 @@ struct DisarmRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisarmRequestDefaultTypeInternal _DisarmRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ArmRequest::ArmRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR ArmRequest::ArmRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ArmRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ArmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmRequestDefaultTypeInternal() {} @@ -314,8 +438,14 @@ struct ArmRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmRequestDefaultTypeInternal _ArmRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ArmForceRequest::ArmForceRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR ArmForceRequest::ArmForceRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ArmForceRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ArmForceRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmForceRequestDefaultTypeInternal() {} @@ -337,7 +467,13 @@ inline constexpr ActionResult::Impl_::Impl_( template PROTOBUF_CONSTEXPR ActionResult::ActionResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ActionResultDefaultTypeInternal { PROTOBUF_CONSTEXPR ActionResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ActionResultDefaultTypeInternal() {} @@ -356,7 +492,13 @@ inline constexpr TransitionToMulticopterResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR TransitionToMulticopterResponse::TransitionToMulticopterResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TransitionToMulticopterResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TransitionToMulticopterResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransitionToMulticopterResponseDefaultTypeInternal() {} @@ -375,7 +517,13 @@ inline constexpr TransitionToFixedwingResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR TransitionToFixedwingResponse::TransitionToFixedwingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TransitionToFixedwingResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TransitionToFixedwingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransitionToFixedwingResponseDefaultTypeInternal() {} @@ -394,7 +542,13 @@ inline constexpr TerminateResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR TerminateResponse::TerminateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TerminateResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TerminateResponseDefaultTypeInternal() {} @@ -413,7 +567,13 @@ inline constexpr TakeoffResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR TakeoffResponse::TakeoffResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TakeoffResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakeoffResponseDefaultTypeInternal() {} @@ -432,7 +592,13 @@ inline constexpr ShutdownResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ShutdownResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ShutdownResponseDefaultTypeInternal() {} @@ -451,7 +617,13 @@ inline constexpr SetTakeoffAltitudeResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetTakeoffAltitudeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetTakeoffAltitudeResponseDefaultTypeInternal() {} @@ -470,7 +642,13 @@ inline constexpr SetReturnToLaunchAltitudeResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetReturnToLaunchAltitudeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetReturnToLaunchAltitudeResponseDefaultTypeInternal() {} @@ -489,7 +667,13 @@ inline constexpr SetCurrentSpeedResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetCurrentSpeedResponse::SetCurrentSpeedResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetCurrentSpeedResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetCurrentSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetCurrentSpeedResponseDefaultTypeInternal() {} @@ -508,7 +692,13 @@ inline constexpr SetActuatorResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetActuatorResponse::SetActuatorResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetActuatorResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetActuatorResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetActuatorResponseDefaultTypeInternal() {} @@ -527,7 +717,13 @@ inline constexpr ReturnToLaunchResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ReturnToLaunchResponse::ReturnToLaunchResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ReturnToLaunchResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ReturnToLaunchResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ReturnToLaunchResponseDefaultTypeInternal() {} @@ -546,7 +742,13 @@ inline constexpr RebootResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR RebootResponse::RebootResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct RebootResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RebootResponseDefaultTypeInternal() {} @@ -565,7 +767,13 @@ inline constexpr LandResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR LandResponse::LandResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct LandResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~LandResponseDefaultTypeInternal() {} @@ -584,7 +792,13 @@ inline constexpr KillResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR KillResponse::KillResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct KillResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR KillResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~KillResponseDefaultTypeInternal() {} @@ -603,7 +817,13 @@ inline constexpr HoldResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR HoldResponse::HoldResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct HoldResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR HoldResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~HoldResponseDefaultTypeInternal() {} @@ -622,7 +842,13 @@ inline constexpr GotoLocationResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GotoLocationResponse::GotoLocationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GotoLocationResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GotoLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GotoLocationResponseDefaultTypeInternal() {} @@ -642,7 +868,13 @@ inline constexpr GetTakeoffAltitudeResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetTakeoffAltitudeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetTakeoffAltitudeResponseDefaultTypeInternal() {} @@ -662,7 +894,13 @@ inline constexpr GetReturnToLaunchAltitudeResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetReturnToLaunchAltitudeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetReturnToLaunchAltitudeResponseDefaultTypeInternal() {} @@ -681,7 +919,13 @@ inline constexpr DoOrbitResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR DoOrbitResponse::DoOrbitResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct DoOrbitResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR DoOrbitResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DoOrbitResponseDefaultTypeInternal() {} @@ -700,7 +944,13 @@ inline constexpr DisarmResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR DisarmResponse::DisarmResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct DisarmResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR DisarmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DisarmResponseDefaultTypeInternal() {} @@ -719,7 +969,13 @@ inline constexpr ArmResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ArmResponse::ArmResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ArmResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ArmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmResponseDefaultTypeInternal() {} @@ -738,7 +994,13 @@ inline constexpr ArmForceResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ArmForceResponse::ArmForceResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ArmForceResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ArmForceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmForceResponseDefaultTypeInternal() {} @@ -752,423 +1014,423 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT } // namespace action } // namespace rpc } // namespace mavsdk -static ::_pb::Metadata file_level_metadata_action_2faction_2eproto[43]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_action_2faction_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_action_2faction_2eproto = nullptr; -const ::uint32_t TableStruct_action_2faction_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.latitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.longitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.absolute_altitude_m_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.yaw_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.radius_m_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.velocity_ms_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.yaw_behavior_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.latitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.longitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.absolute_altitude_m_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _impl_.index_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_.action_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_.altitude_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeRequest, _impl_.altitude_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_.action_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedRequest, _impl_.speed_m_s_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _impl_.result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _impl_.result_str_), +const ::uint32_t + TableStruct_action_2faction_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmForceResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.latitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.longitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.absolute_altitude_m_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.yaw_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.radius_m_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.velocity_ms_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.yaw_behavior_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.latitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.longitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.absolute_altitude_m_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _impl_.index_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_.action_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_.altitude_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeRequest, _impl_.altitude_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_.action_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedRequest, _impl_.speed_m_s_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _impl_.result_str_), }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::mavsdk::rpc::action::ArmRequest)}, {8, 17, -1, sizeof(::mavsdk::rpc::action::ArmResponse)}, {18, -1, -1, sizeof(::mavsdk::rpc::action::ArmForceRequest)}, @@ -1213,7 +1475,6 @@ static const ::_pbi::MigrationSchema {387, 396, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedResponse)}, {397, -1, -1, sizeof(::mavsdk::rpc::action::ActionResult)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::action::_ArmRequest_default_instance_._instance, &::mavsdk::rpc::action::_ArmResponse_default_instance_._instance, @@ -1259,7 +1520,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::action::_SetCurrentSpeedResponse_default_instance_._instance, &::mavsdk::rpc::action::_ActionResult_default_instance_._instance, }; -const char descriptor_table_protodef_action_2faction_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_action_2faction_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\023action/action.proto\022\021mavsdk.rpc.action" "\032\024mavsdk_options.proto\"\014\n\nArmRequest\"E\n\013" "ArmResponse\0226\n\raction_result\030\001 \001(\0132\037.mav" @@ -1405,7 +1667,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_action_2faction_2ep &::descriptor_table_mavsdk_5foptions_2eproto, }; static ::absl::once_flag descriptor_table_action_2faction_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_action_2faction_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_action_2faction_2eproto = { false, false, 5554, @@ -1418,28 +1680,9 @@ const ::_pbi::DescriptorTable descriptor_table_action_2faction_2eproto = { schemas, file_default_instances, TableStruct_action_2faction_2eproto::offsets, - file_level_metadata_action_2faction_2eproto, file_level_enum_descriptors_action_2faction_2eproto, file_level_service_descriptors_action_2faction_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_action_2faction_2eproto_getter() { - return &descriptor_table_action_2faction_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_action_2faction_2eproto(&descriptor_table_action_2faction_2eproto); namespace mavsdk { namespace rpc { namespace action { @@ -1492,13 +1735,21 @@ class ArmRequest::_Internal { }; ArmRequest::ArmRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmRequest) } ArmRequest::ArmRequest( ::google::protobuf::Arena* arena, const ArmRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ArmRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1507,6 +1758,68 @@ ArmRequest::ArmRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmRequest) } +inline void* ArmRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ArmRequest(arena); +} +constexpr auto ArmRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ArmRequest), + alignof(ArmRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ArmRequest::ByteSizeLong, + &ArmRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmRequest, _impl_._cached_size_), + false, + }, + &ArmRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ArmRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ArmRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -1516,50 +1829,50 @@ ArmRequest::ArmRequest( ::google::protobuf::Metadata ArmRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[0]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ArmResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const ArmResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& ArmResponse::_Internal::action_result(const ArmResponse* msg) { - return *msg->_impl_.action_result_; -} ArmResponse::ArmResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmResponse) } inline PROTOBUF_NDEBUG_INLINE ArmResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::ArmResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ArmResponse::ArmResponse( ::google::protobuf::Arena* arena, const ArmResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ArmResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmResponse) } @@ -1574,38 +1887,51 @@ inline void ArmResponse::SharedCtor(::_pb::Arena* arena) { } ArmResponse::~ArmResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ArmResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ArmResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ArmResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ArmResponse::SharedDtor(MessageLite& self) { + ArmResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* ArmResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ArmResponse(arena); +} +constexpr auto ArmResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ArmResponse), + alignof(ArmResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ArmResponse::ByteSizeLong, + &ArmResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_._cached_size_), + false, + }, + &ArmResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ArmResponse::_table_ = { { @@ -1618,8 +1944,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ArmResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ArmResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ArmResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -1636,68 +1966,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ArmResponse::_table_ = { }}, }; -::uint8_t* ArmResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ArmResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ArmResponse) - return target; -} - -::size_t ArmResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ArmResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ArmResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ArmResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmResponse::_class_data_ = { - ArmResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ArmResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ArmResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ArmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ArmResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ArmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ArmResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ArmResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ArmResponse::ByteSizeLong(const MessageLite& base) { + const ArmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ArmResponse::ByteSizeLong() const { + const ArmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ArmResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ArmResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ArmResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1708,13 +2070,7 @@ void ArmResponse::CopyFrom(const ArmResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ArmResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ArmResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ArmResponse::InternalSwap(ArmResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1723,9 +2079,7 @@ void ArmResponse::InternalSwap(ArmResponse* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1734,13 +2088,21 @@ class ArmForceRequest::_Internal { }; ArmForceRequest::ArmForceRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmForceRequest) } ArmForceRequest::ArmForceRequest( ::google::protobuf::Arena* arena, const ArmForceRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ArmForceRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1749,6 +2111,68 @@ ArmForceRequest::ArmForceRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmForceRequest) } +inline void* ArmForceRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ArmForceRequest(arena); +} +constexpr auto ArmForceRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ArmForceRequest), + alignof(ArmForceRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmForceRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmForceRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmForceRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmForceRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ArmForceRequest::ByteSizeLong, + &ArmForceRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmForceRequest, _impl_._cached_size_), + false, + }, + &ArmForceRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmForceRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ArmForceRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ArmForceRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -1758,50 +2182,50 @@ ArmForceRequest::ArmForceRequest( ::google::protobuf::Metadata ArmForceRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[2]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ArmForceResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const ArmForceResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& ArmForceResponse::_Internal::action_result(const ArmForceResponse* msg) { - return *msg->_impl_.action_result_; -} ArmForceResponse::ArmForceResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmForceResponse) } inline PROTOBUF_NDEBUG_INLINE ArmForceResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::ArmForceResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ArmForceResponse::ArmForceResponse( ::google::protobuf::Arena* arena, const ArmForceResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ArmForceResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmForceResponse) } @@ -1816,38 +2240,51 @@ inline void ArmForceResponse::SharedCtor(::_pb::Arena* arena) { } ArmForceResponse::~ArmForceResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ArmForceResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmForceResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmForceResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ArmForceResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void ArmForceResponse::SharedDtor(MessageLite& self) { + ArmForceResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* ArmForceResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ArmForceResponse(arena); +} +constexpr auto ArmForceResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ArmForceResponse), + alignof(ArmForceResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmForceResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmForceResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmForceResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmForceResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ArmForceResponse::ByteSizeLong, + &ArmForceResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmForceResponse, _impl_._cached_size_), + false, + }, + &ArmForceResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmForceResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* ArmForceResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ArmForceResponse::_table_ = { { @@ -1860,8 +2297,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ArmForceResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ArmForceResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ArmForceResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -1878,68 +2319,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ArmForceResponse::_table_ = { }}, }; -::uint8_t* ArmForceResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ArmForceResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ArmForceResponse) - return target; -} - -::size_t ArmForceResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ArmForceResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ArmForceResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ArmForceResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmForceResponse::_class_data_ = { - ArmForceResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmForceResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ArmForceResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ArmForceResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ArmForceResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ArmForceResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ArmForceResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ArmForceResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ArmForceResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ArmForceResponse::ByteSizeLong(const MessageLite& base) { + const ArmForceResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ArmForceResponse::ByteSizeLong() const { + const ArmForceResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ArmForceResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ArmForceResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ArmForceResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1950,13 +2423,7 @@ void ArmForceResponse::CopyFrom(const ArmForceResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ArmForceResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ArmForceResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ArmForceResponse::InternalSwap(ArmForceResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1965,9 +2432,7 @@ void ArmForceResponse::InternalSwap(ArmForceResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata ArmForceResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[3]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1976,13 +2441,21 @@ class DisarmRequest::_Internal { }; DisarmRequest::DisarmRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DisarmRequest) } DisarmRequest::DisarmRequest( ::google::protobuf::Arena* arena, const DisarmRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE DisarmRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1991,6 +2464,68 @@ DisarmRequest::DisarmRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DisarmRequest) } +inline void* DisarmRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) DisarmRequest(arena); +} +constexpr auto DisarmRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(DisarmRequest), + alignof(DisarmRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull DisarmRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_DisarmRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DisarmRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DisarmRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &DisarmRequest::ByteSizeLong, + &DisarmRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DisarmRequest, _impl_._cached_size_), + false, + }, + &DisarmRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* DisarmRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> DisarmRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::DisarmRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -2000,50 +2535,50 @@ DisarmRequest::DisarmRequest( ::google::protobuf::Metadata DisarmRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[4]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class DisarmResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const DisarmResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& DisarmResponse::_Internal::action_result(const DisarmResponse* msg) { - return *msg->_impl_.action_result_; -} DisarmResponse::DisarmResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DisarmResponse) } inline PROTOBUF_NDEBUG_INLINE DisarmResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::DisarmResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} DisarmResponse::DisarmResponse( ::google::protobuf::Arena* arena, const DisarmResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE DisarmResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DisarmResponse) } @@ -2058,38 +2593,51 @@ inline void DisarmResponse::SharedCtor(::_pb::Arena* arena) { } DisarmResponse::~DisarmResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.DisarmResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void DisarmResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void DisarmResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DisarmResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DisarmResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void DisarmResponse::SharedDtor(MessageLite& self) { + DisarmResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* DisarmResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) DisarmResponse(arena); +} +constexpr auto DisarmResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(DisarmResponse), + alignof(DisarmResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull DisarmResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_DisarmResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DisarmResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DisarmResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &DisarmResponse::ByteSizeLong, + &DisarmResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_._cached_size_), + false, + }, + &DisarmResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* DisarmResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DisarmResponse::_table_ = { { @@ -2102,8 +2650,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DisarmResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_DisarmResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::DisarmResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -2120,68 +2672,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DisarmResponse::_table_ = { }}, }; -::uint8_t* DisarmResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DisarmResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DisarmResponse) - return target; -} - -::size_t DisarmResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DisarmResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void DisarmResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DisarmResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData DisarmResponse::_class_data_ = { - DisarmResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* DisarmResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void DisarmResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* DisarmResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const DisarmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* DisarmResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const DisarmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DisarmResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DisarmResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t DisarmResponse::ByteSizeLong(const MessageLite& base) { + const DisarmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t DisarmResponse::ByteSizeLong() const { + const DisarmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DisarmResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void DisarmResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DisarmResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2192,13 +2776,7 @@ void DisarmResponse::CopyFrom(const DisarmResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DisarmResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* DisarmResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void DisarmResponse::InternalSwap(DisarmResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2207,9 +2785,7 @@ void DisarmResponse::InternalSwap(DisarmResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata DisarmResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[5]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2218,13 +2794,21 @@ class TakeoffRequest::_Internal { }; TakeoffRequest::TakeoffRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TakeoffRequest) } TakeoffRequest::TakeoffRequest( ::google::protobuf::Arena* arena, const TakeoffRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TakeoffRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2233,6 +2817,68 @@ TakeoffRequest::TakeoffRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TakeoffRequest) } +inline void* TakeoffRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TakeoffRequest(arena); +} +constexpr auto TakeoffRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TakeoffRequest), + alignof(TakeoffRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TakeoffRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TakeoffRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TakeoffRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TakeoffRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &TakeoffRequest::ByteSizeLong, + &TakeoffRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TakeoffRequest, _impl_._cached_size_), + false, + }, + &TakeoffRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TakeoffRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> TakeoffRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TakeoffRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -2242,50 +2888,50 @@ TakeoffRequest::TakeoffRequest( ::google::protobuf::Metadata TakeoffRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[6]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TakeoffResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const TakeoffResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::_Internal::action_result(const TakeoffResponse* msg) { - return *msg->_impl_.action_result_; -} TakeoffResponse::TakeoffResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TakeoffResponse) } inline PROTOBUF_NDEBUG_INLINE TakeoffResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::TakeoffResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TakeoffResponse::TakeoffResponse( ::google::protobuf::Arena* arena, const TakeoffResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TakeoffResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TakeoffResponse) } @@ -2300,38 +2946,51 @@ inline void TakeoffResponse::SharedCtor(::_pb::Arena* arena) { } TakeoffResponse::~TakeoffResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TakeoffResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); +} +inline void TakeoffResponse::SharedDtor(MessageLite& self) { + TakeoffResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* TakeoffResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TakeoffResponse(arena); +} +constexpr auto TakeoffResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TakeoffResponse), + alignof(TakeoffResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TakeoffResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TakeoffResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TakeoffResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TakeoffResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TakeoffResponse::ByteSizeLong, + &TakeoffResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._cached_size_), + false, + }, + &TakeoffResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TakeoffResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } -inline void TakeoffResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TakeoffResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TakeoffResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TakeoffResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TakeoffResponse::_table_ = { { @@ -2344,8 +3003,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TakeoffResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TakeoffResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TakeoffResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -2362,68 +3025,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TakeoffResponse::_table_ = { }}, }; -::uint8_t* TakeoffResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TakeoffResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TakeoffResponse) - return target; -} - -::size_t TakeoffResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TakeoffResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TakeoffResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TakeoffResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TakeoffResponse::_class_data_ = { - TakeoffResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TakeoffResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TakeoffResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TakeoffResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TakeoffResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TakeoffResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TakeoffResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TakeoffResponse::ByteSizeLong(const MessageLite& base) { + const TakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TakeoffResponse::ByteSizeLong() const { + const TakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TakeoffResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TakeoffResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TakeoffResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2434,13 +3129,7 @@ void TakeoffResponse::CopyFrom(const TakeoffResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TakeoffResponse::IsInitialized() const { - return true; -} -::_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_); @@ -2449,9 +3138,7 @@ void TakeoffResponse::InternalSwap(TakeoffResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata TakeoffResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[7]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2460,13 +3147,21 @@ class LandRequest::_Internal { }; LandRequest::LandRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.LandRequest) } LandRequest::LandRequest( ::google::protobuf::Arena* arena, const LandRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE LandRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2475,6 +3170,68 @@ LandRequest::LandRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.LandRequest) } +inline void* LandRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) LandRequest(arena); +} +constexpr auto LandRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(LandRequest), + alignof(LandRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull LandRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_LandRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LandRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LandRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &LandRequest::ByteSizeLong, + &LandRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LandRequest, _impl_._cached_size_), + false, + }, + &LandRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* LandRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> LandRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::LandRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -2484,50 +3241,50 @@ LandRequest::LandRequest( ::google::protobuf::Metadata LandRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[8]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class LandResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const LandResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& LandResponse::_Internal::action_result(const LandResponse* msg) { - return *msg->_impl_.action_result_; -} LandResponse::LandResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.LandResponse) } inline PROTOBUF_NDEBUG_INLINE LandResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::LandResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} LandResponse::LandResponse( ::google::protobuf::Arena* arena, const LandResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE LandResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.LandResponse) } @@ -2542,38 +3299,51 @@ inline void LandResponse::SharedCtor(::_pb::Arena* arena) { } LandResponse::~LandResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.LandResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void LandResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); + SharedDtor(*this); +} +inline void LandResponse::SharedDtor(MessageLite& self) { + LandResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* LandResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) LandResponse(arena); +} +constexpr auto LandResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(LandResponse), + alignof(LandResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull LandResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_LandResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LandResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LandResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &LandResponse::ByteSizeLong, + &LandResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._cached_size_), + false, + }, + &LandResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* LandResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -PROTOBUF_NOINLINE void LandResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.LandResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LandResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> LandResponse::_table_ = { { @@ -2586,8 +3356,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> LandResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_LandResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::LandResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -2604,68 +3378,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> LandResponse::_table_ = { }}, }; -::uint8_t* LandResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.LandResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.LandResponse) - return target; -} - -::size_t LandResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.LandResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void LandResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.LandResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData LandResponse::_class_data_ = { - LandResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* LandResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void LandResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* LandResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const LandResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* LandResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const LandResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.LandResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.LandResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t LandResponse::ByteSizeLong(const MessageLite& base) { + const LandResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t LandResponse::ByteSizeLong() const { + const LandResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.LandResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void LandResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.LandResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2676,13 +3482,7 @@ void LandResponse::CopyFrom(const LandResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LandResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* LandResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void LandResponse::InternalSwap(LandResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2691,9 +3491,7 @@ void LandResponse::InternalSwap(LandResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata LandResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[9]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2702,13 +3500,21 @@ class RebootRequest::_Internal { }; RebootRequest::RebootRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.RebootRequest) } RebootRequest::RebootRequest( ::google::protobuf::Arena* arena, const RebootRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE RebootRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2717,6 +3523,68 @@ RebootRequest::RebootRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.RebootRequest) } +inline void* RebootRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) RebootRequest(arena); +} +constexpr auto RebootRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RebootRequest), + alignof(RebootRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull RebootRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_RebootRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RebootRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RebootRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &RebootRequest::ByteSizeLong, + &RebootRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RebootRequest, _impl_._cached_size_), + false, + }, + &RebootRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* RebootRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> RebootRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::RebootRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -2726,50 +3594,50 @@ RebootRequest::RebootRequest( ::google::protobuf::Metadata RebootRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[10]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class RebootResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const RebootResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& RebootResponse::_Internal::action_result(const RebootResponse* msg) { - return *msg->_impl_.action_result_; -} RebootResponse::RebootResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.RebootResponse) } inline PROTOBUF_NDEBUG_INLINE RebootResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::RebootResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} RebootResponse::RebootResponse( ::google::protobuf::Arena* arena, const RebootResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE RebootResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.RebootResponse) } @@ -2784,38 +3652,51 @@ inline void RebootResponse::SharedCtor(::_pb::Arena* arena) { } RebootResponse::~RebootResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.RebootResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void RebootResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); + SharedDtor(*this); +} +inline void RebootResponse::SharedDtor(MessageLite& self) { + RebootResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* RebootResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) RebootResponse(arena); +} +constexpr auto RebootResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RebootResponse), + alignof(RebootResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull RebootResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_RebootResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RebootResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RebootResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RebootResponse::ByteSizeLong, + &RebootResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._cached_size_), + false, + }, + &RebootResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* RebootResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -PROTOBUF_NOINLINE void RebootResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.RebootResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RebootResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RebootResponse::_table_ = { { @@ -2828,8 +3709,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RebootResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_RebootResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::RebootResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -2846,68 +3731,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RebootResponse::_table_ = { }}, }; -::uint8_t* RebootResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.RebootResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.RebootResponse) - return target; -} - -::size_t RebootResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.RebootResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void RebootResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.RebootResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData RebootResponse::_class_data_ = { - RebootResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* RebootResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void RebootResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* RebootResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const RebootResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* RebootResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const RebootResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.RebootResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.RebootResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t RebootResponse::ByteSizeLong(const MessageLite& base) { + const RebootResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t RebootResponse::ByteSizeLong() const { + const RebootResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.RebootResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void RebootResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.RebootResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2918,13 +3835,7 @@ void RebootResponse::CopyFrom(const RebootResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RebootResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* RebootResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void RebootResponse::InternalSwap(RebootResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2933,9 +3844,7 @@ void RebootResponse::InternalSwap(RebootResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata RebootResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[11]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2944,13 +3853,21 @@ class ShutdownRequest::_Internal { }; ShutdownRequest::ShutdownRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ShutdownRequest) } ShutdownRequest::ShutdownRequest( ::google::protobuf::Arena* arena, const ShutdownRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ShutdownRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2959,6 +3876,68 @@ ShutdownRequest::ShutdownRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ShutdownRequest) } +inline void* ShutdownRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ShutdownRequest(arena); +} +constexpr auto ShutdownRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShutdownRequest), + alignof(ShutdownRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ShutdownRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ShutdownRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShutdownRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShutdownRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ShutdownRequest::ByteSizeLong, + &ShutdownRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShutdownRequest, _impl_._cached_size_), + false, + }, + &ShutdownRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ShutdownRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ShutdownRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ShutdownRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -2968,50 +3947,50 @@ ShutdownRequest::ShutdownRequest( ::google::protobuf::Metadata ShutdownRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[12]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ShutdownResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const ShutdownResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::_Internal::action_result(const ShutdownResponse* msg) { - return *msg->_impl_.action_result_; -} ShutdownResponse::ShutdownResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ShutdownResponse) } inline PROTOBUF_NDEBUG_INLINE ShutdownResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::ShutdownResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ShutdownResponse::ShutdownResponse( ::google::protobuf::Arena* arena, const ShutdownResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ShutdownResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ShutdownResponse) } @@ -3026,38 +4005,51 @@ inline void ShutdownResponse::SharedCtor(::_pb::Arena* arena) { } ShutdownResponse::~ShutdownResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ShutdownResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ShutdownResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); + SharedDtor(*this); +} +inline void ShutdownResponse::SharedDtor(MessageLite& self) { + ShutdownResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* ShutdownResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ShutdownResponse(arena); +} +constexpr auto ShutdownResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShutdownResponse), + alignof(ShutdownResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ShutdownResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ShutdownResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShutdownResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShutdownResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShutdownResponse::ByteSizeLong, + &ShutdownResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._cached_size_), + false, + }, + &ShutdownResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ShutdownResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -PROTOBUF_NOINLINE void ShutdownResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ShutdownResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ShutdownResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ShutdownResponse::_table_ = { { @@ -3070,8 +4062,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ShutdownResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ShutdownResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ShutdownResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -3088,68 +4084,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ShutdownResponse::_table_ = { }}, }; -::uint8_t* ShutdownResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ShutdownResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ShutdownResponse) - return target; -} - -::size_t ShutdownResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ShutdownResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ShutdownResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ShutdownResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ShutdownResponse::_class_data_ = { - ShutdownResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ShutdownResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ShutdownResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ShutdownResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ShutdownResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ShutdownResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ShutdownResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ShutdownResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ShutdownResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ShutdownResponse::ByteSizeLong(const MessageLite& base) { + const ShutdownResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ShutdownResponse::ByteSizeLong() const { + const ShutdownResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ShutdownResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ShutdownResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ShutdownResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3160,13 +4188,7 @@ void ShutdownResponse::CopyFrom(const ShutdownResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ShutdownResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ShutdownResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ShutdownResponse::InternalSwap(ShutdownResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -3175,9 +4197,7 @@ void ShutdownResponse::InternalSwap(ShutdownResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata ShutdownResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[13]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -3186,13 +4206,21 @@ class TerminateRequest::_Internal { }; TerminateRequest::TerminateRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TerminateRequest) } TerminateRequest::TerminateRequest( ::google::protobuf::Arena* arena, const TerminateRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TerminateRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -3201,6 +4229,68 @@ TerminateRequest::TerminateRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TerminateRequest) } +inline void* TerminateRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TerminateRequest(arena); +} +constexpr auto TerminateRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TerminateRequest), + alignof(TerminateRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TerminateRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TerminateRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TerminateRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TerminateRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &TerminateRequest::ByteSizeLong, + &TerminateRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TerminateRequest, _impl_._cached_size_), + false, + }, + &TerminateRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TerminateRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> TerminateRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TerminateRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -3210,50 +4300,50 @@ TerminateRequest::TerminateRequest( ::google::protobuf::Metadata TerminateRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[14]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TerminateResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const TerminateResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& TerminateResponse::_Internal::action_result(const TerminateResponse* msg) { - return *msg->_impl_.action_result_; -} TerminateResponse::TerminateResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TerminateResponse) } inline PROTOBUF_NDEBUG_INLINE TerminateResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::TerminateResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TerminateResponse::TerminateResponse( ::google::protobuf::Arena* arena, const TerminateResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TerminateResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TerminateResponse) } @@ -3268,38 +4358,51 @@ inline void TerminateResponse::SharedCtor(::_pb::Arena* arena) { } TerminateResponse::~TerminateResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TerminateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TerminateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TerminateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TerminateResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void TerminateResponse::SharedDtor(MessageLite& self) { + TerminateResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* TerminateResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TerminateResponse(arena); +} +constexpr auto TerminateResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TerminateResponse), + alignof(TerminateResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TerminateResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TerminateResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TerminateResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TerminateResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TerminateResponse::ByteSizeLong, + &TerminateResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._cached_size_), + false, + }, + &TerminateResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TerminateResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* TerminateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TerminateResponse::_table_ = { { @@ -3312,8 +4415,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TerminateResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TerminateResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TerminateResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -3330,68 +4437,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TerminateResponse::_table_ = { }}, }; -::uint8_t* TerminateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TerminateResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TerminateResponse) - return target; -} - -::size_t TerminateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TerminateResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TerminateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TerminateResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TerminateResponse::_class_data_ = { - TerminateResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TerminateResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TerminateResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TerminateResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TerminateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TerminateResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TerminateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TerminateResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TerminateResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TerminateResponse::ByteSizeLong(const MessageLite& base) { + const TerminateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TerminateResponse::ByteSizeLong() const { + const TerminateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TerminateResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TerminateResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TerminateResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3402,13 +4541,7 @@ void TerminateResponse::CopyFrom(const TerminateResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TerminateResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* TerminateResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TerminateResponse::InternalSwap(TerminateResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -3417,9 +4550,7 @@ void TerminateResponse::InternalSwap(TerminateResponse* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata TerminateResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[15]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -3428,13 +4559,21 @@ class KillRequest::_Internal { }; KillRequest::KillRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.KillRequest) } KillRequest::KillRequest( ::google::protobuf::Arena* arena, const KillRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE KillRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -3443,6 +4582,68 @@ KillRequest::KillRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.KillRequest) } +inline void* KillRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) KillRequest(arena); +} +constexpr auto KillRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(KillRequest), + alignof(KillRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull KillRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_KillRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &KillRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &KillRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &KillRequest::ByteSizeLong, + &KillRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(KillRequest, _impl_._cached_size_), + false, + }, + &KillRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* KillRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> KillRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::KillRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -3452,50 +4653,50 @@ KillRequest::KillRequest( ::google::protobuf::Metadata KillRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[16]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class KillResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(KillResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const KillResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(KillResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& KillResponse::_Internal::action_result(const KillResponse* msg) { - return *msg->_impl_.action_result_; -} KillResponse::KillResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.KillResponse) } inline PROTOBUF_NDEBUG_INLINE KillResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::KillResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} KillResponse::KillResponse( ::google::protobuf::Arena* arena, const KillResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE KillResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.KillResponse) } @@ -3510,38 +4711,51 @@ inline void KillResponse::SharedCtor(::_pb::Arena* arena) { } KillResponse::~KillResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.KillResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void KillResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void KillResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.KillResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* KillResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void KillResponse::SharedDtor(MessageLite& self) { + KillResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* KillResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) KillResponse(arena); +} +constexpr auto KillResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(KillResponse), + alignof(KillResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull KillResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_KillResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &KillResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &KillResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &KillResponse::ByteSizeLong, + &KillResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(KillResponse, _impl_._cached_size_), + false, + }, + &KillResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* KillResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> KillResponse::_table_ = { { @@ -3554,8 +4768,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> KillResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_KillResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::KillResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -3572,68 +4790,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> KillResponse::_table_ = { }}, }; -::uint8_t* KillResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.KillResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.KillResponse) - return target; -} - -::size_t KillResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.KillResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void KillResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.KillResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData KillResponse::_class_data_ = { - KillResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* KillResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void KillResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* KillResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const KillResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* KillResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const KillResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.KillResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.KillResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t KillResponse::ByteSizeLong(const MessageLite& base) { + const KillResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t KillResponse::ByteSizeLong() const { + const KillResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.KillResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void KillResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.KillResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3644,13 +4894,7 @@ void KillResponse::CopyFrom(const KillResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool KillResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* KillResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void KillResponse::InternalSwap(KillResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -3659,9 +4903,7 @@ void KillResponse::InternalSwap(KillResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata KillResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[17]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -3670,13 +4912,21 @@ class ReturnToLaunchRequest::_Internal { }; ReturnToLaunchRequest::ReturnToLaunchRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ReturnToLaunchRequest) } ReturnToLaunchRequest::ReturnToLaunchRequest( ::google::protobuf::Arena* arena, const ReturnToLaunchRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ReturnToLaunchRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -3685,6 +4935,68 @@ ReturnToLaunchRequest::ReturnToLaunchRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ReturnToLaunchRequest) } +inline void* ReturnToLaunchRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ReturnToLaunchRequest(arena); +} +constexpr auto ReturnToLaunchRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ReturnToLaunchRequest), + alignof(ReturnToLaunchRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ReturnToLaunchRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ReturnToLaunchRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ReturnToLaunchRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ReturnToLaunchRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ReturnToLaunchRequest::ByteSizeLong, + &ReturnToLaunchRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ReturnToLaunchRequest, _impl_._cached_size_), + false, + }, + &ReturnToLaunchRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ReturnToLaunchRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ReturnToLaunchRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ReturnToLaunchRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -3694,50 +5006,50 @@ ReturnToLaunchRequest::ReturnToLaunchRequest( ::google::protobuf::Metadata ReturnToLaunchRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[18]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ReturnToLaunchResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const ReturnToLaunchResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& ReturnToLaunchResponse::_Internal::action_result(const ReturnToLaunchResponse* msg) { - return *msg->_impl_.action_result_; -} ReturnToLaunchResponse::ReturnToLaunchResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ReturnToLaunchResponse) } inline PROTOBUF_NDEBUG_INLINE ReturnToLaunchResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::ReturnToLaunchResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ReturnToLaunchResponse::ReturnToLaunchResponse( ::google::protobuf::Arena* arena, const ReturnToLaunchResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ReturnToLaunchResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ReturnToLaunchResponse) } @@ -3752,38 +5064,51 @@ inline void ReturnToLaunchResponse::SharedCtor(::_pb::Arena* arena) { } ReturnToLaunchResponse::~ReturnToLaunchResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ReturnToLaunchResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); +} +inline void ReturnToLaunchResponse::SharedDtor(MessageLite& self) { + ReturnToLaunchResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* ReturnToLaunchResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ReturnToLaunchResponse(arena); +} +constexpr auto ReturnToLaunchResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ReturnToLaunchResponse), + alignof(ReturnToLaunchResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ReturnToLaunchResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ReturnToLaunchResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ReturnToLaunchResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ReturnToLaunchResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ReturnToLaunchResponse::ByteSizeLong, + &ReturnToLaunchResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_._cached_size_), + false, + }, + &ReturnToLaunchResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ReturnToLaunchResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } -inline void ReturnToLaunchResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ReturnToLaunchResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ReturnToLaunchResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ReturnToLaunchResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ReturnToLaunchResponse::_table_ = { { @@ -3796,8 +5121,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ReturnToLaunchResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ReturnToLaunchResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ReturnToLaunchResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -3814,68 +5143,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ReturnToLaunchResponse::_table_ = { }}, }; -::uint8_t* ReturnToLaunchResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ReturnToLaunchResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ReturnToLaunchResponse) - return target; -} - -::size_t ReturnToLaunchResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ReturnToLaunchResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ReturnToLaunchResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ReturnToLaunchResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ReturnToLaunchResponse::_class_data_ = { - ReturnToLaunchResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ReturnToLaunchResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ReturnToLaunchResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ReturnToLaunchResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ReturnToLaunchResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ReturnToLaunchResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ReturnToLaunchResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ReturnToLaunchResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ReturnToLaunchResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ReturnToLaunchResponse::ByteSizeLong(const MessageLite& base) { + const ReturnToLaunchResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ReturnToLaunchResponse::ByteSizeLong() const { + const ReturnToLaunchResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ReturnToLaunchResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ReturnToLaunchResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ReturnToLaunchResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3886,13 +5247,7 @@ void ReturnToLaunchResponse::CopyFrom(const ReturnToLaunchResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ReturnToLaunchResponse::IsInitialized() const { - return true; -} -::_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_); @@ -3901,9 +5256,7 @@ void ReturnToLaunchResponse::InternalSwap(ReturnToLaunchResponse* PROTOBUF_RESTR } ::google::protobuf::Metadata ReturnToLaunchResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[19]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -3912,7 +5265,11 @@ class GotoLocationRequest::_Internal { }; GotoLocationRequest::GotoLocationRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GotoLocationRequest) } @@ -3937,34 +5294,50 @@ inline void GotoLocationRequest::SharedCtor(::_pb::Arena* arena) { } GotoLocationRequest::~GotoLocationRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GotoLocationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GotoLocationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GotoLocationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GotoLocationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.latitude_deg_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.yaw_deg_) - - reinterpret_cast(&_impl_.latitude_deg_)) + sizeof(_impl_.yaw_deg_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GotoLocationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void GotoLocationRequest::SharedDtor(MessageLite& self) { + GotoLocationRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* GotoLocationRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) GotoLocationRequest(arena); +} +constexpr auto GotoLocationRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GotoLocationRequest), + alignof(GotoLocationRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GotoLocationRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GotoLocationRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GotoLocationRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GotoLocationRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GotoLocationRequest::ByteSizeLong, + &GotoLocationRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_._cached_size_), + false, + }, + &GotoLocationRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GotoLocationRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> GotoLocationRequest::_table_ = { { @@ -3977,8 +5350,12 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> GotoLocationRequest::_table_ = { 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_GotoLocationRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::GotoLocationRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float yaw_deg = 4; {::_pbi::TcParser::FastF32S1, @@ -4013,130 +5390,109 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> GotoLocationRequest::_table_ = { }}, }; -::uint8_t* GotoLocationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GotoLocationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // double latitude_deg = 1; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_latitude_deg(), target); - } - - // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_longitude_deg(), target); - } - - // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_absolute_altitude_m(), target); - } - - // float yaw_deg = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = this->_internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_yaw_deg(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GotoLocationRequest) - return target; -} - -::size_t GotoLocationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GotoLocationRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void GotoLocationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GotoLocationRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // double latitude_deg = 1; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - total_size += 9; - } - - // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - total_size += 9; - } - - // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - total_size += 5; - } - - // float yaw_deg = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = this->_internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GotoLocationRequest::_class_data_ = { - GotoLocationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GotoLocationRequest::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.latitude_deg_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.yaw_deg_) - + reinterpret_cast(&_impl_.latitude_deg_)) + sizeof(_impl_.yaw_deg_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void GotoLocationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* GotoLocationRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const GotoLocationRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* GotoLocationRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const GotoLocationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GotoLocationRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // double latitude_deg = 1; + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 1, this_._internal_latitude_deg(), target); + } + + // double longitude_deg = 2; + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this_._internal_longitude_deg(), target); + } + + // float absolute_altitude_m = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_absolute_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_absolute_altitude_m(), target); + } + + // float yaw_deg = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_yaw_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_yaw_deg(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GotoLocationRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t GotoLocationRequest::ByteSizeLong(const MessageLite& base) { + const GotoLocationRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t GotoLocationRequest::ByteSizeLong() const { + const GotoLocationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GotoLocationRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // double latitude_deg = 1; + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + total_size += 9; + } + // double longitude_deg = 2; + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + total_size += 9; + } + // float absolute_altitude_m = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_absolute_altitude_m()) != 0) { + total_size += 5; + } + // float yaw_deg = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_yaw_deg()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void GotoLocationRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GotoLocationRequest) @@ -4144,37 +5500,17 @@ void GotoLocationRequest::MergeImpl(::google::protobuf::Message& to_msg, const : ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = from._internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - _this->_internal_set_latitude_deg(from._internal_latitude_deg()); + if (::absl::bit_cast<::uint64_t>(from._internal_latitude_deg()) != 0) { + _this->_impl_.latitude_deg_ = from._impl_.latitude_deg_; } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = from._internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - _this->_internal_set_longitude_deg(from._internal_longitude_deg()); + if (::absl::bit_cast<::uint64_t>(from._internal_longitude_deg()) != 0) { + _this->_impl_.longitude_deg_ = from._impl_.longitude_deg_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = from._internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - _this->_internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); + if (::absl::bit_cast<::uint32_t>(from._internal_absolute_altitude_m()) != 0) { + _this->_impl_.absolute_altitude_m_ = from._impl_.absolute_altitude_m_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = from._internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - _this->_internal_set_yaw_deg(from._internal_yaw_deg()); + if (::absl::bit_cast<::uint32_t>(from._internal_yaw_deg()) != 0) { + _this->_impl_.yaw_deg_ = from._impl_.yaw_deg_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4186,13 +5522,7 @@ void GotoLocationRequest::CopyFrom(const GotoLocationRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GotoLocationRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* GotoLocationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GotoLocationRequest::InternalSwap(GotoLocationRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -4205,50 +5535,50 @@ void GotoLocationRequest::InternalSwap(GotoLocationRequest* PROTOBUF_RESTRICT ot } ::google::protobuf::Metadata GotoLocationRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[20]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GotoLocationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const GotoLocationResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& GotoLocationResponse::_Internal::action_result(const GotoLocationResponse* msg) { - return *msg->_impl_.action_result_; -} GotoLocationResponse::GotoLocationResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GotoLocationResponse) } inline PROTOBUF_NDEBUG_INLINE GotoLocationResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::GotoLocationResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} GotoLocationResponse::GotoLocationResponse( ::google::protobuf::Arena* arena, const GotoLocationResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GotoLocationResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GotoLocationResponse) } @@ -4263,38 +5593,51 @@ inline void GotoLocationResponse::SharedCtor(::_pb::Arena* arena) { } GotoLocationResponse::~GotoLocationResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GotoLocationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GotoLocationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); + SharedDtor(*this); +} +inline void GotoLocationResponse::SharedDtor(MessageLite& self) { + GotoLocationResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* GotoLocationResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) GotoLocationResponse(arena); +} +constexpr auto GotoLocationResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GotoLocationResponse), + alignof(GotoLocationResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GotoLocationResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GotoLocationResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GotoLocationResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GotoLocationResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GotoLocationResponse::ByteSizeLong, + &GotoLocationResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_._cached_size_), + false, + }, + &GotoLocationResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GotoLocationResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -PROTOBUF_NOINLINE void GotoLocationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GotoLocationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GotoLocationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GotoLocationResponse::_table_ = { { @@ -4307,8 +5650,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GotoLocationResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GotoLocationResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::GotoLocationResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -4325,68 +5672,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GotoLocationResponse::_table_ = { }}, }; -::uint8_t* GotoLocationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GotoLocationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GotoLocationResponse) - return target; -} - -::size_t GotoLocationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GotoLocationResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void GotoLocationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GotoLocationResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GotoLocationResponse::_class_data_ = { - GotoLocationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GotoLocationResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void GotoLocationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* GotoLocationResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const GotoLocationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* GotoLocationResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const GotoLocationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GotoLocationResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GotoLocationResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t GotoLocationResponse::ByteSizeLong(const MessageLite& base) { + const GotoLocationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t GotoLocationResponse::ByteSizeLong() const { + const GotoLocationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GotoLocationResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void GotoLocationResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GotoLocationResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4397,13 +5776,7 @@ void GotoLocationResponse::CopyFrom(const GotoLocationResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GotoLocationResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* GotoLocationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GotoLocationResponse::InternalSwap(GotoLocationResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -4412,9 +5785,7 @@ void GotoLocationResponse::InternalSwap(GotoLocationResponse* PROTOBUF_RESTRICT } ::google::protobuf::Metadata GotoLocationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[21]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -4423,7 +5794,11 @@ class DoOrbitRequest::_Internal { }; DoOrbitRequest::DoOrbitRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DoOrbitRequest) } @@ -4448,34 +5823,50 @@ inline void DoOrbitRequest::SharedCtor(::_pb::Arena* arena) { } DoOrbitRequest::~DoOrbitRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.DoOrbitRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void DoOrbitRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void DoOrbitRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DoOrbitRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.radius_m_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.yaw_behavior_) - - reinterpret_cast(&_impl_.radius_m_)) + sizeof(_impl_.yaw_behavior_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void DoOrbitRequest::SharedDtor(MessageLite& self) { + DoOrbitRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* DoOrbitRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) DoOrbitRequest(arena); +} +constexpr auto DoOrbitRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(DoOrbitRequest), + alignof(DoOrbitRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull DoOrbitRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_DoOrbitRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DoOrbitRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DoOrbitRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &DoOrbitRequest::ByteSizeLong, + &DoOrbitRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_._cached_size_), + false, + }, + &DoOrbitRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* DoOrbitRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* DoOrbitRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<3, 6, 0, 0, 2> DoOrbitRequest::_table_ = { { @@ -4488,8 +5879,12 @@ const ::_pbi::TcParseTable<3, 6, 0, 0, 2> DoOrbitRequest::_table_ = { 6, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_DoOrbitRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::DoOrbitRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // float radius_m = 1; @@ -4534,169 +5929,136 @@ const ::_pbi::TcParseTable<3, 6, 0, 0, 2> DoOrbitRequest::_table_ = { (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, }}, // no aux_entries - {{ - }}, -}; - -::uint8_t* DoOrbitRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DoOrbitRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float radius_m = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius_m = this->_internal_radius_m(); - ::uint32_t raw_radius_m; - memcpy(&raw_radius_m, &tmp_radius_m, sizeof(tmp_radius_m)); - if (raw_radius_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_radius_m(), target); - } - - // float velocity_ms = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_velocity_ms = this->_internal_velocity_ms(); - ::uint32_t raw_velocity_ms; - memcpy(&raw_velocity_ms, &tmp_velocity_ms, sizeof(tmp_velocity_ms)); - if (raw_velocity_ms != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_velocity_ms(), target); - } - - // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; - if (this->_internal_yaw_behavior() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_yaw_behavior(), target); - } - - // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 5, this->_internal_latitude_deg(), target); - } - - // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 6, this->_internal_longitude_deg(), target); - } - - // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint64_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 7, this->_internal_absolute_altitude_m(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DoOrbitRequest) - return target; -} - -::size_t DoOrbitRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DoOrbitRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float radius_m = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius_m = this->_internal_radius_m(); - ::uint32_t raw_radius_m; - memcpy(&raw_radius_m, &tmp_radius_m, sizeof(tmp_radius_m)); - if (raw_radius_m != 0) { - total_size += 5; - } - - // float velocity_ms = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_velocity_ms = this->_internal_velocity_ms(); - ::uint32_t raw_velocity_ms; - memcpy(&raw_velocity_ms, &tmp_velocity_ms, sizeof(tmp_velocity_ms)); - if (raw_velocity_ms != 0) { - total_size += 5; - } - - // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - total_size += 9; - } - - // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - total_size += 9; - } - - // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint64_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - total_size += 9; - } - - // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; - if (this->_internal_yaw_behavior() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_yaw_behavior()); - } + {{ + }}, +}; - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} +PROTOBUF_NOINLINE void DoOrbitRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DoOrbitRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -const ::google::protobuf::Message::ClassData DoOrbitRequest::_class_data_ = { - DoOrbitRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* DoOrbitRequest::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.radius_m_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.yaw_behavior_) - + reinterpret_cast(&_impl_.radius_m_)) + sizeof(_impl_.yaw_behavior_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void DoOrbitRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* DoOrbitRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const DoOrbitRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* DoOrbitRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const DoOrbitRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DoOrbitRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float radius_m = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_radius_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_radius_m(), target); + } + + // float velocity_ms = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_velocity_ms()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_velocity_ms(), target); + } + + // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; + if (this_._internal_yaw_behavior() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_yaw_behavior(), target); + } + + // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 5, this_._internal_latitude_deg(), target); + } + + // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 6, this_._internal_longitude_deg(), target); + } + + // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint64_t>(this_._internal_absolute_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 7, this_._internal_absolute_altitude_m(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DoOrbitRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t DoOrbitRequest::ByteSizeLong(const MessageLite& base) { + const DoOrbitRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t DoOrbitRequest::ByteSizeLong() const { + const DoOrbitRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DoOrbitRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // float radius_m = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_radius_m()) != 0) { + total_size += 5; + } + // float velocity_ms = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_velocity_ms()) != 0) { + total_size += 5; + } + // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + total_size += 9; + } + // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + total_size += 9; + } + // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint64_t>(this_._internal_absolute_altitude_m()) != 0) { + total_size += 9; + } + // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; + if (this_._internal_yaw_behavior() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_yaw_behavior()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void DoOrbitRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DoOrbitRequest) @@ -4704,48 +6066,23 @@ void DoOrbitRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::goog ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius_m = from._internal_radius_m(); - ::uint32_t raw_radius_m; - memcpy(&raw_radius_m, &tmp_radius_m, sizeof(tmp_radius_m)); - if (raw_radius_m != 0) { - _this->_internal_set_radius_m(from._internal_radius_m()); + if (::absl::bit_cast<::uint32_t>(from._internal_radius_m()) != 0) { + _this->_impl_.radius_m_ = from._impl_.radius_m_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_velocity_ms = from._internal_velocity_ms(); - ::uint32_t raw_velocity_ms; - memcpy(&raw_velocity_ms, &tmp_velocity_ms, sizeof(tmp_velocity_ms)); - if (raw_velocity_ms != 0) { - _this->_internal_set_velocity_ms(from._internal_velocity_ms()); + if (::absl::bit_cast<::uint32_t>(from._internal_velocity_ms()) != 0) { + _this->_impl_.velocity_ms_ = from._impl_.velocity_ms_; } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = from._internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - _this->_internal_set_latitude_deg(from._internal_latitude_deg()); + if (::absl::bit_cast<::uint64_t>(from._internal_latitude_deg()) != 0) { + _this->_impl_.latitude_deg_ = from._impl_.latitude_deg_; } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = from._internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - _this->_internal_set_longitude_deg(from._internal_longitude_deg()); + if (::absl::bit_cast<::uint64_t>(from._internal_longitude_deg()) != 0) { + _this->_impl_.longitude_deg_ = from._impl_.longitude_deg_; } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_absolute_altitude_m = from._internal_absolute_altitude_m(); - ::uint64_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - _this->_internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); + if (::absl::bit_cast<::uint64_t>(from._internal_absolute_altitude_m()) != 0) { + _this->_impl_.absolute_altitude_m_ = from._impl_.absolute_altitude_m_; } if (from._internal_yaw_behavior() != 0) { - _this->_internal_set_yaw_behavior(from._internal_yaw_behavior()); + _this->_impl_.yaw_behavior_ = from._impl_.yaw_behavior_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4757,13 +6094,7 @@ void DoOrbitRequest::CopyFrom(const DoOrbitRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DoOrbitRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* DoOrbitRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void DoOrbitRequest::InternalSwap(DoOrbitRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -4776,50 +6107,50 @@ void DoOrbitRequest::InternalSwap(DoOrbitRequest* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata DoOrbitRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[22]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class DoOrbitResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const DoOrbitResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::_Internal::action_result(const DoOrbitResponse* msg) { - return *msg->_impl_.action_result_; -} DoOrbitResponse::DoOrbitResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DoOrbitResponse) } inline PROTOBUF_NDEBUG_INLINE DoOrbitResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::DoOrbitResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} DoOrbitResponse::DoOrbitResponse( ::google::protobuf::Arena* arena, const DoOrbitResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE DoOrbitResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DoOrbitResponse) } @@ -4834,38 +6165,51 @@ inline void DoOrbitResponse::SharedCtor(::_pb::Arena* arena) { } DoOrbitResponse::~DoOrbitResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.DoOrbitResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void DoOrbitResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void DoOrbitResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DoOrbitResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* DoOrbitResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void DoOrbitResponse::SharedDtor(MessageLite& self) { + DoOrbitResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* DoOrbitResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) DoOrbitResponse(arena); +} +constexpr auto DoOrbitResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(DoOrbitResponse), + alignof(DoOrbitResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull DoOrbitResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_DoOrbitResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &DoOrbitResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &DoOrbitResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &DoOrbitResponse::ByteSizeLong, + &DoOrbitResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_._cached_size_), + false, + }, + &DoOrbitResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* DoOrbitResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DoOrbitResponse::_table_ = { { @@ -4878,8 +6222,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DoOrbitResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_DoOrbitResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::DoOrbitResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -4896,68 +6244,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DoOrbitResponse::_table_ = { }}, }; -::uint8_t* DoOrbitResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DoOrbitResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DoOrbitResponse) - return target; -} - -::size_t DoOrbitResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DoOrbitResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void DoOrbitResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DoOrbitResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData DoOrbitResponse::_class_data_ = { - DoOrbitResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* DoOrbitResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void DoOrbitResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* DoOrbitResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const DoOrbitResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* DoOrbitResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const DoOrbitResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DoOrbitResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.DoOrbitResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t DoOrbitResponse::ByteSizeLong(const MessageLite& base) { + const DoOrbitResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t DoOrbitResponse::ByteSizeLong() const { + const DoOrbitResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DoOrbitResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void DoOrbitResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DoOrbitResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4968,13 +6348,7 @@ void DoOrbitResponse::CopyFrom(const DoOrbitResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool DoOrbitResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* DoOrbitResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void DoOrbitResponse::InternalSwap(DoOrbitResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -4983,9 +6357,7 @@ void DoOrbitResponse::InternalSwap(DoOrbitResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata DoOrbitResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[23]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -4994,13 +6366,21 @@ class HoldRequest::_Internal { }; HoldRequest::HoldRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.HoldRequest) } HoldRequest::HoldRequest( ::google::protobuf::Arena* arena, const HoldRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE HoldRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -5009,6 +6389,68 @@ HoldRequest::HoldRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.HoldRequest) } +inline void* HoldRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) HoldRequest(arena); +} +constexpr auto HoldRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(HoldRequest), + alignof(HoldRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull HoldRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_HoldRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &HoldRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HoldRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &HoldRequest::ByteSizeLong, + &HoldRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(HoldRequest, _impl_._cached_size_), + false, + }, + &HoldRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* HoldRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> HoldRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::HoldRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -5018,50 +6460,50 @@ HoldRequest::HoldRequest( ::google::protobuf::Metadata HoldRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[24]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class HoldResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const HoldResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& HoldResponse::_Internal::action_result(const HoldResponse* msg) { - return *msg->_impl_.action_result_; -} HoldResponse::HoldResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.HoldResponse) } inline PROTOBUF_NDEBUG_INLINE HoldResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::HoldResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} HoldResponse::HoldResponse( ::google::protobuf::Arena* arena, const HoldResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE HoldResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.HoldResponse) } @@ -5076,38 +6518,51 @@ inline void HoldResponse::SharedCtor(::_pb::Arena* arena) { } HoldResponse::~HoldResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.HoldResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void HoldResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void HoldResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.HoldResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* HoldResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void HoldResponse::SharedDtor(MessageLite& self) { + HoldResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* HoldResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) HoldResponse(arena); +} +constexpr auto HoldResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(HoldResponse), + alignof(HoldResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull HoldResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_HoldResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &HoldResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HoldResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &HoldResponse::ByteSizeLong, + &HoldResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_._cached_size_), + false, + }, + &HoldResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* HoldResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> HoldResponse::_table_ = { { @@ -5120,8 +6575,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> HoldResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_HoldResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::HoldResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -5138,68 +6597,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> HoldResponse::_table_ = { }}, }; -::uint8_t* HoldResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.HoldResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.HoldResponse) - return target; -} - -::size_t HoldResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.HoldResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void HoldResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.HoldResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData HoldResponse::_class_data_ = { - HoldResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* HoldResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void HoldResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* HoldResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const HoldResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* HoldResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const HoldResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.HoldResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.HoldResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t HoldResponse::ByteSizeLong(const MessageLite& base) { + const HoldResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t HoldResponse::ByteSizeLong() const { + const HoldResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.HoldResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void HoldResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.HoldResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5210,13 +6701,7 @@ void HoldResponse::CopyFrom(const HoldResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool HoldResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* HoldResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void HoldResponse::InternalSwap(HoldResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -5225,9 +6710,7 @@ void HoldResponse::InternalSwap(HoldResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata HoldResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[25]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -5236,7 +6719,11 @@ class SetActuatorRequest::_Internal { }; SetActuatorRequest::SetActuatorRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetActuatorRequest) } @@ -5261,34 +6748,50 @@ inline void SetActuatorRequest::SharedCtor(::_pb::Arena* arena) { } SetActuatorRequest::~SetActuatorRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetActuatorRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetActuatorRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetActuatorRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetActuatorRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.index_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.value_) - - reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.value_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetActuatorRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetActuatorRequest::SharedDtor(MessageLite& self) { + SetActuatorRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* SetActuatorRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetActuatorRequest(arena); +} +constexpr auto SetActuatorRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetActuatorRequest), + alignof(SetActuatorRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetActuatorRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetActuatorRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetActuatorRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetActuatorRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetActuatorRequest::ByteSizeLong, + &SetActuatorRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_._cached_size_), + false, + }, + &SetActuatorRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetActuatorRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetActuatorRequest::_table_ = { { @@ -5301,8 +6804,12 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetActuatorRequest::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SetActuatorRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::SetActuatorRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float value = 2; {::_pbi::TcParser::FastF32S1, @@ -5325,77 +6832,88 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetActuatorRequest::_table_ = { }}, }; -::uint8_t* SetActuatorRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetActuatorRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 index = 1; - if (this->_internal_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_index(), target); - } - - // float value = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_value = this->_internal_value(); - ::uint32_t raw_value; - memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); - if (raw_value != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_value(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetActuatorRequest) - return target; -} - -::size_t SetActuatorRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetActuatorRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetActuatorRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetActuatorRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // int32 index = 1; - if (this->_internal_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_index()); - } - - // float value = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_value = this->_internal_value(); - ::uint32_t raw_value; - memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); - if (raw_value != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetActuatorRequest::_class_data_ = { - SetActuatorRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetActuatorRequest::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.index_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.value_) - + reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.value_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetActuatorRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetActuatorRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetActuatorRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetActuatorRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetActuatorRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetActuatorRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // int32 index = 1; + if (this_._internal_index() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<1>( + stream, this_._internal_index(), target); + } + + // float value = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_value()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetActuatorRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetActuatorRequest::ByteSizeLong(const MessageLite& base) { + const SetActuatorRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetActuatorRequest::ByteSizeLong() const { + const SetActuatorRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetActuatorRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // int32 index = 1; + if (this_._internal_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_index()); + } + // float value = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_value()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetActuatorRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetActuatorRequest) @@ -5404,15 +6922,10 @@ void SetActuatorRequest::MergeImpl(::google::protobuf::Message& to_msg, const :: (void) cached_has_bits; if (from._internal_index() != 0) { - _this->_internal_set_index(from._internal_index()); + _this->_impl_.index_ = from._impl_.index_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_value = from._internal_value(); - ::uint32_t raw_value; - memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); - if (raw_value != 0) { - _this->_internal_set_value(from._internal_value()); + if (::absl::bit_cast<::uint32_t>(from._internal_value()) != 0) { + _this->_impl_.value_ = from._impl_.value_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5424,13 +6937,7 @@ void SetActuatorRequest::CopyFrom(const SetActuatorRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetActuatorRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* SetActuatorRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SetActuatorRequest::InternalSwap(SetActuatorRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -5443,50 +6950,50 @@ void SetActuatorRequest::InternalSwap(SetActuatorRequest* PROTOBUF_RESTRICT othe } ::google::protobuf::Metadata SetActuatorRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[26]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetActuatorResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const SetActuatorResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& SetActuatorResponse::_Internal::action_result(const SetActuatorResponse* msg) { - return *msg->_impl_.action_result_; -} SetActuatorResponse::SetActuatorResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetActuatorResponse) } inline PROTOBUF_NDEBUG_INLINE SetActuatorResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::SetActuatorResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetActuatorResponse::SetActuatorResponse( ::google::protobuf::Arena* arena, const SetActuatorResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetActuatorResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetActuatorResponse) } @@ -5501,38 +7008,51 @@ inline void SetActuatorResponse::SharedCtor(::_pb::Arena* arena) { } SetActuatorResponse::~SetActuatorResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetActuatorResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetActuatorResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetActuatorResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetActuatorResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetActuatorResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetActuatorResponse::SharedDtor(MessageLite& self) { + SetActuatorResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* SetActuatorResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetActuatorResponse(arena); +} +constexpr auto SetActuatorResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetActuatorResponse), + alignof(SetActuatorResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetActuatorResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetActuatorResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetActuatorResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetActuatorResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetActuatorResponse::ByteSizeLong, + &SetActuatorResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_._cached_size_), + false, + }, + &SetActuatorResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetActuatorResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetActuatorResponse::_table_ = { { @@ -5545,8 +7065,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetActuatorResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetActuatorResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::SetActuatorResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -5563,68 +7087,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetActuatorResponse::_table_ = { }}, }; -::uint8_t* SetActuatorResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetActuatorResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetActuatorResponse) - return target; -} - -::size_t SetActuatorResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetActuatorResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetActuatorResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetActuatorResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetActuatorResponse::_class_data_ = { - SetActuatorResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetActuatorResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetActuatorResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetActuatorResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetActuatorResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetActuatorResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetActuatorResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetActuatorResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetActuatorResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetActuatorResponse::ByteSizeLong(const MessageLite& base) { + const SetActuatorResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetActuatorResponse::ByteSizeLong() const { + const SetActuatorResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetActuatorResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetActuatorResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetActuatorResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5635,13 +7191,7 @@ void SetActuatorResponse::CopyFrom(const SetActuatorResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetActuatorResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* SetActuatorResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SetActuatorResponse::InternalSwap(SetActuatorResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -5650,9 +7200,7 @@ void SetActuatorResponse::InternalSwap(SetActuatorResponse* PROTOBUF_RESTRICT ot } ::google::protobuf::Metadata SetActuatorResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[27]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -5661,13 +7209,21 @@ class TransitionToFixedwingRequest::_Internal { }; TransitionToFixedwingRequest::TransitionToFixedwingRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToFixedwingRequest) } TransitionToFixedwingRequest::TransitionToFixedwingRequest( ::google::protobuf::Arena* arena, const TransitionToFixedwingRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TransitionToFixedwingRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -5676,6 +7232,68 @@ TransitionToFixedwingRequest::TransitionToFixedwingRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToFixedwingRequest) } +inline void* TransitionToFixedwingRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TransitionToFixedwingRequest(arena); +} +constexpr auto TransitionToFixedwingRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TransitionToFixedwingRequest), + alignof(TransitionToFixedwingRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TransitionToFixedwingRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TransitionToFixedwingRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TransitionToFixedwingRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransitionToFixedwingRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &TransitionToFixedwingRequest::ByteSizeLong, + &TransitionToFixedwingRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransitionToFixedwingRequest, _impl_._cached_size_), + false, + }, + &TransitionToFixedwingRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TransitionToFixedwingRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> TransitionToFixedwingRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TransitionToFixedwingRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -5685,50 +7303,50 @@ TransitionToFixedwingRequest::TransitionToFixedwingRequest( ::google::protobuf::Metadata TransitionToFixedwingRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[28]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TransitionToFixedwingResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const TransitionToFixedwingResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& TransitionToFixedwingResponse::_Internal::action_result(const TransitionToFixedwingResponse* msg) { - return *msg->_impl_.action_result_; -} TransitionToFixedwingResponse::TransitionToFixedwingResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToFixedwingResponse) } inline PROTOBUF_NDEBUG_INLINE TransitionToFixedwingResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::TransitionToFixedwingResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TransitionToFixedwingResponse::TransitionToFixedwingResponse( ::google::protobuf::Arena* arena, const TransitionToFixedwingResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TransitionToFixedwingResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToFixedwingResponse) } @@ -5737,44 +7355,57 @@ inline PROTOBUF_NDEBUG_INLINE TransitionToFixedwingResponse::Impl_::Impl_( ::google::protobuf::Arena* arena) : _cached_size_{0} {} -inline void TransitionToFixedwingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -TransitionToFixedwingResponse::~TransitionToFixedwingResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TransitionToFixedwingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TransitionToFixedwingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TransitionToFixedwingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransitionToFixedwingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; +inline void TransitionToFixedwingResponse::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.action_result_ = {}; +} +TransitionToFixedwingResponse::~TransitionToFixedwingResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TransitionToFixedwingResponse) + SharedDtor(*this); +} +inline void TransitionToFixedwingResponse::SharedDtor(MessageLite& self) { + TransitionToFixedwingResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* TransitionToFixedwingResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TransitionToFixedwingResponse(arena); +} +constexpr auto TransitionToFixedwingResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TransitionToFixedwingResponse), + alignof(TransitionToFixedwingResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TransitionToFixedwingResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TransitionToFixedwingResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TransitionToFixedwingResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransitionToFixedwingResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TransitionToFixedwingResponse::ByteSizeLong, + &TransitionToFixedwingResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_._cached_size_), + false, + }, + &TransitionToFixedwingResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TransitionToFixedwingResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransitionToFixedwingResponse::_table_ = { { @@ -5787,8 +7418,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransitionToFixedwingResponse::_table_ 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TransitionToFixedwingResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TransitionToFixedwingResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -5805,68 +7440,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransitionToFixedwingResponse::_table_ }}, }; -::uint8_t* TransitionToFixedwingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TransitionToFixedwingResponse) - return target; -} - -::size_t TransitionToFixedwingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TransitionToFixedwingResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TransitionToFixedwingResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TransitionToFixedwingResponse::_class_data_ = { - TransitionToFixedwingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TransitionToFixedwingResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TransitionToFixedwingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TransitionToFixedwingResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TransitionToFixedwingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TransitionToFixedwingResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TransitionToFixedwingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TransitionToFixedwingResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TransitionToFixedwingResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TransitionToFixedwingResponse::ByteSizeLong(const MessageLite& base) { + const TransitionToFixedwingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TransitionToFixedwingResponse::ByteSizeLong() const { + const TransitionToFixedwingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TransitionToFixedwingResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TransitionToFixedwingResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TransitionToFixedwingResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5877,13 +7544,7 @@ void TransitionToFixedwingResponse::CopyFrom(const TransitionToFixedwingResponse MergeFrom(from); } -PROTOBUF_NOINLINE bool TransitionToFixedwingResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* TransitionToFixedwingResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TransitionToFixedwingResponse::InternalSwap(TransitionToFixedwingResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -5892,9 +7553,7 @@ void TransitionToFixedwingResponse::InternalSwap(TransitionToFixedwingResponse* } ::google::protobuf::Metadata TransitionToFixedwingResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[29]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -5903,13 +7562,21 @@ class TransitionToMulticopterRequest::_Internal { }; TransitionToMulticopterRequest::TransitionToMulticopterRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToMulticopterRequest) } TransitionToMulticopterRequest::TransitionToMulticopterRequest( ::google::protobuf::Arena* arena, const TransitionToMulticopterRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TransitionToMulticopterRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -5918,6 +7585,68 @@ TransitionToMulticopterRequest::TransitionToMulticopterRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToMulticopterRequest) } +inline void* TransitionToMulticopterRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TransitionToMulticopterRequest(arena); +} +constexpr auto TransitionToMulticopterRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TransitionToMulticopterRequest), + alignof(TransitionToMulticopterRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TransitionToMulticopterRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TransitionToMulticopterRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TransitionToMulticopterRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransitionToMulticopterRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &TransitionToMulticopterRequest::ByteSizeLong, + &TransitionToMulticopterRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransitionToMulticopterRequest, _impl_._cached_size_), + false, + }, + &TransitionToMulticopterRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TransitionToMulticopterRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> TransitionToMulticopterRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TransitionToMulticopterRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -5927,50 +7656,50 @@ TransitionToMulticopterRequest::TransitionToMulticopterRequest( ::google::protobuf::Metadata TransitionToMulticopterRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[30]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TransitionToMulticopterResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const TransitionToMulticopterResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& TransitionToMulticopterResponse::_Internal::action_result(const TransitionToMulticopterResponse* msg) { - return *msg->_impl_.action_result_; -} TransitionToMulticopterResponse::TransitionToMulticopterResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToMulticopterResponse) } inline PROTOBUF_NDEBUG_INLINE TransitionToMulticopterResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::TransitionToMulticopterResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TransitionToMulticopterResponse::TransitionToMulticopterResponse( ::google::protobuf::Arena* arena, const TransitionToMulticopterResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TransitionToMulticopterResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToMulticopterResponse) } @@ -5985,38 +7714,51 @@ inline void TransitionToMulticopterResponse::SharedCtor(::_pb::Arena* arena) { } TransitionToMulticopterResponse::~TransitionToMulticopterResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.TransitionToMulticopterResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TransitionToMulticopterResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TransitionToMulticopterResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransitionToMulticopterResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void TransitionToMulticopterResponse::SharedDtor(MessageLite& self) { + TransitionToMulticopterResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* TransitionToMulticopterResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TransitionToMulticopterResponse(arena); +} +constexpr auto TransitionToMulticopterResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TransitionToMulticopterResponse), + alignof(TransitionToMulticopterResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TransitionToMulticopterResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TransitionToMulticopterResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TransitionToMulticopterResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TransitionToMulticopterResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TransitionToMulticopterResponse::ByteSizeLong, + &TransitionToMulticopterResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_._cached_size_), + false, + }, + &TransitionToMulticopterResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TransitionToMulticopterResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransitionToMulticopterResponse::_table_ = { { @@ -6029,8 +7771,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransitionToMulticopterResponse::_tabl 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TransitionToMulticopterResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::TransitionToMulticopterResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -6047,68 +7793,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransitionToMulticopterResponse::_tabl }}, }; -::uint8_t* TransitionToMulticopterResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TransitionToMulticopterResponse) - return target; -} - -::size_t TransitionToMulticopterResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TransitionToMulticopterResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TransitionToMulticopterResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TransitionToMulticopterResponse::_class_data_ = { - TransitionToMulticopterResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TransitionToMulticopterResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TransitionToMulticopterResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TransitionToMulticopterResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TransitionToMulticopterResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TransitionToMulticopterResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TransitionToMulticopterResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TransitionToMulticopterResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.TransitionToMulticopterResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TransitionToMulticopterResponse::ByteSizeLong(const MessageLite& base) { + const TransitionToMulticopterResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TransitionToMulticopterResponse::ByteSizeLong() const { + const TransitionToMulticopterResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TransitionToMulticopterResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TransitionToMulticopterResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TransitionToMulticopterResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6119,13 +7897,7 @@ void TransitionToMulticopterResponse::CopyFrom(const TransitionToMulticopterResp MergeFrom(from); } -PROTOBUF_NOINLINE bool TransitionToMulticopterResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* TransitionToMulticopterResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TransitionToMulticopterResponse::InternalSwap(TransitionToMulticopterResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -6134,9 +7906,7 @@ void TransitionToMulticopterResponse::InternalSwap(TransitionToMulticopterRespon } ::google::protobuf::Metadata TransitionToMulticopterResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[31]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -6145,13 +7915,21 @@ class GetTakeoffAltitudeRequest::_Internal { }; GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetTakeoffAltitudeRequest) } GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest( ::google::protobuf::Arena* arena, const GetTakeoffAltitudeRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetTakeoffAltitudeRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -6160,6 +7938,68 @@ GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetTakeoffAltitudeRequest) } +inline void* GetTakeoffAltitudeRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) GetTakeoffAltitudeRequest(arena); +} +constexpr auto GetTakeoffAltitudeRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetTakeoffAltitudeRequest), + alignof(GetTakeoffAltitudeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetTakeoffAltitudeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetTakeoffAltitudeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetTakeoffAltitudeRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetTakeoffAltitudeRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &GetTakeoffAltitudeRequest::ByteSizeLong, + &GetTakeoffAltitudeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeRequest, _impl_._cached_size_), + false, + }, + &GetTakeoffAltitudeRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetTakeoffAltitudeRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> GetTakeoffAltitudeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::GetTakeoffAltitudeRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -6169,50 +8009,50 @@ GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest( ::google::protobuf::Metadata GetTakeoffAltitudeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[32]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetTakeoffAltitudeResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const GetTakeoffAltitudeResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& GetTakeoffAltitudeResponse::_Internal::action_result(const GetTakeoffAltitudeResponse* msg) { - return *msg->_impl_.action_result_; -} GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE GetTakeoffAltitudeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::GetTakeoffAltitudeResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse( ::google::protobuf::Arena* arena, const GetTakeoffAltitudeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetTakeoffAltitudeResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; _impl_.altitude_ = from._impl_.altitude_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) @@ -6233,39 +8073,51 @@ inline void GetTakeoffAltitudeResponse::SharedCtor(::_pb::Arena* arena) { } GetTakeoffAltitudeResponse::~GetTakeoffAltitudeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetTakeoffAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetTakeoffAltitudeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_.altitude_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetTakeoffAltitudeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void GetTakeoffAltitudeResponse::SharedDtor(MessageLite& self) { + GetTakeoffAltitudeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* GetTakeoffAltitudeResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) GetTakeoffAltitudeResponse(arena); +} +constexpr auto GetTakeoffAltitudeResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetTakeoffAltitudeResponse), + alignof(GetTakeoffAltitudeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetTakeoffAltitudeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetTakeoffAltitudeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetTakeoffAltitudeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetTakeoffAltitudeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetTakeoffAltitudeResponse::ByteSizeLong, + &GetTakeoffAltitudeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_._cached_size_), + false, + }, + &GetTakeoffAltitudeResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetTakeoffAltitudeResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetTakeoffAltitudeResponse::_table_ = { { @@ -6278,8 +8130,12 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetTakeoffAltitudeResponse::_table_ = 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetTakeoffAltitudeResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::GetTakeoffAltitudeResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float altitude = 2; {::_pbi::TcParser::FastF32S1, @@ -6302,98 +8158,118 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetTakeoffAltitudeResponse::_table_ = }}, }; -::uint8_t* GetTakeoffAltitudeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - // float altitude = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = this->_internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_altitude(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - return target; -} - -::size_t GetTakeoffAltitudeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void GetTakeoffAltitudeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - // float altitude = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = this->_internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - total_size += 5; + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetTakeoffAltitudeResponse::_class_data_ = { - GetTakeoffAltitudeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetTakeoffAltitudeResponse::GetClassData() const { - return &_class_data_; + _impl_.altitude_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void GetTakeoffAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* GetTakeoffAltitudeResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const GetTakeoffAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* GetTakeoffAltitudeResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const GetTakeoffAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + // float altitude = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_altitude()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_altitude(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t GetTakeoffAltitudeResponse::ByteSizeLong(const MessageLite& base) { + const GetTakeoffAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t GetTakeoffAltitudeResponse::ByteSizeLong() const { + const GetTakeoffAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + { + // float altitude = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_altitude()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void GetTakeoffAltitudeResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = from._internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - _this->_internal_set_altitude(from._internal_altitude()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + if (::absl::bit_cast<::uint32_t>(from._internal_altitude()) != 0) { + _this->_impl_.altitude_ = from._impl_.altitude_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6404,13 +8280,7 @@ void GetTakeoffAltitudeResponse::CopyFrom(const GetTakeoffAltitudeResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool GetTakeoffAltitudeResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* GetTakeoffAltitudeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetTakeoffAltitudeResponse::InternalSwap(GetTakeoffAltitudeResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -6424,9 +8294,7 @@ void GetTakeoffAltitudeResponse::InternalSwap(GetTakeoffAltitudeResponse* PROTOB } ::google::protobuf::Metadata GetTakeoffAltitudeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[33]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -6435,7 +8303,11 @@ class SetTakeoffAltitudeRequest::_Internal { }; SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetTakeoffAltitudeRequest) } @@ -6455,32 +8327,50 @@ inline void SetTakeoffAltitudeRequest::SharedCtor(::_pb::Arena* arena) { } SetTakeoffAltitudeRequest::~SetTakeoffAltitudeRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetTakeoffAltitudeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetTakeoffAltitudeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.altitude_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void SetTakeoffAltitudeRequest::SharedDtor(MessageLite& self) { + SetTakeoffAltitudeRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* SetTakeoffAltitudeRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetTakeoffAltitudeRequest(arena); +} +constexpr auto SetTakeoffAltitudeRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetTakeoffAltitudeRequest), + alignof(SetTakeoffAltitudeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetTakeoffAltitudeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetTakeoffAltitudeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetTakeoffAltitudeRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetTakeoffAltitudeRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetTakeoffAltitudeRequest::ByteSizeLong, + &SetTakeoffAltitudeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeRequest, _impl_._cached_size_), + false, + }, + &SetTakeoffAltitudeRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetTakeoffAltitudeRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* SetTakeoffAltitudeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetTakeoffAltitudeRequest::_table_ = { { @@ -6493,8 +8383,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetTakeoffAltitudeRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SetTakeoffAltitudeRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::SetTakeoffAltitudeRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float altitude = 1; {::_pbi::TcParser::FastF32S1, @@ -6511,64 +8405,73 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetTakeoffAltitudeRequest::_table_ = { }}, }; -::uint8_t* SetTakeoffAltitudeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float altitude = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = this->_internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_altitude(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - return target; -} - -::size_t SetTakeoffAltitudeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetTakeoffAltitudeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float altitude = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = this->_internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetTakeoffAltitudeRequest::_class_data_ = { - SetTakeoffAltitudeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetTakeoffAltitudeRequest::GetClassData() const { - return &_class_data_; + _impl_.altitude_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetTakeoffAltitudeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetTakeoffAltitudeRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetTakeoffAltitudeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetTakeoffAltitudeRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetTakeoffAltitudeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float altitude = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_altitude()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_altitude(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetTakeoffAltitudeRequest::ByteSizeLong(const MessageLite& base) { + const SetTakeoffAltitudeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetTakeoffAltitudeRequest::ByteSizeLong() const { + const SetTakeoffAltitudeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // float altitude = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_altitude()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetTakeoffAltitudeRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) @@ -6576,13 +8479,8 @@ void SetTakeoffAltitudeRequest::MergeImpl(::google::protobuf::Message& to_msg, c ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_altitude = from._internal_altitude(); - ::uint32_t raw_altitude; - memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); - if (raw_altitude != 0) { - _this->_internal_set_altitude(from._internal_altitude()); + if (::absl::bit_cast<::uint32_t>(from._internal_altitude()) != 0) { + _this->_impl_.altitude_ = from._impl_.altitude_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6594,13 +8492,7 @@ void SetTakeoffAltitudeRequest::CopyFrom(const SetTakeoffAltitudeRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool SetTakeoffAltitudeRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* SetTakeoffAltitudeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SetTakeoffAltitudeRequest::InternalSwap(SetTakeoffAltitudeRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -6608,50 +8500,50 @@ void SetTakeoffAltitudeRequest::InternalSwap(SetTakeoffAltitudeRequest* PROTOBUF } ::google::protobuf::Metadata SetTakeoffAltitudeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[34]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetTakeoffAltitudeResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const SetTakeoffAltitudeResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& SetTakeoffAltitudeResponse::_Internal::action_result(const SetTakeoffAltitudeResponse* msg) { - return *msg->_impl_.action_result_; -} SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE SetTakeoffAltitudeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::SetTakeoffAltitudeResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse( ::google::protobuf::Arena* arena, const SetTakeoffAltitudeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetTakeoffAltitudeResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) } @@ -6666,38 +8558,51 @@ inline void SetTakeoffAltitudeResponse::SharedCtor(::_pb::Arena* arena) { } SetTakeoffAltitudeResponse::~SetTakeoffAltitudeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetTakeoffAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetTakeoffAltitudeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void SetTakeoffAltitudeResponse::SharedDtor(MessageLite& self) { + SetTakeoffAltitudeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* SetTakeoffAltitudeResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetTakeoffAltitudeResponse(arena); +} +constexpr auto SetTakeoffAltitudeResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetTakeoffAltitudeResponse), + alignof(SetTakeoffAltitudeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetTakeoffAltitudeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetTakeoffAltitudeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetTakeoffAltitudeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetTakeoffAltitudeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetTakeoffAltitudeResponse::ByteSizeLong, + &SetTakeoffAltitudeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_._cached_size_), + false, + }, + &SetTakeoffAltitudeResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetTakeoffAltitudeResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* SetTakeoffAltitudeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetTakeoffAltitudeResponse::_table_ = { { @@ -6710,8 +8615,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetTakeoffAltitudeResponse::_table_ = 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetTakeoffAltitudeResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::SetTakeoffAltitudeResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -6728,68 +8637,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetTakeoffAltitudeResponse::_table_ = }}, }; -::uint8_t* SetTakeoffAltitudeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - return target; -} - -::size_t SetTakeoffAltitudeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetTakeoffAltitudeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetTakeoffAltitudeResponse::_class_data_ = { - SetTakeoffAltitudeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetTakeoffAltitudeResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetTakeoffAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetTakeoffAltitudeResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetTakeoffAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetTakeoffAltitudeResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetTakeoffAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetTakeoffAltitudeResponse::ByteSizeLong(const MessageLite& base) { + const SetTakeoffAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetTakeoffAltitudeResponse::ByteSizeLong() const { + const SetTakeoffAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetTakeoffAltitudeResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6800,13 +8741,7 @@ void SetTakeoffAltitudeResponse::CopyFrom(const SetTakeoffAltitudeResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool SetTakeoffAltitudeResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* SetTakeoffAltitudeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SetTakeoffAltitudeResponse::InternalSwap(SetTakeoffAltitudeResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -6815,9 +8750,7 @@ void SetTakeoffAltitudeResponse::InternalSwap(SetTakeoffAltitudeResponse* PROTOB } ::google::protobuf::Metadata SetTakeoffAltitudeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[35]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -6826,13 +8759,21 @@ class GetReturnToLaunchAltitudeRequest::_Internal { }; GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) } GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest( ::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetReturnToLaunchAltitudeRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -6841,6 +8782,68 @@ GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) } +inline void* GetReturnToLaunchAltitudeRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) GetReturnToLaunchAltitudeRequest(arena); +} +constexpr auto GetReturnToLaunchAltitudeRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetReturnToLaunchAltitudeRequest), + alignof(GetReturnToLaunchAltitudeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetReturnToLaunchAltitudeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetReturnToLaunchAltitudeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetReturnToLaunchAltitudeRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetReturnToLaunchAltitudeRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &GetReturnToLaunchAltitudeRequest::ByteSizeLong, + &GetReturnToLaunchAltitudeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeRequest, _impl_._cached_size_), + false, + }, + &GetReturnToLaunchAltitudeRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetReturnToLaunchAltitudeRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> GetReturnToLaunchAltitudeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -6850,50 +8853,50 @@ GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest( ::google::protobuf::Metadata GetReturnToLaunchAltitudeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[36]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetReturnToLaunchAltitudeResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const GetReturnToLaunchAltitudeResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeResponse::_Internal::action_result(const GetReturnToLaunchAltitudeResponse* msg) { - return *msg->_impl_.action_result_; -} GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE GetReturnToLaunchAltitudeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse( ::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetReturnToLaunchAltitudeResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; _impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) @@ -6914,39 +8917,51 @@ inline void GetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) { } GetReturnToLaunchAltitudeResponse::~GetReturnToLaunchAltitudeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetReturnToLaunchAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetReturnToLaunchAltitudeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_.relative_altitude_m_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void GetReturnToLaunchAltitudeResponse::SharedDtor(MessageLite& self) { + GetReturnToLaunchAltitudeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* GetReturnToLaunchAltitudeResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) GetReturnToLaunchAltitudeResponse(arena); +} +constexpr auto GetReturnToLaunchAltitudeResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetReturnToLaunchAltitudeResponse), + alignof(GetReturnToLaunchAltitudeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetReturnToLaunchAltitudeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetReturnToLaunchAltitudeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetReturnToLaunchAltitudeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetReturnToLaunchAltitudeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetReturnToLaunchAltitudeResponse::ByteSizeLong, + &GetReturnToLaunchAltitudeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._cached_size_), + false, + }, + &GetReturnToLaunchAltitudeResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetReturnToLaunchAltitudeResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* GetReturnToLaunchAltitudeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetReturnToLaunchAltitudeResponse::_table_ = { { @@ -6959,8 +8974,12 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetReturnToLaunchAltitudeResponse::_ta 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetReturnToLaunchAltitudeResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float relative_altitude_m = 2; {::_pbi::TcParser::FastF32S1, @@ -6983,98 +9002,118 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetReturnToLaunchAltitudeResponse::_ta }}, }; -::uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - // float relative_altitude_m = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_relative_altitude_m(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - return target; -} - -::size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void GetReturnToLaunchAltitudeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - // float relative_altitude_m = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - total_size += 5; + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetReturnToLaunchAltitudeResponse::_class_data_ = { - GetReturnToLaunchAltitudeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetReturnToLaunchAltitudeResponse::GetClassData() const { - return &_class_data_; + _impl_.relative_altitude_m_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void GetReturnToLaunchAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const GetReturnToLaunchAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const GetReturnToLaunchAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + // float relative_altitude_m = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_relative_altitude_m(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong(const MessageLite& base) { + const GetReturnToLaunchAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong() const { + const GetReturnToLaunchAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + { + // float relative_altitude_m = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void GetReturnToLaunchAltitudeResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = from._internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + if (::absl::bit_cast<::uint32_t>(from._internal_relative_altitude_m()) != 0) { + _this->_impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7085,13 +9124,7 @@ void GetReturnToLaunchAltitudeResponse::CopyFrom(const GetReturnToLaunchAltitude MergeFrom(from); } -PROTOBUF_NOINLINE bool GetReturnToLaunchAltitudeResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* GetReturnToLaunchAltitudeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void GetReturnToLaunchAltitudeResponse::InternalSwap(GetReturnToLaunchAltitudeResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -7105,9 +9138,7 @@ void GetReturnToLaunchAltitudeResponse::InternalSwap(GetReturnToLaunchAltitudeRe } ::google::protobuf::Metadata GetReturnToLaunchAltitudeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[37]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -7116,7 +9147,11 @@ class SetReturnToLaunchAltitudeRequest::_Internal { }; SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) } @@ -7136,32 +9171,50 @@ inline void SetReturnToLaunchAltitudeRequest::SharedCtor(::_pb::Arena* arena) { } SetReturnToLaunchAltitudeRequest::~SetReturnToLaunchAltitudeRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetReturnToLaunchAltitudeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.relative_altitude_m_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetReturnToLaunchAltitudeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetReturnToLaunchAltitudeRequest::SharedDtor(MessageLite& self) { + SetReturnToLaunchAltitudeRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* SetReturnToLaunchAltitudeRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetReturnToLaunchAltitudeRequest(arena); +} +constexpr auto SetReturnToLaunchAltitudeRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetReturnToLaunchAltitudeRequest), + alignof(SetReturnToLaunchAltitudeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetReturnToLaunchAltitudeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetReturnToLaunchAltitudeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetReturnToLaunchAltitudeRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetReturnToLaunchAltitudeRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetReturnToLaunchAltitudeRequest::ByteSizeLong, + &SetReturnToLaunchAltitudeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeRequest, _impl_._cached_size_), + false, + }, + &SetReturnToLaunchAltitudeRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetReturnToLaunchAltitudeRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetReturnToLaunchAltitudeRequest::_table_ = { { @@ -7174,8 +9227,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetReturnToLaunchAltitudeRequest::_tab 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SetReturnToLaunchAltitudeRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float relative_altitude_m = 1; {::_pbi::TcParser::FastF32S1, @@ -7192,64 +9249,73 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetReturnToLaunchAltitudeRequest::_tab }}, }; -::uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float relative_altitude_m = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_relative_altitude_m(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - return target; -} - -::size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float relative_altitude_m = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetReturnToLaunchAltitudeRequest::_class_data_ = { - SetReturnToLaunchAltitudeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetReturnToLaunchAltitudeRequest::GetClassData() const { - return &_class_data_; + _impl_.relative_altitude_m_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetReturnToLaunchAltitudeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetReturnToLaunchAltitudeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetReturnToLaunchAltitudeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float relative_altitude_m = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_relative_altitude_m(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong(const MessageLite& base) { + const SetReturnToLaunchAltitudeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong() const { + const SetReturnToLaunchAltitudeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // float relative_altitude_m = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetReturnToLaunchAltitudeRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) @@ -7257,13 +9323,8 @@ void SetReturnToLaunchAltitudeRequest::MergeImpl(::google::protobuf::Message& to ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = from._internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); + if (::absl::bit_cast<::uint32_t>(from._internal_relative_altitude_m()) != 0) { + _this->_impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7275,13 +9336,7 @@ void SetReturnToLaunchAltitudeRequest::CopyFrom(const SetReturnToLaunchAltitudeR MergeFrom(from); } -PROTOBUF_NOINLINE bool SetReturnToLaunchAltitudeRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* SetReturnToLaunchAltitudeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SetReturnToLaunchAltitudeRequest::InternalSwap(SetReturnToLaunchAltitudeRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -7289,50 +9344,50 @@ void SetReturnToLaunchAltitudeRequest::InternalSwap(SetReturnToLaunchAltitudeReq } ::google::protobuf::Metadata SetReturnToLaunchAltitudeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[38]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetReturnToLaunchAltitudeResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const SetReturnToLaunchAltitudeResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeResponse::_Internal::action_result(const SetReturnToLaunchAltitudeResponse* msg) { - return *msg->_impl_.action_result_; -} SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) } inline PROTOBUF_NDEBUG_INLINE SetReturnToLaunchAltitudeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse( ::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetReturnToLaunchAltitudeResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) } @@ -7347,38 +9402,51 @@ inline void SetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) { } SetReturnToLaunchAltitudeResponse::~SetReturnToLaunchAltitudeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetReturnToLaunchAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetReturnToLaunchAltitudeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetReturnToLaunchAltitudeResponse::SharedDtor(MessageLite& self) { + SetReturnToLaunchAltitudeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* SetReturnToLaunchAltitudeResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetReturnToLaunchAltitudeResponse(arena); +} +constexpr auto SetReturnToLaunchAltitudeResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetReturnToLaunchAltitudeResponse), + alignof(SetReturnToLaunchAltitudeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetReturnToLaunchAltitudeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetReturnToLaunchAltitudeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetReturnToLaunchAltitudeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetReturnToLaunchAltitudeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetReturnToLaunchAltitudeResponse::ByteSizeLong, + &SetReturnToLaunchAltitudeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._cached_size_), + false, + }, + &SetReturnToLaunchAltitudeResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetReturnToLaunchAltitudeResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetReturnToLaunchAltitudeResponse::_table_ = { { @@ -7391,8 +9459,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetReturnToLaunchAltitudeResponse::_ta 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetReturnToLaunchAltitudeResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -7409,68 +9481,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetReturnToLaunchAltitudeResponse::_ta }}, }; -::uint8_t* SetReturnToLaunchAltitudeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - return target; -} - -::size_t SetReturnToLaunchAltitudeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetReturnToLaunchAltitudeResponse::_class_data_ = { - SetReturnToLaunchAltitudeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetReturnToLaunchAltitudeResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetReturnToLaunchAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetReturnToLaunchAltitudeResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetReturnToLaunchAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetReturnToLaunchAltitudeResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetReturnToLaunchAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetReturnToLaunchAltitudeResponse::ByteSizeLong(const MessageLite& base) { + const SetReturnToLaunchAltitudeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetReturnToLaunchAltitudeResponse::ByteSizeLong() const { + const SetReturnToLaunchAltitudeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetReturnToLaunchAltitudeResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7481,13 +9585,7 @@ void SetReturnToLaunchAltitudeResponse::CopyFrom(const SetReturnToLaunchAltitude MergeFrom(from); } -PROTOBUF_NOINLINE bool SetReturnToLaunchAltitudeResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* SetReturnToLaunchAltitudeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SetReturnToLaunchAltitudeResponse::InternalSwap(SetReturnToLaunchAltitudeResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -7496,9 +9594,7 @@ void SetReturnToLaunchAltitudeResponse::InternalSwap(SetReturnToLaunchAltitudeRe } ::google::protobuf::Metadata SetReturnToLaunchAltitudeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[39]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -7507,7 +9603,11 @@ class SetCurrentSpeedRequest::_Internal { }; SetCurrentSpeedRequest::SetCurrentSpeedRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetCurrentSpeedRequest) } @@ -7527,32 +9627,50 @@ inline void SetCurrentSpeedRequest::SharedCtor(::_pb::Arena* arena) { } SetCurrentSpeedRequest::~SetCurrentSpeedRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetCurrentSpeedRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetCurrentSpeedRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetCurrentSpeedRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.speed_m_s_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void SetCurrentSpeedRequest::SharedDtor(MessageLite& self) { + SetCurrentSpeedRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* SetCurrentSpeedRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetCurrentSpeedRequest(arena); +} +constexpr auto SetCurrentSpeedRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetCurrentSpeedRequest), + alignof(SetCurrentSpeedRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetCurrentSpeedRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetCurrentSpeedRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetCurrentSpeedRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetCurrentSpeedRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetCurrentSpeedRequest::ByteSizeLong, + &SetCurrentSpeedRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetCurrentSpeedRequest, _impl_._cached_size_), + false, + }, + &SetCurrentSpeedRequest::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetCurrentSpeedRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* SetCurrentSpeedRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetCurrentSpeedRequest::_table_ = { { @@ -7565,8 +9683,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetCurrentSpeedRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SetCurrentSpeedRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::SetCurrentSpeedRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float speed_m_s = 1; {::_pbi::TcParser::FastF32S1, @@ -7583,64 +9705,73 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetCurrentSpeedRequest::_table_ = { }}, }; -::uint8_t* SetCurrentSpeedRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float speed_m_s = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_speed_m_s = this->_internal_speed_m_s(); - ::uint32_t raw_speed_m_s; - memcpy(&raw_speed_m_s, &tmp_speed_m_s, sizeof(tmp_speed_m_s)); - if (raw_speed_m_s != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_speed_m_s(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetCurrentSpeedRequest) - return target; -} - -::size_t SetCurrentSpeedRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetCurrentSpeedRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetCurrentSpeedRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float speed_m_s = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_speed_m_s = this->_internal_speed_m_s(); - ::uint32_t raw_speed_m_s; - memcpy(&raw_speed_m_s, &tmp_speed_m_s, sizeof(tmp_speed_m_s)); - if (raw_speed_m_s != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetCurrentSpeedRequest::_class_data_ = { - SetCurrentSpeedRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetCurrentSpeedRequest::GetClassData() const { - return &_class_data_; + _impl_.speed_m_s_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetCurrentSpeedRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetCurrentSpeedRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetCurrentSpeedRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetCurrentSpeedRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetCurrentSpeedRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetCurrentSpeedRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float speed_m_s = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_speed_m_s()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_speed_m_s(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetCurrentSpeedRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetCurrentSpeedRequest::ByteSizeLong(const MessageLite& base) { + const SetCurrentSpeedRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetCurrentSpeedRequest::ByteSizeLong() const { + const SetCurrentSpeedRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetCurrentSpeedRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // float speed_m_s = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_speed_m_s()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetCurrentSpeedRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetCurrentSpeedRequest) @@ -7648,13 +9779,8 @@ void SetCurrentSpeedRequest::MergeImpl(::google::protobuf::Message& to_msg, cons ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_speed_m_s = from._internal_speed_m_s(); - ::uint32_t raw_speed_m_s; - memcpy(&raw_speed_m_s, &tmp_speed_m_s, sizeof(tmp_speed_m_s)); - if (raw_speed_m_s != 0) { - _this->_internal_set_speed_m_s(from._internal_speed_m_s()); + if (::absl::bit_cast<::uint32_t>(from._internal_speed_m_s()) != 0) { + _this->_impl_.speed_m_s_ = from._impl_.speed_m_s_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7666,13 +9792,7 @@ void SetCurrentSpeedRequest::CopyFrom(const SetCurrentSpeedRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetCurrentSpeedRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* SetCurrentSpeedRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SetCurrentSpeedRequest::InternalSwap(SetCurrentSpeedRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -7680,50 +9800,50 @@ void SetCurrentSpeedRequest::InternalSwap(SetCurrentSpeedRequest* PROTOBUF_RESTR } ::google::protobuf::Metadata SetCurrentSpeedRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[40]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetCurrentSpeedResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const SetCurrentSpeedResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action::ActionResult& SetCurrentSpeedResponse::_Internal::action_result(const SetCurrentSpeedResponse* msg) { - return *msg->_impl_.action_result_; -} SetCurrentSpeedResponse::SetCurrentSpeedResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetCurrentSpeedResponse) } inline PROTOBUF_NDEBUG_INLINE SetCurrentSpeedResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::SetCurrentSpeedResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetCurrentSpeedResponse::SetCurrentSpeedResponse( ::google::protobuf::Arena* arena, const SetCurrentSpeedResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetCurrentSpeedResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; + _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>( + arena, *from._impl_.action_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetCurrentSpeedResponse) } @@ -7738,38 +9858,51 @@ inline void SetCurrentSpeedResponse::SharedCtor(::_pb::Arena* arena) { } SetCurrentSpeedResponse::~SetCurrentSpeedResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetCurrentSpeedResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetCurrentSpeedResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetCurrentSpeedResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void SetCurrentSpeedResponse::SharedDtor(MessageLite& self) { + SetCurrentSpeedResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_result_; + this_._impl_.~Impl_(); +} + +inline void* SetCurrentSpeedResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetCurrentSpeedResponse(arena); +} +constexpr auto SetCurrentSpeedResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetCurrentSpeedResponse), + alignof(SetCurrentSpeedResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetCurrentSpeedResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetCurrentSpeedResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetCurrentSpeedResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetCurrentSpeedResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetCurrentSpeedResponse::ByteSizeLong, + &SetCurrentSpeedResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_._cached_size_), + false, + }, + &SetCurrentSpeedResponse::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetCurrentSpeedResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* SetCurrentSpeedResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetCurrentSpeedResponse::_table_ = { { @@ -7782,8 +9915,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetCurrentSpeedResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetCurrentSpeedResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::SetCurrentSpeedResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, @@ -7800,68 +9937,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetCurrentSpeedResponse::_table_ = { }}, }; -::uint8_t* SetCurrentSpeedResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetCurrentSpeedResponse) - return target; -} - -::size_t SetCurrentSpeedResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetCurrentSpeedResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetCurrentSpeedResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action.ActionResult action_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetCurrentSpeedResponse::_class_data_ = { - SetCurrentSpeedResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetCurrentSpeedResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetCurrentSpeedResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetCurrentSpeedResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetCurrentSpeedResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetCurrentSpeedResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetCurrentSpeedResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetCurrentSpeedResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action.ActionResult action_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_result_, this_._impl_.action_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetCurrentSpeedResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetCurrentSpeedResponse::ByteSizeLong(const MessageLite& base) { + const SetCurrentSpeedResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetCurrentSpeedResponse::ByteSizeLong() const { + const SetCurrentSpeedResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetCurrentSpeedResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action.ActionResult action_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetCurrentSpeedResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetCurrentSpeedResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_result_ != nullptr); + if (_this->_impl_.action_result_ == nullptr) { + _this->_impl_.action_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_); + } else { + _this->_impl_.action_result_->MergeFrom(*from._impl_.action_result_); + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7872,13 +10041,7 @@ void SetCurrentSpeedResponse::CopyFrom(const SetCurrentSpeedResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetCurrentSpeedResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* SetCurrentSpeedResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void SetCurrentSpeedResponse::InternalSwap(SetCurrentSpeedResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -7887,9 +10050,7 @@ void SetCurrentSpeedResponse::InternalSwap(SetCurrentSpeedResponse* PROTOBUF_RES } ::google::protobuf::Metadata SetCurrentSpeedResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[41]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -7898,25 +10059,33 @@ class ActionResult::_Internal { }; ActionResult::ActionResult(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ActionResult) } inline PROTOBUF_NDEBUG_INLINE ActionResult::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action::ActionResult& from_msg) : result_str_(arena, from.result_str_), _cached_size_{0} {} ActionResult::ActionResult( ::google::protobuf::Arena* arena, const ActionResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ActionResult* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.result_ = from._impl_.result_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ActionResult) @@ -7933,34 +10102,51 @@ inline void ActionResult::SharedCtor(::_pb::Arena* arena) { } ActionResult::~ActionResult() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action.ActionResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ActionResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.result_str_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ActionResult::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ActionResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_str_.ClearToEmpty(); - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void ActionResult::SharedDtor(MessageLite& self) { + ActionResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.result_str_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* ActionResult::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ActionResult(arena); +} +constexpr auto ActionResult::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ActionResult), + alignof(ActionResult)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ActionResult::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ActionResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ActionResult::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ActionResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ActionResult::ByteSizeLong, + &ActionResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ActionResult, _impl_._cached_size_), + false, + }, + &ActionResult::kDescriptorMethods, + &descriptor_table_action_2faction_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ActionResult::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* ActionResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 49, 2> ActionResult::_table_ = { { @@ -7973,8 +10159,12 @@ const ::_pbi::TcParseTable<1, 2, 0, 49, 2> ActionResult::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ActionResult_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // string result_str = 2; {::_pbi::TcParser::FastUS1, @@ -8000,69 +10190,89 @@ const ::_pbi::TcParseTable<1, 2, 0, 49, 2> ActionResult::_table_ = { }}, }; -::uint8_t* ActionResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ActionResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.action.ActionResult.Result result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - const std::string& _s = this->_internal_result_str(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.action.ActionResult.result_str"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ActionResult) - return target; -} - -::size_t ActionResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ActionResult) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ActionResult::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ActionResult) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_result_str()); - } - - // .mavsdk.rpc.action.ActionResult.Result result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ActionResult::_class_data_ = { - ActionResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ActionResult::GetClassData() const { - return &_class_data_; + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ActionResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ActionResult::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ActionResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ActionResult::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ActionResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ActionResult) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // .mavsdk.rpc.action.ActionResult.Result result = 1; + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_result(), target); + } + + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + const std::string& _s = this_._internal_result_str(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.action.ActionResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.ActionResult) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ActionResult::ByteSizeLong(const MessageLite& base) { + const ActionResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ActionResult::ByteSizeLong() const { + const ActionResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ActionResult) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_result_str()); + } + // .mavsdk.rpc.action.ActionResult.Result result = 1; + if (this_._internal_result() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ActionResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ActionResult) @@ -8074,7 +10284,7 @@ void ActionResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google _this->_internal_set_result_str(from._internal_result_str()); } if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); + _this->_impl_.result_ = from._impl_.result_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -8086,13 +10296,7 @@ void ActionResult::CopyFrom(const ActionResult& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ActionResult::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ActionResult::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ActionResult::InternalSwap(ActionResult* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -8103,9 +10307,7 @@ void ActionResult::InternalSwap(ActionResult* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata ActionResult::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[42]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) } // namespace action @@ -8116,4 +10318,8 @@ namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_action_2faction_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/action/action.pb.h b/src/mavsdk_server/src/generated/action/action.pb.h index 019a6a3cba..f5b7ca1a2e 100644 --- a/src/mavsdk_server/src/generated/action/action.pb.h +++ b/src/mavsdk_server/src/generated/action/action.pb.h @@ -1,28 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: action/action.proto -// Protobuf C++ Version: 4.25.1 +// Protobuf C++ Version: 5.29.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto_2epb_2eh +#ifndef action_2faction_2eproto_2epb_2eh +#define action_2faction_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" @@ -32,6 +26,7 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_reflection.h" @@ -47,7 +42,8 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal } // namespace protobuf } // namespace google @@ -289,31 +285,33 @@ inline bool OrbitYawBehavior_Parse(absl::string_view name, OrbitYawBehavior* val // ------------------------------------------------------------------- -class TransitionToMulticopterRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterRequest) */ { +class TransitionToMulticopterRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterRequest) */ { public: inline TransitionToMulticopterRequest() : TransitionToMulticopterRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR TransitionToMulticopterRequest(::google::protobuf::internal::ConstantInitialized); - inline TransitionToMulticopterRequest(const TransitionToMulticopterRequest& from) - : TransitionToMulticopterRequest(nullptr, from) {} - TransitionToMulticopterRequest(TransitionToMulticopterRequest&& from) noexcept - : TransitionToMulticopterRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransitionToMulticopterRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransitionToMulticopterRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR TransitionToMulticopterRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline TransitionToMulticopterRequest(const TransitionToMulticopterRequest& from) : TransitionToMulticopterRequest(nullptr, from) {} + inline TransitionToMulticopterRequest(TransitionToMulticopterRequest&& from) noexcept + : TransitionToMulticopterRequest(nullptr, std::move(from)) {} inline TransitionToMulticopterRequest& operator=(const TransitionToMulticopterRequest& from) { CopyFrom(from); return *this; } inline TransitionToMulticopterRequest& operator=(TransitionToMulticopterRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -344,22 +342,13 @@ class TransitionToMulticopterRequest final : } static inline const TransitionToMulticopterRequest* internal_default_instance() { return reinterpret_cast( - &_TransitionToMulticopterRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - friend void swap(TransitionToMulticopterRequest& a, TransitionToMulticopterRequest& b) { - a.Swap(&b); + &_TransitionToMulticopterRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 30; + friend void swap(TransitionToMulticopterRequest& a, TransitionToMulticopterRequest& b) { a.Swap(&b); } inline void Swap(TransitionToMulticopterRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -373,8 +362,8 @@ class TransitionToMulticopterRequest final : // implements Message ---------------------------------------------- - TransitionToMulticopterRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TransitionToMulticopterRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const TransitionToMulticopterRequest& from) { @@ -384,27 +373,43 @@ class TransitionToMulticopterRequest final : void MergeFrom(const TransitionToMulticopterRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToMulticopterRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TransitionToMulticopterRequest"; } + + protected: explicit TransitionToMulticopterRequest(::google::protobuf::Arena* arena); TransitionToMulticopterRequest(::google::protobuf::Arena* arena, const TransitionToMulticopterRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + TransitionToMulticopterRequest(::google::protobuf::Arena* arena, TransitionToMulticopterRequest&& from) noexcept + : TransitionToMulticopterRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToMulticopterRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -413,43 +418,46 @@ class TransitionToMulticopterRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const TransitionToMulticopterRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransitionToFixedwingRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingRequest) */ { +class TransitionToFixedwingRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingRequest) */ { public: inline TransitionToFixedwingRequest() : TransitionToFixedwingRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR TransitionToFixedwingRequest(::google::protobuf::internal::ConstantInitialized); - inline TransitionToFixedwingRequest(const TransitionToFixedwingRequest& from) - : TransitionToFixedwingRequest(nullptr, from) {} - TransitionToFixedwingRequest(TransitionToFixedwingRequest&& from) noexcept - : TransitionToFixedwingRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransitionToFixedwingRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransitionToFixedwingRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR TransitionToFixedwingRequest( + ::google::protobuf::internal::ConstantInitialized); + inline TransitionToFixedwingRequest(const TransitionToFixedwingRequest& from) : TransitionToFixedwingRequest(nullptr, from) {} + inline TransitionToFixedwingRequest(TransitionToFixedwingRequest&& from) noexcept + : TransitionToFixedwingRequest(nullptr, std::move(from)) {} inline TransitionToFixedwingRequest& operator=(const TransitionToFixedwingRequest& from) { CopyFrom(from); return *this; } inline TransitionToFixedwingRequest& operator=(TransitionToFixedwingRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -480,22 +488,13 @@ class TransitionToFixedwingRequest final : } static inline const TransitionToFixedwingRequest* internal_default_instance() { return reinterpret_cast( - &_TransitionToFixedwingRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(TransitionToFixedwingRequest& a, TransitionToFixedwingRequest& b) { - a.Swap(&b); + &_TransitionToFixedwingRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 28; + friend void swap(TransitionToFixedwingRequest& a, TransitionToFixedwingRequest& b) { a.Swap(&b); } inline void Swap(TransitionToFixedwingRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -509,8 +508,8 @@ class TransitionToFixedwingRequest final : // implements Message ---------------------------------------------- - TransitionToFixedwingRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TransitionToFixedwingRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const TransitionToFixedwingRequest& from) { @@ -520,27 +519,43 @@ class TransitionToFixedwingRequest final : void MergeFrom(const TransitionToFixedwingRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToFixedwingRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TransitionToFixedwingRequest"; } + + protected: explicit TransitionToFixedwingRequest(::google::protobuf::Arena* arena); TransitionToFixedwingRequest(::google::protobuf::Arena* arena, const TransitionToFixedwingRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + TransitionToFixedwingRequest(::google::protobuf::Arena* arena, TransitionToFixedwingRequest&& from) noexcept + : TransitionToFixedwingRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToFixedwingRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -549,43 +564,46 @@ class TransitionToFixedwingRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const TransitionToFixedwingRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TerminateRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateRequest) */ { +class TerminateRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateRequest) */ { public: inline TerminateRequest() : TerminateRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR TerminateRequest(::google::protobuf::internal::ConstantInitialized); - inline TerminateRequest(const TerminateRequest& from) - : TerminateRequest(nullptr, from) {} - TerminateRequest(TerminateRequest&& from) noexcept - : TerminateRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TerminateRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TerminateRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR TerminateRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline TerminateRequest(const TerminateRequest& from) : TerminateRequest(nullptr, from) {} + inline TerminateRequest(TerminateRequest&& from) noexcept + : TerminateRequest(nullptr, std::move(from)) {} inline TerminateRequest& operator=(const TerminateRequest& from) { CopyFrom(from); return *this; } inline TerminateRequest& operator=(TerminateRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -616,22 +634,13 @@ class TerminateRequest final : } static inline const TerminateRequest* internal_default_instance() { return reinterpret_cast( - &_TerminateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(TerminateRequest& a, TerminateRequest& b) { - a.Swap(&b); + &_TerminateRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 14; + friend void swap(TerminateRequest& a, TerminateRequest& b) { a.Swap(&b); } inline void Swap(TerminateRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -645,8 +654,8 @@ class TerminateRequest final : // implements Message ---------------------------------------------- - TerminateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TerminateRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const TerminateRequest& from) { @@ -656,27 +665,43 @@ class TerminateRequest final : void MergeFrom(const TerminateRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TerminateRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TerminateRequest"; } + + protected: explicit TerminateRequest(::google::protobuf::Arena* arena); TerminateRequest(::google::protobuf::Arena* arena, const TerminateRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + TerminateRequest(::google::protobuf::Arena* arena, TerminateRequest&& from) noexcept + : TerminateRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TerminateRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -685,43 +710,46 @@ class TerminateRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const TerminateRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TakeoffRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffRequest) */ { +class TakeoffRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffRequest) */ { public: inline TakeoffRequest() : TakeoffRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR TakeoffRequest(::google::protobuf::internal::ConstantInitialized); - inline TakeoffRequest(const TakeoffRequest& from) - : TakeoffRequest(nullptr, from) {} - TakeoffRequest(TakeoffRequest&& from) noexcept - : TakeoffRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TakeoffRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TakeoffRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR TakeoffRequest( + ::google::protobuf::internal::ConstantInitialized); + inline TakeoffRequest(const TakeoffRequest& from) : TakeoffRequest(nullptr, from) {} + inline TakeoffRequest(TakeoffRequest&& from) noexcept + : TakeoffRequest(nullptr, std::move(from)) {} inline TakeoffRequest& operator=(const TakeoffRequest& from) { CopyFrom(from); return *this; } inline TakeoffRequest& operator=(TakeoffRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -752,22 +780,13 @@ class TakeoffRequest final : } static inline const TakeoffRequest* internal_default_instance() { return reinterpret_cast( - &_TakeoffRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(TakeoffRequest& a, TakeoffRequest& b) { - a.Swap(&b); + &_TakeoffRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + friend void swap(TakeoffRequest& a, TakeoffRequest& b) { a.Swap(&b); } inline void Swap(TakeoffRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -781,8 +800,8 @@ class TakeoffRequest final : // implements Message ---------------------------------------------- - TakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const TakeoffRequest& from) { @@ -792,27 +811,43 @@ class TakeoffRequest final : void MergeFrom(const TakeoffRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TakeoffRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TakeoffRequest"; } + + protected: explicit TakeoffRequest(::google::protobuf::Arena* arena); TakeoffRequest(::google::protobuf::Arena* arena, const TakeoffRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + TakeoffRequest(::google::protobuf::Arena* arena, TakeoffRequest&& from) noexcept + : TakeoffRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TakeoffRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -821,43 +856,46 @@ class TakeoffRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const TakeoffRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ShutdownRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownRequest) */ { +class ShutdownRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownRequest) */ { public: inline ShutdownRequest() : ShutdownRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ShutdownRequest(::google::protobuf::internal::ConstantInitialized); - inline ShutdownRequest(const ShutdownRequest& from) - : ShutdownRequest(nullptr, from) {} - ShutdownRequest(ShutdownRequest&& from) noexcept - : ShutdownRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ShutdownRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ShutdownRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR ShutdownRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline ShutdownRequest(const ShutdownRequest& from) : ShutdownRequest(nullptr, from) {} + inline ShutdownRequest(ShutdownRequest&& from) noexcept + : ShutdownRequest(nullptr, std::move(from)) {} inline ShutdownRequest& operator=(const ShutdownRequest& from) { CopyFrom(from); return *this; } inline ShutdownRequest& operator=(ShutdownRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -888,22 +926,13 @@ class ShutdownRequest final : } static inline const ShutdownRequest* internal_default_instance() { return reinterpret_cast( - &_ShutdownRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(ShutdownRequest& a, ShutdownRequest& b) { - a.Swap(&b); + &_ShutdownRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 12; + friend void swap(ShutdownRequest& a, ShutdownRequest& b) { a.Swap(&b); } inline void Swap(ShutdownRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -917,8 +946,8 @@ class ShutdownRequest final : // implements Message ---------------------------------------------- - ShutdownRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ShutdownRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const ShutdownRequest& from) { @@ -928,27 +957,43 @@ class ShutdownRequest final : void MergeFrom(const ShutdownRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ShutdownRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ShutdownRequest"; } + + protected: explicit ShutdownRequest(::google::protobuf::Arena* arena); ShutdownRequest(::google::protobuf::Arena* arena, const ShutdownRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + ShutdownRequest(::google::protobuf::Arena* arena, ShutdownRequest&& from) noexcept + : ShutdownRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ShutdownRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -957,44 +1002,47 @@ class ShutdownRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ShutdownRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetTakeoffAltitudeRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeRequest) */ { +class SetTakeoffAltitudeRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeRequest) */ { public: inline SetTakeoffAltitudeRequest() : SetTakeoffAltitudeRequest(nullptr) {} - ~SetTakeoffAltitudeRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetTakeoffAltitudeRequest(const SetTakeoffAltitudeRequest& from) - : SetTakeoffAltitudeRequest(nullptr, from) {} - SetTakeoffAltitudeRequest(SetTakeoffAltitudeRequest&& from) noexcept - : SetTakeoffAltitudeRequest() { - *this = ::std::move(from); + ~SetTakeoffAltitudeRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetTakeoffAltitudeRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetTakeoffAltitudeRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SetTakeoffAltitudeRequest(const SetTakeoffAltitudeRequest& from) : SetTakeoffAltitudeRequest(nullptr, from) {} + inline SetTakeoffAltitudeRequest(SetTakeoffAltitudeRequest&& from) noexcept + : SetTakeoffAltitudeRequest(nullptr, std::move(from)) {} inline SetTakeoffAltitudeRequest& operator=(const SetTakeoffAltitudeRequest& from) { CopyFrom(from); return *this; } inline SetTakeoffAltitudeRequest& operator=(SetTakeoffAltitudeRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1025,22 +1073,13 @@ class SetTakeoffAltitudeRequest final : } static inline const SetTakeoffAltitudeRequest* internal_default_instance() { return reinterpret_cast( - &_SetTakeoffAltitudeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - friend void swap(SetTakeoffAltitudeRequest& a, SetTakeoffAltitudeRequest& b) { - a.Swap(&b); + &_SetTakeoffAltitudeRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 34; + friend void swap(SetTakeoffAltitudeRequest& a, SetTakeoffAltitudeRequest& b) { a.Swap(&b); } inline void Swap(SetTakeoffAltitudeRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1054,52 +1093,74 @@ class SetTakeoffAltitudeRequest final : // implements Message ---------------------------------------------- - SetTakeoffAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetTakeoffAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetTakeoffAltitudeRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetTakeoffAltitudeRequest& from) { - SetTakeoffAltitudeRequest::MergeImpl(*this, from); - } + void MergeFrom(const SetTakeoffAltitudeRequest& from) { SetTakeoffAltitudeRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetTakeoffAltitudeRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetTakeoffAltitudeRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetTakeoffAltitudeRequest"; - } - protected: + protected: explicit SetTakeoffAltitudeRequest(::google::protobuf::Arena* arena); SetTakeoffAltitudeRequest(::google::protobuf::Arena* arena, const SetTakeoffAltitudeRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetTakeoffAltitudeRequest(::google::protobuf::Arena* arena, SetTakeoffAltitudeRequest&& from) noexcept + : SetTakeoffAltitudeRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAltitudeFieldNumber = 1, }; @@ -1116,12 +1177,12 @@ class SetTakeoffAltitudeRequest final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetTakeoffAltitudeRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1129,47 +1190,50 @@ class SetTakeoffAltitudeRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetTakeoffAltitudeRequest& from_msg); float altitude_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetReturnToLaunchAltitudeRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) */ { +class SetReturnToLaunchAltitudeRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) */ { public: inline SetReturnToLaunchAltitudeRequest() : SetReturnToLaunchAltitudeRequest(nullptr) {} - ~SetReturnToLaunchAltitudeRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetReturnToLaunchAltitudeRequest(const SetReturnToLaunchAltitudeRequest& from) - : SetReturnToLaunchAltitudeRequest(nullptr, from) {} - SetReturnToLaunchAltitudeRequest(SetReturnToLaunchAltitudeRequest&& from) noexcept - : SetReturnToLaunchAltitudeRequest() { - *this = ::std::move(from); + ~SetReturnToLaunchAltitudeRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetReturnToLaunchAltitudeRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetReturnToLaunchAltitudeRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequest( + ::google::protobuf::internal::ConstantInitialized); + inline SetReturnToLaunchAltitudeRequest(const SetReturnToLaunchAltitudeRequest& from) : SetReturnToLaunchAltitudeRequest(nullptr, from) {} + inline SetReturnToLaunchAltitudeRequest(SetReturnToLaunchAltitudeRequest&& from) noexcept + : SetReturnToLaunchAltitudeRequest(nullptr, std::move(from)) {} inline SetReturnToLaunchAltitudeRequest& operator=(const SetReturnToLaunchAltitudeRequest& from) { CopyFrom(from); return *this; } inline SetReturnToLaunchAltitudeRequest& operator=(SetReturnToLaunchAltitudeRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1200,22 +1264,13 @@ class SetReturnToLaunchAltitudeRequest final : } static inline const SetReturnToLaunchAltitudeRequest* internal_default_instance() { return reinterpret_cast( - &_SetReturnToLaunchAltitudeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - - friend void swap(SetReturnToLaunchAltitudeRequest& a, SetReturnToLaunchAltitudeRequest& b) { - a.Swap(&b); + &_SetReturnToLaunchAltitudeRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 38; + friend void swap(SetReturnToLaunchAltitudeRequest& a, SetReturnToLaunchAltitudeRequest& b) { a.Swap(&b); } inline void Swap(SetReturnToLaunchAltitudeRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1229,52 +1284,74 @@ class SetReturnToLaunchAltitudeRequest final : // implements Message ---------------------------------------------- - SetReturnToLaunchAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetReturnToLaunchAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetReturnToLaunchAltitudeRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetReturnToLaunchAltitudeRequest& from) { - SetReturnToLaunchAltitudeRequest::MergeImpl(*this, from); - } + void MergeFrom(const SetReturnToLaunchAltitudeRequest& from) { SetReturnToLaunchAltitudeRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetReturnToLaunchAltitudeRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest"; - } - protected: + protected: explicit SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena); SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena, SetReturnToLaunchAltitudeRequest&& from) noexcept + : SetReturnToLaunchAltitudeRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kRelativeAltitudeMFieldNumber = 1, }; @@ -1291,12 +1368,12 @@ class SetReturnToLaunchAltitudeRequest final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1304,47 +1381,50 @@ class SetReturnToLaunchAltitudeRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetReturnToLaunchAltitudeRequest& from_msg); float relative_altitude_m_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetCurrentSpeedRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedRequest) */ { +class SetCurrentSpeedRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedRequest) */ { public: inline SetCurrentSpeedRequest() : SetCurrentSpeedRequest(nullptr) {} - ~SetCurrentSpeedRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetCurrentSpeedRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetCurrentSpeedRequest(const SetCurrentSpeedRequest& from) - : SetCurrentSpeedRequest(nullptr, from) {} - SetCurrentSpeedRequest(SetCurrentSpeedRequest&& from) noexcept - : SetCurrentSpeedRequest() { - *this = ::std::move(from); + ~SetCurrentSpeedRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetCurrentSpeedRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetCurrentSpeedRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SetCurrentSpeedRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SetCurrentSpeedRequest(const SetCurrentSpeedRequest& from) : SetCurrentSpeedRequest(nullptr, from) {} + inline SetCurrentSpeedRequest(SetCurrentSpeedRequest&& from) noexcept + : SetCurrentSpeedRequest(nullptr, std::move(from)) {} inline SetCurrentSpeedRequest& operator=(const SetCurrentSpeedRequest& from) { CopyFrom(from); return *this; } inline SetCurrentSpeedRequest& operator=(SetCurrentSpeedRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1375,22 +1455,13 @@ class SetCurrentSpeedRequest final : } static inline const SetCurrentSpeedRequest* internal_default_instance() { return reinterpret_cast( - &_SetCurrentSpeedRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 40; - - friend void swap(SetCurrentSpeedRequest& a, SetCurrentSpeedRequest& b) { - a.Swap(&b); + &_SetCurrentSpeedRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 40; + friend void swap(SetCurrentSpeedRequest& a, SetCurrentSpeedRequest& b) { a.Swap(&b); } inline void Swap(SetCurrentSpeedRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1404,52 +1475,74 @@ class SetCurrentSpeedRequest final : // implements Message ---------------------------------------------- - SetCurrentSpeedRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetCurrentSpeedRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetCurrentSpeedRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetCurrentSpeedRequest& from) { - SetCurrentSpeedRequest::MergeImpl(*this, from); - } + void MergeFrom(const SetCurrentSpeedRequest& from) { SetCurrentSpeedRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetCurrentSpeedRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetCurrentSpeedRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetCurrentSpeedRequest"; - } - protected: + protected: explicit SetCurrentSpeedRequest(::google::protobuf::Arena* arena); SetCurrentSpeedRequest(::google::protobuf::Arena* arena, const SetCurrentSpeedRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetCurrentSpeedRequest(::google::protobuf::Arena* arena, SetCurrentSpeedRequest&& from) noexcept + : SetCurrentSpeedRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kSpeedMSFieldNumber = 1, }; @@ -1466,12 +1559,12 @@ class SetCurrentSpeedRequest final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetCurrentSpeedRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1479,47 +1572,50 @@ class SetCurrentSpeedRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetCurrentSpeedRequest& from_msg); float speed_m_s_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetActuatorRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorRequest) */ { +class SetActuatorRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorRequest) */ { public: inline SetActuatorRequest() : SetActuatorRequest(nullptr) {} - ~SetActuatorRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetActuatorRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetActuatorRequest(const SetActuatorRequest& from) - : SetActuatorRequest(nullptr, from) {} - SetActuatorRequest(SetActuatorRequest&& from) noexcept - : SetActuatorRequest() { - *this = ::std::move(from); + ~SetActuatorRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetActuatorRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetActuatorRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SetActuatorRequest( + ::google::protobuf::internal::ConstantInitialized); + inline SetActuatorRequest(const SetActuatorRequest& from) : SetActuatorRequest(nullptr, from) {} + inline SetActuatorRequest(SetActuatorRequest&& from) noexcept + : SetActuatorRequest(nullptr, std::move(from)) {} inline SetActuatorRequest& operator=(const SetActuatorRequest& from) { CopyFrom(from); return *this; } inline SetActuatorRequest& operator=(SetActuatorRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1550,22 +1646,13 @@ class SetActuatorRequest final : } static inline const SetActuatorRequest* internal_default_instance() { return reinterpret_cast( - &_SetActuatorRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(SetActuatorRequest& a, SetActuatorRequest& b) { - a.Swap(&b); + &_SetActuatorRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 26; + friend void swap(SetActuatorRequest& a, SetActuatorRequest& b) { a.Swap(&b); } inline void Swap(SetActuatorRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1579,52 +1666,74 @@ class SetActuatorRequest final : // implements Message ---------------------------------------------- - SetActuatorRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetActuatorRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetActuatorRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetActuatorRequest& from) { - SetActuatorRequest::MergeImpl(*this, from); - } + void MergeFrom(const SetActuatorRequest& from) { SetActuatorRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetActuatorRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetActuatorRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetActuatorRequest"; - } - protected: + protected: explicit SetActuatorRequest(::google::protobuf::Arena* arena); SetActuatorRequest(::google::protobuf::Arena* arena, const SetActuatorRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetActuatorRequest(::google::protobuf::Arena* arena, SetActuatorRequest&& from) noexcept + : SetActuatorRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kIndexFieldNumber = 1, kValueFieldNumber = 2, @@ -1652,12 +1761,12 @@ class SetActuatorRequest final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetActuatorRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1665,47 +1774,50 @@ class SetActuatorRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetActuatorRequest& from_msg); ::int32_t index_; float value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ReturnToLaunchRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchRequest) */ { +class ReturnToLaunchRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchRequest) */ { public: inline ReturnToLaunchRequest() : ReturnToLaunchRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ReturnToLaunchRequest(::google::protobuf::internal::ConstantInitialized); - inline ReturnToLaunchRequest(const ReturnToLaunchRequest& from) - : ReturnToLaunchRequest(nullptr, from) {} - ReturnToLaunchRequest(ReturnToLaunchRequest&& from) noexcept - : ReturnToLaunchRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ReturnToLaunchRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ReturnToLaunchRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ReturnToLaunchRequest( + ::google::protobuf::internal::ConstantInitialized); + inline ReturnToLaunchRequest(const ReturnToLaunchRequest& from) : ReturnToLaunchRequest(nullptr, from) {} + inline ReturnToLaunchRequest(ReturnToLaunchRequest&& from) noexcept + : ReturnToLaunchRequest(nullptr, std::move(from)) {} inline ReturnToLaunchRequest& operator=(const ReturnToLaunchRequest& from) { CopyFrom(from); return *this; } inline ReturnToLaunchRequest& operator=(ReturnToLaunchRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1736,22 +1848,13 @@ class ReturnToLaunchRequest final : } static inline const ReturnToLaunchRequest* internal_default_instance() { return reinterpret_cast( - &_ReturnToLaunchRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(ReturnToLaunchRequest& a, ReturnToLaunchRequest& b) { - a.Swap(&b); + &_ReturnToLaunchRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 18; + friend void swap(ReturnToLaunchRequest& a, ReturnToLaunchRequest& b) { a.Swap(&b); } inline void Swap(ReturnToLaunchRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1765,8 +1868,8 @@ class ReturnToLaunchRequest final : // implements Message ---------------------------------------------- - ReturnToLaunchRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ReturnToLaunchRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const ReturnToLaunchRequest& from) { @@ -1776,27 +1879,43 @@ class ReturnToLaunchRequest final : void MergeFrom(const ReturnToLaunchRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ReturnToLaunchRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ReturnToLaunchRequest"; } + + protected: explicit ReturnToLaunchRequest(::google::protobuf::Arena* arena); ReturnToLaunchRequest(::google::protobuf::Arena* arena, const ReturnToLaunchRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + ReturnToLaunchRequest(::google::protobuf::Arena* arena, ReturnToLaunchRequest&& from) noexcept + : ReturnToLaunchRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ReturnToLaunchRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -1805,43 +1924,46 @@ class ReturnToLaunchRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ReturnToLaunchRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - -class RebootRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootRequest) */ { +}; +// ------------------------------------------------------------------- + +class RebootRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootRequest) */ { public: inline RebootRequest() : RebootRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR RebootRequest(::google::protobuf::internal::ConstantInitialized); - inline RebootRequest(const RebootRequest& from) - : RebootRequest(nullptr, from) {} - RebootRequest(RebootRequest&& from) noexcept - : RebootRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RebootRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RebootRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR RebootRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline RebootRequest(const RebootRequest& from) : RebootRequest(nullptr, from) {} + inline RebootRequest(RebootRequest&& from) noexcept + : RebootRequest(nullptr, std::move(from)) {} inline RebootRequest& operator=(const RebootRequest& from) { CopyFrom(from); return *this; } inline RebootRequest& operator=(RebootRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1872,22 +1994,13 @@ class RebootRequest final : } static inline const RebootRequest* internal_default_instance() { return reinterpret_cast( - &_RebootRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(RebootRequest& a, RebootRequest& b) { - a.Swap(&b); + &_RebootRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 10; + friend void swap(RebootRequest& a, RebootRequest& b) { a.Swap(&b); } inline void Swap(RebootRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1901,8 +2014,8 @@ class RebootRequest final : // implements Message ---------------------------------------------- - RebootRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RebootRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const RebootRequest& from) { @@ -1912,27 +2025,43 @@ class RebootRequest final : void MergeFrom(const RebootRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.RebootRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.RebootRequest"; } + + protected: explicit RebootRequest(::google::protobuf::Arena* arena); RebootRequest(::google::protobuf::Arena* arena, const RebootRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + RebootRequest(::google::protobuf::Arena* arena, RebootRequest&& from) noexcept + : RebootRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.RebootRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -1941,43 +2070,46 @@ class RebootRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const RebootRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LandRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandRequest) */ { +class LandRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandRequest) */ { public: inline LandRequest() : LandRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR LandRequest(::google::protobuf::internal::ConstantInitialized); - inline LandRequest(const LandRequest& from) - : LandRequest(nullptr, from) {} - LandRequest(LandRequest&& from) noexcept - : LandRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LandRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LandRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR LandRequest( + ::google::protobuf::internal::ConstantInitialized); + inline LandRequest(const LandRequest& from) : LandRequest(nullptr, from) {} + inline LandRequest(LandRequest&& from) noexcept + : LandRequest(nullptr, std::move(from)) {} inline LandRequest& operator=(const LandRequest& from) { CopyFrom(from); return *this; } inline LandRequest& operator=(LandRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2008,22 +2140,13 @@ class LandRequest final : } static inline const LandRequest* internal_default_instance() { return reinterpret_cast( - &_LandRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(LandRequest& a, LandRequest& b) { - a.Swap(&b); + &_LandRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 8; + friend void swap(LandRequest& a, LandRequest& b) { a.Swap(&b); } inline void Swap(LandRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2037,8 +2160,8 @@ class LandRequest final : // implements Message ---------------------------------------------- - LandRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + LandRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const LandRequest& from) { @@ -2048,27 +2171,43 @@ class LandRequest final : void MergeFrom(const LandRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.LandRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.LandRequest"; } + + protected: explicit LandRequest(::google::protobuf::Arena* arena); LandRequest(::google::protobuf::Arena* arena, const LandRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + LandRequest(::google::protobuf::Arena* arena, LandRequest&& from) noexcept + : LandRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.LandRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -2077,43 +2216,46 @@ class LandRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const LandRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class KillRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillRequest) */ { +class KillRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillRequest) */ { public: inline KillRequest() : KillRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR KillRequest(::google::protobuf::internal::ConstantInitialized); - inline KillRequest(const KillRequest& from) - : KillRequest(nullptr, from) {} - KillRequest(KillRequest&& from) noexcept - : KillRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(KillRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(KillRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR KillRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline KillRequest(const KillRequest& from) : KillRequest(nullptr, from) {} + inline KillRequest(KillRequest&& from) noexcept + : KillRequest(nullptr, std::move(from)) {} inline KillRequest& operator=(const KillRequest& from) { CopyFrom(from); return *this; } inline KillRequest& operator=(KillRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2144,22 +2286,13 @@ class KillRequest final : } static inline const KillRequest* internal_default_instance() { return reinterpret_cast( - &_KillRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(KillRequest& a, KillRequest& b) { - a.Swap(&b); + &_KillRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 16; + friend void swap(KillRequest& a, KillRequest& b) { a.Swap(&b); } inline void Swap(KillRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2173,8 +2306,8 @@ class KillRequest final : // implements Message ---------------------------------------------- - KillRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + KillRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const KillRequest& from) { @@ -2184,27 +2317,43 @@ class KillRequest final : void MergeFrom(const KillRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.KillRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.KillRequest"; } + + protected: explicit KillRequest(::google::protobuf::Arena* arena); KillRequest(::google::protobuf::Arena* arena, const KillRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + KillRequest(::google::protobuf::Arena* arena, KillRequest&& from) noexcept + : KillRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.KillRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -2213,43 +2362,46 @@ class KillRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const KillRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class HoldRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldRequest) */ { +class HoldRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldRequest) */ { public: inline HoldRequest() : HoldRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR HoldRequest(::google::protobuf::internal::ConstantInitialized); - inline HoldRequest(const HoldRequest& from) - : HoldRequest(nullptr, from) {} - HoldRequest(HoldRequest&& from) noexcept - : HoldRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(HoldRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(HoldRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR HoldRequest( + ::google::protobuf::internal::ConstantInitialized); + inline HoldRequest(const HoldRequest& from) : HoldRequest(nullptr, from) {} + inline HoldRequest(HoldRequest&& from) noexcept + : HoldRequest(nullptr, std::move(from)) {} inline HoldRequest& operator=(const HoldRequest& from) { CopyFrom(from); return *this; } inline HoldRequest& operator=(HoldRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2280,22 +2432,13 @@ class HoldRequest final : } static inline const HoldRequest* internal_default_instance() { return reinterpret_cast( - &_HoldRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(HoldRequest& a, HoldRequest& b) { - a.Swap(&b); + &_HoldRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 24; + friend void swap(HoldRequest& a, HoldRequest& b) { a.Swap(&b); } inline void Swap(HoldRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2309,8 +2452,8 @@ class HoldRequest final : // implements Message ---------------------------------------------- - HoldRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + HoldRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const HoldRequest& from) { @@ -2320,27 +2463,43 @@ class HoldRequest final : void MergeFrom(const HoldRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.HoldRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.HoldRequest"; } + + protected: explicit HoldRequest(::google::protobuf::Arena* arena); HoldRequest(::google::protobuf::Arena* arena, const HoldRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + HoldRequest(::google::protobuf::Arena* arena, HoldRequest&& from) noexcept + : HoldRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.HoldRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -2349,44 +2508,47 @@ class HoldRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const HoldRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GotoLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationRequest) */ { +class GotoLocationRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationRequest) */ { public: inline GotoLocationRequest() : GotoLocationRequest(nullptr) {} - ~GotoLocationRequest() override; - template - explicit PROTOBUF_CONSTEXPR GotoLocationRequest(::google::protobuf::internal::ConstantInitialized); - - inline GotoLocationRequest(const GotoLocationRequest& from) - : GotoLocationRequest(nullptr, from) {} - GotoLocationRequest(GotoLocationRequest&& from) noexcept - : GotoLocationRequest() { - *this = ::std::move(from); + ~GotoLocationRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GotoLocationRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GotoLocationRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR GotoLocationRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GotoLocationRequest(const GotoLocationRequest& from) : GotoLocationRequest(nullptr, from) {} + inline GotoLocationRequest(GotoLocationRequest&& from) noexcept + : GotoLocationRequest(nullptr, std::move(from)) {} inline GotoLocationRequest& operator=(const GotoLocationRequest& from) { CopyFrom(from); return *this; } inline GotoLocationRequest& operator=(GotoLocationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2417,22 +2579,13 @@ class GotoLocationRequest final : } static inline const GotoLocationRequest* internal_default_instance() { return reinterpret_cast( - &_GotoLocationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(GotoLocationRequest& a, GotoLocationRequest& b) { - a.Swap(&b); + &_GotoLocationRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 20; + friend void swap(GotoLocationRequest& a, GotoLocationRequest& b) { a.Swap(&b); } inline void Swap(GotoLocationRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2446,52 +2599,74 @@ class GotoLocationRequest final : // implements Message ---------------------------------------------- - GotoLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GotoLocationRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GotoLocationRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GotoLocationRequest& from) { - GotoLocationRequest::MergeImpl(*this, from); - } + void MergeFrom(const GotoLocationRequest& from) { GotoLocationRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(GotoLocationRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GotoLocationRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GotoLocationRequest"; - } - protected: + protected: explicit GotoLocationRequest(::google::protobuf::Arena* arena); GotoLocationRequest(::google::protobuf::Arena* arena, const GotoLocationRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + GotoLocationRequest(::google::protobuf::Arena* arena, GotoLocationRequest&& from) noexcept + : GotoLocationRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kLatitudeDegFieldNumber = 1, kLongitudeDegFieldNumber = 2, @@ -2541,12 +2716,12 @@ class GotoLocationRequest final : // @@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 @@ -2554,49 +2729,52 @@ class GotoLocationRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const GotoLocationRequest& from_msg); double latitude_deg_; double longitude_deg_; float absolute_altitude_m_; float yaw_deg_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::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) */ { +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); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetTakeoffAltitudeRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTakeoffAltitudeRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequest( + ::google::protobuf::internal::ConstantInitialized); + inline GetTakeoffAltitudeRequest(const GetTakeoffAltitudeRequest& from) : GetTakeoffAltitudeRequest(nullptr, from) {} + inline GetTakeoffAltitudeRequest(GetTakeoffAltitudeRequest&& from) noexcept + : GetTakeoffAltitudeRequest(nullptr, std::move(from)) {} inline GetTakeoffAltitudeRequest& operator=(const GetTakeoffAltitudeRequest& from) { CopyFrom(from); return *this; } inline GetTakeoffAltitudeRequest& operator=(GetTakeoffAltitudeRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2627,22 +2805,13 @@ class GetTakeoffAltitudeRequest final : } static inline const GetTakeoffAltitudeRequest* internal_default_instance() { return reinterpret_cast( - &_GetTakeoffAltitudeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - friend void swap(GetTakeoffAltitudeRequest& a, GetTakeoffAltitudeRequest& b) { - a.Swap(&b); + &_GetTakeoffAltitudeRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 32; + friend void swap(GetTakeoffAltitudeRequest& a, GetTakeoffAltitudeRequest& b) { a.Swap(&b); } inline void Swap(GetTakeoffAltitudeRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2656,8 +2825,8 @@ class GetTakeoffAltitudeRequest final : // implements Message ---------------------------------------------- - GetTakeoffAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetTakeoffAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const GetTakeoffAltitudeRequest& from) { @@ -2667,27 +2836,43 @@ class GetTakeoffAltitudeRequest final : void MergeFrom(const GetTakeoffAltitudeRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetTakeoffAltitudeRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GetTakeoffAltitudeRequest"; } + + protected: explicit GetTakeoffAltitudeRequest(::google::protobuf::Arena* arena); GetTakeoffAltitudeRequest(::google::protobuf::Arena* arena, const GetTakeoffAltitudeRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + GetTakeoffAltitudeRequest(::google::protobuf::Arena* arena, GetTakeoffAltitudeRequest&& from) noexcept + : GetTakeoffAltitudeRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetTakeoffAltitudeRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -2696,43 +2881,46 @@ class GetTakeoffAltitudeRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const GetTakeoffAltitudeRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetReturnToLaunchAltitudeRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) */ { +class GetReturnToLaunchAltitudeRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) */ { public: inline GetReturnToLaunchAltitudeRequest() : GetReturnToLaunchAltitudeRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequest(::google::protobuf::internal::ConstantInitialized); - inline GetReturnToLaunchAltitudeRequest(const GetReturnToLaunchAltitudeRequest& from) - : GetReturnToLaunchAltitudeRequest(nullptr, from) {} - GetReturnToLaunchAltitudeRequest(GetReturnToLaunchAltitudeRequest&& from) noexcept - : GetReturnToLaunchAltitudeRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetReturnToLaunchAltitudeRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetReturnToLaunchAltitudeRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline GetReturnToLaunchAltitudeRequest(const GetReturnToLaunchAltitudeRequest& from) : GetReturnToLaunchAltitudeRequest(nullptr, from) {} + inline GetReturnToLaunchAltitudeRequest(GetReturnToLaunchAltitudeRequest&& from) noexcept + : GetReturnToLaunchAltitudeRequest(nullptr, std::move(from)) {} inline GetReturnToLaunchAltitudeRequest& operator=(const GetReturnToLaunchAltitudeRequest& from) { CopyFrom(from); return *this; } inline GetReturnToLaunchAltitudeRequest& operator=(GetReturnToLaunchAltitudeRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2763,22 +2951,13 @@ class GetReturnToLaunchAltitudeRequest final : } static inline const GetReturnToLaunchAltitudeRequest* internal_default_instance() { return reinterpret_cast( - &_GetReturnToLaunchAltitudeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - friend void swap(GetReturnToLaunchAltitudeRequest& a, GetReturnToLaunchAltitudeRequest& b) { - a.Swap(&b); + &_GetReturnToLaunchAltitudeRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 36; + friend void swap(GetReturnToLaunchAltitudeRequest& a, GetReturnToLaunchAltitudeRequest& b) { a.Swap(&b); } inline void Swap(GetReturnToLaunchAltitudeRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2792,8 +2971,8 @@ class GetReturnToLaunchAltitudeRequest final : // implements Message ---------------------------------------------- - GetReturnToLaunchAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetReturnToLaunchAltitudeRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const GetReturnToLaunchAltitudeRequest& from) { @@ -2803,27 +2982,43 @@ class GetReturnToLaunchAltitudeRequest final : void MergeFrom(const GetReturnToLaunchAltitudeRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest"; } + + protected: explicit GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena); GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena, GetReturnToLaunchAltitudeRequest&& from) noexcept + : GetReturnToLaunchAltitudeRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -2832,44 +3027,47 @@ class GetReturnToLaunchAltitudeRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const GetReturnToLaunchAltitudeRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DoOrbitRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitRequest) */ { +class DoOrbitRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitRequest) */ { public: inline DoOrbitRequest() : DoOrbitRequest(nullptr) {} - ~DoOrbitRequest() override; - template - explicit PROTOBUF_CONSTEXPR DoOrbitRequest(::google::protobuf::internal::ConstantInitialized); - - inline DoOrbitRequest(const DoOrbitRequest& from) - : DoOrbitRequest(nullptr, from) {} - DoOrbitRequest(DoOrbitRequest&& from) noexcept - : DoOrbitRequest() { - *this = ::std::move(from); + ~DoOrbitRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DoOrbitRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DoOrbitRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR DoOrbitRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline DoOrbitRequest(const DoOrbitRequest& from) : DoOrbitRequest(nullptr, from) {} + inline DoOrbitRequest(DoOrbitRequest&& from) noexcept + : DoOrbitRequest(nullptr, std::move(from)) {} inline DoOrbitRequest& operator=(const DoOrbitRequest& from) { CopyFrom(from); return *this; } inline DoOrbitRequest& operator=(DoOrbitRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2900,22 +3098,13 @@ class DoOrbitRequest final : } static inline const DoOrbitRequest* internal_default_instance() { return reinterpret_cast( - &_DoOrbitRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(DoOrbitRequest& a, DoOrbitRequest& b) { - a.Swap(&b); + &_DoOrbitRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 22; + friend void swap(DoOrbitRequest& a, DoOrbitRequest& b) { a.Swap(&b); } inline void Swap(DoOrbitRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2929,52 +3118,74 @@ class DoOrbitRequest final : // implements Message ---------------------------------------------- - DoOrbitRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DoOrbitRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const DoOrbitRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DoOrbitRequest& from) { - DoOrbitRequest::MergeImpl(*this, from); - } + void MergeFrom(const DoOrbitRequest& from) { DoOrbitRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(DoOrbitRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DoOrbitRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.DoOrbitRequest"; - } - protected: + protected: explicit DoOrbitRequest(::google::protobuf::Arena* arena); DoOrbitRequest(::google::protobuf::Arena* arena, const DoOrbitRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + DoOrbitRequest(::google::protobuf::Arena* arena, DoOrbitRequest&& from) noexcept + : DoOrbitRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kRadiusMFieldNumber = 1, kVelocityMsFieldNumber = 2, @@ -3046,12 +3257,12 @@ class DoOrbitRequest final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DoOrbitRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 3, 6, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3059,51 +3270,54 @@ class DoOrbitRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const DoOrbitRequest& from_msg); float radius_m_; float velocity_ms_; double latitude_deg_; double longitude_deg_; double absolute_altitude_m_; int yaw_behavior_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DisarmRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmRequest) */ { +class DisarmRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmRequest) */ { public: inline DisarmRequest() : DisarmRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR DisarmRequest(::google::protobuf::internal::ConstantInitialized); - inline DisarmRequest(const DisarmRequest& from) - : DisarmRequest(nullptr, from) {} - DisarmRequest(DisarmRequest&& from) noexcept - : DisarmRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DisarmRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DisarmRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR DisarmRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline DisarmRequest(const DisarmRequest& from) : DisarmRequest(nullptr, from) {} + inline DisarmRequest(DisarmRequest&& from) noexcept + : DisarmRequest(nullptr, std::move(from)) {} inline DisarmRequest& operator=(const DisarmRequest& from) { CopyFrom(from); return *this; } inline DisarmRequest& operator=(DisarmRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3134,22 +3348,13 @@ class DisarmRequest final : } static inline const DisarmRequest* internal_default_instance() { return reinterpret_cast( - &_DisarmRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(DisarmRequest& a, DisarmRequest& b) { - a.Swap(&b); + &_DisarmRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(DisarmRequest& a, DisarmRequest& b) { a.Swap(&b); } inline void Swap(DisarmRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3163,8 +3368,8 @@ class DisarmRequest final : // implements Message ---------------------------------------------- - DisarmRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DisarmRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const DisarmRequest& from) { @@ -3174,27 +3379,43 @@ class DisarmRequest final : void MergeFrom(const DisarmRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.DisarmRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DisarmRequest"; } + + protected: explicit DisarmRequest(::google::protobuf::Arena* arena); DisarmRequest(::google::protobuf::Arena* arena, const DisarmRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + DisarmRequest(::google::protobuf::Arena* arena, DisarmRequest&& from) noexcept + : DisarmRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DisarmRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -3203,43 +3424,46 @@ class DisarmRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const DisarmRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ArmRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmRequest) */ { +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); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ArmRequest( + ::google::protobuf::internal::ConstantInitialized); + inline ArmRequest(const ArmRequest& from) : ArmRequest(nullptr, from) {} + inline ArmRequest(ArmRequest&& from) noexcept + : ArmRequest(nullptr, std::move(from)) {} inline ArmRequest& operator=(const ArmRequest& from) { CopyFrom(from); return *this; } inline ArmRequest& operator=(ArmRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3270,22 +3494,13 @@ class ArmRequest final : } 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); + &_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 + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3299,8 +3514,8 @@ class ArmRequest final : // implements Message ---------------------------------------------- - ArmRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ArmRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const ArmRequest& from) { @@ -3310,27 +3525,43 @@ class ArmRequest final : void MergeFrom(const ArmRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ArmRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ArmRequest"; } + + protected: explicit ArmRequest(::google::protobuf::Arena* arena); ArmRequest(::google::protobuf::Arena* arena, const ArmRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + ArmRequest(::google::protobuf::Arena* arena, ArmRequest&& from) noexcept + : ArmRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -3339,43 +3570,46 @@ class ArmRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ArmRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ArmForceRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmForceRequest) */ { +class ArmForceRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmForceRequest) */ { public: inline ArmForceRequest() : ArmForceRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ArmForceRequest(::google::protobuf::internal::ConstantInitialized); - inline ArmForceRequest(const ArmForceRequest& from) - : ArmForceRequest(nullptr, from) {} - ArmForceRequest(ArmForceRequest&& from) noexcept - : ArmForceRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmForceRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmForceRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR ArmForceRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline ArmForceRequest(const ArmForceRequest& from) : ArmForceRequest(nullptr, from) {} + inline ArmForceRequest(ArmForceRequest&& from) noexcept + : ArmForceRequest(nullptr, std::move(from)) {} inline ArmForceRequest& operator=(const ArmForceRequest& from) { CopyFrom(from); return *this; } inline ArmForceRequest& operator=(ArmForceRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3406,22 +3640,13 @@ class ArmForceRequest final : } static inline const ArmForceRequest* internal_default_instance() { return reinterpret_cast( - &_ArmForceRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(ArmForceRequest& a, ArmForceRequest& b) { - a.Swap(&b); + &_ArmForceRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(ArmForceRequest& a, ArmForceRequest& b) { a.Swap(&b); } inline void Swap(ArmForceRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3435,8 +3660,8 @@ class ArmForceRequest final : // implements Message ---------------------------------------------- - ArmForceRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ArmForceRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const ArmForceRequest& from) { @@ -3446,27 +3671,43 @@ class ArmForceRequest final : void MergeFrom(const ArmForceRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ArmForceRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ArmForceRequest"; } + + protected: explicit ArmForceRequest(::google::protobuf::Arena* arena); ArmForceRequest(::google::protobuf::Arena* arena, const ArmForceRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + ArmForceRequest(::google::protobuf::Arena* arena, ArmForceRequest&& from) noexcept + : ArmForceRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmForceRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -3475,44 +3716,47 @@ class ArmForceRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ArmForceRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ActionResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ActionResult) */ { +class ActionResult final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ActionResult) */ { public: inline ActionResult() : ActionResult(nullptr) {} - ~ActionResult() override; - template - explicit PROTOBUF_CONSTEXPR ActionResult(::google::protobuf::internal::ConstantInitialized); - - inline ActionResult(const ActionResult& from) - : ActionResult(nullptr, from) {} - ActionResult(ActionResult&& from) noexcept - : ActionResult() { - *this = ::std::move(from); + ~ActionResult() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ActionResult* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ActionResult)); } +#endif + template + explicit PROTOBUF_CONSTEXPR ActionResult( + ::google::protobuf::internal::ConstantInitialized); + + inline ActionResult(const ActionResult& from) : ActionResult(nullptr, from) {} + inline ActionResult(ActionResult&& from) noexcept + : ActionResult(nullptr, std::move(from)) {} inline ActionResult& operator=(const ActionResult& from) { CopyFrom(from); return *this; } inline ActionResult& operator=(ActionResult&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3543,22 +3787,13 @@ class ActionResult final : } static inline const ActionResult* internal_default_instance() { return reinterpret_cast( - &_ActionResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 42; - - friend void swap(ActionResult& a, ActionResult& b) { - a.Swap(&b); + &_ActionResult_default_instance_); } + static constexpr int kIndexInFileMessages = 42; + friend void swap(ActionResult& a, ActionResult& b) { a.Swap(&b); } inline void Swap(ActionResult* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3572,50 +3807,72 @@ class ActionResult final : // implements Message ---------------------------------------------- - ActionResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ActionResult* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ActionResult& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ActionResult& from) { - ActionResult::MergeImpl(*this, from); - } + void MergeFrom(const ActionResult& from) { ActionResult::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ActionResult* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ActionResult"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ActionResult"; - } - protected: + protected: explicit ActionResult(::google::protobuf::Arena* arena); ActionResult(::google::protobuf::Arena* arena, const ActionResult& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ActionResult(::google::protobuf::Arena* arena, ActionResult&& from) noexcept + : ActionResult(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - using Result = ActionResult_Result; static constexpr Result RESULT_UNKNOWN = ActionResult_Result_RESULT_UNKNOWN; static constexpr Result RESULT_SUCCESS = ActionResult_Result_RESULT_SUCCESS; @@ -3650,7 +3907,6 @@ class ActionResult final : } // accessors ------------------------------------------------------- - enum : int { kResultStrFieldNumber = 2, kResultFieldNumber = 1, @@ -3684,12 +3940,12 @@ class ActionResult final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ActionResult) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, 49, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3697,48 +3953,51 @@ class ActionResult final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ActionResult& from_msg); ::google::protobuf::internal::ArenaStringPtr result_str_; int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransitionToMulticopterResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterResponse) */ { +class TransitionToMulticopterResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterResponse) */ { public: inline TransitionToMulticopterResponse() : TransitionToMulticopterResponse(nullptr) {} - ~TransitionToMulticopterResponse() override; - template - explicit PROTOBUF_CONSTEXPR TransitionToMulticopterResponse(::google::protobuf::internal::ConstantInitialized); - - inline TransitionToMulticopterResponse(const TransitionToMulticopterResponse& from) - : TransitionToMulticopterResponse(nullptr, from) {} - TransitionToMulticopterResponse(TransitionToMulticopterResponse&& from) noexcept - : TransitionToMulticopterResponse() { - *this = ::std::move(from); + ~TransitionToMulticopterResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransitionToMulticopterResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransitionToMulticopterResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR TransitionToMulticopterResponse( + ::google::protobuf::internal::ConstantInitialized); + inline TransitionToMulticopterResponse(const TransitionToMulticopterResponse& from) : TransitionToMulticopterResponse(nullptr, from) {} + inline TransitionToMulticopterResponse(TransitionToMulticopterResponse&& from) noexcept + : TransitionToMulticopterResponse(nullptr, std::move(from)) {} inline TransitionToMulticopterResponse& operator=(const TransitionToMulticopterResponse& from) { CopyFrom(from); return *this; } inline TransitionToMulticopterResponse& operator=(TransitionToMulticopterResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3769,22 +4028,13 @@ class TransitionToMulticopterResponse final : } static inline const TransitionToMulticopterResponse* internal_default_instance() { return reinterpret_cast( - &_TransitionToMulticopterResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - friend void swap(TransitionToMulticopterResponse& a, TransitionToMulticopterResponse& b) { - a.Swap(&b); + &_TransitionToMulticopterResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 31; + friend void swap(TransitionToMulticopterResponse& a, TransitionToMulticopterResponse& b) { a.Swap(&b); } inline void Swap(TransitionToMulticopterResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3798,52 +4048,74 @@ class TransitionToMulticopterResponse final : // implements Message ---------------------------------------------- - TransitionToMulticopterResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TransitionToMulticopterResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TransitionToMulticopterResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransitionToMulticopterResponse& from) { - TransitionToMulticopterResponse::MergeImpl(*this, from); - } + void MergeFrom(const TransitionToMulticopterResponse& from) { TransitionToMulticopterResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(TransitionToMulticopterResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TransitionToMulticopterResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToMulticopterResponse"; - } - protected: + protected: explicit TransitionToMulticopterResponse(::google::protobuf::Arena* arena); TransitionToMulticopterResponse(::google::protobuf::Arena* arena, const TransitionToMulticopterResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + TransitionToMulticopterResponse(::google::protobuf::Arena* arena, TransitionToMulticopterResponse&& from) noexcept + : TransitionToMulticopterResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -3865,12 +4137,12 @@ class TransitionToMulticopterResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToMulticopterResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3878,48 +4150,51 @@ class TransitionToMulticopterResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const TransitionToMulticopterResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TransitionToFixedwingResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingResponse) */ { +class TransitionToFixedwingResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingResponse) */ { public: inline TransitionToFixedwingResponse() : TransitionToFixedwingResponse(nullptr) {} - ~TransitionToFixedwingResponse() override; - template - explicit PROTOBUF_CONSTEXPR TransitionToFixedwingResponse(::google::protobuf::internal::ConstantInitialized); - - inline TransitionToFixedwingResponse(const TransitionToFixedwingResponse& from) - : TransitionToFixedwingResponse(nullptr, from) {} - TransitionToFixedwingResponse(TransitionToFixedwingResponse&& from) noexcept - : TransitionToFixedwingResponse() { - *this = ::std::move(from); + ~TransitionToFixedwingResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TransitionToFixedwingResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TransitionToFixedwingResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR TransitionToFixedwingResponse( + ::google::protobuf::internal::ConstantInitialized); + inline TransitionToFixedwingResponse(const TransitionToFixedwingResponse& from) : TransitionToFixedwingResponse(nullptr, from) {} + inline TransitionToFixedwingResponse(TransitionToFixedwingResponse&& from) noexcept + : TransitionToFixedwingResponse(nullptr, std::move(from)) {} inline TransitionToFixedwingResponse& operator=(const TransitionToFixedwingResponse& from) { CopyFrom(from); return *this; } inline TransitionToFixedwingResponse& operator=(TransitionToFixedwingResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3950,22 +4225,13 @@ class TransitionToFixedwingResponse final : } static inline const TransitionToFixedwingResponse* internal_default_instance() { return reinterpret_cast( - &_TransitionToFixedwingResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(TransitionToFixedwingResponse& a, TransitionToFixedwingResponse& b) { - a.Swap(&b); + &_TransitionToFixedwingResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 29; + friend void swap(TransitionToFixedwingResponse& a, TransitionToFixedwingResponse& b) { a.Swap(&b); } inline void Swap(TransitionToFixedwingResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3979,52 +4245,74 @@ class TransitionToFixedwingResponse final : // implements Message ---------------------------------------------- - TransitionToFixedwingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TransitionToFixedwingResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TransitionToFixedwingResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TransitionToFixedwingResponse& from) { - TransitionToFixedwingResponse::MergeImpl(*this, from); - } + void MergeFrom(const TransitionToFixedwingResponse& from) { TransitionToFixedwingResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(TransitionToFixedwingResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TransitionToFixedwingResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TransitionToFixedwingResponse"; - } - protected: + protected: explicit TransitionToFixedwingResponse(::google::protobuf::Arena* arena); TransitionToFixedwingResponse(::google::protobuf::Arena* arena, const TransitionToFixedwingResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + TransitionToFixedwingResponse(::google::protobuf::Arena* arena, TransitionToFixedwingResponse&& from) noexcept + : TransitionToFixedwingResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -4046,12 +4334,12 @@ class TransitionToFixedwingResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToFixedwingResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4059,48 +4347,51 @@ class TransitionToFixedwingResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const TransitionToFixedwingResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TerminateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateResponse) */ { +class TerminateResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateResponse) */ { public: inline TerminateResponse() : TerminateResponse(nullptr) {} - ~TerminateResponse() override; - template - explicit PROTOBUF_CONSTEXPR TerminateResponse(::google::protobuf::internal::ConstantInitialized); - - inline TerminateResponse(const TerminateResponse& from) - : TerminateResponse(nullptr, from) {} - TerminateResponse(TerminateResponse&& from) noexcept - : TerminateResponse() { - *this = ::std::move(from); + ~TerminateResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TerminateResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TerminateResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR TerminateResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline TerminateResponse(const TerminateResponse& from) : TerminateResponse(nullptr, from) {} + inline TerminateResponse(TerminateResponse&& from) noexcept + : TerminateResponse(nullptr, std::move(from)) {} inline TerminateResponse& operator=(const TerminateResponse& from) { CopyFrom(from); return *this; } inline TerminateResponse& operator=(TerminateResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4131,22 +4422,13 @@ class TerminateResponse final : } static inline const TerminateResponse* internal_default_instance() { return reinterpret_cast( - &_TerminateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(TerminateResponse& a, TerminateResponse& b) { - a.Swap(&b); + &_TerminateResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 15; + friend void swap(TerminateResponse& a, TerminateResponse& b) { a.Swap(&b); } inline void Swap(TerminateResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4160,52 +4442,74 @@ class TerminateResponse final : // implements Message ---------------------------------------------- - TerminateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TerminateResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TerminateResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TerminateResponse& from) { - TerminateResponse::MergeImpl(*this, from); - } + void MergeFrom(const TerminateResponse& from) { TerminateResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(TerminateResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TerminateResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TerminateResponse"; - } - protected: + protected: explicit TerminateResponse(::google::protobuf::Arena* arena); TerminateResponse(::google::protobuf::Arena* arena, const TerminateResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + TerminateResponse(::google::protobuf::Arena* arena, TerminateResponse&& from) noexcept + : TerminateResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -4227,12 +4531,12 @@ class TerminateResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TerminateResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4240,48 +4544,51 @@ class TerminateResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const TerminateResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TakeoffResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffResponse) */ { +class TakeoffResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffResponse) */ { public: inline TakeoffResponse() : TakeoffResponse(nullptr) {} - ~TakeoffResponse() override; - template - explicit PROTOBUF_CONSTEXPR TakeoffResponse(::google::protobuf::internal::ConstantInitialized); - - inline TakeoffResponse(const TakeoffResponse& from) - : TakeoffResponse(nullptr, from) {} - TakeoffResponse(TakeoffResponse&& from) noexcept - : TakeoffResponse() { - *this = ::std::move(from); + ~TakeoffResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TakeoffResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TakeoffResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR TakeoffResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline TakeoffResponse(const TakeoffResponse& from) : TakeoffResponse(nullptr, from) {} + inline TakeoffResponse(TakeoffResponse&& from) noexcept + : TakeoffResponse(nullptr, std::move(from)) {} inline TakeoffResponse& operator=(const TakeoffResponse& from) { CopyFrom(from); return *this; } inline TakeoffResponse& operator=(TakeoffResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4312,22 +4619,13 @@ class TakeoffResponse final : } static inline const TakeoffResponse* internal_default_instance() { return reinterpret_cast( - &_TakeoffResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(TakeoffResponse& a, TakeoffResponse& b) { - a.Swap(&b); + &_TakeoffResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 7; + friend void swap(TakeoffResponse& a, TakeoffResponse& b) { a.Swap(&b); } inline void Swap(TakeoffResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4341,52 +4639,74 @@ class TakeoffResponse final : // implements Message ---------------------------------------------- - TakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TakeoffResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TakeoffResponse& from) { - TakeoffResponse::MergeImpl(*this, from); - } + void MergeFrom(const TakeoffResponse& from) { TakeoffResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(TakeoffResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TakeoffResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.TakeoffResponse"; - } - protected: + protected: explicit TakeoffResponse(::google::protobuf::Arena* arena); TakeoffResponse(::google::protobuf::Arena* arena, const TakeoffResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + TakeoffResponse(::google::protobuf::Arena* arena, TakeoffResponse&& from) noexcept + : TakeoffResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -4408,12 +4728,12 @@ class TakeoffResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TakeoffResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4421,48 +4741,51 @@ class TakeoffResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const TakeoffResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ShutdownResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownResponse) */ { +class ShutdownResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownResponse) */ { public: inline ShutdownResponse() : ShutdownResponse(nullptr) {} - ~ShutdownResponse() override; - template - explicit PROTOBUF_CONSTEXPR ShutdownResponse(::google::protobuf::internal::ConstantInitialized); - - inline ShutdownResponse(const ShutdownResponse& from) - : ShutdownResponse(nullptr, from) {} - ShutdownResponse(ShutdownResponse&& from) noexcept - : ShutdownResponse() { - *this = ::std::move(from); + ~ShutdownResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ShutdownResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ShutdownResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ShutdownResponse( + ::google::protobuf::internal::ConstantInitialized); + inline ShutdownResponse(const ShutdownResponse& from) : ShutdownResponse(nullptr, from) {} + inline ShutdownResponse(ShutdownResponse&& from) noexcept + : ShutdownResponse(nullptr, std::move(from)) {} inline ShutdownResponse& operator=(const ShutdownResponse& from) { CopyFrom(from); return *this; } inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4493,22 +4816,13 @@ class ShutdownResponse final : } static inline const ShutdownResponse* internal_default_instance() { return reinterpret_cast( - &_ShutdownResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(ShutdownResponse& a, ShutdownResponse& b) { - a.Swap(&b); + &_ShutdownResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 13; + friend void swap(ShutdownResponse& a, ShutdownResponse& b) { a.Swap(&b); } inline void Swap(ShutdownResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4522,52 +4836,74 @@ class ShutdownResponse final : // implements Message ---------------------------------------------- - ShutdownResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ShutdownResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ShutdownResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ShutdownResponse& from) { - ShutdownResponse::MergeImpl(*this, from); - } + void MergeFrom(const ShutdownResponse& from) { ShutdownResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ShutdownResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ShutdownResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ShutdownResponse"; - } - protected: + protected: explicit ShutdownResponse(::google::protobuf::Arena* arena); ShutdownResponse(::google::protobuf::Arena* arena, const ShutdownResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ShutdownResponse(::google::protobuf::Arena* arena, ShutdownResponse&& from) noexcept + : ShutdownResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -4589,12 +4925,12 @@ class ShutdownResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ShutdownResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4602,48 +4938,51 @@ class ShutdownResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ShutdownResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetTakeoffAltitudeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeResponse) */ { +class SetTakeoffAltitudeResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeResponse) */ { public: inline SetTakeoffAltitudeResponse() : SetTakeoffAltitudeResponse(nullptr) {} - ~SetTakeoffAltitudeResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetTakeoffAltitudeResponse(const SetTakeoffAltitudeResponse& from) - : SetTakeoffAltitudeResponse(nullptr, from) {} - SetTakeoffAltitudeResponse(SetTakeoffAltitudeResponse&& from) noexcept - : SetTakeoffAltitudeResponse() { - *this = ::std::move(from); + ~SetTakeoffAltitudeResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetTakeoffAltitudeResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetTakeoffAltitudeResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SetTakeoffAltitudeResponse(const SetTakeoffAltitudeResponse& from) : SetTakeoffAltitudeResponse(nullptr, from) {} + inline SetTakeoffAltitudeResponse(SetTakeoffAltitudeResponse&& from) noexcept + : SetTakeoffAltitudeResponse(nullptr, std::move(from)) {} inline SetTakeoffAltitudeResponse& operator=(const SetTakeoffAltitudeResponse& from) { CopyFrom(from); return *this; } inline SetTakeoffAltitudeResponse& operator=(SetTakeoffAltitudeResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4674,22 +5013,13 @@ class SetTakeoffAltitudeResponse final : } static inline const SetTakeoffAltitudeResponse* internal_default_instance() { return reinterpret_cast( - &_SetTakeoffAltitudeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - friend void swap(SetTakeoffAltitudeResponse& a, SetTakeoffAltitudeResponse& b) { - a.Swap(&b); + &_SetTakeoffAltitudeResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 35; + friend void swap(SetTakeoffAltitudeResponse& a, SetTakeoffAltitudeResponse& b) { a.Swap(&b); } inline void Swap(SetTakeoffAltitudeResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4703,52 +5033,74 @@ class SetTakeoffAltitudeResponse final : // implements Message ---------------------------------------------- - SetTakeoffAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetTakeoffAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetTakeoffAltitudeResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetTakeoffAltitudeResponse& from) { - SetTakeoffAltitudeResponse::MergeImpl(*this, from); - } + void MergeFrom(const SetTakeoffAltitudeResponse& from) { SetTakeoffAltitudeResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetTakeoffAltitudeResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetTakeoffAltitudeResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetTakeoffAltitudeResponse"; - } - protected: + protected: explicit SetTakeoffAltitudeResponse(::google::protobuf::Arena* arena); SetTakeoffAltitudeResponse(::google::protobuf::Arena* arena, const SetTakeoffAltitudeResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetTakeoffAltitudeResponse(::google::protobuf::Arena* arena, SetTakeoffAltitudeResponse&& from) noexcept + : SetTakeoffAltitudeResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -4770,12 +5122,12 @@ class SetTakeoffAltitudeResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetTakeoffAltitudeResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4783,48 +5135,51 @@ class SetTakeoffAltitudeResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetTakeoffAltitudeResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetReturnToLaunchAltitudeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) */ { +class SetReturnToLaunchAltitudeResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) */ { public: inline SetReturnToLaunchAltitudeResponse() : SetReturnToLaunchAltitudeResponse(nullptr) {} - ~SetReturnToLaunchAltitudeResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetReturnToLaunchAltitudeResponse(const SetReturnToLaunchAltitudeResponse& from) - : SetReturnToLaunchAltitudeResponse(nullptr, from) {} - SetReturnToLaunchAltitudeResponse(SetReturnToLaunchAltitudeResponse&& from) noexcept - : SetReturnToLaunchAltitudeResponse() { - *this = ::std::move(from); + ~SetReturnToLaunchAltitudeResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetReturnToLaunchAltitudeResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetReturnToLaunchAltitudeResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SetReturnToLaunchAltitudeResponse(const SetReturnToLaunchAltitudeResponse& from) : SetReturnToLaunchAltitudeResponse(nullptr, from) {} + inline SetReturnToLaunchAltitudeResponse(SetReturnToLaunchAltitudeResponse&& from) noexcept + : SetReturnToLaunchAltitudeResponse(nullptr, std::move(from)) {} inline SetReturnToLaunchAltitudeResponse& operator=(const SetReturnToLaunchAltitudeResponse& from) { CopyFrom(from); return *this; } inline SetReturnToLaunchAltitudeResponse& operator=(SetReturnToLaunchAltitudeResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4855,22 +5210,13 @@ class SetReturnToLaunchAltitudeResponse final : } static inline const SetReturnToLaunchAltitudeResponse* internal_default_instance() { return reinterpret_cast( - &_SetReturnToLaunchAltitudeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - - friend void swap(SetReturnToLaunchAltitudeResponse& a, SetReturnToLaunchAltitudeResponse& b) { - a.Swap(&b); + &_SetReturnToLaunchAltitudeResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 39; + friend void swap(SetReturnToLaunchAltitudeResponse& a, SetReturnToLaunchAltitudeResponse& b) { a.Swap(&b); } inline void Swap(SetReturnToLaunchAltitudeResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4884,52 +5230,74 @@ class SetReturnToLaunchAltitudeResponse final : // implements Message ---------------------------------------------- - SetReturnToLaunchAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetReturnToLaunchAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetReturnToLaunchAltitudeResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetReturnToLaunchAltitudeResponse& from) { - SetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); - } + void MergeFrom(const SetReturnToLaunchAltitudeResponse& from) { SetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetReturnToLaunchAltitudeResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse"; - } - protected: + protected: explicit SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena); SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena, SetReturnToLaunchAltitudeResponse&& from) noexcept + : SetReturnToLaunchAltitudeResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -4951,12 +5319,12 @@ class SetReturnToLaunchAltitudeResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4964,48 +5332,51 @@ class SetReturnToLaunchAltitudeResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetReturnToLaunchAltitudeResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetCurrentSpeedResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedResponse) */ { +class SetCurrentSpeedResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedResponse) */ { public: inline SetCurrentSpeedResponse() : SetCurrentSpeedResponse(nullptr) {} - ~SetCurrentSpeedResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetCurrentSpeedResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetCurrentSpeedResponse(const SetCurrentSpeedResponse& from) - : SetCurrentSpeedResponse(nullptr, from) {} - SetCurrentSpeedResponse(SetCurrentSpeedResponse&& from) noexcept - : SetCurrentSpeedResponse() { - *this = ::std::move(from); + ~SetCurrentSpeedResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetCurrentSpeedResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetCurrentSpeedResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SetCurrentSpeedResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SetCurrentSpeedResponse(const SetCurrentSpeedResponse& from) : SetCurrentSpeedResponse(nullptr, from) {} + inline SetCurrentSpeedResponse(SetCurrentSpeedResponse&& from) noexcept + : SetCurrentSpeedResponse(nullptr, std::move(from)) {} inline SetCurrentSpeedResponse& operator=(const SetCurrentSpeedResponse& from) { CopyFrom(from); return *this; } inline SetCurrentSpeedResponse& operator=(SetCurrentSpeedResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5036,22 +5407,13 @@ class SetCurrentSpeedResponse final : } static inline const SetCurrentSpeedResponse* internal_default_instance() { return reinterpret_cast( - &_SetCurrentSpeedResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 41; - - friend void swap(SetCurrentSpeedResponse& a, SetCurrentSpeedResponse& b) { - a.Swap(&b); + &_SetCurrentSpeedResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 41; + friend void swap(SetCurrentSpeedResponse& a, SetCurrentSpeedResponse& b) { a.Swap(&b); } inline void Swap(SetCurrentSpeedResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -5065,52 +5427,74 @@ class SetCurrentSpeedResponse final : // implements Message ---------------------------------------------- - SetCurrentSpeedResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetCurrentSpeedResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetCurrentSpeedResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetCurrentSpeedResponse& from) { - SetCurrentSpeedResponse::MergeImpl(*this, from); - } + void MergeFrom(const SetCurrentSpeedResponse& from) { SetCurrentSpeedResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetCurrentSpeedResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetCurrentSpeedResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetCurrentSpeedResponse"; - } - protected: + protected: explicit SetCurrentSpeedResponse(::google::protobuf::Arena* arena); SetCurrentSpeedResponse(::google::protobuf::Arena* arena, const SetCurrentSpeedResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetCurrentSpeedResponse(::google::protobuf::Arena* arena, SetCurrentSpeedResponse&& from) noexcept + : SetCurrentSpeedResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -5132,12 +5516,12 @@ class SetCurrentSpeedResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetCurrentSpeedResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -5145,48 +5529,51 @@ class SetCurrentSpeedResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetCurrentSpeedResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetActuatorResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorResponse) */ { +class SetActuatorResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorResponse) */ { public: inline SetActuatorResponse() : SetActuatorResponse(nullptr) {} - ~SetActuatorResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetActuatorResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetActuatorResponse(const SetActuatorResponse& from) - : SetActuatorResponse(nullptr, from) {} - SetActuatorResponse(SetActuatorResponse&& from) noexcept - : SetActuatorResponse() { - *this = ::std::move(from); + ~SetActuatorResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetActuatorResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetActuatorResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SetActuatorResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SetActuatorResponse(const SetActuatorResponse& from) : SetActuatorResponse(nullptr, from) {} + inline SetActuatorResponse(SetActuatorResponse&& from) noexcept + : SetActuatorResponse(nullptr, std::move(from)) {} inline SetActuatorResponse& operator=(const SetActuatorResponse& from) { CopyFrom(from); return *this; } inline SetActuatorResponse& operator=(SetActuatorResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5217,22 +5604,13 @@ class SetActuatorResponse final : } static inline const SetActuatorResponse* internal_default_instance() { return reinterpret_cast( - &_SetActuatorResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(SetActuatorResponse& a, SetActuatorResponse& b) { - a.Swap(&b); + &_SetActuatorResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 27; + friend void swap(SetActuatorResponse& a, SetActuatorResponse& b) { a.Swap(&b); } inline void Swap(SetActuatorResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -5246,52 +5624,74 @@ class SetActuatorResponse final : // implements Message ---------------------------------------------- - SetActuatorResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetActuatorResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetActuatorResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetActuatorResponse& from) { - SetActuatorResponse::MergeImpl(*this, from); - } + void MergeFrom(const SetActuatorResponse& from) { SetActuatorResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetActuatorResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetActuatorResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetActuatorResponse"; - } - protected: + protected: explicit SetActuatorResponse(::google::protobuf::Arena* arena); SetActuatorResponse(::google::protobuf::Arena* arena, const SetActuatorResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetActuatorResponse(::google::protobuf::Arena* arena, SetActuatorResponse&& from) noexcept + : SetActuatorResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -5313,12 +5713,12 @@ class SetActuatorResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetActuatorResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -5326,48 +5726,51 @@ class SetActuatorResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetActuatorResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ReturnToLaunchResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchResponse) */ { +class ReturnToLaunchResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchResponse) */ { public: inline ReturnToLaunchResponse() : ReturnToLaunchResponse(nullptr) {} - ~ReturnToLaunchResponse() override; - template - explicit PROTOBUF_CONSTEXPR ReturnToLaunchResponse(::google::protobuf::internal::ConstantInitialized); - - inline ReturnToLaunchResponse(const ReturnToLaunchResponse& from) - : ReturnToLaunchResponse(nullptr, from) {} - ReturnToLaunchResponse(ReturnToLaunchResponse&& from) noexcept - : ReturnToLaunchResponse() { - *this = ::std::move(from); + ~ReturnToLaunchResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ReturnToLaunchResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ReturnToLaunchResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR ReturnToLaunchResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline ReturnToLaunchResponse(const ReturnToLaunchResponse& from) : ReturnToLaunchResponse(nullptr, from) {} + inline ReturnToLaunchResponse(ReturnToLaunchResponse&& from) noexcept + : ReturnToLaunchResponse(nullptr, std::move(from)) {} inline ReturnToLaunchResponse& operator=(const ReturnToLaunchResponse& from) { CopyFrom(from); return *this; } inline ReturnToLaunchResponse& operator=(ReturnToLaunchResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5398,22 +5801,13 @@ class ReturnToLaunchResponse final : } static inline const ReturnToLaunchResponse* internal_default_instance() { return reinterpret_cast( - &_ReturnToLaunchResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(ReturnToLaunchResponse& a, ReturnToLaunchResponse& b) { - a.Swap(&b); + &_ReturnToLaunchResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 19; + friend void swap(ReturnToLaunchResponse& a, ReturnToLaunchResponse& b) { a.Swap(&b); } inline void Swap(ReturnToLaunchResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -5427,52 +5821,74 @@ class ReturnToLaunchResponse final : // implements Message ---------------------------------------------- - ReturnToLaunchResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ReturnToLaunchResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ReturnToLaunchResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ReturnToLaunchResponse& from) { - ReturnToLaunchResponse::MergeImpl(*this, from); - } + void MergeFrom(const ReturnToLaunchResponse& from) { ReturnToLaunchResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ReturnToLaunchResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ReturnToLaunchResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ReturnToLaunchResponse"; - } - protected: + protected: explicit ReturnToLaunchResponse(::google::protobuf::Arena* arena); ReturnToLaunchResponse(::google::protobuf::Arena* arena, const ReturnToLaunchResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ReturnToLaunchResponse(::google::protobuf::Arena* arena, ReturnToLaunchResponse&& from) noexcept + : ReturnToLaunchResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -5494,12 +5910,12 @@ class ReturnToLaunchResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ReturnToLaunchResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -5507,48 +5923,51 @@ class ReturnToLaunchResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ReturnToLaunchResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RebootResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootResponse) */ { +class RebootResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootResponse) */ { public: inline RebootResponse() : RebootResponse(nullptr) {} - ~RebootResponse() override; - template - explicit PROTOBUF_CONSTEXPR RebootResponse(::google::protobuf::internal::ConstantInitialized); - - inline RebootResponse(const RebootResponse& from) - : RebootResponse(nullptr, from) {} - RebootResponse(RebootResponse&& from) noexcept - : RebootResponse() { - *this = ::std::move(from); + ~RebootResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RebootResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RebootResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR RebootResponse( + ::google::protobuf::internal::ConstantInitialized); + inline RebootResponse(const RebootResponse& from) : RebootResponse(nullptr, from) {} + inline RebootResponse(RebootResponse&& from) noexcept + : RebootResponse(nullptr, std::move(from)) {} inline RebootResponse& operator=(const RebootResponse& from) { CopyFrom(from); return *this; } inline RebootResponse& operator=(RebootResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5579,22 +5998,13 @@ class RebootResponse final : } static inline const RebootResponse* internal_default_instance() { return reinterpret_cast( - &_RebootResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(RebootResponse& a, RebootResponse& b) { - a.Swap(&b); + &_RebootResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 11; + friend void swap(RebootResponse& a, RebootResponse& b) { a.Swap(&b); } inline void Swap(RebootResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -5608,52 +6018,74 @@ class RebootResponse final : // implements Message ---------------------------------------------- - RebootResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RebootResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const RebootResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RebootResponse& from) { - RebootResponse::MergeImpl(*this, from); - } + void MergeFrom(const RebootResponse& from) { RebootResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(RebootResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.RebootResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.RebootResponse"; - } - protected: + protected: explicit RebootResponse(::google::protobuf::Arena* arena); RebootResponse(::google::protobuf::Arena* arena, const RebootResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + RebootResponse(::google::protobuf::Arena* arena, RebootResponse&& from) noexcept + : RebootResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -5675,12 +6107,12 @@ class RebootResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.RebootResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -5688,48 +6120,51 @@ class RebootResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const RebootResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LandResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandResponse) */ { +class LandResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandResponse) */ { public: inline LandResponse() : LandResponse(nullptr) {} - ~LandResponse() override; - template - explicit PROTOBUF_CONSTEXPR LandResponse(::google::protobuf::internal::ConstantInitialized); - - inline LandResponse(const LandResponse& from) - : LandResponse(nullptr, from) {} - LandResponse(LandResponse&& from) noexcept - : LandResponse() { - *this = ::std::move(from); + ~LandResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LandResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LandResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR LandResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline LandResponse(const LandResponse& from) : LandResponse(nullptr, from) {} + inline LandResponse(LandResponse&& from) noexcept + : LandResponse(nullptr, std::move(from)) {} inline LandResponse& operator=(const LandResponse& from) { CopyFrom(from); return *this; } inline LandResponse& operator=(LandResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5760,22 +6195,13 @@ class LandResponse final : } static inline const LandResponse* internal_default_instance() { return reinterpret_cast( - &_LandResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(LandResponse& a, LandResponse& b) { - a.Swap(&b); + &_LandResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 9; + friend void swap(LandResponse& a, LandResponse& b) { a.Swap(&b); } inline void Swap(LandResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -5789,52 +6215,74 @@ class LandResponse final : // implements Message ---------------------------------------------- - LandResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + LandResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const LandResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LandResponse& from) { - LandResponse::MergeImpl(*this, from); - } + void MergeFrom(const LandResponse& from) { LandResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(LandResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.LandResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.LandResponse"; - } - protected: + protected: explicit LandResponse(::google::protobuf::Arena* arena); LandResponse(::google::protobuf::Arena* arena, const LandResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + LandResponse(::google::protobuf::Arena* arena, LandResponse&& from) noexcept + : LandResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -5856,12 +6304,12 @@ class LandResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.LandResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -5869,48 +6317,51 @@ class LandResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const LandResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class KillResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillResponse) */ { +class KillResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillResponse) */ { public: inline KillResponse() : KillResponse(nullptr) {} - ~KillResponse() override; - template - explicit PROTOBUF_CONSTEXPR KillResponse(::google::protobuf::internal::ConstantInitialized); - - inline KillResponse(const KillResponse& from) - : KillResponse(nullptr, from) {} - KillResponse(KillResponse&& from) noexcept - : KillResponse() { - *this = ::std::move(from); + ~KillResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(KillResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(KillResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR KillResponse( + ::google::protobuf::internal::ConstantInitialized); + inline KillResponse(const KillResponse& from) : KillResponse(nullptr, from) {} + inline KillResponse(KillResponse&& from) noexcept + : KillResponse(nullptr, std::move(from)) {} inline KillResponse& operator=(const KillResponse& from) { CopyFrom(from); return *this; } inline KillResponse& operator=(KillResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -5941,22 +6392,13 @@ class KillResponse final : } static inline const KillResponse* internal_default_instance() { return reinterpret_cast( - &_KillResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(KillResponse& a, KillResponse& b) { - a.Swap(&b); + &_KillResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 17; + friend void swap(KillResponse& a, KillResponse& b) { a.Swap(&b); } inline void Swap(KillResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -5970,52 +6412,74 @@ class KillResponse final : // implements Message ---------------------------------------------- - KillResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + KillResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const KillResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const KillResponse& from) { - KillResponse::MergeImpl(*this, from); - } + void MergeFrom(const KillResponse& from) { KillResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(KillResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.KillResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.KillResponse"; - } - protected: + protected: explicit KillResponse(::google::protobuf::Arena* arena); KillResponse(::google::protobuf::Arena* arena, const KillResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + KillResponse(::google::protobuf::Arena* arena, KillResponse&& from) noexcept + : KillResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -6037,12 +6501,12 @@ class KillResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.KillResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -6050,48 +6514,51 @@ class KillResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const KillResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class HoldResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldResponse) */ { +class HoldResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldResponse) */ { public: inline HoldResponse() : HoldResponse(nullptr) {} - ~HoldResponse() override; - template - explicit PROTOBUF_CONSTEXPR HoldResponse(::google::protobuf::internal::ConstantInitialized); - - inline HoldResponse(const HoldResponse& from) - : HoldResponse(nullptr, from) {} - HoldResponse(HoldResponse&& from) noexcept - : HoldResponse() { - *this = ::std::move(from); + ~HoldResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(HoldResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(HoldResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR HoldResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline HoldResponse(const HoldResponse& from) : HoldResponse(nullptr, from) {} + inline HoldResponse(HoldResponse&& from) noexcept + : HoldResponse(nullptr, std::move(from)) {} inline HoldResponse& operator=(const HoldResponse& from) { CopyFrom(from); return *this; } inline HoldResponse& operator=(HoldResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6122,22 +6589,13 @@ class HoldResponse final : } static inline const HoldResponse* internal_default_instance() { return reinterpret_cast( - &_HoldResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(HoldResponse& a, HoldResponse& b) { - a.Swap(&b); + &_HoldResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 25; + friend void swap(HoldResponse& a, HoldResponse& b) { a.Swap(&b); } inline void Swap(HoldResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -6151,52 +6609,74 @@ class HoldResponse final : // implements Message ---------------------------------------------- - HoldResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + HoldResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const HoldResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const HoldResponse& from) { - HoldResponse::MergeImpl(*this, from); - } + void MergeFrom(const HoldResponse& from) { HoldResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(HoldResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.HoldResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.HoldResponse"; - } - protected: + protected: explicit HoldResponse(::google::protobuf::Arena* arena); HoldResponse(::google::protobuf::Arena* arena, const HoldResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + HoldResponse(::google::protobuf::Arena* arena, HoldResponse&& from) noexcept + : HoldResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -6218,12 +6698,12 @@ class HoldResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.HoldResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -6231,48 +6711,51 @@ class HoldResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const HoldResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GotoLocationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationResponse) */ { +class GotoLocationResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationResponse) */ { public: inline GotoLocationResponse() : GotoLocationResponse(nullptr) {} - ~GotoLocationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GotoLocationResponse(::google::protobuf::internal::ConstantInitialized); - - inline GotoLocationResponse(const GotoLocationResponse& from) - : GotoLocationResponse(nullptr, from) {} - GotoLocationResponse(GotoLocationResponse&& from) noexcept - : GotoLocationResponse() { - *this = ::std::move(from); + ~GotoLocationResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GotoLocationResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GotoLocationResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR GotoLocationResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GotoLocationResponse(const GotoLocationResponse& from) : GotoLocationResponse(nullptr, from) {} + inline GotoLocationResponse(GotoLocationResponse&& from) noexcept + : GotoLocationResponse(nullptr, std::move(from)) {} inline GotoLocationResponse& operator=(const GotoLocationResponse& from) { CopyFrom(from); return *this; } inline GotoLocationResponse& operator=(GotoLocationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6303,22 +6786,13 @@ class GotoLocationResponse final : } static inline const GotoLocationResponse* internal_default_instance() { return reinterpret_cast( - &_GotoLocationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(GotoLocationResponse& a, GotoLocationResponse& b) { - a.Swap(&b); + &_GotoLocationResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 21; + friend void swap(GotoLocationResponse& a, GotoLocationResponse& b) { a.Swap(&b); } inline void Swap(GotoLocationResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -6332,52 +6806,74 @@ class GotoLocationResponse final : // implements Message ---------------------------------------------- - GotoLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GotoLocationResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GotoLocationResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GotoLocationResponse& from) { - GotoLocationResponse::MergeImpl(*this, from); - } + void MergeFrom(const GotoLocationResponse& from) { GotoLocationResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(GotoLocationResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GotoLocationResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GotoLocationResponse"; - } - protected: + protected: explicit GotoLocationResponse(::google::protobuf::Arena* arena); GotoLocationResponse(::google::protobuf::Arena* arena, const GotoLocationResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + GotoLocationResponse(::google::protobuf::Arena* arena, GotoLocationResponse&& from) noexcept + : GotoLocationResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -6399,12 +6895,12 @@ class GotoLocationResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GotoLocationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -6412,48 +6908,51 @@ class GotoLocationResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const GotoLocationResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetTakeoffAltitudeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetTakeoffAltitudeResponse) */ { +class GetTakeoffAltitudeResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetTakeoffAltitudeResponse) */ { public: inline GetTakeoffAltitudeResponse() : GetTakeoffAltitudeResponse(nullptr) {} - ~GetTakeoffAltitudeResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetTakeoffAltitudeResponse(const GetTakeoffAltitudeResponse& from) - : GetTakeoffAltitudeResponse(nullptr, from) {} - GetTakeoffAltitudeResponse(GetTakeoffAltitudeResponse&& from) noexcept - : GetTakeoffAltitudeResponse() { - *this = ::std::move(from); + ~GetTakeoffAltitudeResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetTakeoffAltitudeResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTakeoffAltitudeResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline GetTakeoffAltitudeResponse(const GetTakeoffAltitudeResponse& from) : GetTakeoffAltitudeResponse(nullptr, from) {} + inline GetTakeoffAltitudeResponse(GetTakeoffAltitudeResponse&& from) noexcept + : GetTakeoffAltitudeResponse(nullptr, std::move(from)) {} inline GetTakeoffAltitudeResponse& operator=(const GetTakeoffAltitudeResponse& from) { CopyFrom(from); return *this; } inline GetTakeoffAltitudeResponse& operator=(GetTakeoffAltitudeResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6484,22 +6983,13 @@ class GetTakeoffAltitudeResponse final : } static inline const GetTakeoffAltitudeResponse* internal_default_instance() { return reinterpret_cast( - &_GetTakeoffAltitudeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - friend void swap(GetTakeoffAltitudeResponse& a, GetTakeoffAltitudeResponse& b) { - a.Swap(&b); + &_GetTakeoffAltitudeResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 33; + friend void swap(GetTakeoffAltitudeResponse& a, GetTakeoffAltitudeResponse& b) { a.Swap(&b); } inline void Swap(GetTakeoffAltitudeResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -6513,52 +7003,74 @@ class GetTakeoffAltitudeResponse final : // implements Message ---------------------------------------------- - GetTakeoffAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetTakeoffAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetTakeoffAltitudeResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetTakeoffAltitudeResponse& from) { - GetTakeoffAltitudeResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetTakeoffAltitudeResponse& from) { GetTakeoffAltitudeResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(GetTakeoffAltitudeResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GetTakeoffAltitudeResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetTakeoffAltitudeResponse"; - } - protected: + protected: explicit GetTakeoffAltitudeResponse(::google::protobuf::Arena* arena); GetTakeoffAltitudeResponse(::google::protobuf::Arena* arena, const GetTakeoffAltitudeResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + GetTakeoffAltitudeResponse(::google::protobuf::Arena* arena, GetTakeoffAltitudeResponse&& from) noexcept + : GetTakeoffAltitudeResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, kAltitudeFieldNumber = 2, @@ -6591,12 +7103,12 @@ class GetTakeoffAltitudeResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetTakeoffAltitudeResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -6604,49 +7116,52 @@ class GetTakeoffAltitudeResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const GetTakeoffAltitudeResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; float altitude_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetReturnToLaunchAltitudeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) */ { +class GetReturnToLaunchAltitudeResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) */ { public: inline GetReturnToLaunchAltitudeResponse() : GetReturnToLaunchAltitudeResponse(nullptr) {} - ~GetReturnToLaunchAltitudeResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetReturnToLaunchAltitudeResponse(const GetReturnToLaunchAltitudeResponse& from) - : GetReturnToLaunchAltitudeResponse(nullptr, from) {} - GetReturnToLaunchAltitudeResponse(GetReturnToLaunchAltitudeResponse&& from) noexcept - : GetReturnToLaunchAltitudeResponse() { - *this = ::std::move(from); + ~GetReturnToLaunchAltitudeResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetReturnToLaunchAltitudeResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetReturnToLaunchAltitudeResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponse( + ::google::protobuf::internal::ConstantInitialized); + inline GetReturnToLaunchAltitudeResponse(const GetReturnToLaunchAltitudeResponse& from) : GetReturnToLaunchAltitudeResponse(nullptr, from) {} + inline GetReturnToLaunchAltitudeResponse(GetReturnToLaunchAltitudeResponse&& from) noexcept + : GetReturnToLaunchAltitudeResponse(nullptr, std::move(from)) {} inline GetReturnToLaunchAltitudeResponse& operator=(const GetReturnToLaunchAltitudeResponse& from) { CopyFrom(from); return *this; } inline GetReturnToLaunchAltitudeResponse& operator=(GetReturnToLaunchAltitudeResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6677,22 +7192,13 @@ class GetReturnToLaunchAltitudeResponse final : } static inline const GetReturnToLaunchAltitudeResponse* internal_default_instance() { return reinterpret_cast( - &_GetReturnToLaunchAltitudeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - friend void swap(GetReturnToLaunchAltitudeResponse& a, GetReturnToLaunchAltitudeResponse& b) { - a.Swap(&b); + &_GetReturnToLaunchAltitudeResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 37; + friend void swap(GetReturnToLaunchAltitudeResponse& a, GetReturnToLaunchAltitudeResponse& b) { a.Swap(&b); } inline void Swap(GetReturnToLaunchAltitudeResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -6706,52 +7212,74 @@ class GetReturnToLaunchAltitudeResponse final : // implements Message ---------------------------------------------- - GetReturnToLaunchAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetReturnToLaunchAltitudeResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetReturnToLaunchAltitudeResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetReturnToLaunchAltitudeResponse& from) { - GetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetReturnToLaunchAltitudeResponse& from) { GetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(GetReturnToLaunchAltitudeResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse"; - } - protected: + protected: explicit GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena); GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena, const GetReturnToLaunchAltitudeResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena, GetReturnToLaunchAltitudeResponse&& from) noexcept + : GetReturnToLaunchAltitudeResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, kRelativeAltitudeMFieldNumber = 2, @@ -6784,12 +7312,12 @@ class GetReturnToLaunchAltitudeResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -6797,49 +7325,52 @@ class GetReturnToLaunchAltitudeResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const GetReturnToLaunchAltitudeResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; float relative_altitude_m_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DoOrbitResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitResponse) */ { +class DoOrbitResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitResponse) */ { public: inline DoOrbitResponse() : DoOrbitResponse(nullptr) {} - ~DoOrbitResponse() override; - template - explicit PROTOBUF_CONSTEXPR DoOrbitResponse(::google::protobuf::internal::ConstantInitialized); - - inline DoOrbitResponse(const DoOrbitResponse& from) - : DoOrbitResponse(nullptr, from) {} - DoOrbitResponse(DoOrbitResponse&& from) noexcept - : DoOrbitResponse() { - *this = ::std::move(from); + ~DoOrbitResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DoOrbitResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DoOrbitResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR DoOrbitResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline DoOrbitResponse(const DoOrbitResponse& from) : DoOrbitResponse(nullptr, from) {} + inline DoOrbitResponse(DoOrbitResponse&& from) noexcept + : DoOrbitResponse(nullptr, std::move(from)) {} inline DoOrbitResponse& operator=(const DoOrbitResponse& from) { CopyFrom(from); return *this; } inline DoOrbitResponse& operator=(DoOrbitResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -6870,22 +7401,13 @@ class DoOrbitResponse final : } static inline const DoOrbitResponse* internal_default_instance() { return reinterpret_cast( - &_DoOrbitResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(DoOrbitResponse& a, DoOrbitResponse& b) { - a.Swap(&b); + &_DoOrbitResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 23; + friend void swap(DoOrbitResponse& a, DoOrbitResponse& b) { a.Swap(&b); } inline void Swap(DoOrbitResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -6899,52 +7421,74 @@ class DoOrbitResponse final : // implements Message ---------------------------------------------- - DoOrbitResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DoOrbitResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const DoOrbitResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DoOrbitResponse& from) { - DoOrbitResponse::MergeImpl(*this, from); - } + void MergeFrom(const DoOrbitResponse& from) { DoOrbitResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(DoOrbitResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DoOrbitResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.DoOrbitResponse"; - } - protected: + protected: explicit DoOrbitResponse(::google::protobuf::Arena* arena); DoOrbitResponse(::google::protobuf::Arena* arena, const DoOrbitResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + DoOrbitResponse(::google::protobuf::Arena* arena, DoOrbitResponse&& from) noexcept + : DoOrbitResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -6966,12 +7510,12 @@ class DoOrbitResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DoOrbitResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -6979,48 +7523,51 @@ class DoOrbitResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const DoOrbitResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class DisarmResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmResponse) */ { +class DisarmResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmResponse) */ { public: inline DisarmResponse() : DisarmResponse(nullptr) {} - ~DisarmResponse() override; - template - explicit PROTOBUF_CONSTEXPR DisarmResponse(::google::protobuf::internal::ConstantInitialized); - - inline DisarmResponse(const DisarmResponse& from) - : DisarmResponse(nullptr, from) {} - DisarmResponse(DisarmResponse&& from) noexcept - : DisarmResponse() { - *this = ::std::move(from); + ~DisarmResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(DisarmResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(DisarmResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR DisarmResponse( + ::google::protobuf::internal::ConstantInitialized); + inline DisarmResponse(const DisarmResponse& from) : DisarmResponse(nullptr, from) {} + inline DisarmResponse(DisarmResponse&& from) noexcept + : DisarmResponse(nullptr, std::move(from)) {} inline DisarmResponse& operator=(const DisarmResponse& from) { CopyFrom(from); return *this; } inline DisarmResponse& operator=(DisarmResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -7051,22 +7598,13 @@ class DisarmResponse final : } static inline const DisarmResponse* internal_default_instance() { return reinterpret_cast( - &_DisarmResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(DisarmResponse& a, DisarmResponse& b) { - a.Swap(&b); + &_DisarmResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 5; + friend void swap(DisarmResponse& a, DisarmResponse& b) { a.Swap(&b); } inline void Swap(DisarmResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -7080,52 +7618,74 @@ class DisarmResponse final : // implements Message ---------------------------------------------- - DisarmResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DisarmResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const DisarmResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const DisarmResponse& from) { - DisarmResponse::MergeImpl(*this, from); - } + void MergeFrom(const DisarmResponse& from) { DisarmResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(DisarmResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DisarmResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.DisarmResponse"; - } - protected: + protected: explicit DisarmResponse(::google::protobuf::Arena* arena); DisarmResponse(::google::protobuf::Arena* arena, const DisarmResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + DisarmResponse(::google::protobuf::Arena* arena, DisarmResponse&& from) noexcept + : DisarmResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -7147,12 +7707,12 @@ class DisarmResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DisarmResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -7160,48 +7720,51 @@ class DisarmResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const DisarmResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ArmResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmResponse) */ { +class ArmResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmResponse) */ { public: inline ArmResponse() : ArmResponse(nullptr) {} - ~ArmResponse() override; - template - explicit PROTOBUF_CONSTEXPR ArmResponse(::google::protobuf::internal::ConstantInitialized); - - inline ArmResponse(const ArmResponse& from) - : ArmResponse(nullptr, from) {} - ArmResponse(ArmResponse&& from) noexcept - : ArmResponse() { - *this = ::std::move(from); + ~ArmResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR ArmResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline ArmResponse(const ArmResponse& from) : ArmResponse(nullptr, from) {} + inline ArmResponse(ArmResponse&& from) noexcept + : ArmResponse(nullptr, std::move(from)) {} inline ArmResponse& operator=(const ArmResponse& from) { CopyFrom(from); return *this; } inline ArmResponse& operator=(ArmResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -7232,22 +7795,13 @@ class ArmResponse final : } static inline const ArmResponse* internal_default_instance() { return reinterpret_cast( - &_ArmResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(ArmResponse& a, ArmResponse& b) { - a.Swap(&b); + &_ArmResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(ArmResponse& a, ArmResponse& b) { a.Swap(&b); } inline void Swap(ArmResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -7261,52 +7815,74 @@ class ArmResponse final : // implements Message ---------------------------------------------- - ArmResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ArmResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ArmResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmResponse& from) { - ArmResponse::MergeImpl(*this, from); - } + void MergeFrom(const ArmResponse& from) { ArmResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ArmResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ArmResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ArmResponse"; - } - protected: + protected: explicit ArmResponse(::google::protobuf::Arena* arena); ArmResponse(::google::protobuf::Arena* arena, const ArmResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ArmResponse(::google::protobuf::Arena* arena, ArmResponse&& from) noexcept + : ArmResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -7328,12 +7904,12 @@ class ArmResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -7341,48 +7917,51 @@ class ArmResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ArmResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ArmForceResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmForceResponse) */ { +class ArmForceResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmForceResponse) */ { public: inline ArmForceResponse() : ArmForceResponse(nullptr) {} - ~ArmForceResponse() override; - template - explicit PROTOBUF_CONSTEXPR ArmForceResponse(::google::protobuf::internal::ConstantInitialized); - - inline ArmForceResponse(const ArmForceResponse& from) - : ArmForceResponse(nullptr, from) {} - ArmForceResponse(ArmForceResponse&& from) noexcept - : ArmForceResponse() { - *this = ::std::move(from); + ~ArmForceResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmForceResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmForceResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ArmForceResponse( + ::google::protobuf::internal::ConstantInitialized); + inline ArmForceResponse(const ArmForceResponse& from) : ArmForceResponse(nullptr, from) {} + inline ArmForceResponse(ArmForceResponse&& from) noexcept + : ArmForceResponse(nullptr, std::move(from)) {} inline ArmForceResponse& operator=(const ArmForceResponse& from) { CopyFrom(from); return *this; } inline ArmForceResponse& operator=(ArmForceResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -7413,22 +7992,13 @@ class ArmForceResponse final : } static inline const ArmForceResponse* internal_default_instance() { return reinterpret_cast( - &_ArmForceResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ArmForceResponse& a, ArmForceResponse& b) { - a.Swap(&b); + &_ArmForceResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(ArmForceResponse& a, ArmForceResponse& b) { a.Swap(&b); } inline void Swap(ArmForceResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -7442,52 +8012,74 @@ class ArmForceResponse final : // implements Message ---------------------------------------------- - ArmForceResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ArmForceResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ArmForceResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmForceResponse& from) { - ArmForceResponse::MergeImpl(*this, from); - } + void MergeFrom(const ArmForceResponse& from) { ArmForceResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ArmForceResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ArmForceResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.ArmForceResponse"; - } - protected: + protected: explicit ArmForceResponse(::google::protobuf::Arena* arena); ArmForceResponse(::google::protobuf::Arena* arena, const ArmForceResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ArmForceResponse(::google::protobuf::Arena* arena, ArmForceResponse&& from) noexcept + : ArmForceResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionResultFieldNumber = 1, }; @@ -7509,12 +8101,12 @@ class ArmForceResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmForceResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -7522,15 +8114,15 @@ class ArmForceResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ArmForceResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action::ActionResult* action_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; @@ -7565,12 +8157,12 @@ inline bool ArmResponse::has_action_result() const { return value; } inline void ArmResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& ArmResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7579,7 +8171,7 @@ inline const ::mavsdk::rpc::action::ActionResult& ArmResponse::action_result() c return _internal_action_result(); } inline void ArmResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -7592,26 +8184,26 @@ inline void ArmResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc: // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* ArmResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ArmResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -7620,28 +8212,28 @@ inline ::mavsdk::rpc::action::ActionResult* ArmResponse::unsafe_arena_release_ac return temp; } inline ::mavsdk::rpc::action::ActionResult* ArmResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* ArmResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ArmResponse.action_result) return _msg; } inline void ArmResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -7669,12 +8261,12 @@ inline bool ArmForceResponse::has_action_result() const { return value; } inline void ArmForceResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& ArmForceResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7683,7 +8275,7 @@ inline const ::mavsdk::rpc::action::ActionResult& ArmForceResponse::action_resul return _internal_action_result(); } inline void ArmForceResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -7696,26 +8288,26 @@ inline void ArmForceResponse::unsafe_arena_set_allocated_action_result(::mavsdk: // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ArmForceResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ArmForceResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -7724,28 +8316,28 @@ inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::unsafe_arena_relea return temp; } inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* ArmForceResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ArmForceResponse.action_result) return _msg; } inline void ArmForceResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -7773,12 +8365,12 @@ inline bool DisarmResponse::has_action_result() const { return value; } inline void DisarmResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& DisarmResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7787,7 +8379,7 @@ inline const ::mavsdk::rpc::action::ActionResult& DisarmResponse::action_result( return _internal_action_result(); } inline void DisarmResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -7800,26 +8392,26 @@ inline void DisarmResponse::unsafe_arena_set_allocated_action_result(::mavsdk::r // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.DisarmResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -7828,28 +8420,28 @@ inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::unsafe_arena_release return temp; } inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.DisarmResponse.action_result) return _msg; } inline void DisarmResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -7877,12 +8469,12 @@ inline bool TakeoffResponse::has_action_result() const { return value; } inline void TakeoffResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7891,7 +8483,7 @@ inline const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::action_result return _internal_action_result(); } inline void TakeoffResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -7904,26 +8496,26 @@ inline void TakeoffResponse::unsafe_arena_set_allocated_action_result(::mavsdk:: // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TakeoffResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -7932,28 +8524,28 @@ inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::unsafe_arena_releas return temp; } inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TakeoffResponse.action_result) return _msg; } inline void TakeoffResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -7981,12 +8573,12 @@ inline bool LandResponse::has_action_result() const { return value; } inline void LandResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& LandResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7995,7 +8587,7 @@ inline const ::mavsdk::rpc::action::ActionResult& LandResponse::action_result() return _internal_action_result(); } inline void LandResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -8008,26 +8600,26 @@ inline void LandResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* LandResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.LandResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -8036,28 +8628,28 @@ inline ::mavsdk::rpc::action::ActionResult* LandResponse::unsafe_arena_release_a return temp; } inline ::mavsdk::rpc::action::ActionResult* LandResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* LandResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.LandResponse.action_result) return _msg; } inline void LandResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -8085,12 +8677,12 @@ inline bool RebootResponse::has_action_result() const { return value; } inline void RebootResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& RebootResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8099,7 +8691,7 @@ inline const ::mavsdk::rpc::action::ActionResult& RebootResponse::action_result( return _internal_action_result(); } inline void RebootResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -8112,26 +8704,26 @@ inline void RebootResponse::unsafe_arena_set_allocated_action_result(::mavsdk::r // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* RebootResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.RebootResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -8140,28 +8732,28 @@ inline ::mavsdk::rpc::action::ActionResult* RebootResponse::unsafe_arena_release return temp; } inline ::mavsdk::rpc::action::ActionResult* RebootResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* RebootResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.RebootResponse.action_result) return _msg; } inline void RebootResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -8189,12 +8781,12 @@ inline bool ShutdownResponse::has_action_result() const { return value; } inline void ShutdownResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8203,7 +8795,7 @@ inline const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::action_resul return _internal_action_result(); } inline void ShutdownResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -8216,26 +8808,26 @@ inline void ShutdownResponse::unsafe_arena_set_allocated_action_result(::mavsdk: // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ShutdownResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -8244,28 +8836,28 @@ inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::unsafe_arena_relea return temp; } inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ShutdownResponse.action_result) return _msg; } inline void ShutdownResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -8293,12 +8885,12 @@ inline bool TerminateResponse::has_action_result() const { return value; } inline void TerminateResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& TerminateResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8307,7 +8899,7 @@ inline const ::mavsdk::rpc::action::ActionResult& TerminateResponse::action_resu return _internal_action_result(); } inline void TerminateResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -8320,26 +8912,26 @@ inline void TerminateResponse::unsafe_arena_set_allocated_action_result(::mavsdk // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TerminateResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -8348,28 +8940,28 @@ inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::unsafe_arena_rele return temp; } inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TerminateResponse.action_result) return _msg; } inline void TerminateResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -8397,12 +8989,12 @@ inline bool KillResponse::has_action_result() const { return value; } inline void KillResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& KillResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8411,7 +9003,7 @@ inline const ::mavsdk::rpc::action::ActionResult& KillResponse::action_result() return _internal_action_result(); } inline void KillResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -8424,26 +9016,26 @@ inline void KillResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* KillResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.KillResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -8452,28 +9044,28 @@ inline ::mavsdk::rpc::action::ActionResult* KillResponse::unsafe_arena_release_a return temp; } inline ::mavsdk::rpc::action::ActionResult* KillResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* KillResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.KillResponse.action_result) return _msg; } inline void KillResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -8501,12 +9093,12 @@ inline bool ReturnToLaunchResponse::has_action_result() const { return value; } inline void ReturnToLaunchResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& ReturnToLaunchResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8515,7 +9107,7 @@ inline const ::mavsdk::rpc::action::ActionResult& ReturnToLaunchResponse::action return _internal_action_result(); } inline void ReturnToLaunchResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -8528,26 +9120,26 @@ inline void ReturnToLaunchResponse::unsafe_arena_set_allocated_action_result(::m // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -8556,28 +9148,28 @@ inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::unsafe_arena return temp; } inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) return _msg; } inline void ReturnToLaunchResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -8596,7 +9188,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.latitude_deg_ = 0; } inline double GotoLocationRequest::latitude_deg() const { @@ -8608,18 +9200,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.latitude_deg_; } inline void GotoLocationRequest::_internal_set_latitude_deg(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.latitude_deg_ = value; } // double longitude_deg = 2; inline void GotoLocationRequest::clear_longitude_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.longitude_deg_ = 0; } inline double GotoLocationRequest::longitude_deg() const { @@ -8631,18 +9222,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.longitude_deg_; } inline void GotoLocationRequest::_internal_set_longitude_deg(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.longitude_deg_ = value; } // float absolute_altitude_m = 3; inline void GotoLocationRequest::clear_absolute_altitude_m() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.absolute_altitude_m_ = 0; } inline float GotoLocationRequest::absolute_altitude_m() const { @@ -8654,18 +9244,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.absolute_altitude_m_; } inline void GotoLocationRequest::_internal_set_absolute_altitude_m(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.absolute_altitude_m_ = value; } // float yaw_deg = 4; inline void GotoLocationRequest::clear_yaw_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.yaw_deg_ = 0; } inline float GotoLocationRequest::yaw_deg() const { @@ -8677,12 +9266,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.yaw_deg_; } inline void GotoLocationRequest::_internal_set_yaw_deg(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.yaw_deg_ = value; } @@ -8697,12 +9285,12 @@ inline bool GotoLocationResponse::has_action_result() const { return value; } inline void GotoLocationResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& GotoLocationResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8711,7 +9299,7 @@ inline const ::mavsdk::rpc::action::ActionResult& GotoLocationResponse::action_r return _internal_action_result(); } inline void GotoLocationResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -8724,26 +9312,26 @@ inline void GotoLocationResponse::unsafe_arena_set_allocated_action_result(::mav // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GotoLocationResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -8752,28 +9340,28 @@ inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::unsafe_arena_r return temp; } inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.GotoLocationResponse.action_result) return _msg; } inline void GotoLocationResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -8792,7 +9380,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.radius_m_ = 0; } inline float DoOrbitRequest::radius_m() const { @@ -8804,18 +9392,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.radius_m_; } inline void DoOrbitRequest::_internal_set_radius_m(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.radius_m_ = value; } // float velocity_ms = 2; inline void DoOrbitRequest::clear_velocity_ms() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.velocity_ms_ = 0; } inline float DoOrbitRequest::velocity_ms() const { @@ -8827,18 +9414,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.velocity_ms_; } inline void DoOrbitRequest::_internal_set_velocity_ms(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.velocity_ms_ = value; } // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; inline void DoOrbitRequest::clear_yaw_behavior() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.yaw_behavior_ = 0; } inline ::mavsdk::rpc::action::OrbitYawBehavior DoOrbitRequest::yaw_behavior() const { @@ -8850,18 +9436,17 @@ inline void DoOrbitRequest::set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBeha // @@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); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::mavsdk::rpc::action::OrbitYawBehavior>(_impl_.yaw_behavior_); } inline void DoOrbitRequest::_internal_set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.yaw_behavior_ = value; } // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; inline void DoOrbitRequest::clear_latitude_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.latitude_deg_ = 0; } inline double DoOrbitRequest::latitude_deg() const { @@ -8873,18 +9458,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.latitude_deg_; } inline void DoOrbitRequest::_internal_set_latitude_deg(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.latitude_deg_ = value; } // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; inline void DoOrbitRequest::clear_longitude_deg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.longitude_deg_ = 0; } inline double DoOrbitRequest::longitude_deg() const { @@ -8896,18 +9480,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.longitude_deg_; } inline void DoOrbitRequest::_internal_set_longitude_deg(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.longitude_deg_ = value; } // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; inline void DoOrbitRequest::clear_absolute_altitude_m() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.absolute_altitude_m_ = 0; } inline double DoOrbitRequest::absolute_altitude_m() const { @@ -8919,12 +9502,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.absolute_altitude_m_; } inline void DoOrbitRequest::_internal_set_absolute_altitude_m(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.absolute_altitude_m_ = value; } @@ -8939,12 +9521,12 @@ inline bool DoOrbitResponse::has_action_result() const { return value; } inline void DoOrbitResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8953,7 +9535,7 @@ inline const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::action_result return _internal_action_result(); } inline void DoOrbitResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -8966,26 +9548,26 @@ inline void DoOrbitResponse::unsafe_arena_set_allocated_action_result(::mavsdk:: // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.DoOrbitResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -8994,28 +9576,28 @@ inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::unsafe_arena_releas return temp; } inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.DoOrbitResponse.action_result) return _msg; } inline void DoOrbitResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -9043,12 +9625,12 @@ inline bool HoldResponse::has_action_result() const { return value; } inline void HoldResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& HoldResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -9057,7 +9639,7 @@ inline const ::mavsdk::rpc::action::ActionResult& HoldResponse::action_result() return _internal_action_result(); } inline void HoldResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -9070,26 +9652,26 @@ inline void HoldResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* HoldResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.HoldResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -9098,28 +9680,28 @@ inline ::mavsdk::rpc::action::ActionResult* HoldResponse::unsafe_arena_release_a return temp; } inline ::mavsdk::rpc::action::ActionResult* HoldResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* HoldResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.HoldResponse.action_result) return _msg; } inline void HoldResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -9138,7 +9720,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.index_ = 0; } inline ::int32_t SetActuatorRequest::index() const { @@ -9150,18 +9732,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.index_; } inline void SetActuatorRequest::_internal_set_index(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.index_ = value; } // float value = 2; inline void SetActuatorRequest::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_ = 0; } inline float SetActuatorRequest::value() const { @@ -9173,12 +9754,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.value_; } inline void SetActuatorRequest::_internal_set_value(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_ = value; } @@ -9193,12 +9773,12 @@ inline bool SetActuatorResponse::has_action_result() const { return value; } inline void SetActuatorResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& SetActuatorResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -9207,7 +9787,7 @@ inline const ::mavsdk::rpc::action::ActionResult& SetActuatorResponse::action_re return _internal_action_result(); } inline void SetActuatorResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -9220,26 +9800,26 @@ inline void SetActuatorResponse::unsafe_arena_set_allocated_action_result(::mavs // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetActuatorResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -9248,28 +9828,28 @@ inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::unsafe_arena_re return temp; } inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetActuatorResponse.action_result) return _msg; } inline void SetActuatorResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -9297,12 +9877,12 @@ inline bool TransitionToFixedwingResponse::has_action_result() const { return value; } inline void TransitionToFixedwingResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& TransitionToFixedwingResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -9311,7 +9891,7 @@ inline const ::mavsdk::rpc::action::ActionResult& TransitionToFixedwingResponse: return _internal_action_result(); } inline void TransitionToFixedwingResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -9324,26 +9904,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -9352,28 +9932,28 @@ inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::unsaf return temp; } inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) return _msg; } inline void TransitionToFixedwingResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -9401,12 +9981,12 @@ inline bool TransitionToMulticopterResponse::has_action_result() const { return value; } inline void TransitionToMulticopterResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& TransitionToMulticopterResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -9415,7 +9995,7 @@ inline const ::mavsdk::rpc::action::ActionResult& TransitionToMulticopterRespons return _internal_action_result(); } inline void TransitionToMulticopterResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -9428,26 +10008,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -9456,28 +10036,28 @@ inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::uns return temp; } inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) return _msg; } inline void TransitionToMulticopterResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -9505,12 +10085,12 @@ inline bool GetTakeoffAltitudeResponse::has_action_result() const { return value; } inline void GetTakeoffAltitudeResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& GetTakeoffAltitudeResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -9519,7 +10099,7 @@ inline const ::mavsdk::rpc::action::ActionResult& GetTakeoffAltitudeResponse::ac return _internal_action_result(); } inline void GetTakeoffAltitudeResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -9532,26 +10112,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -9560,28 +10140,28 @@ inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::unsafe_a return temp; } inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) return _msg; } inline void GetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -9596,7 +10176,7 @@ inline void GetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rp // float altitude = 2; inline void GetTakeoffAltitudeResponse::clear_altitude() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.altitude_ = 0; } inline float GetTakeoffAltitudeResponse::altitude() const { @@ -9608,12 +10188,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.altitude_; } inline void GetTakeoffAltitudeResponse::_internal_set_altitude(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.altitude_ = value; } @@ -9623,7 +10202,7 @@ inline void GetTakeoffAltitudeResponse::_internal_set_altitude(float value) { // float altitude = 1; inline void SetTakeoffAltitudeRequest::clear_altitude() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.altitude_ = 0; } inline float SetTakeoffAltitudeRequest::altitude() const { @@ -9635,12 +10214,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.altitude_; } inline void SetTakeoffAltitudeRequest::_internal_set_altitude(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.altitude_ = value; } @@ -9655,12 +10233,12 @@ inline bool SetTakeoffAltitudeResponse::has_action_result() const { return value; } inline void SetTakeoffAltitudeResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& SetTakeoffAltitudeResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -9669,7 +10247,7 @@ inline const ::mavsdk::rpc::action::ActionResult& SetTakeoffAltitudeResponse::ac return _internal_action_result(); } inline void SetTakeoffAltitudeResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -9682,26 +10260,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -9710,28 +10288,28 @@ inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::unsafe_a return temp; } inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) return _msg; } inline void SetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -9759,12 +10337,12 @@ inline bool GetReturnToLaunchAltitudeResponse::has_action_result() const { return value; } inline void GetReturnToLaunchAltitudeResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -9773,7 +10351,7 @@ inline const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeRespo return _internal_action_result(); } inline void GetReturnToLaunchAltitudeResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -9786,26 +10364,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -9814,28 +10392,28 @@ inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::u return temp; } inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) return _msg; } inline void GetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -9850,7 +10428,7 @@ inline void GetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mav // float relative_altitude_m = 2; inline void GetReturnToLaunchAltitudeResponse::clear_relative_altitude_m() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.relative_altitude_m_ = 0; } inline float GetReturnToLaunchAltitudeResponse::relative_altitude_m() const { @@ -9862,12 +10440,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.relative_altitude_m_; } inline void GetReturnToLaunchAltitudeResponse::_internal_set_relative_altitude_m(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.relative_altitude_m_ = value; } @@ -9877,7 +10454,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.relative_altitude_m_ = 0; } inline float SetReturnToLaunchAltitudeRequest::relative_altitude_m() const { @@ -9889,12 +10466,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.relative_altitude_m_; } inline void SetReturnToLaunchAltitudeRequest::_internal_set_relative_altitude_m(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.relative_altitude_m_ = value; } @@ -9909,12 +10485,12 @@ inline bool SetReturnToLaunchAltitudeResponse::has_action_result() const { return value; } inline void SetReturnToLaunchAltitudeResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -9923,7 +10499,7 @@ inline const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeRespo return _internal_action_result(); } inline void SetReturnToLaunchAltitudeResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -9936,26 +10512,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -9964,28 +10540,28 @@ inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::u return temp; } inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) return _msg; } inline void SetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -10004,7 +10580,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.speed_m_s_ = 0; } inline float SetCurrentSpeedRequest::speed_m_s() const { @@ -10016,12 +10592,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.speed_m_s_; } inline void SetCurrentSpeedRequest::_internal_set_speed_m_s(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.speed_m_s_ = value; } @@ -10036,12 +10611,12 @@ inline bool SetCurrentSpeedResponse::has_action_result() const { return value; } inline void SetCurrentSpeedResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& SetCurrentSpeedResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -10050,7 +10625,7 @@ inline const ::mavsdk::rpc::action::ActionResult& SetCurrentSpeedResponse::actio return _internal_action_result(); } inline void SetCurrentSpeedResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); } @@ -10063,26 +10638,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -10091,28 +10666,28 @@ inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::unsafe_aren return temp; } inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action::ActionResult>(GetArena()); _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); } return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) return _msg; } inline void SetCurrentSpeedResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); + delete (_impl_.action_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -10131,7 +10706,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = 0; } inline ::mavsdk::rpc::action::ActionResult_Result ActionResult::result() const { @@ -10143,18 +10718,17 @@ inline void ActionResult::set_result(::mavsdk::rpc::action::ActionResult_Result // @@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); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::mavsdk::rpc::action::ActionResult_Result>(_impl_.result_); } inline void ActionResult::_internal_set_result(::mavsdk::rpc::action::ActionResult_Result value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = value; } // string result_str = 2; inline void ActionResult::clear_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.ClearToEmpty(); } inline const std::string& ActionResult::result_str() const @@ -10165,8 +10739,7 @@ inline const std::string& ActionResult::result_str() const template inline PROTOBUF_ALWAYS_INLINE void ActionResult::set_result_str(Arg_&& arg, Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.ActionResult.result_str) } @@ -10176,32 +10749,28 @@ inline std::string* ActionResult::mutable_result_str() ABSL_ATTRIBUTE_LIFETIME_B return _s; } inline const std::string& ActionResult::_internal_result_str() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.result_str_.Get(); } inline void ActionResult::_internal_set_result_str(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.Set(value, GetArena()); } inline std::string* ActionResult::_internal_mutable_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.result_str_.Mutable( GetArena()); } inline std::string* ActionResult::release_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ActionResult.result_str) return _impl_.result_str_.Release(); } inline void ActionResult::set_allocated_result_str(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.result_str_.IsDefault()) { - _impl_.result_str_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.result_str_.IsDefault()) { + _impl_.result_str_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ActionResult.result_str) } @@ -10238,4 +10807,4 @@ inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action::OrbitYawBe #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto_2epb_2eh +#endif // action_2faction_2eproto_2epb_2eh diff --git a/src/mavsdk_server/src/generated/action_server/action_server.pb.cc b/src/mavsdk_server/src/generated/action_server/action_server.pb.cc index 14c2063b57..96dc007042 100644 --- a/src/mavsdk_server/src/generated/action_server/action_server.pb.cc +++ b/src/mavsdk_server/src/generated/action_server/action_server.pb.cc @@ -1,17 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: action_server/action_server.proto +// Protobuf C++ Version: 5.29.1 #include "action_server/action_server.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -23,8 +27,14 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace action_server { - template -PROTOBUF_CONSTEXPR SubscribeTerminateRequest::SubscribeTerminateRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeTerminateRequest::SubscribeTerminateRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeTerminateRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeTerminateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeTerminateRequestDefaultTypeInternal() {} @@ -35,8 +45,14 @@ struct SubscribeTerminateRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeTerminateRequestDefaultTypeInternal _SubscribeTerminateRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeTakeoffRequest::SubscribeTakeoffRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeTakeoffRequest::SubscribeTakeoffRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeTakeoffRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeTakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeTakeoffRequestDefaultTypeInternal() {} @@ -47,8 +63,14 @@ struct SubscribeTakeoffRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeTakeoffRequestDefaultTypeInternal _SubscribeTakeoffRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeShutdownRequest::SubscribeShutdownRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeShutdownRequest::SubscribeShutdownRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeShutdownRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeShutdownRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeShutdownRequestDefaultTypeInternal() {} @@ -59,8 +81,14 @@ struct SubscribeShutdownRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeShutdownRequestDefaultTypeInternal _SubscribeShutdownRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeRebootRequest::SubscribeRebootRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeRebootRequest::SubscribeRebootRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeRebootRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeRebootRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeRebootRequestDefaultTypeInternal() {} @@ -71,8 +99,14 @@ struct SubscribeRebootRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeRebootRequestDefaultTypeInternal _SubscribeRebootRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeLandRequest::SubscribeLandRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeLandRequest::SubscribeLandRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeLandRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeLandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeLandRequestDefaultTypeInternal() {} @@ -83,8 +117,14 @@ struct SubscribeLandRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeLandRequestDefaultTypeInternal _SubscribeLandRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeFlightModeChangeRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeFlightModeChangeRequestDefaultTypeInternal() {} @@ -95,8 +135,14 @@ struct SubscribeFlightModeChangeRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeFlightModeChangeRequestDefaultTypeInternal _SubscribeFlightModeChangeRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeArmDisarmRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeArmDisarmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeArmDisarmRequestDefaultTypeInternal() {} @@ -116,7 +162,13 @@ inline constexpr SetDisarmableRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetDisarmableRequest::SetDisarmableRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetDisarmableRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SetDisarmableRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetDisarmableRequestDefaultTypeInternal() {} @@ -136,7 +188,13 @@ inline constexpr SetArmableRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetArmableRequest::SetArmableRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetArmableRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SetArmableRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetArmableRequestDefaultTypeInternal() {} @@ -155,7 +213,13 @@ inline constexpr SetAllowTakeoffRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetAllowTakeoffRequest::SetAllowTakeoffRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetAllowTakeoffRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SetAllowTakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetAllowTakeoffRequestDefaultTypeInternal() {} @@ -166,8 +230,14 @@ struct SetAllowTakeoffRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowTakeoffRequestDefaultTypeInternal _SetAllowTakeoffRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct GetAllowableFlightModesRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetAllowableFlightModesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetAllowableFlightModesRequestDefaultTypeInternal() {} @@ -187,7 +257,13 @@ inline constexpr ArmDisarm::Impl_::Impl_( template PROTOBUF_CONSTEXPR ArmDisarm::ArmDisarm(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ArmDisarmDefaultTypeInternal { PROTOBUF_CONSTEXPR ArmDisarmDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmDisarmDefaultTypeInternal() {} @@ -208,7 +284,13 @@ inline constexpr AllowableFlightModes::Impl_::Impl_( template PROTOBUF_CONSTEXPR AllowableFlightModes::AllowableFlightModes(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct AllowableFlightModesDefaultTypeInternal { PROTOBUF_CONSTEXPR AllowableFlightModesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AllowableFlightModesDefaultTypeInternal() {} @@ -230,7 +312,13 @@ inline constexpr ActionServerResult::Impl_::Impl_( template PROTOBUF_CONSTEXPR ActionServerResult::ActionServerResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ActionServerResultDefaultTypeInternal { PROTOBUF_CONSTEXPR ActionServerResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ActionServerResultDefaultTypeInternal() {} @@ -250,7 +338,13 @@ inline constexpr TerminateResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR TerminateResponse::TerminateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TerminateResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TerminateResponseDefaultTypeInternal() {} @@ -270,7 +364,13 @@ inline constexpr TakeoffResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR TakeoffResponse::TakeoffResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TakeoffResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakeoffResponseDefaultTypeInternal() {} @@ -290,7 +390,13 @@ inline constexpr ShutdownResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ShutdownResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ShutdownResponseDefaultTypeInternal() {} @@ -309,7 +415,13 @@ inline constexpr SetDisarmableResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetDisarmableResponse::SetDisarmableResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetDisarmableResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetDisarmableResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetDisarmableResponseDefaultTypeInternal() {} @@ -328,7 +440,13 @@ inline constexpr SetArmableResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetArmableResponse::SetArmableResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetArmableResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetArmableResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetArmableResponseDefaultTypeInternal() {} @@ -347,7 +465,13 @@ inline constexpr SetAllowableFlightModesResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetAllowableFlightModesResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetAllowableFlightModesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetAllowableFlightModesResponseDefaultTypeInternal() {} @@ -366,7 +490,13 @@ inline constexpr SetAllowableFlightModesRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetAllowableFlightModesRequest::SetAllowableFlightModesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetAllowableFlightModesRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SetAllowableFlightModesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetAllowableFlightModesRequestDefaultTypeInternal() {} @@ -385,7 +515,13 @@ inline constexpr SetAllowTakeoffResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetAllowTakeoffResponse::SetAllowTakeoffResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetAllowTakeoffResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetAllowTakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetAllowTakeoffResponseDefaultTypeInternal() {} @@ -405,7 +541,13 @@ inline constexpr RebootResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR RebootResponse::RebootResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct RebootResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RebootResponseDefaultTypeInternal() {} @@ -425,7 +567,13 @@ inline constexpr LandResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR LandResponse::LandResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct LandResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~LandResponseDefaultTypeInternal() {} @@ -444,7 +592,13 @@ inline constexpr GetAllowableFlightModesResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetAllowableFlightModesResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetAllowableFlightModesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetAllowableFlightModesResponseDefaultTypeInternal() {} @@ -464,7 +618,13 @@ inline constexpr FlightModeChangeResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR FlightModeChangeResponse::FlightModeChangeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FlightModeChangeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR FlightModeChangeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FlightModeChangeResponseDefaultTypeInternal() {} @@ -484,7 +644,13 @@ inline constexpr ArmDisarmResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ArmDisarmResponse::ArmDisarmResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ArmDisarmResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ArmDisarmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmDisarmResponseDefaultTypeInternal() {} @@ -498,284 +664,284 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT } // namespace action_server } // namespace rpc } // namespace mavsdk -static ::_pb::Metadata file_level_metadata_action_5fserver_2faction_5fserver_2eproto[27]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_action_5fserver_2faction_5fserver_2eproto = nullptr; -const ::uint32_t TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffRequest, _impl_.allow_takeoff_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _impl_.armable_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _impl_.force_armable_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _impl_.disarmable_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _impl_.force_disarmable_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _impl_.flight_modes_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeArmDisarmRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeTakeoffRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeLandRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeRebootRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeShutdownRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeTerminateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_.arm_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_.flight_mode_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_.takeoff_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_.land_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_.reboot_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_.shutdown_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_.action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_.terminate_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _impl_.action_server_result_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _impl_.action_server_result_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _impl_.action_server_result_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _impl_.action_server_result_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _impl_.flight_modes_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_auto_mode_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_guided_mode_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_stabilize_mode_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _impl_.arm_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _impl_.force_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _impl_.result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _impl_.result_str_), +const ::uint32_t + TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffRequest, _impl_.allow_takeoff_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _impl_.armable_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _impl_.force_armable_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _impl_.disarmable_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _impl_.force_disarmable_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _impl_.flight_modes_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeArmDisarmRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeTakeoffRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeLandRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeRebootRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeShutdownRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeTerminateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_.arm_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_.flight_mode_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_.takeoff_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_.land_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_.reboot_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_.shutdown_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_.terminate_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _impl_.flight_modes_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_auto_mode_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_guided_mode_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_stabilize_mode_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _impl_.arm_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _impl_.force_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _impl_.result_str_), }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::mavsdk::rpc::action_server::SetAllowTakeoffRequest)}, {9, -1, -1, sizeof(::mavsdk::rpc::action_server::SetArmableRequest)}, {19, -1, -1, sizeof(::mavsdk::rpc::action_server::SetDisarmableRequest)}, @@ -804,7 +970,6 @@ static const ::_pbi::MigrationSchema {248, -1, -1, sizeof(::mavsdk::rpc::action_server::ArmDisarm)}, {258, -1, -1, sizeof(::mavsdk::rpc::action_server::ActionServerResult)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::action_server::_SetAllowTakeoffRequest_default_instance_._instance, &::mavsdk::rpc::action_server::_SetArmableRequest_default_instance_._instance, @@ -834,7 +999,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::action_server::_ArmDisarm_default_instance_._instance, &::mavsdk::rpc::action_server::_ActionServerResult_default_instance_._instance, }; -const char descriptor_table_protodef_action_5fserver_2faction_5fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_action_5fserver_2faction_5fserver_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n!action_server/action_server.proto\022\030mav" "sdk.rpc.action_server\032\024mavsdk_options.pr" "oto\"/\n\026SetAllowTakeoffRequest\022\025\n\rallow_t" @@ -957,7 +1123,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_action_5fserver_2fa &::descriptor_table_mavsdk_5foptions_2eproto, }; static ::absl::once_flag descriptor_table_action_5fserver_2faction_5fserver_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_action_5fserver_2faction_5fserver_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_action_5fserver_2faction_5fserver_2eproto = { false, false, 4609, @@ -970,28 +1136,9 @@ const ::_pbi::DescriptorTable descriptor_table_action_5fserver_2faction_5fserver schemas, file_default_instances, TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto, file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto, file_level_service_descriptors_action_5fserver_2faction_5fserver_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter() { - return &descriptor_table_action_5fserver_2faction_5fserver_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_action_5fserver_2faction_5fserver_2eproto(&descriptor_table_action_5fserver_2faction_5fserver_2eproto); namespace mavsdk { namespace rpc { namespace action_server { @@ -1042,7 +1189,11 @@ class SetAllowTakeoffRequest::_Internal { }; SetAllowTakeoffRequest::SetAllowTakeoffRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowTakeoffRequest) } @@ -1062,32 +1213,50 @@ inline void SetAllowTakeoffRequest::SharedCtor(::_pb::Arena* arena) { } SetAllowTakeoffRequest::~SetAllowTakeoffRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetAllowTakeoffRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetAllowTakeoffRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.allow_takeoff_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetAllowTakeoffRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetAllowTakeoffRequest::SharedDtor(MessageLite& self) { + SetAllowTakeoffRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* SetAllowTakeoffRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetAllowTakeoffRequest(arena); +} +constexpr auto SetAllowTakeoffRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetAllowTakeoffRequest), + alignof(SetAllowTakeoffRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetAllowTakeoffRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetAllowTakeoffRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetAllowTakeoffRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetAllowTakeoffRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetAllowTakeoffRequest::ByteSizeLong, + &SetAllowTakeoffRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetAllowTakeoffRequest, _impl_._cached_size_), + false, + }, + &SetAllowTakeoffRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetAllowTakeoffRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetAllowTakeoffRequest::_table_ = { { @@ -1100,8 +1269,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetAllowTakeoffRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SetAllowTakeoffRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SetAllowTakeoffRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool allow_takeoff = 1; {::_pbi::TcParser::SingularVarintNoZag1(), @@ -1118,54 +1291,73 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetAllowTakeoffRequest::_table_ = { }}, }; -::uint8_t* SetAllowTakeoffRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool allow_takeoff = 1; - if (this->_internal_allow_takeoff() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_allow_takeoff(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - return target; -} - -::size_t SetAllowTakeoffRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetAllowTakeoffRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bool allow_takeoff = 1; - if (this->_internal_allow_takeoff() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetAllowTakeoffRequest::_class_data_ = { - SetAllowTakeoffRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetAllowTakeoffRequest::GetClassData() const { - return &_class_data_; + _impl_.allow_takeoff_ = false; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetAllowTakeoffRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetAllowTakeoffRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetAllowTakeoffRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetAllowTakeoffRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetAllowTakeoffRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bool allow_takeoff = 1; + if (this_._internal_allow_takeoff() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_allow_takeoff(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetAllowTakeoffRequest::ByteSizeLong(const MessageLite& base) { + const SetAllowTakeoffRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetAllowTakeoffRequest::ByteSizeLong() const { + const SetAllowTakeoffRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // bool allow_takeoff = 1; + if (this_._internal_allow_takeoff() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetAllowTakeoffRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) @@ -1174,7 +1366,7 @@ void SetAllowTakeoffRequest::MergeImpl(::google::protobuf::Message& to_msg, cons (void) cached_has_bits; if (from._internal_allow_takeoff() != 0) { - _this->_internal_set_allow_takeoff(from._internal_allow_takeoff()); + _this->_impl_.allow_takeoff_ = from._impl_.allow_takeoff_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1186,13 +1378,7 @@ void SetAllowTakeoffRequest::CopyFrom(const SetAllowTakeoffRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetAllowTakeoffRequest::IsInitialized() const { - return true; -} -::_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_); @@ -1200,9 +1386,7 @@ void SetAllowTakeoffRequest::InternalSwap(SetAllowTakeoffRequest* PROTOBUF_RESTR } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1211,7 +1395,11 @@ class SetArmableRequest::_Internal { }; SetArmableRequest::SetArmableRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetArmableRequest) } @@ -1236,34 +1424,50 @@ inline void SetArmableRequest::SharedCtor(::_pb::Arena* arena) { } SetArmableRequest::~SetArmableRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetArmableRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetArmableRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetArmableRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetArmableRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.armable_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.force_armable_) - - reinterpret_cast(&_impl_.armable_)) + sizeof(_impl_.force_armable_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetArmableRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetArmableRequest::SharedDtor(MessageLite& self) { + SetArmableRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* SetArmableRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetArmableRequest(arena); +} +constexpr auto SetArmableRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetArmableRequest), + alignof(SetArmableRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetArmableRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetArmableRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetArmableRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetArmableRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetArmableRequest::ByteSizeLong, + &SetArmableRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_._cached_size_), + false, + }, + &SetArmableRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetArmableRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetArmableRequest::_table_ = { { @@ -1276,8 +1480,12 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetArmableRequest::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SetArmableRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SetArmableRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool force_armable = 2; {::_pbi::TcParser::SingularVarintNoZag1(), @@ -1300,66 +1508,87 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetArmableRequest::_table_ = { }}, }; -::uint8_t* SetArmableRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetArmableRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool armable = 1; - if (this->_internal_armable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_armable(), target); - } - - // bool force_armable = 2; - if (this->_internal_force_armable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_force_armable(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetArmableRequest) - return target; -} - -::size_t SetArmableRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetArmableRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetArmableRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetArmableRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bool armable = 1; - if (this->_internal_armable() != 0) { - total_size += 2; - } - - // bool force_armable = 2; - if (this->_internal_force_armable() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetArmableRequest::_class_data_ = { - SetArmableRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetArmableRequest::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.armable_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.force_armable_) - + reinterpret_cast(&_impl_.armable_)) + sizeof(_impl_.force_armable_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetArmableRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetArmableRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetArmableRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetArmableRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetArmableRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetArmableRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bool armable = 1; + if (this_._internal_armable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_armable(), target); + } + + // bool force_armable = 2; + if (this_._internal_force_armable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_force_armable(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetArmableRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetArmableRequest::ByteSizeLong(const MessageLite& base) { + const SetArmableRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetArmableRequest::ByteSizeLong() const { + const SetArmableRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetArmableRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // bool armable = 1; + if (this_._internal_armable() != 0) { + total_size += 2; + } + // bool force_armable = 2; + if (this_._internal_force_armable() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetArmableRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetArmableRequest) @@ -1368,10 +1597,10 @@ void SetArmableRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::g (void) cached_has_bits; if (from._internal_armable() != 0) { - _this->_internal_set_armable(from._internal_armable()); + _this->_impl_.armable_ = from._impl_.armable_; } if (from._internal_force_armable() != 0) { - _this->_internal_set_force_armable(from._internal_force_armable()); + _this->_impl_.force_armable_ = from._impl_.force_armable_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1383,13 +1612,7 @@ void SetArmableRequest::CopyFrom(const SetArmableRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetArmableRequest::IsInitialized() const { - return true; -} -::_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_); @@ -1402,9 +1625,7 @@ void SetArmableRequest::InternalSwap(SetArmableRequest* PROTOBUF_RESTRICT other) } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1413,7 +1634,11 @@ class SetDisarmableRequest::_Internal { }; SetDisarmableRequest::SetDisarmableRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetDisarmableRequest) } @@ -1438,34 +1663,50 @@ inline void SetDisarmableRequest::SharedCtor(::_pb::Arena* arena) { } SetDisarmableRequest::~SetDisarmableRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetDisarmableRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetDisarmableRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetDisarmableRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetDisarmableRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.disarmable_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.force_disarmable_) - - reinterpret_cast(&_impl_.disarmable_)) + sizeof(_impl_.force_disarmable_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetDisarmableRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetDisarmableRequest::SharedDtor(MessageLite& self) { + SetDisarmableRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* SetDisarmableRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetDisarmableRequest(arena); +} +constexpr auto SetDisarmableRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetDisarmableRequest), + alignof(SetDisarmableRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetDisarmableRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetDisarmableRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetDisarmableRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetDisarmableRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetDisarmableRequest::ByteSizeLong, + &SetDisarmableRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_._cached_size_), + false, + }, + &SetDisarmableRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetDisarmableRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetDisarmableRequest::_table_ = { { @@ -1478,8 +1719,12 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetDisarmableRequest::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SetDisarmableRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SetDisarmableRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool force_disarmable = 2; {::_pbi::TcParser::SingularVarintNoZag1(), @@ -1502,66 +1747,87 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> SetDisarmableRequest::_table_ = { }}, }; -::uint8_t* SetDisarmableRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetDisarmableRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool disarmable = 1; - if (this->_internal_disarmable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_disarmable(), target); - } - - // bool force_disarmable = 2; - if (this->_internal_force_disarmable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_force_disarmable(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetDisarmableRequest) - return target; -} - -::size_t SetDisarmableRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetDisarmableRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetDisarmableRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetDisarmableRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bool disarmable = 1; - if (this->_internal_disarmable() != 0) { - total_size += 2; - } - - // bool force_disarmable = 2; - if (this->_internal_force_disarmable() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetDisarmableRequest::_class_data_ = { - SetDisarmableRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetDisarmableRequest::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.disarmable_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.force_disarmable_) - + reinterpret_cast(&_impl_.disarmable_)) + sizeof(_impl_.force_disarmable_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetDisarmableRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetDisarmableRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetDisarmableRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetDisarmableRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetDisarmableRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetDisarmableRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bool disarmable = 1; + if (this_._internal_disarmable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_disarmable(), target); + } + + // bool force_disarmable = 2; + if (this_._internal_force_disarmable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_force_disarmable(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetDisarmableRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetDisarmableRequest::ByteSizeLong(const MessageLite& base) { + const SetDisarmableRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetDisarmableRequest::ByteSizeLong() const { + const SetDisarmableRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetDisarmableRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // bool disarmable = 1; + if (this_._internal_disarmable() != 0) { + total_size += 2; + } + // bool force_disarmable = 2; + if (this_._internal_force_disarmable() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetDisarmableRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetDisarmableRequest) @@ -1570,10 +1836,10 @@ void SetDisarmableRequest::MergeImpl(::google::protobuf::Message& to_msg, const (void) cached_has_bits; if (from._internal_disarmable() != 0) { - _this->_internal_set_disarmable(from._internal_disarmable()); + _this->_impl_.disarmable_ = from._impl_.disarmable_; } if (from._internal_force_disarmable() != 0) { - _this->_internal_set_force_disarmable(from._internal_force_disarmable()); + _this->_impl_.force_disarmable_ = from._impl_.force_disarmable_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1585,13 +1851,7 @@ void SetDisarmableRequest::CopyFrom(const SetDisarmableRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetDisarmableRequest::IsInitialized() const { - return true; -} -::_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_); @@ -1604,50 +1864,50 @@ void SetDisarmableRequest::InternalSwap(SetDisarmableRequest* PROTOBUF_RESTRICT } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetAllowableFlightModesRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes(const SetAllowableFlightModesRequest* msg); - static void set_has_flight_modes(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::AllowableFlightModes& SetAllowableFlightModesRequest::_Internal::flight_modes(const SetAllowableFlightModesRequest* msg) { - return *msg->_impl_.flight_modes_; -} SetAllowableFlightModesRequest::SetAllowableFlightModesRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) } inline PROTOBUF_NDEBUG_INLINE SetAllowableFlightModesRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::SetAllowableFlightModesRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetAllowableFlightModesRequest::SetAllowableFlightModesRequest( ::google::protobuf::Arena* arena, const SetAllowableFlightModesRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetAllowableFlightModesRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.flight_modes_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(arena, *from._impl_.flight_modes_) - : nullptr; + _impl_.flight_modes_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::AllowableFlightModes>( + arena, *from._impl_.flight_modes_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) } @@ -1662,38 +1922,51 @@ inline void SetAllowableFlightModesRequest::SharedCtor(::_pb::Arena* arena) { } SetAllowableFlightModesRequest::~SetAllowableFlightModesRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetAllowableFlightModesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.flight_modes_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetAllowableFlightModesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.flight_modes_ != nullptr); - _impl_.flight_modes_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetAllowableFlightModesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetAllowableFlightModesRequest::SharedDtor(MessageLite& self) { + SetAllowableFlightModesRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.flight_modes_; + this_._impl_.~Impl_(); +} + +inline void* SetAllowableFlightModesRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetAllowableFlightModesRequest(arena); +} +constexpr auto SetAllowableFlightModesRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetAllowableFlightModesRequest), + alignof(SetAllowableFlightModesRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetAllowableFlightModesRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetAllowableFlightModesRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetAllowableFlightModesRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetAllowableFlightModesRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetAllowableFlightModesRequest::ByteSizeLong, + &SetAllowableFlightModesRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_._cached_size_), + false, + }, + &SetAllowableFlightModesRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetAllowableFlightModesRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowableFlightModesRequest::_table_ = { { @@ -1706,8 +1979,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowableFlightModesRequest::_table 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetAllowableFlightModesRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SetAllowableFlightModesRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; {::_pbi::TcParser::FastMtS1, @@ -1724,68 +2001,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowableFlightModesRequest::_table }}, }; -::uint8_t* SetAllowableFlightModesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::flight_modes(this), - _Internal::flight_modes(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - return target; -} - -::size_t SetAllowableFlightModesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetAllowableFlightModesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.flight_modes_); + ABSL_DCHECK(_impl_.flight_modes_ != nullptr); + _impl_.flight_modes_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetAllowableFlightModesRequest::_class_data_ = { - SetAllowableFlightModesRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetAllowableFlightModesRequest::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetAllowableFlightModesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetAllowableFlightModesRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetAllowableFlightModesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetAllowableFlightModesRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetAllowableFlightModesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.flight_modes_, this_._impl_.flight_modes_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetAllowableFlightModesRequest::ByteSizeLong(const MessageLite& base) { + const SetAllowableFlightModesRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetAllowableFlightModesRequest::ByteSizeLong() const { + const SetAllowableFlightModesRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.flight_modes_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetAllowableFlightModesRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_flight_modes()->::mavsdk::rpc::action_server::AllowableFlightModes::MergeFrom( - from._internal_flight_modes()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.flight_modes_ != nullptr); + if (_this->_impl_.flight_modes_ == nullptr) { + _this->_impl_.flight_modes_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::AllowableFlightModes>(arena, *from._impl_.flight_modes_); + } else { + _this->_impl_.flight_modes_->MergeFrom(*from._impl_.flight_modes_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1796,13 +2105,7 @@ void SetAllowableFlightModesRequest::CopyFrom(const SetAllowableFlightModesReque MergeFrom(from); } -PROTOBUF_NOINLINE bool SetAllowableFlightModesRequest::IsInitialized() const { - return true; -} -::_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_); @@ -1811,9 +2114,7 @@ void SetAllowableFlightModesRequest::InternalSwap(SetAllowableFlightModesRequest } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1822,13 +2123,21 @@ class GetAllowableFlightModesRequest::_Internal { }; GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) } GetAllowableFlightModesRequest::GetAllowableFlightModesRequest( ::google::protobuf::Arena* arena, const GetAllowableFlightModesRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetAllowableFlightModesRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1837,6 +2146,68 @@ GetAllowableFlightModesRequest::GetAllowableFlightModesRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) } +inline void* GetAllowableFlightModesRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) GetAllowableFlightModesRequest(arena); +} +constexpr auto GetAllowableFlightModesRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetAllowableFlightModesRequest), + alignof(GetAllowableFlightModesRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetAllowableFlightModesRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetAllowableFlightModesRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetAllowableFlightModesRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetAllowableFlightModesRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &GetAllowableFlightModesRequest::ByteSizeLong, + &GetAllowableFlightModesRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesRequest, _impl_._cached_size_), + false, + }, + &GetAllowableFlightModesRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetAllowableFlightModesRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> GetAllowableFlightModesRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::GetAllowableFlightModesRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -1846,9 +2217,7 @@ GetAllowableFlightModesRequest::GetAllowableFlightModesRequest( ::google::protobuf::Metadata GetAllowableFlightModesRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[4]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1857,13 +2226,21 @@ class SubscribeArmDisarmRequest::_Internal { }; SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) } SubscribeArmDisarmRequest::SubscribeArmDisarmRequest( ::google::protobuf::Arena* arena, const SubscribeArmDisarmRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeArmDisarmRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1872,6 +2249,68 @@ SubscribeArmDisarmRequest::SubscribeArmDisarmRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) } +inline void* SubscribeArmDisarmRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeArmDisarmRequest(arena); +} +constexpr auto SubscribeArmDisarmRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeArmDisarmRequest), + alignof(SubscribeArmDisarmRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeArmDisarmRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeArmDisarmRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeArmDisarmRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeArmDisarmRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeArmDisarmRequest::ByteSizeLong, + &SubscribeArmDisarmRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeArmDisarmRequest, _impl_._cached_size_), + false, + }, + &SubscribeArmDisarmRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeArmDisarmRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeArmDisarmRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SubscribeArmDisarmRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -1881,9 +2320,7 @@ SubscribeArmDisarmRequest::SubscribeArmDisarmRequest( ::google::protobuf::Metadata SubscribeArmDisarmRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[5]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1892,13 +2329,21 @@ class SubscribeFlightModeChangeRequest::_Internal { }; SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) } SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest( ::google::protobuf::Arena* arena, const SubscribeFlightModeChangeRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeFlightModeChangeRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1907,6 +2352,68 @@ SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) } +inline void* SubscribeFlightModeChangeRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeFlightModeChangeRequest(arena); +} +constexpr auto SubscribeFlightModeChangeRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeFlightModeChangeRequest), + alignof(SubscribeFlightModeChangeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeFlightModeChangeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeFlightModeChangeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeFlightModeChangeRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeFlightModeChangeRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeFlightModeChangeRequest::ByteSizeLong, + &SubscribeFlightModeChangeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeFlightModeChangeRequest, _impl_._cached_size_), + false, + }, + &SubscribeFlightModeChangeRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeFlightModeChangeRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeFlightModeChangeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -1916,9 +2423,7 @@ SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest( ::google::protobuf::Metadata SubscribeFlightModeChangeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[6]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1927,13 +2432,21 @@ class SubscribeTakeoffRequest::_Internal { }; SubscribeTakeoffRequest::SubscribeTakeoffRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeTakeoffRequest) } SubscribeTakeoffRequest::SubscribeTakeoffRequest( ::google::protobuf::Arena* arena, const SubscribeTakeoffRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeTakeoffRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1942,18 +2455,78 @@ SubscribeTakeoffRequest::SubscribeTakeoffRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeTakeoffRequest) } +inline void* SubscribeTakeoffRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeTakeoffRequest(arena); +} +constexpr auto SubscribeTakeoffRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeTakeoffRequest), + alignof(SubscribeTakeoffRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeTakeoffRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeTakeoffRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeTakeoffRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeTakeoffRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeTakeoffRequest::ByteSizeLong, + &SubscribeTakeoffRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeTakeoffRequest, _impl_._cached_size_), + false, + }, + &SubscribeTakeoffRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeTakeoffRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeTakeoffRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SubscribeTakeoffRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; + + + + + + + - - - - - - - ::google::protobuf::Metadata SubscribeTakeoffRequest::GetMetadata() const { - return ::_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]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1962,13 +2535,21 @@ class SubscribeLandRequest::_Internal { }; SubscribeLandRequest::SubscribeLandRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeLandRequest) } SubscribeLandRequest::SubscribeLandRequest( ::google::protobuf::Arena* arena, const SubscribeLandRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeLandRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1977,6 +2558,68 @@ SubscribeLandRequest::SubscribeLandRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeLandRequest) } +inline void* SubscribeLandRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeLandRequest(arena); +} +constexpr auto SubscribeLandRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeLandRequest), + alignof(SubscribeLandRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeLandRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeLandRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeLandRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeLandRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeLandRequest::ByteSizeLong, + &SubscribeLandRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeLandRequest, _impl_._cached_size_), + false, + }, + &SubscribeLandRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeLandRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeLandRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SubscribeLandRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -1986,9 +2629,7 @@ SubscribeLandRequest::SubscribeLandRequest( ::google::protobuf::Metadata SubscribeLandRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[8]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1997,13 +2638,21 @@ class SubscribeRebootRequest::_Internal { }; SubscribeRebootRequest::SubscribeRebootRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeRebootRequest) } SubscribeRebootRequest::SubscribeRebootRequest( ::google::protobuf::Arena* arena, const SubscribeRebootRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeRebootRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2012,6 +2661,68 @@ SubscribeRebootRequest::SubscribeRebootRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeRebootRequest) } +inline void* SubscribeRebootRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeRebootRequest(arena); +} +constexpr auto SubscribeRebootRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeRebootRequest), + alignof(SubscribeRebootRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeRebootRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeRebootRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeRebootRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeRebootRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeRebootRequest::ByteSizeLong, + &SubscribeRebootRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeRebootRequest, _impl_._cached_size_), + false, + }, + &SubscribeRebootRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeRebootRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeRebootRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SubscribeRebootRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -2021,9 +2732,7 @@ SubscribeRebootRequest::SubscribeRebootRequest( ::google::protobuf::Metadata SubscribeRebootRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[9]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2032,13 +2741,21 @@ class SubscribeShutdownRequest::_Internal { }; SubscribeShutdownRequest::SubscribeShutdownRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeShutdownRequest) } SubscribeShutdownRequest::SubscribeShutdownRequest( ::google::protobuf::Arena* arena, const SubscribeShutdownRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeShutdownRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2047,6 +2764,68 @@ SubscribeShutdownRequest::SubscribeShutdownRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeShutdownRequest) } +inline void* SubscribeShutdownRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeShutdownRequest(arena); +} +constexpr auto SubscribeShutdownRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeShutdownRequest), + alignof(SubscribeShutdownRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeShutdownRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeShutdownRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeShutdownRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeShutdownRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeShutdownRequest::ByteSizeLong, + &SubscribeShutdownRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeShutdownRequest, _impl_._cached_size_), + false, + }, + &SubscribeShutdownRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeShutdownRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeShutdownRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SubscribeShutdownRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -2056,9 +2835,7 @@ SubscribeShutdownRequest::SubscribeShutdownRequest( ::google::protobuf::Metadata SubscribeShutdownRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[10]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2067,13 +2844,21 @@ class SubscribeTerminateRequest::_Internal { }; SubscribeTerminateRequest::SubscribeTerminateRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeTerminateRequest) } SubscribeTerminateRequest::SubscribeTerminateRequest( ::google::protobuf::Arena* arena, const SubscribeTerminateRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeTerminateRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2082,6 +2867,68 @@ SubscribeTerminateRequest::SubscribeTerminateRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeTerminateRequest) } +inline void* SubscribeTerminateRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeTerminateRequest(arena); +} +constexpr auto SubscribeTerminateRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeTerminateRequest), + alignof(SubscribeTerminateRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeTerminateRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeTerminateRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeTerminateRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeTerminateRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeTerminateRequest::ByteSizeLong, + &SubscribeTerminateRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeTerminateRequest, _impl_._cached_size_), + false, + }, + &SubscribeTerminateRequest::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeTerminateRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeTerminateRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SubscribeTerminateRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -2091,60 +2938,53 @@ SubscribeTerminateRequest::SubscribeTerminateRequest( ::google::protobuf::Metadata SubscribeTerminateRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto[11]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ArmDisarmResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const ArmDisarmResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::action_server::ArmDisarm& arm(const ArmDisarmResponse* msg); - static void set_has_arm(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + 8 * PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& ArmDisarmResponse::_Internal::action_server_result(const ArmDisarmResponse* msg) { - return *msg->_impl_.action_server_result_; -} -const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::_Internal::arm(const ArmDisarmResponse* msg) { - return *msg->_impl_.arm_; -} ArmDisarmResponse::ArmDisarmResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ArmDisarmResponse) } inline PROTOBUF_NDEBUG_INLINE ArmDisarmResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::ArmDisarmResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ArmDisarmResponse::ArmDisarmResponse( ::google::protobuf::Arena* arena, const ArmDisarmResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ArmDisarmResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? 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; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) + : nullptr; + _impl_.arm_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ArmDisarm>( + arena, *from._impl_.arm_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ArmDisarmResponse) } @@ -2164,45 +3004,52 @@ inline void ArmDisarmResponse::SharedCtor(::_pb::Arena* arena) { } ArmDisarmResponse::~ArmDisarmResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ArmDisarmResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmDisarmResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - delete _impl_.arm_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmDisarmResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ArmDisarmResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.arm_ != nullptr); - _impl_.arm_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ArmDisarmResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ArmDisarmResponse::SharedDtor(MessageLite& self) { + ArmDisarmResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + delete this_._impl_.arm_; + this_._impl_.~Impl_(); +} + +inline void* ArmDisarmResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ArmDisarmResponse(arena); +} +constexpr auto ArmDisarmResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ArmDisarmResponse), + alignof(ArmDisarmResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmDisarmResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmDisarmResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmDisarmResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmDisarmResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ArmDisarmResponse::ByteSizeLong, + &ArmDisarmResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_._cached_size_), + false, + }, + &ArmDisarmResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmDisarmResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ArmDisarmResponse::_table_ = { { @@ -2215,8 +3062,12 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ArmDisarmResponse::_table_ = { 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ArmDisarmResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ArmDisarmResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action_server.ArmDisarm arm = 2; {::_pbi::TcParser::FastMtS1, @@ -2240,74 +3091,103 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ArmDisarmResponse::_table_ = { }}, }; -::uint8_t* ArmDisarmResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ArmDisarmResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.action_server.ArmDisarm arm = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::arm(this), - _Internal::arm(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ArmDisarmResponse) - return target; -} - -::size_t ArmDisarmResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ArmDisarmResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ArmDisarmResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ArmDisarmResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - - // .mavsdk.rpc.action_server.ArmDisarm arm = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.arm_); + ABSL_DCHECK(_impl_.arm_ != nullptr); + _impl_.arm_->Clear(); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmDisarmResponse::_class_data_ = { - ArmDisarmResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmDisarmResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ArmDisarmResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ArmDisarmResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ArmDisarmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ArmDisarmResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ArmDisarmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ArmDisarmResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_server_result_, this_._impl_.action_server_result_->GetCachedSize(), target, + stream); + } + + // .mavsdk.rpc.action_server.ArmDisarm arm = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.arm_, this_._impl_.arm_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ArmDisarmResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ArmDisarmResponse::ByteSizeLong(const MessageLite& base) { + const ArmDisarmResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ArmDisarmResponse::ByteSizeLong() const { + const ArmDisarmResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ArmDisarmResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_server_result_); + } + // .mavsdk.rpc.action_server.ArmDisarm arm = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.arm_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ArmDisarmResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ArmDisarmResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -2316,14 +3196,25 @@ void ArmDisarmResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::g cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_arm()->::mavsdk::rpc::action_server::ArmDisarm::MergeFrom( - from._internal_arm()); + ABSL_DCHECK(from._impl_.arm_ != nullptr); + if (_this->_impl_.arm_ == nullptr) { + _this->_impl_.arm_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ArmDisarm>(arena, *from._impl_.arm_); + } else { + _this->_impl_.arm_->MergeFrom(*from._impl_.arm_); + } } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2334,13 +3225,7 @@ void ArmDisarmResponse::CopyFrom(const ArmDisarmResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ArmDisarmResponse::IsInitialized() const { - return true; -} -::_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_); @@ -2354,50 +3239,50 @@ void ArmDisarmResponse::InternalSwap(ArmDisarmResponse* PROTOBUF_RESTRICT other) } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FlightModeChangeResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const FlightModeChangeResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& FlightModeChangeResponse::_Internal::action_server_result(const FlightModeChangeResponse* msg) { - return *msg->_impl_.action_server_result_; -} FlightModeChangeResponse::FlightModeChangeResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.FlightModeChangeResponse) } inline PROTOBUF_NDEBUG_INLINE FlightModeChangeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::FlightModeChangeResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} FlightModeChangeResponse::FlightModeChangeResponse( ::google::protobuf::Arena* arena, const FlightModeChangeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FlightModeChangeResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) + : nullptr; _impl_.flight_mode_ = from._impl_.flight_mode_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.FlightModeChangeResponse) @@ -2418,39 +3303,51 @@ inline void FlightModeChangeResponse::SharedCtor(::_pb::Arena* arena) { } FlightModeChangeResponse::~FlightModeChangeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.FlightModeChangeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FlightModeChangeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FlightModeChangeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.flight_mode_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FlightModeChangeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void FlightModeChangeResponse::SharedDtor(MessageLite& self) { + FlightModeChangeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* FlightModeChangeResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FlightModeChangeResponse(arena); +} +constexpr auto FlightModeChangeResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FlightModeChangeResponse), + alignof(FlightModeChangeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FlightModeChangeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FlightModeChangeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FlightModeChangeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FlightModeChangeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FlightModeChangeResponse::ByteSizeLong, + &FlightModeChangeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_._cached_size_), + false, + }, + &FlightModeChangeResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FlightModeChangeResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> FlightModeChangeResponse::_table_ = { { @@ -2463,8 +3360,12 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> FlightModeChangeResponse::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_FlightModeChangeResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::FlightModeChangeResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FlightModeChangeResponse, _impl_.flight_mode_), 63>(), @@ -2487,84 +3388,119 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> FlightModeChangeResponse::_table_ = { }}, }; -::uint8_t* FlightModeChangeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; - if (this->_internal_flight_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_flight_mode(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.FlightModeChangeResponse) - return target; -} - -::size_t FlightModeChangeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void FlightModeChangeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.FlightModeChangeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; - if (this->_internal_flight_mode() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_flight_mode()); + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FlightModeChangeResponse::_class_data_ = { - FlightModeChangeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FlightModeChangeResponse::GetClassData() const { - return &_class_data_; + _impl_.flight_mode_ = 0; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void FlightModeChangeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* FlightModeChangeResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const FlightModeChangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* FlightModeChangeResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const FlightModeChangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.FlightModeChangeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_server_result_, this_._impl_.action_server_result_->GetCachedSize(), target, + stream); + } + + // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; + if (this_._internal_flight_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_flight_mode(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.FlightModeChangeResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t FlightModeChangeResponse::ByteSizeLong(const MessageLite& base) { + const FlightModeChangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t FlightModeChangeResponse::ByteSizeLong() const { + const FlightModeChangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.FlightModeChangeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_server_result_); + } + } + { + // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; + if (this_._internal_flight_mode() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_flight_mode()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void FlightModeChangeResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.FlightModeChangeResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } } if (from._internal_flight_mode() != 0) { - _this->_internal_set_flight_mode(from._internal_flight_mode()); + _this->_impl_.flight_mode_ = from._impl_.flight_mode_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2575,13 +3511,7 @@ void FlightModeChangeResponse::CopyFrom(const FlightModeChangeResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FlightModeChangeResponse::IsInitialized() const { - return true; -} -::_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_); @@ -2595,50 +3525,50 @@ void FlightModeChangeResponse::InternalSwap(FlightModeChangeResponse* PROTOBUF_R } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TakeoffResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const TakeoffResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& TakeoffResponse::_Internal::action_server_result(const TakeoffResponse* msg) { - return *msg->_impl_.action_server_result_; -} TakeoffResponse::TakeoffResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.TakeoffResponse) } inline PROTOBUF_NDEBUG_INLINE TakeoffResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::TakeoffResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TakeoffResponse::TakeoffResponse( ::google::protobuf::Arena* arena, const TakeoffResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TakeoffResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) + : nullptr; _impl_.takeoff_ = from._impl_.takeoff_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.TakeoffResponse) @@ -2659,39 +3589,51 @@ inline void TakeoffResponse::SharedCtor(::_pb::Arena* arena) { } TakeoffResponse::~TakeoffResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.TakeoffResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TakeoffResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TakeoffResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.TakeoffResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.takeoff_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TakeoffResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void TakeoffResponse::SharedDtor(MessageLite& self) { + TakeoffResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* TakeoffResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TakeoffResponse(arena); +} +constexpr auto TakeoffResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TakeoffResponse), + alignof(TakeoffResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TakeoffResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TakeoffResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TakeoffResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TakeoffResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TakeoffResponse::ByteSizeLong, + &TakeoffResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._cached_size_), + false, + }, + &TakeoffResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TakeoffResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> TakeoffResponse::_table_ = { { @@ -2704,8 +3646,12 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> TakeoffResponse::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TakeoffResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::TakeoffResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool takeoff = 2; {::_pbi::TcParser::SingularVarintNoZag1(), @@ -2728,83 +3674,118 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> TakeoffResponse::_table_ = { }}, }; -::uint8_t* TakeoffResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.TakeoffResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // bool takeoff = 2; - if (this->_internal_takeoff() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_takeoff(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.TakeoffResponse) - return target; -} - -::size_t TakeoffResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.TakeoffResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TakeoffResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.TakeoffResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // bool takeoff = 2; - if (this->_internal_takeoff() != 0) { - total_size += 2; + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TakeoffResponse::_class_data_ = { - TakeoffResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TakeoffResponse::GetClassData() const { - return &_class_data_; + _impl_.takeoff_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TakeoffResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TakeoffResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TakeoffResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.TakeoffResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_server_result_, this_._impl_.action_server_result_->GetCachedSize(), target, + stream); + } + + // bool takeoff = 2; + if (this_._internal_takeoff() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_takeoff(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.TakeoffResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TakeoffResponse::ByteSizeLong(const MessageLite& base) { + const TakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TakeoffResponse::ByteSizeLong() const { + const TakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.TakeoffResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_server_result_); + } + } + { + // bool takeoff = 2; + if (this_._internal_takeoff() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TakeoffResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.TakeoffResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } } if (from._internal_takeoff() != 0) { - _this->_internal_set_takeoff(from._internal_takeoff()); + _this->_impl_.takeoff_ = from._impl_.takeoff_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2815,13 +3796,7 @@ void TakeoffResponse::CopyFrom(const TakeoffResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TakeoffResponse::IsInitialized() const { - return true; -} -::_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_); @@ -2835,50 +3810,50 @@ void TakeoffResponse::InternalSwap(TakeoffResponse* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class LandResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const LandResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& LandResponse::_Internal::action_server_result(const LandResponse* msg) { - return *msg->_impl_.action_server_result_; -} LandResponse::LandResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.LandResponse) } inline PROTOBUF_NDEBUG_INLINE LandResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::LandResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} LandResponse::LandResponse( ::google::protobuf::Arena* arena, const LandResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE LandResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) + : nullptr; _impl_.land_ = from._impl_.land_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.LandResponse) @@ -2899,39 +3874,51 @@ inline void LandResponse::SharedCtor(::_pb::Arena* arena) { } LandResponse::~LandResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.LandResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void LandResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void LandResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.LandResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.land_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* LandResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void LandResponse::SharedDtor(MessageLite& self) { + LandResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* LandResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) LandResponse(arena); +} +constexpr auto LandResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(LandResponse), + alignof(LandResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull LandResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_LandResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LandResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LandResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &LandResponse::ByteSizeLong, + &LandResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._cached_size_), + false, + }, + &LandResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* LandResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> LandResponse::_table_ = { { @@ -2944,8 +3931,12 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> LandResponse::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_LandResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::LandResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool land = 2; {::_pbi::TcParser::SingularVarintNoZag1(), @@ -2968,83 +3959,118 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> LandResponse::_table_ = { }}, }; -::uint8_t* LandResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.LandResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // bool land = 2; - if (this->_internal_land() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_land(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.LandResponse) - return target; -} - -::size_t LandResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.LandResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void LandResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.LandResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // bool land = 2; - if (this->_internal_land() != 0) { - total_size += 2; + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData LandResponse::_class_data_ = { - LandResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* LandResponse::GetClassData() const { - return &_class_data_; + _impl_.land_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void LandResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* LandResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const LandResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* LandResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const LandResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.LandResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_server_result_, this_._impl_.action_server_result_->GetCachedSize(), target, + stream); + } + + // bool land = 2; + if (this_._internal_land() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_land(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.LandResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t LandResponse::ByteSizeLong(const MessageLite& base) { + const LandResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t LandResponse::ByteSizeLong() const { + const LandResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.LandResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_server_result_); + } + } + { + // bool land = 2; + if (this_._internal_land() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void LandResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.LandResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } } if (from._internal_land() != 0) { - _this->_internal_set_land(from._internal_land()); + _this->_impl_.land_ = from._impl_.land_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3055,13 +4081,7 @@ void LandResponse::CopyFrom(const LandResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool LandResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* LandResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void LandResponse::InternalSwap(LandResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -3075,50 +4095,50 @@ void LandResponse::InternalSwap(LandResponse* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class RebootResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const RebootResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& RebootResponse::_Internal::action_server_result(const RebootResponse* msg) { - return *msg->_impl_.action_server_result_; -} RebootResponse::RebootResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.RebootResponse) } inline PROTOBUF_NDEBUG_INLINE RebootResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::RebootResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} RebootResponse::RebootResponse( ::google::protobuf::Arena* arena, const RebootResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE RebootResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) + : nullptr; _impl_.reboot_ = from._impl_.reboot_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.RebootResponse) @@ -3139,39 +4159,51 @@ inline void RebootResponse::SharedCtor(::_pb::Arena* arena) { } RebootResponse::~RebootResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.RebootResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void RebootResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void RebootResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.RebootResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.reboot_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RebootResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - + SharedDtor(*this); +} +inline void RebootResponse::SharedDtor(MessageLite& self) { + RebootResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* RebootResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) RebootResponse(arena); +} +constexpr auto RebootResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RebootResponse), + alignof(RebootResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull RebootResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_RebootResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RebootResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RebootResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RebootResponse::ByteSizeLong, + &RebootResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._cached_size_), + false, + }, + &RebootResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* RebootResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> RebootResponse::_table_ = { { @@ -3184,8 +4216,12 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> RebootResponse::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_RebootResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::RebootResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool reboot = 2; {::_pbi::TcParser::SingularVarintNoZag1(), @@ -3208,83 +4244,118 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> RebootResponse::_table_ = { }}, }; -::uint8_t* RebootResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.RebootResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // bool reboot = 2; - if (this->_internal_reboot() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_reboot(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.RebootResponse) - return target; -} - -::size_t RebootResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.RebootResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void RebootResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.RebootResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // bool reboot = 2; - if (this->_internal_reboot() != 0) { - total_size += 2; + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData RebootResponse::_class_data_ = { - RebootResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* RebootResponse::GetClassData() const { - return &_class_data_; + _impl_.reboot_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void RebootResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* RebootResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const RebootResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* RebootResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const RebootResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.RebootResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_server_result_, this_._impl_.action_server_result_->GetCachedSize(), target, + stream); + } + + // bool reboot = 2; + if (this_._internal_reboot() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_reboot(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.RebootResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t RebootResponse::ByteSizeLong(const MessageLite& base) { + const RebootResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t RebootResponse::ByteSizeLong() const { + const RebootResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.RebootResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_server_result_); + } + } + { + // bool reboot = 2; + if (this_._internal_reboot() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void RebootResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.RebootResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } } if (from._internal_reboot() != 0) { - _this->_internal_set_reboot(from._internal_reboot()); + _this->_impl_.reboot_ = from._impl_.reboot_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3295,13 +4366,7 @@ void RebootResponse::CopyFrom(const RebootResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool RebootResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* RebootResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void RebootResponse::InternalSwap(RebootResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -3315,50 +4380,50 @@ void RebootResponse::InternalSwap(RebootResponse* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ShutdownResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const ShutdownResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& ShutdownResponse::_Internal::action_server_result(const ShutdownResponse* msg) { - return *msg->_impl_.action_server_result_; -} ShutdownResponse::ShutdownResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ShutdownResponse) } inline PROTOBUF_NDEBUG_INLINE ShutdownResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::ShutdownResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ShutdownResponse::ShutdownResponse( ::google::protobuf::Arena* arena, const ShutdownResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ShutdownResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) + : nullptr; _impl_.shutdown_ = from._impl_.shutdown_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ShutdownResponse) @@ -3379,39 +4444,51 @@ inline void ShutdownResponse::SharedCtor(::_pb::Arena* arena) { } ShutdownResponse::~ShutdownResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ShutdownResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ShutdownResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ShutdownResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ShutdownResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.shutdown_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ShutdownResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ShutdownResponse::SharedDtor(MessageLite& self) { + ShutdownResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* ShutdownResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ShutdownResponse(arena); +} +constexpr auto ShutdownResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShutdownResponse), + alignof(ShutdownResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ShutdownResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ShutdownResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShutdownResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShutdownResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShutdownResponse::ByteSizeLong, + &ShutdownResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._cached_size_), + false, + }, + &ShutdownResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ShutdownResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ShutdownResponse::_table_ = { { @@ -3424,8 +4501,12 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ShutdownResponse::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ShutdownResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ShutdownResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool shutdown = 2; {::_pbi::TcParser::SingularVarintNoZag1(), @@ -3448,83 +4529,118 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ShutdownResponse::_table_ = { }}, }; -::uint8_t* ShutdownResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ShutdownResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // bool shutdown = 2; - if (this->_internal_shutdown() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_shutdown(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ShutdownResponse) - return target; -} - -::size_t ShutdownResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ShutdownResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ShutdownResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ShutdownResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // bool shutdown = 2; - if (this->_internal_shutdown() != 0) { - total_size += 2; + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ShutdownResponse::_class_data_ = { - ShutdownResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ShutdownResponse::GetClassData() const { - return &_class_data_; + _impl_.shutdown_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ShutdownResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ShutdownResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ShutdownResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ShutdownResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ShutdownResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ShutdownResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_server_result_, this_._impl_.action_server_result_->GetCachedSize(), target, + stream); + } + + // bool shutdown = 2; + if (this_._internal_shutdown() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_shutdown(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ShutdownResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ShutdownResponse::ByteSizeLong(const MessageLite& base) { + const ShutdownResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ShutdownResponse::ByteSizeLong() const { + const ShutdownResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ShutdownResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_server_result_); + } + } + { + // bool shutdown = 2; + if (this_._internal_shutdown() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ShutdownResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ShutdownResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } } if (from._internal_shutdown() != 0) { - _this->_internal_set_shutdown(from._internal_shutdown()); + _this->_impl_.shutdown_ = from._impl_.shutdown_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3535,13 +4651,7 @@ void ShutdownResponse::CopyFrom(const ShutdownResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ShutdownResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ShutdownResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ShutdownResponse::InternalSwap(ShutdownResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -3555,50 +4665,50 @@ void ShutdownResponse::InternalSwap(ShutdownResponse* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TerminateResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const TerminateResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& TerminateResponse::_Internal::action_server_result(const TerminateResponse* msg) { - return *msg->_impl_.action_server_result_; -} TerminateResponse::TerminateResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.TerminateResponse) } inline PROTOBUF_NDEBUG_INLINE TerminateResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::TerminateResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TerminateResponse::TerminateResponse( ::google::protobuf::Arena* arena, const TerminateResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TerminateResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) + : nullptr; _impl_.terminate_ = from._impl_.terminate_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.TerminateResponse) @@ -3619,39 +4729,51 @@ inline void TerminateResponse::SharedCtor(::_pb::Arena* arena) { } TerminateResponse::~TerminateResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.TerminateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TerminateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TerminateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.TerminateResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_.terminate_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TerminateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void TerminateResponse::SharedDtor(MessageLite& self) { + TerminateResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* TerminateResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TerminateResponse(arena); +} +constexpr auto TerminateResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TerminateResponse), + alignof(TerminateResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TerminateResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TerminateResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TerminateResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TerminateResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TerminateResponse::ByteSizeLong, + &TerminateResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._cached_size_), + false, + }, + &TerminateResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TerminateResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 1, 0, 2> TerminateResponse::_table_ = { { @@ -3664,8 +4786,12 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> TerminateResponse::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TerminateResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::TerminateResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool terminate = 2; {::_pbi::TcParser::SingularVarintNoZag1(), @@ -3688,83 +4814,118 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> TerminateResponse::_table_ = { }}, }; -::uint8_t* TerminateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.TerminateResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - // bool terminate = 2; - if (this->_internal_terminate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_terminate(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.TerminateResponse) - return target; -} - -::size_t TerminateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.TerminateResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TerminateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.TerminateResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); - } - - // bool terminate = 2; - if (this->_internal_terminate() != 0) { - total_size += 2; + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TerminateResponse::_class_data_ = { - TerminateResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TerminateResponse::GetClassData() const { - return &_class_data_; + _impl_.terminate_ = false; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TerminateResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TerminateResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TerminateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TerminateResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TerminateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.TerminateResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_server_result_, this_._impl_.action_server_result_->GetCachedSize(), target, + stream); + } + + // bool terminate = 2; + if (this_._internal_terminate() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_terminate(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.TerminateResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TerminateResponse::ByteSizeLong(const MessageLite& base) { + const TerminateResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TerminateResponse::ByteSizeLong() const { + const TerminateResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.TerminateResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_server_result_); + } + } + { + // bool terminate = 2; + if (this_._internal_terminate() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TerminateResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.TerminateResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } } if (from._internal_terminate() != 0) { - _this->_internal_set_terminate(from._internal_terminate()); + _this->_impl_.terminate_ = from._impl_.terminate_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3775,13 +4936,7 @@ void TerminateResponse::CopyFrom(const TerminateResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TerminateResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* TerminateResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TerminateResponse::InternalSwap(TerminateResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -3795,50 +4950,50 @@ void TerminateResponse::InternalSwap(TerminateResponse* PROTOBUF_RESTRICT other) } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetArmableResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetArmableResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& SetArmableResponse::_Internal::action_server_result(const SetArmableResponse* msg) { - return *msg->_impl_.action_server_result_; -} SetArmableResponse::SetArmableResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetArmableResponse) } inline PROTOBUF_NDEBUG_INLINE SetArmableResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::SetArmableResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetArmableResponse::SetArmableResponse( ::google::protobuf::Arena* arena, const SetArmableResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetArmableResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetArmableResponse) } @@ -3853,38 +5008,51 @@ inline void SetArmableResponse::SharedCtor(::_pb::Arena* arena) { } SetArmableResponse::~SetArmableResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetArmableResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetArmableResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetArmableResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetArmableResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetArmableResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetArmableResponse::SharedDtor(MessageLite& self) { + SetArmableResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* SetArmableResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetArmableResponse(arena); +} +constexpr auto SetArmableResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetArmableResponse), + alignof(SetArmableResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetArmableResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetArmableResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetArmableResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetArmableResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetArmableResponse::ByteSizeLong, + &SetArmableResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_._cached_size_), + false, + }, + &SetArmableResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetArmableResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetArmableResponse::_table_ = { { @@ -3897,8 +5065,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetArmableResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetArmableResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SetArmableResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; {::_pbi::TcParser::FastMtS1, @@ -3915,68 +5087,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetArmableResponse::_table_ = { }}, }; -::uint8_t* SetArmableResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetArmableResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetArmableResponse) - return target; -} - -::size_t SetArmableResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetArmableResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetArmableResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetArmableResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetArmableResponse::_class_data_ = { - SetArmableResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetArmableResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetArmableResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetArmableResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetArmableResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetArmableResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetArmableResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetArmableResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_server_result_, this_._impl_.action_server_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetArmableResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetArmableResponse::ByteSizeLong(const MessageLite& base) { + const SetArmableResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetArmableResponse::ByteSizeLong() const { + const SetArmableResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetArmableResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetArmableResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetArmableResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3987,13 +5191,7 @@ void SetArmableResponse::CopyFrom(const SetArmableResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetArmableResponse::IsInitialized() const { - return true; -} -::_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_); @@ -4002,50 +5200,50 @@ void SetArmableResponse::InternalSwap(SetArmableResponse* PROTOBUF_RESTRICT othe } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetDisarmableResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetDisarmableResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& SetDisarmableResponse::_Internal::action_server_result(const SetDisarmableResponse* msg) { - return *msg->_impl_.action_server_result_; -} SetDisarmableResponse::SetDisarmableResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetDisarmableResponse) } inline PROTOBUF_NDEBUG_INLINE SetDisarmableResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::SetDisarmableResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetDisarmableResponse::SetDisarmableResponse( ::google::protobuf::Arena* arena, const SetDisarmableResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetDisarmableResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetDisarmableResponse) } @@ -4060,38 +5258,51 @@ inline void SetDisarmableResponse::SharedCtor(::_pb::Arena* arena) { } SetDisarmableResponse::~SetDisarmableResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetDisarmableResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetDisarmableResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetDisarmableResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetDisarmableResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetDisarmableResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetDisarmableResponse::SharedDtor(MessageLite& self) { + SetDisarmableResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* SetDisarmableResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetDisarmableResponse(arena); +} +constexpr auto SetDisarmableResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetDisarmableResponse), + alignof(SetDisarmableResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetDisarmableResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetDisarmableResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetDisarmableResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetDisarmableResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetDisarmableResponse::ByteSizeLong, + &SetDisarmableResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_._cached_size_), + false, + }, + &SetDisarmableResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetDisarmableResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetDisarmableResponse::_table_ = { { @@ -4104,8 +5315,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetDisarmableResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetDisarmableResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SetDisarmableResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; {::_pbi::TcParser::FastMtS1, @@ -4122,68 +5337,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetDisarmableResponse::_table_ = { }}, }; -::uint8_t* SetDisarmableResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetDisarmableResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetDisarmableResponse) - return target; -} - -::size_t SetDisarmableResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetDisarmableResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetDisarmableResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetDisarmableResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetDisarmableResponse::_class_data_ = { - SetDisarmableResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetDisarmableResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetDisarmableResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetDisarmableResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetDisarmableResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetDisarmableResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetDisarmableResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetDisarmableResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_server_result_, this_._impl_.action_server_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetDisarmableResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetDisarmableResponse::ByteSizeLong(const MessageLite& base) { + const SetDisarmableResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetDisarmableResponse::ByteSizeLong() const { + const SetDisarmableResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetDisarmableResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetDisarmableResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetDisarmableResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4194,13 +5441,7 @@ void SetDisarmableResponse::CopyFrom(const SetDisarmableResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetDisarmableResponse::IsInitialized() const { - return true; -} -::_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_); @@ -4209,50 +5450,50 @@ void SetDisarmableResponse::InternalSwap(SetDisarmableResponse* PROTOBUF_RESTRIC } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetAllowableFlightModesResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetAllowableFlightModesResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowableFlightModesResponse::_Internal::action_server_result(const SetAllowableFlightModesResponse* msg) { - return *msg->_impl_.action_server_result_; -} SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) } inline PROTOBUF_NDEBUG_INLINE SetAllowableFlightModesResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::SetAllowableFlightModesResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetAllowableFlightModesResponse::SetAllowableFlightModesResponse( ::google::protobuf::Arena* arena, const SetAllowableFlightModesResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetAllowableFlightModesResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) } @@ -4266,39 +5507,52 @@ inline void SetAllowableFlightModesResponse::SharedCtor(::_pb::Arena* arena) { _impl_.action_server_result_ = {}; } SetAllowableFlightModesResponse::~SetAllowableFlightModesResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetAllowableFlightModesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetAllowableFlightModesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetAllowableFlightModesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + SharedDtor(*this); +} +inline void SetAllowableFlightModesResponse::SharedDtor(MessageLite& self) { + SetAllowableFlightModesResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* SetAllowableFlightModesResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetAllowableFlightModesResponse(arena); +} +constexpr auto SetAllowableFlightModesResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetAllowableFlightModesResponse), + alignof(SetAllowableFlightModesResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetAllowableFlightModesResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetAllowableFlightModesResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetAllowableFlightModesResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetAllowableFlightModesResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetAllowableFlightModesResponse::ByteSizeLong, + &SetAllowableFlightModesResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_._cached_size_), + false, + }, + &SetAllowableFlightModesResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetAllowableFlightModesResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowableFlightModesResponse::_table_ = { { @@ -4311,8 +5565,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowableFlightModesResponse::_tabl 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetAllowableFlightModesResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SetAllowableFlightModesResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; {::_pbi::TcParser::FastMtS1, @@ -4329,68 +5587,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowableFlightModesResponse::_tabl }}, }; -::uint8_t* SetAllowableFlightModesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - return target; -} - -::size_t SetAllowableFlightModesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetAllowableFlightModesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetAllowableFlightModesResponse::_class_data_ = { - SetAllowableFlightModesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetAllowableFlightModesResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetAllowableFlightModesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetAllowableFlightModesResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetAllowableFlightModesResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetAllowableFlightModesResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetAllowableFlightModesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_server_result_, this_._impl_.action_server_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetAllowableFlightModesResponse::ByteSizeLong(const MessageLite& base) { + const SetAllowableFlightModesResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetAllowableFlightModesResponse::ByteSizeLong() const { + const SetAllowableFlightModesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetAllowableFlightModesResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4401,13 +5691,7 @@ void SetAllowableFlightModesResponse::CopyFrom(const SetAllowableFlightModesResp MergeFrom(from); } -PROTOBUF_NOINLINE bool SetAllowableFlightModesResponse::IsInitialized() const { - return true; -} -::_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_); @@ -4416,50 +5700,50 @@ void SetAllowableFlightModesResponse::InternalSwap(SetAllowableFlightModesRespon } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetAllowTakeoffResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetAllowTakeoffResponse* msg); - static void set_has_action_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowTakeoffResponse::_Internal::action_server_result(const SetAllowTakeoffResponse* msg) { - return *msg->_impl_.action_server_result_; -} SetAllowTakeoffResponse::SetAllowTakeoffResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) } inline PROTOBUF_NDEBUG_INLINE SetAllowTakeoffResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::SetAllowTakeoffResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetAllowTakeoffResponse::SetAllowTakeoffResponse( ::google::protobuf::Arena* arena, const SetAllowTakeoffResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetAllowTakeoffResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_) - : nullptr; + _impl_.action_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>( + arena, *from._impl_.action_server_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) } @@ -4474,38 +5758,51 @@ inline void SetAllowTakeoffResponse::SharedCtor(::_pb::Arena* arena) { } SetAllowTakeoffResponse::~SetAllowTakeoffResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetAllowTakeoffResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetAllowTakeoffResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_server_result_ != nullptr); - _impl_.action_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetAllowTakeoffResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetAllowTakeoffResponse::SharedDtor(MessageLite& self) { + SetAllowTakeoffResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.action_server_result_; + this_._impl_.~Impl_(); +} + +inline void* SetAllowTakeoffResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetAllowTakeoffResponse(arena); +} +constexpr auto SetAllowTakeoffResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetAllowTakeoffResponse), + alignof(SetAllowTakeoffResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetAllowTakeoffResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetAllowTakeoffResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetAllowTakeoffResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetAllowTakeoffResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetAllowTakeoffResponse::ByteSizeLong, + &SetAllowTakeoffResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_._cached_size_), + false, + }, + &SetAllowTakeoffResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetAllowTakeoffResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowTakeoffResponse::_table_ = { { @@ -4518,8 +5815,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowTakeoffResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetAllowTakeoffResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::SetAllowTakeoffResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; {::_pbi::TcParser::FastMtS1, @@ -4536,68 +5837,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetAllowTakeoffResponse::_table_ = { }}, }; -::uint8_t* SetAllowTakeoffResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_server_result(this), - _Internal::action_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - return target; -} - -::size_t SetAllowTakeoffResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetAllowTakeoffResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_server_result_); + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetAllowTakeoffResponse::_class_data_ = { - SetAllowTakeoffResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetAllowTakeoffResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetAllowTakeoffResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetAllowTakeoffResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetAllowTakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetAllowTakeoffResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetAllowTakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.action_server_result_, this_._impl_.action_server_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetAllowTakeoffResponse::ByteSizeLong(const MessageLite& base) { + const SetAllowTakeoffResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetAllowTakeoffResponse::ByteSizeLong() const { + const SetAllowTakeoffResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.action_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetAllowTakeoffResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( - from._internal_action_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.action_server_result_ != nullptr); + if (_this->_impl_.action_server_result_ == nullptr) { + _this->_impl_.action_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::ActionServerResult>(arena, *from._impl_.action_server_result_); + } else { + _this->_impl_.action_server_result_->MergeFrom(*from._impl_.action_server_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4608,13 +5941,7 @@ void SetAllowTakeoffResponse::CopyFrom(const SetAllowTakeoffResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetAllowTakeoffResponse::IsInitialized() const { - return true; -} -::_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_); @@ -4623,50 +5950,50 @@ void SetAllowTakeoffResponse::InternalSwap(SetAllowTakeoffResponse* PROTOBUF_RES } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetAllowableFlightModesResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes(const GetAllowableFlightModesResponse* msg); - static void set_has_flight_modes(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::action_server::AllowableFlightModes& GetAllowableFlightModesResponse::_Internal::flight_modes(const GetAllowableFlightModesResponse* msg) { - return *msg->_impl_.flight_modes_; -} GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) } inline PROTOBUF_NDEBUG_INLINE GetAllowableFlightModesResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::GetAllowableFlightModesResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} GetAllowableFlightModesResponse::GetAllowableFlightModesResponse( ::google::protobuf::Arena* arena, const GetAllowableFlightModesResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetAllowableFlightModesResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.flight_modes_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(arena, *from._impl_.flight_modes_) - : nullptr; + _impl_.flight_modes_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::AllowableFlightModes>( + arena, *from._impl_.flight_modes_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) } @@ -4681,38 +6008,51 @@ inline void GetAllowableFlightModesResponse::SharedCtor(::_pb::Arena* arena) { } GetAllowableFlightModesResponse::~GetAllowableFlightModesResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetAllowableFlightModesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.flight_modes_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetAllowableFlightModesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.flight_modes_ != nullptr); - _impl_.flight_modes_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetAllowableFlightModesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void GetAllowableFlightModesResponse::SharedDtor(MessageLite& self) { + GetAllowableFlightModesResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.flight_modes_; + this_._impl_.~Impl_(); +} + +inline void* GetAllowableFlightModesResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) GetAllowableFlightModesResponse(arena); +} +constexpr auto GetAllowableFlightModesResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetAllowableFlightModesResponse), + alignof(GetAllowableFlightModesResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetAllowableFlightModesResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetAllowableFlightModesResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetAllowableFlightModesResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetAllowableFlightModesResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetAllowableFlightModesResponse::ByteSizeLong, + &GetAllowableFlightModesResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_._cached_size_), + false, + }, + &GetAllowableFlightModesResponse::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetAllowableFlightModesResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetAllowableFlightModesResponse::_table_ = { { @@ -4725,8 +6065,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetAllowableFlightModesResponse::_tabl 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetAllowableFlightModesResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::GetAllowableFlightModesResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; {::_pbi::TcParser::FastMtS1, @@ -4743,68 +6087,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetAllowableFlightModesResponse::_tabl }}, }; -::uint8_t* GetAllowableFlightModesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::flight_modes(this), - _Internal::flight_modes(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - return target; -} - -::size_t GetAllowableFlightModesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void GetAllowableFlightModesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.flight_modes_); + ABSL_DCHECK(_impl_.flight_modes_ != nullptr); + _impl_.flight_modes_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetAllowableFlightModesResponse::_class_data_ = { - GetAllowableFlightModesResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetAllowableFlightModesResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void GetAllowableFlightModesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* GetAllowableFlightModesResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const GetAllowableFlightModesResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* GetAllowableFlightModesResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const GetAllowableFlightModesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.flight_modes_, this_._impl_.flight_modes_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t GetAllowableFlightModesResponse::ByteSizeLong(const MessageLite& base) { + const GetAllowableFlightModesResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t GetAllowableFlightModesResponse::ByteSizeLong() const { + const GetAllowableFlightModesResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.flight_modes_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void GetAllowableFlightModesResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_flight_modes()->::mavsdk::rpc::action_server::AllowableFlightModes::MergeFrom( - from._internal_flight_modes()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.flight_modes_ != nullptr); + if (_this->_impl_.flight_modes_ == nullptr) { + _this->_impl_.flight_modes_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::action_server::AllowableFlightModes>(arena, *from._impl_.flight_modes_); + } else { + _this->_impl_.flight_modes_->MergeFrom(*from._impl_.flight_modes_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4815,13 +6191,7 @@ void GetAllowableFlightModesResponse::CopyFrom(const GetAllowableFlightModesResp MergeFrom(from); } -PROTOBUF_NOINLINE bool GetAllowableFlightModesResponse::IsInitialized() const { - return true; -} -::_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_); @@ -4830,9 +6200,7 @@ void GetAllowableFlightModesResponse::InternalSwap(GetAllowableFlightModesRespon } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -4841,7 +6209,11 @@ class AllowableFlightModes::_Internal { }; AllowableFlightModes::AllowableFlightModes(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.AllowableFlightModes) } @@ -4866,34 +6238,50 @@ inline void AllowableFlightModes::SharedCtor(::_pb::Arena* arena) { } AllowableFlightModes::~AllowableFlightModes() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.AllowableFlightModes) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AllowableFlightModes::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AllowableFlightModes::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.AllowableFlightModes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.can_auto_mode_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.can_stabilize_mode_) - - reinterpret_cast(&_impl_.can_auto_mode_)) + sizeof(_impl_.can_stabilize_mode_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AllowableFlightModes::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void AllowableFlightModes::SharedDtor(MessageLite& self) { + AllowableFlightModes& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* AllowableFlightModes::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) AllowableFlightModes(arena); +} +constexpr auto AllowableFlightModes::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AllowableFlightModes), + alignof(AllowableFlightModes)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull AllowableFlightModes::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_AllowableFlightModes_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AllowableFlightModes::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AllowableFlightModes::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &AllowableFlightModes::ByteSizeLong, + &AllowableFlightModes::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_._cached_size_), + false, + }, + &AllowableFlightModes::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* AllowableFlightModes::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> AllowableFlightModes::_table_ = { { @@ -4906,8 +6294,12 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> AllowableFlightModes::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_AllowableFlightModes_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::AllowableFlightModes>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bool can_auto_mode = 1; @@ -4937,78 +6329,98 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> AllowableFlightModes::_table_ = { }}, }; -::uint8_t* AllowableFlightModes::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.AllowableFlightModes) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool can_auto_mode = 1; - if (this->_internal_can_auto_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_can_auto_mode(), target); - } - - // bool can_guided_mode = 2; - if (this->_internal_can_guided_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_can_guided_mode(), target); - } - - // bool can_stabilize_mode = 3; - if (this->_internal_can_stabilize_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_can_stabilize_mode(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.AllowableFlightModes) - return target; -} - -::size_t AllowableFlightModes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.AllowableFlightModes) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void AllowableFlightModes::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.AllowableFlightModes) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bool can_auto_mode = 1; - if (this->_internal_can_auto_mode() != 0) { - total_size += 2; - } - - // bool can_guided_mode = 2; - if (this->_internal_can_guided_mode() != 0) { - total_size += 2; - } - - // bool can_stabilize_mode = 3; - if (this->_internal_can_stabilize_mode() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AllowableFlightModes::_class_data_ = { - AllowableFlightModes::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AllowableFlightModes::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.can_auto_mode_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.can_stabilize_mode_) - + reinterpret_cast(&_impl_.can_auto_mode_)) + sizeof(_impl_.can_stabilize_mode_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void AllowableFlightModes::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* AllowableFlightModes::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const AllowableFlightModes& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* AllowableFlightModes::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const AllowableFlightModes& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.AllowableFlightModes) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bool can_auto_mode = 1; + if (this_._internal_can_auto_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_can_auto_mode(), target); + } + + // bool can_guided_mode = 2; + if (this_._internal_can_guided_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_can_guided_mode(), target); + } + + // bool can_stabilize_mode = 3; + if (this_._internal_can_stabilize_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_can_stabilize_mode(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.AllowableFlightModes) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t AllowableFlightModes::ByteSizeLong(const MessageLite& base) { + const AllowableFlightModes& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t AllowableFlightModes::ByteSizeLong() const { + const AllowableFlightModes& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.AllowableFlightModes) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // bool can_auto_mode = 1; + if (this_._internal_can_auto_mode() != 0) { + total_size += 2; + } + // bool can_guided_mode = 2; + if (this_._internal_can_guided_mode() != 0) { + total_size += 2; + } + // bool can_stabilize_mode = 3; + if (this_._internal_can_stabilize_mode() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void AllowableFlightModes::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.AllowableFlightModes) @@ -5017,13 +6429,13 @@ void AllowableFlightModes::MergeImpl(::google::protobuf::Message& to_msg, const (void) cached_has_bits; if (from._internal_can_auto_mode() != 0) { - _this->_internal_set_can_auto_mode(from._internal_can_auto_mode()); + _this->_impl_.can_auto_mode_ = from._impl_.can_auto_mode_; } if (from._internal_can_guided_mode() != 0) { - _this->_internal_set_can_guided_mode(from._internal_can_guided_mode()); + _this->_impl_.can_guided_mode_ = from._impl_.can_guided_mode_; } if (from._internal_can_stabilize_mode() != 0) { - _this->_internal_set_can_stabilize_mode(from._internal_can_stabilize_mode()); + _this->_impl_.can_stabilize_mode_ = from._impl_.can_stabilize_mode_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5035,13 +6447,7 @@ void AllowableFlightModes::CopyFrom(const AllowableFlightModes& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool AllowableFlightModes::IsInitialized() const { - return true; -} -::_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_); @@ -5054,9 +6460,7 @@ void AllowableFlightModes::InternalSwap(AllowableFlightModes* PROTOBUF_RESTRICT } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -5065,7 +6469,11 @@ class ArmDisarm::_Internal { }; ArmDisarm::ArmDisarm(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ArmDisarm) } @@ -5090,34 +6498,50 @@ inline void ArmDisarm::SharedCtor(::_pb::Arena* arena) { } ArmDisarm::~ArmDisarm() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ArmDisarm) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmDisarm::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmDisarm::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ArmDisarm) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.arm_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.force_) - - reinterpret_cast(&_impl_.arm_)) + sizeof(_impl_.force_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ArmDisarm::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ArmDisarm::SharedDtor(MessageLite& self) { + ArmDisarm& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* ArmDisarm::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ArmDisarm(arena); +} +constexpr auto ArmDisarm::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ArmDisarm), + alignof(ArmDisarm)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmDisarm::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmDisarm_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmDisarm::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmDisarm::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ArmDisarm::ByteSizeLong, + &ArmDisarm::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_._cached_size_), + false, + }, + &ArmDisarm::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmDisarm::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ArmDisarm::_table_ = { { @@ -5130,8 +6554,12 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ArmDisarm::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ArmDisarm_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ArmDisarm>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool force = 2; {::_pbi::TcParser::SingularVarintNoZag1(), @@ -5154,66 +6582,87 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ArmDisarm::_table_ = { }}, }; -::uint8_t* ArmDisarm::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ArmDisarm) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool arm = 1; - if (this->_internal_arm() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_arm(), target); - } - - // bool force = 2; - if (this->_internal_force() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_force(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ArmDisarm) - return target; -} - -::size_t ArmDisarm::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ArmDisarm) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ArmDisarm::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ArmDisarm) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bool arm = 1; - if (this->_internal_arm() != 0) { - total_size += 2; - } - - // bool force = 2; - if (this->_internal_force() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmDisarm::_class_data_ = { - ArmDisarm::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmDisarm::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.arm_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.force_) - + reinterpret_cast(&_impl_.arm_)) + sizeof(_impl_.force_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ArmDisarm::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ArmDisarm::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ArmDisarm& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ArmDisarm::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ArmDisarm& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ArmDisarm) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bool arm = 1; + if (this_._internal_arm() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_arm(), target); + } + + // bool force = 2; + if (this_._internal_force() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_force(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ArmDisarm) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ArmDisarm::ByteSizeLong(const MessageLite& base) { + const ArmDisarm& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ArmDisarm::ByteSizeLong() const { + const ArmDisarm& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ArmDisarm) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // bool arm = 1; + if (this_._internal_arm() != 0) { + total_size += 2; + } + // bool force = 2; + if (this_._internal_force() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ArmDisarm::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ArmDisarm) @@ -5222,10 +6671,10 @@ void ArmDisarm::MergeImpl(::google::protobuf::Message& to_msg, const ::google::p (void) cached_has_bits; if (from._internal_arm() != 0) { - _this->_internal_set_arm(from._internal_arm()); + _this->_impl_.arm_ = from._impl_.arm_; } if (from._internal_force() != 0) { - _this->_internal_set_force(from._internal_force()); + _this->_impl_.force_ = from._impl_.force_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5237,13 +6686,7 @@ void ArmDisarm::CopyFrom(const ArmDisarm& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ArmDisarm::IsInitialized() const { - return true; -} -::_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_); @@ -5256,9 +6699,7 @@ void ArmDisarm::InternalSwap(ArmDisarm* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -5267,25 +6708,33 @@ class ActionServerResult::_Internal { }; ActionServerResult::ActionServerResult(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ActionServerResult) } inline PROTOBUF_NDEBUG_INLINE ActionServerResult::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::action_server::ActionServerResult& from_msg) : result_str_(arena, from.result_str_), _cached_size_{0} {} ActionServerResult::ActionServerResult( ::google::protobuf::Arena* arena, const ActionServerResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ActionServerResult* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.result_ = from._impl_.result_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ActionServerResult) @@ -5302,34 +6751,51 @@ inline void ActionServerResult::SharedCtor(::_pb::Arena* arena) { } ActionServerResult::~ActionServerResult() { // @@protoc_insertion_point(destructor:mavsdk.rpc.action_server.ActionServerResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ActionServerResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.result_str_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ActionServerResult::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ActionServerResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_str_.ClearToEmpty(); - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ActionServerResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ActionServerResult::SharedDtor(MessageLite& self) { + ActionServerResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.result_str_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* ActionServerResult::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ActionServerResult(arena); +} +constexpr auto ActionServerResult::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ActionServerResult), + alignof(ActionServerResult)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ActionServerResult::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ActionServerResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ActionServerResult::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ActionServerResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ActionServerResult::ByteSizeLong, + &ActionServerResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ActionServerResult, _impl_._cached_size_), + false, + }, + &ActionServerResult::kDescriptorMethods, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ActionServerResult::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 62, 2> ActionServerResult::_table_ = { { @@ -5342,8 +6808,12 @@ const ::_pbi::TcParseTable<1, 2, 0, 62, 2> ActionServerResult::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ActionServerResult_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::action_server::ActionServerResult>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // string result_str = 2; {::_pbi::TcParser::FastUS1, @@ -5369,69 +6839,89 @@ const ::_pbi::TcParseTable<1, 2, 0, 62, 2> ActionServerResult::_table_ = { }}, }; -::uint8_t* ActionServerResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ActionServerResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - const std::string& _s = this->_internal_result_str(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.action_server.ActionServerResult.result_str"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ActionServerResult) - return target; -} - -::size_t ActionServerResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ActionServerResult) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ActionServerResult::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ActionServerResult) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_result_str()); - } - - // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ActionServerResult::_class_data_ = { - ActionServerResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ActionServerResult::GetClassData() const { - return &_class_data_; + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ActionServerResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ActionServerResult::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ActionServerResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ActionServerResult::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ActionServerResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ActionServerResult) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_result(), target); + } + + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + const std::string& _s = this_._internal_result_str(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.action_server.ActionServerResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action_server.ActionServerResult) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ActionServerResult::ByteSizeLong(const MessageLite& base) { + const ActionServerResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ActionServerResult::ByteSizeLong() const { + const ActionServerResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ActionServerResult) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_result_str()); + } + // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; + if (this_._internal_result() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ActionServerResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ActionServerResult) @@ -5443,7 +6933,7 @@ void ActionServerResult::MergeImpl(::google::protobuf::Message& to_msg, const :: _this->_internal_set_result_str(from._internal_result_str()); } if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); + _this->_impl_.result_ = from._impl_.result_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5455,13 +6945,7 @@ void ActionServerResult::CopyFrom(const ActionServerResult& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ActionServerResult::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ActionServerResult::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ActionServerResult::InternalSwap(ActionServerResult* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -5472,9 +6956,7 @@ void ActionServerResult::InternalSwap(ActionServerResult* PROTOBUF_RESTRICT othe } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) } // namespace action_server @@ -5485,4 +6967,8 @@ namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_action_5fserver_2faction_5fserver_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/action_server/action_server.pb.h b/src/mavsdk_server/src/generated/action_server/action_server.pb.h index da1941390c..dceada58ad 100644 --- a/src/mavsdk_server/src/generated/action_server/action_server.pb.h +++ b/src/mavsdk_server/src/generated/action_server/action_server.pb.h @@ -1,28 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: action_server/action_server.proto -// Protobuf C++ Version: 4.25.1 +// Protobuf C++ Version: 5.29.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto_2epb_2eh +#ifndef action_5fserver_2faction_5fserver_2eproto_2epb_2eh +#define action_5fserver_2faction_5fserver_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" @@ -32,6 +26,7 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_reflection.h" @@ -47,7 +42,8 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal } // namespace protobuf } // namespace google @@ -248,31 +244,33 @@ inline bool FlightMode_Parse(absl::string_view name, FlightMode* value) { // ------------------------------------------------------------------- -class SubscribeTerminateRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTerminateRequest) */ { +class SubscribeTerminateRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTerminateRequest) */ { public: inline SubscribeTerminateRequest() : SubscribeTerminateRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeTerminateRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeTerminateRequest(const SubscribeTerminateRequest& from) - : SubscribeTerminateRequest(nullptr, from) {} - SubscribeTerminateRequest(SubscribeTerminateRequest&& from) noexcept - : SubscribeTerminateRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeTerminateRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeTerminateRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SubscribeTerminateRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SubscribeTerminateRequest(const SubscribeTerminateRequest& from) : SubscribeTerminateRequest(nullptr, from) {} + inline SubscribeTerminateRequest(SubscribeTerminateRequest&& from) noexcept + : SubscribeTerminateRequest(nullptr, std::move(from)) {} inline SubscribeTerminateRequest& operator=(const SubscribeTerminateRequest& from) { CopyFrom(from); return *this; } inline SubscribeTerminateRequest& operator=(SubscribeTerminateRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -303,22 +301,13 @@ class SubscribeTerminateRequest final : } static inline const SubscribeTerminateRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeTerminateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(SubscribeTerminateRequest& a, SubscribeTerminateRequest& b) { - a.Swap(&b); + &_SubscribeTerminateRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 11; + friend void swap(SubscribeTerminateRequest& a, SubscribeTerminateRequest& b) { a.Swap(&b); } inline void Swap(SubscribeTerminateRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -332,8 +321,8 @@ class SubscribeTerminateRequest final : // implements Message ---------------------------------------------- - SubscribeTerminateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeTerminateRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeTerminateRequest& from) { @@ -343,27 +332,43 @@ class SubscribeTerminateRequest final : void MergeFrom(const SubscribeTerminateRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeTerminateRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeTerminateRequest"; } + + protected: explicit SubscribeTerminateRequest(::google::protobuf::Arena* arena); SubscribeTerminateRequest(::google::protobuf::Arena* arena, const SubscribeTerminateRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeTerminateRequest(::google::protobuf::Arena* arena, SubscribeTerminateRequest&& from) noexcept + : SubscribeTerminateRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeTerminateRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -372,43 +377,46 @@ class SubscribeTerminateRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeTerminateRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubscribeTakeoffRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTakeoffRequest) */ { +class SubscribeTakeoffRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTakeoffRequest) */ { public: inline SubscribeTakeoffRequest() : SubscribeTakeoffRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeTakeoffRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeTakeoffRequest(const SubscribeTakeoffRequest& from) - : SubscribeTakeoffRequest(nullptr, from) {} - SubscribeTakeoffRequest(SubscribeTakeoffRequest&& from) noexcept - : SubscribeTakeoffRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeTakeoffRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeTakeoffRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SubscribeTakeoffRequest( + ::google::protobuf::internal::ConstantInitialized); + inline SubscribeTakeoffRequest(const SubscribeTakeoffRequest& from) : SubscribeTakeoffRequest(nullptr, from) {} + inline SubscribeTakeoffRequest(SubscribeTakeoffRequest&& from) noexcept + : SubscribeTakeoffRequest(nullptr, std::move(from)) {} inline SubscribeTakeoffRequest& operator=(const SubscribeTakeoffRequest& from) { CopyFrom(from); return *this; } inline SubscribeTakeoffRequest& operator=(SubscribeTakeoffRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -439,22 +447,13 @@ class SubscribeTakeoffRequest final : } static inline const SubscribeTakeoffRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeTakeoffRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(SubscribeTakeoffRequest& a, SubscribeTakeoffRequest& b) { - a.Swap(&b); + &_SubscribeTakeoffRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 7; + friend void swap(SubscribeTakeoffRequest& a, SubscribeTakeoffRequest& b) { a.Swap(&b); } inline void Swap(SubscribeTakeoffRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -468,8 +467,8 @@ class SubscribeTakeoffRequest final : // implements Message ---------------------------------------------- - SubscribeTakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeTakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeTakeoffRequest& from) { @@ -479,27 +478,43 @@ class SubscribeTakeoffRequest final : void MergeFrom(const SubscribeTakeoffRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeTakeoffRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeTakeoffRequest"; } + + protected: explicit SubscribeTakeoffRequest(::google::protobuf::Arena* arena); SubscribeTakeoffRequest(::google::protobuf::Arena* arena, const SubscribeTakeoffRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeTakeoffRequest(::google::protobuf::Arena* arena, SubscribeTakeoffRequest&& from) noexcept + : SubscribeTakeoffRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeTakeoffRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -508,43 +523,46 @@ class SubscribeTakeoffRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeTakeoffRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubscribeShutdownRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeShutdownRequest) */ { +class SubscribeShutdownRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeShutdownRequest) */ { public: inline SubscribeShutdownRequest() : SubscribeShutdownRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeShutdownRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeShutdownRequest(const SubscribeShutdownRequest& from) - : SubscribeShutdownRequest(nullptr, from) {} - SubscribeShutdownRequest(SubscribeShutdownRequest&& from) noexcept - : SubscribeShutdownRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeShutdownRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeShutdownRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SubscribeShutdownRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SubscribeShutdownRequest(const SubscribeShutdownRequest& from) : SubscribeShutdownRequest(nullptr, from) {} + inline SubscribeShutdownRequest(SubscribeShutdownRequest&& from) noexcept + : SubscribeShutdownRequest(nullptr, std::move(from)) {} inline SubscribeShutdownRequest& operator=(const SubscribeShutdownRequest& from) { CopyFrom(from); return *this; } inline SubscribeShutdownRequest& operator=(SubscribeShutdownRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -575,22 +593,13 @@ class SubscribeShutdownRequest final : } static inline const SubscribeShutdownRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeShutdownRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(SubscribeShutdownRequest& a, SubscribeShutdownRequest& b) { - a.Swap(&b); + &_SubscribeShutdownRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 10; + friend void swap(SubscribeShutdownRequest& a, SubscribeShutdownRequest& b) { a.Swap(&b); } inline void Swap(SubscribeShutdownRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -604,8 +613,8 @@ class SubscribeShutdownRequest final : // implements Message ---------------------------------------------- - SubscribeShutdownRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeShutdownRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeShutdownRequest& from) { @@ -615,27 +624,43 @@ class SubscribeShutdownRequest final : void MergeFrom(const SubscribeShutdownRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeShutdownRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeShutdownRequest"; } + + protected: explicit SubscribeShutdownRequest(::google::protobuf::Arena* arena); SubscribeShutdownRequest(::google::protobuf::Arena* arena, const SubscribeShutdownRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeShutdownRequest(::google::protobuf::Arena* arena, SubscribeShutdownRequest&& from) noexcept + : SubscribeShutdownRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeShutdownRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -644,43 +669,46 @@ class SubscribeShutdownRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeShutdownRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubscribeRebootRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeRebootRequest) */ { +class SubscribeRebootRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeRebootRequest) */ { public: inline SubscribeRebootRequest() : SubscribeRebootRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeRebootRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeRebootRequest(const SubscribeRebootRequest& from) - : SubscribeRebootRequest(nullptr, from) {} - SubscribeRebootRequest(SubscribeRebootRequest&& from) noexcept - : SubscribeRebootRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeRebootRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeRebootRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SubscribeRebootRequest( + ::google::protobuf::internal::ConstantInitialized); + inline SubscribeRebootRequest(const SubscribeRebootRequest& from) : SubscribeRebootRequest(nullptr, from) {} + inline SubscribeRebootRequest(SubscribeRebootRequest&& from) noexcept + : SubscribeRebootRequest(nullptr, std::move(from)) {} inline SubscribeRebootRequest& operator=(const SubscribeRebootRequest& from) { CopyFrom(from); return *this; } inline SubscribeRebootRequest& operator=(SubscribeRebootRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -711,22 +739,13 @@ class SubscribeRebootRequest final : } static inline const SubscribeRebootRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeRebootRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(SubscribeRebootRequest& a, SubscribeRebootRequest& b) { - a.Swap(&b); + &_SubscribeRebootRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 9; + friend void swap(SubscribeRebootRequest& a, SubscribeRebootRequest& b) { a.Swap(&b); } inline void Swap(SubscribeRebootRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -740,8 +759,8 @@ class SubscribeRebootRequest final : // implements Message ---------------------------------------------- - SubscribeRebootRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeRebootRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeRebootRequest& from) { @@ -751,27 +770,43 @@ class SubscribeRebootRequest final : void MergeFrom(const SubscribeRebootRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeRebootRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeRebootRequest"; } + + protected: explicit SubscribeRebootRequest(::google::protobuf::Arena* arena); SubscribeRebootRequest(::google::protobuf::Arena* arena, const SubscribeRebootRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeRebootRequest(::google::protobuf::Arena* arena, SubscribeRebootRequest&& from) noexcept + : SubscribeRebootRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeRebootRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -780,43 +815,46 @@ class SubscribeRebootRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeRebootRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubscribeLandRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeLandRequest) */ { +class SubscribeLandRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeLandRequest) */ { public: inline SubscribeLandRequest() : SubscribeLandRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeLandRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeLandRequest(const SubscribeLandRequest& from) - : SubscribeLandRequest(nullptr, from) {} - SubscribeLandRequest(SubscribeLandRequest&& from) noexcept - : SubscribeLandRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeLandRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeLandRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SubscribeLandRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SubscribeLandRequest(const SubscribeLandRequest& from) : SubscribeLandRequest(nullptr, from) {} + inline SubscribeLandRequest(SubscribeLandRequest&& from) noexcept + : SubscribeLandRequest(nullptr, std::move(from)) {} inline SubscribeLandRequest& operator=(const SubscribeLandRequest& from) { CopyFrom(from); return *this; } inline SubscribeLandRequest& operator=(SubscribeLandRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -847,22 +885,13 @@ class SubscribeLandRequest final : } static inline const SubscribeLandRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeLandRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(SubscribeLandRequest& a, SubscribeLandRequest& b) { - a.Swap(&b); + &_SubscribeLandRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 8; + friend void swap(SubscribeLandRequest& a, SubscribeLandRequest& b) { a.Swap(&b); } inline void Swap(SubscribeLandRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -876,8 +905,8 @@ class SubscribeLandRequest final : // implements Message ---------------------------------------------- - SubscribeLandRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeLandRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeLandRequest& from) { @@ -887,27 +916,43 @@ class SubscribeLandRequest final : void MergeFrom(const SubscribeLandRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeLandRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeLandRequest"; } + + protected: explicit SubscribeLandRequest(::google::protobuf::Arena* arena); SubscribeLandRequest(::google::protobuf::Arena* arena, const SubscribeLandRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeLandRequest(::google::protobuf::Arena* arena, SubscribeLandRequest&& from) noexcept + : SubscribeLandRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeLandRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -916,43 +961,46 @@ class SubscribeLandRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeLandRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubscribeFlightModeChangeRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) */ { +class SubscribeFlightModeChangeRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) */ { public: inline SubscribeFlightModeChangeRequest() : SubscribeFlightModeChangeRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeFlightModeChangeRequest(const SubscribeFlightModeChangeRequest& from) - : SubscribeFlightModeChangeRequest(nullptr, from) {} - SubscribeFlightModeChangeRequest(SubscribeFlightModeChangeRequest&& from) noexcept - : SubscribeFlightModeChangeRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeFlightModeChangeRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeFlightModeChangeRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequest( + ::google::protobuf::internal::ConstantInitialized); + inline SubscribeFlightModeChangeRequest(const SubscribeFlightModeChangeRequest& from) : SubscribeFlightModeChangeRequest(nullptr, from) {} + inline SubscribeFlightModeChangeRequest(SubscribeFlightModeChangeRequest&& from) noexcept + : SubscribeFlightModeChangeRequest(nullptr, std::move(from)) {} inline SubscribeFlightModeChangeRequest& operator=(const SubscribeFlightModeChangeRequest& from) { CopyFrom(from); return *this; } inline SubscribeFlightModeChangeRequest& operator=(SubscribeFlightModeChangeRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -983,22 +1031,13 @@ class SubscribeFlightModeChangeRequest final : } static inline const SubscribeFlightModeChangeRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeFlightModeChangeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(SubscribeFlightModeChangeRequest& a, SubscribeFlightModeChangeRequest& b) { - a.Swap(&b); + &_SubscribeFlightModeChangeRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + friend void swap(SubscribeFlightModeChangeRequest& a, SubscribeFlightModeChangeRequest& b) { a.Swap(&b); } inline void Swap(SubscribeFlightModeChangeRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1012,8 +1051,8 @@ class SubscribeFlightModeChangeRequest final : // implements Message ---------------------------------------------- - SubscribeFlightModeChangeRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeFlightModeChangeRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeFlightModeChangeRequest& from) { @@ -1023,27 +1062,43 @@ class SubscribeFlightModeChangeRequest final : void MergeFrom(const SubscribeFlightModeChangeRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest"; } + + protected: explicit SubscribeFlightModeChangeRequest(::google::protobuf::Arena* arena); SubscribeFlightModeChangeRequest(::google::protobuf::Arena* arena, const SubscribeFlightModeChangeRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeFlightModeChangeRequest(::google::protobuf::Arena* arena, SubscribeFlightModeChangeRequest&& from) noexcept + : SubscribeFlightModeChangeRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -1052,43 +1107,46 @@ class SubscribeFlightModeChangeRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeFlightModeChangeRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubscribeArmDisarmRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) */ { +class SubscribeArmDisarmRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) */ { public: inline SubscribeArmDisarmRequest() : SubscribeArmDisarmRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeArmDisarmRequest(const SubscribeArmDisarmRequest& from) - : SubscribeArmDisarmRequest(nullptr, from) {} - SubscribeArmDisarmRequest(SubscribeArmDisarmRequest&& from) noexcept - : SubscribeArmDisarmRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeArmDisarmRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeArmDisarmRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SubscribeArmDisarmRequest(const SubscribeArmDisarmRequest& from) : SubscribeArmDisarmRequest(nullptr, from) {} + inline SubscribeArmDisarmRequest(SubscribeArmDisarmRequest&& from) noexcept + : SubscribeArmDisarmRequest(nullptr, std::move(from)) {} inline SubscribeArmDisarmRequest& operator=(const SubscribeArmDisarmRequest& from) { CopyFrom(from); return *this; } inline SubscribeArmDisarmRequest& operator=(SubscribeArmDisarmRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1119,22 +1177,13 @@ class SubscribeArmDisarmRequest final : } static inline const SubscribeArmDisarmRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeArmDisarmRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(SubscribeArmDisarmRequest& a, SubscribeArmDisarmRequest& b) { - a.Swap(&b); + &_SubscribeArmDisarmRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 5; + friend void swap(SubscribeArmDisarmRequest& a, SubscribeArmDisarmRequest& b) { a.Swap(&b); } inline void Swap(SubscribeArmDisarmRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1148,8 +1197,8 @@ class SubscribeArmDisarmRequest final : // implements Message ---------------------------------------------- - SubscribeArmDisarmRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeArmDisarmRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeArmDisarmRequest& from) { @@ -1159,27 +1208,43 @@ class SubscribeArmDisarmRequest final : void MergeFrom(const SubscribeArmDisarmRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SubscribeArmDisarmRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeArmDisarmRequest"; } + + protected: explicit SubscribeArmDisarmRequest(::google::protobuf::Arena* arena); SubscribeArmDisarmRequest(::google::protobuf::Arena* arena, const SubscribeArmDisarmRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeArmDisarmRequest(::google::protobuf::Arena* arena, SubscribeArmDisarmRequest&& from) noexcept + : SubscribeArmDisarmRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -1188,44 +1253,47 @@ class SubscribeArmDisarmRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeArmDisarmRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetDisarmableRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableRequest) */ { +class SetDisarmableRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableRequest) */ { public: inline SetDisarmableRequest() : SetDisarmableRequest(nullptr) {} - ~SetDisarmableRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetDisarmableRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetDisarmableRequest(const SetDisarmableRequest& from) - : SetDisarmableRequest(nullptr, from) {} - SetDisarmableRequest(SetDisarmableRequest&& from) noexcept - : SetDisarmableRequest() { - *this = ::std::move(from); + ~SetDisarmableRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetDisarmableRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetDisarmableRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SetDisarmableRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SetDisarmableRequest(const SetDisarmableRequest& from) : SetDisarmableRequest(nullptr, from) {} + inline SetDisarmableRequest(SetDisarmableRequest&& from) noexcept + : SetDisarmableRequest(nullptr, std::move(from)) {} inline SetDisarmableRequest& operator=(const SetDisarmableRequest& from) { CopyFrom(from); return *this; } inline SetDisarmableRequest& operator=(SetDisarmableRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1256,22 +1324,13 @@ class SetDisarmableRequest final : } static inline const SetDisarmableRequest* internal_default_instance() { return reinterpret_cast( - &_SetDisarmableRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(SetDisarmableRequest& a, SetDisarmableRequest& b) { - a.Swap(&b); + &_SetDisarmableRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(SetDisarmableRequest& a, SetDisarmableRequest& b) { a.Swap(&b); } inline void Swap(SetDisarmableRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1285,52 +1344,74 @@ class SetDisarmableRequest final : // implements Message ---------------------------------------------- - SetDisarmableRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetDisarmableRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetDisarmableRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetDisarmableRequest& from) { - SetDisarmableRequest::MergeImpl(*this, from); - } + void MergeFrom(const SetDisarmableRequest& from) { SetDisarmableRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetDisarmableRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetDisarmableRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetDisarmableRequest"; - } - protected: + protected: explicit SetDisarmableRequest(::google::protobuf::Arena* arena); SetDisarmableRequest(::google::protobuf::Arena* arena, const SetDisarmableRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetDisarmableRequest(::google::protobuf::Arena* arena, SetDisarmableRequest&& from) noexcept + : SetDisarmableRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kDisarmableFieldNumber = 1, kForceDisarmableFieldNumber = 2, @@ -1358,12 +1439,12 @@ class SetDisarmableRequest final : // @@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 @@ -1371,48 +1452,51 @@ class SetDisarmableRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetDisarmableRequest& from_msg); bool disarmable_; bool force_disarmable_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetArmableRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableRequest) */ { +class SetArmableRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableRequest) */ { public: inline SetArmableRequest() : SetArmableRequest(nullptr) {} - ~SetArmableRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetArmableRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetArmableRequest(const SetArmableRequest& from) - : SetArmableRequest(nullptr, from) {} - SetArmableRequest(SetArmableRequest&& from) noexcept - : SetArmableRequest() { - *this = ::std::move(from); + ~SetArmableRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetArmableRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetArmableRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SetArmableRequest( + ::google::protobuf::internal::ConstantInitialized); + inline SetArmableRequest(const SetArmableRequest& from) : SetArmableRequest(nullptr, from) {} + inline SetArmableRequest(SetArmableRequest&& from) noexcept + : SetArmableRequest(nullptr, std::move(from)) {} inline SetArmableRequest& operator=(const SetArmableRequest& from) { CopyFrom(from); return *this; } inline SetArmableRequest& operator=(SetArmableRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1443,22 +1527,13 @@ class SetArmableRequest final : } static inline const SetArmableRequest* internal_default_instance() { return reinterpret_cast( - &_SetArmableRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(SetArmableRequest& a, SetArmableRequest& b) { - a.Swap(&b); + &_SetArmableRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(SetArmableRequest& a, SetArmableRequest& b) { a.Swap(&b); } inline void Swap(SetArmableRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1472,52 +1547,74 @@ class SetArmableRequest final : // implements Message ---------------------------------------------- - SetArmableRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetArmableRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetArmableRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetArmableRequest& from) { - SetArmableRequest::MergeImpl(*this, from); - } + void MergeFrom(const SetArmableRequest& from) { SetArmableRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetArmableRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetArmableRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetArmableRequest"; - } - protected: + protected: explicit SetArmableRequest(::google::protobuf::Arena* arena); SetArmableRequest(::google::protobuf::Arena* arena, const SetArmableRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetArmableRequest(::google::protobuf::Arena* arena, SetArmableRequest&& from) noexcept + : SetArmableRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kArmableFieldNumber = 1, kForceArmableFieldNumber = 2, @@ -1545,12 +1642,12 @@ class SetArmableRequest final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetArmableRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1558,48 +1655,51 @@ class SetArmableRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetArmableRequest& from_msg); bool armable_; bool force_armable_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetAllowTakeoffRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffRequest) */ { +class SetAllowTakeoffRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffRequest) */ { public: inline SetAllowTakeoffRequest() : SetAllowTakeoffRequest(nullptr) {} - ~SetAllowTakeoffRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetAllowTakeoffRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetAllowTakeoffRequest(const SetAllowTakeoffRequest& from) - : SetAllowTakeoffRequest(nullptr, from) {} - SetAllowTakeoffRequest(SetAllowTakeoffRequest&& from) noexcept - : SetAllowTakeoffRequest() { - *this = ::std::move(from); + ~SetAllowTakeoffRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetAllowTakeoffRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetAllowTakeoffRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SetAllowTakeoffRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SetAllowTakeoffRequest(const SetAllowTakeoffRequest& from) : SetAllowTakeoffRequest(nullptr, from) {} + inline SetAllowTakeoffRequest(SetAllowTakeoffRequest&& from) noexcept + : SetAllowTakeoffRequest(nullptr, std::move(from)) {} inline SetAllowTakeoffRequest& operator=(const SetAllowTakeoffRequest& from) { CopyFrom(from); return *this; } inline SetAllowTakeoffRequest& operator=(SetAllowTakeoffRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1630,22 +1730,13 @@ class SetAllowTakeoffRequest final : } static inline const SetAllowTakeoffRequest* internal_default_instance() { return reinterpret_cast( - &_SetAllowTakeoffRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SetAllowTakeoffRequest& a, SetAllowTakeoffRequest& b) { - a.Swap(&b); + &_SetAllowTakeoffRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SetAllowTakeoffRequest& a, SetAllowTakeoffRequest& b) { a.Swap(&b); } inline void Swap(SetAllowTakeoffRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1659,52 +1750,74 @@ class SetAllowTakeoffRequest final : // implements Message ---------------------------------------------- - SetAllowTakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetAllowTakeoffRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetAllowTakeoffRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetAllowTakeoffRequest& from) { - SetAllowTakeoffRequest::MergeImpl(*this, from); - } + void MergeFrom(const SetAllowTakeoffRequest& from) { SetAllowTakeoffRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetAllowTakeoffRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetAllowTakeoffRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowTakeoffRequest"; - } - protected: + protected: explicit SetAllowTakeoffRequest(::google::protobuf::Arena* arena); SetAllowTakeoffRequest(::google::protobuf::Arena* arena, const SetAllowTakeoffRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetAllowTakeoffRequest(::google::protobuf::Arena* arena, SetAllowTakeoffRequest&& from) noexcept + : SetAllowTakeoffRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAllowTakeoffFieldNumber = 1, }; @@ -1721,12 +1834,12 @@ class SetAllowTakeoffRequest final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowTakeoffRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1734,46 +1847,49 @@ class SetAllowTakeoffRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetAllowTakeoffRequest& from_msg); bool allow_takeoff_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetAllowableFlightModesRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) */ { +class GetAllowableFlightModesRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) */ { public: inline GetAllowableFlightModesRequest() : GetAllowableFlightModesRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesRequest(::google::protobuf::internal::ConstantInitialized); - inline GetAllowableFlightModesRequest(const GetAllowableFlightModesRequest& from) - : GetAllowableFlightModesRequest(nullptr, from) {} - GetAllowableFlightModesRequest(GetAllowableFlightModesRequest&& from) noexcept - : GetAllowableFlightModesRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetAllowableFlightModesRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetAllowableFlightModesRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline GetAllowableFlightModesRequest(const GetAllowableFlightModesRequest& from) : GetAllowableFlightModesRequest(nullptr, from) {} + inline GetAllowableFlightModesRequest(GetAllowableFlightModesRequest&& from) noexcept + : GetAllowableFlightModesRequest(nullptr, std::move(from)) {} inline GetAllowableFlightModesRequest& operator=(const GetAllowableFlightModesRequest& from) { CopyFrom(from); return *this; } inline GetAllowableFlightModesRequest& operator=(GetAllowableFlightModesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1804,22 +1920,13 @@ class GetAllowableFlightModesRequest final : } static inline const GetAllowableFlightModesRequest* internal_default_instance() { return reinterpret_cast( - &_GetAllowableFlightModesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(GetAllowableFlightModesRequest& a, GetAllowableFlightModesRequest& b) { - a.Swap(&b); + &_GetAllowableFlightModesRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(GetAllowableFlightModesRequest& a, GetAllowableFlightModesRequest& b) { a.Swap(&b); } inline void Swap(GetAllowableFlightModesRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1833,8 +1940,8 @@ class GetAllowableFlightModesRequest final : // implements Message ---------------------------------------------- - GetAllowableFlightModesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetAllowableFlightModesRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const GetAllowableFlightModesRequest& from) { @@ -1844,27 +1951,43 @@ class GetAllowableFlightModesRequest final : void MergeFrom(const GetAllowableFlightModesRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.GetAllowableFlightModesRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.GetAllowableFlightModesRequest"; } + + protected: explicit GetAllowableFlightModesRequest(::google::protobuf::Arena* arena); GetAllowableFlightModesRequest(::google::protobuf::Arena* arena, const GetAllowableFlightModesRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + GetAllowableFlightModesRequest(::google::protobuf::Arena* arena, GetAllowableFlightModesRequest&& from) noexcept + : GetAllowableFlightModesRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -1873,44 +1996,47 @@ class GetAllowableFlightModesRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const GetAllowableFlightModesRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ArmDisarm final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarm) */ { +class ArmDisarm final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarm) */ { public: inline ArmDisarm() : ArmDisarm(nullptr) {} - ~ArmDisarm() override; - template - explicit PROTOBUF_CONSTEXPR ArmDisarm(::google::protobuf::internal::ConstantInitialized); - - inline ArmDisarm(const ArmDisarm& from) - : ArmDisarm(nullptr, from) {} - ArmDisarm(ArmDisarm&& from) noexcept - : ArmDisarm() { - *this = ::std::move(from); + ~ArmDisarm() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmDisarm* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmDisarm)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ArmDisarm( + ::google::protobuf::internal::ConstantInitialized); + inline ArmDisarm(const ArmDisarm& from) : ArmDisarm(nullptr, from) {} + inline ArmDisarm(ArmDisarm&& from) noexcept + : ArmDisarm(nullptr, std::move(from)) {} inline ArmDisarm& operator=(const ArmDisarm& from) { CopyFrom(from); return *this; } inline ArmDisarm& operator=(ArmDisarm&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1941,22 +2067,13 @@ class ArmDisarm final : } static inline const ArmDisarm* internal_default_instance() { return reinterpret_cast( - &_ArmDisarm_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(ArmDisarm& a, ArmDisarm& b) { - a.Swap(&b); + &_ArmDisarm_default_instance_); } + static constexpr int kIndexInFileMessages = 25; + friend void swap(ArmDisarm& a, ArmDisarm& b) { a.Swap(&b); } inline void Swap(ArmDisarm* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1970,52 +2087,74 @@ class ArmDisarm final : // implements Message ---------------------------------------------- - ArmDisarm* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ArmDisarm* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ArmDisarm& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmDisarm& from) { - ArmDisarm::MergeImpl(*this, from); - } + void MergeFrom(const ArmDisarm& from) { ArmDisarm::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ArmDisarm* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.ArmDisarm"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ArmDisarm"; - } - protected: + protected: explicit ArmDisarm(::google::protobuf::Arena* arena); ArmDisarm(::google::protobuf::Arena* arena, const ArmDisarm& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ArmDisarm(::google::protobuf::Arena* arena, ArmDisarm&& from) noexcept + : ArmDisarm(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kArmFieldNumber = 1, kForceFieldNumber = 2, @@ -2043,12 +2182,12 @@ class ArmDisarm final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ArmDisarm) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2056,48 +2195,51 @@ class ArmDisarm final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ArmDisarm& from_msg); bool arm_; bool force_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AllowableFlightModes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.AllowableFlightModes) */ { +class AllowableFlightModes final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.AllowableFlightModes) */ { public: inline AllowableFlightModes() : AllowableFlightModes(nullptr) {} - ~AllowableFlightModes() override; - template - explicit PROTOBUF_CONSTEXPR AllowableFlightModes(::google::protobuf::internal::ConstantInitialized); - - inline AllowableFlightModes(const AllowableFlightModes& from) - : AllowableFlightModes(nullptr, from) {} - AllowableFlightModes(AllowableFlightModes&& from) noexcept - : AllowableFlightModes() { - *this = ::std::move(from); + ~AllowableFlightModes() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AllowableFlightModes* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AllowableFlightModes)); } +#endif + template + explicit PROTOBUF_CONSTEXPR AllowableFlightModes( + ::google::protobuf::internal::ConstantInitialized); + + inline AllowableFlightModes(const AllowableFlightModes& from) : AllowableFlightModes(nullptr, from) {} + inline AllowableFlightModes(AllowableFlightModes&& from) noexcept + : AllowableFlightModes(nullptr, std::move(from)) {} inline AllowableFlightModes& operator=(const AllowableFlightModes& from) { CopyFrom(from); return *this; } inline AllowableFlightModes& operator=(AllowableFlightModes&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2128,22 +2270,13 @@ class AllowableFlightModes final : } static inline const AllowableFlightModes* internal_default_instance() { return reinterpret_cast( - &_AllowableFlightModes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(AllowableFlightModes& a, AllowableFlightModes& b) { - a.Swap(&b); + &_AllowableFlightModes_default_instance_); } + static constexpr int kIndexInFileMessages = 24; + friend void swap(AllowableFlightModes& a, AllowableFlightModes& b) { a.Swap(&b); } inline void Swap(AllowableFlightModes* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2157,52 +2290,74 @@ class AllowableFlightModes final : // implements Message ---------------------------------------------- - AllowableFlightModes* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AllowableFlightModes* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const AllowableFlightModes& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AllowableFlightModes& from) { - AllowableFlightModes::MergeImpl(*this, from); - } + void MergeFrom(const AllowableFlightModes& from) { AllowableFlightModes::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(AllowableFlightModes* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.AllowableFlightModes"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.AllowableFlightModes"; - } - protected: + protected: explicit AllowableFlightModes(::google::protobuf::Arena* arena); AllowableFlightModes(::google::protobuf::Arena* arena, const AllowableFlightModes& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + AllowableFlightModes(::google::protobuf::Arena* arena, AllowableFlightModes&& from) noexcept + : AllowableFlightModes(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCanAutoModeFieldNumber = 1, kCanGuidedModeFieldNumber = 2, @@ -2241,12 +2396,12 @@ class AllowableFlightModes final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.AllowableFlightModes) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2254,49 +2409,52 @@ class AllowableFlightModes final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const AllowableFlightModes& from_msg); bool can_auto_mode_; bool can_guided_mode_; bool can_stabilize_mode_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ActionServerResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ActionServerResult) */ { +class ActionServerResult final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ActionServerResult) */ { public: inline ActionServerResult() : ActionServerResult(nullptr) {} - ~ActionServerResult() override; - template - explicit PROTOBUF_CONSTEXPR ActionServerResult(::google::protobuf::internal::ConstantInitialized); - - inline ActionServerResult(const ActionServerResult& from) - : ActionServerResult(nullptr, from) {} - ActionServerResult(ActionServerResult&& from) noexcept - : ActionServerResult() { - *this = ::std::move(from); + ~ActionServerResult() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ActionServerResult* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ActionServerResult)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ActionServerResult( + ::google::protobuf::internal::ConstantInitialized); + inline ActionServerResult(const ActionServerResult& from) : ActionServerResult(nullptr, from) {} + inline ActionServerResult(ActionServerResult&& from) noexcept + : ActionServerResult(nullptr, std::move(from)) {} inline ActionServerResult& operator=(const ActionServerResult& from) { CopyFrom(from); return *this; } inline ActionServerResult& operator=(ActionServerResult&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2327,22 +2485,13 @@ class ActionServerResult final : } static inline const ActionServerResult* internal_default_instance() { return reinterpret_cast( - &_ActionServerResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(ActionServerResult& a, ActionServerResult& b) { - a.Swap(&b); + &_ActionServerResult_default_instance_); } + static constexpr int kIndexInFileMessages = 26; + friend void swap(ActionServerResult& a, ActionServerResult& b) { a.Swap(&b); } inline void Swap(ActionServerResult* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2356,50 +2505,72 @@ class ActionServerResult final : // implements Message ---------------------------------------------- - ActionServerResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ActionServerResult* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ActionServerResult& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ActionServerResult& from) { - ActionServerResult::MergeImpl(*this, from); - } + void MergeFrom(const ActionServerResult& from) { ActionServerResult::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ActionServerResult* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.ActionServerResult"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ActionServerResult"; - } - protected: + protected: explicit ActionServerResult(::google::protobuf::Arena* arena); ActionServerResult(::google::protobuf::Arena* arena, const ActionServerResult& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ActionServerResult(::google::protobuf::Arena* arena, ActionServerResult&& from) noexcept + : ActionServerResult(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - using Result = ActionServerResult_Result; static constexpr Result RESULT_UNKNOWN = ActionServerResult_Result_RESULT_UNKNOWN; static constexpr Result RESULT_SUCCESS = ActionServerResult_Result_RESULT_SUCCESS; @@ -2432,7 +2603,6 @@ class ActionServerResult final : } // accessors ------------------------------------------------------- - enum : int { kResultStrFieldNumber = 2, kResultFieldNumber = 1, @@ -2466,12 +2636,12 @@ class ActionServerResult final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ActionServerResult) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, 62, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2479,48 +2649,51 @@ class ActionServerResult final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ActionServerResult& from_msg); ::google::protobuf::internal::ArenaStringPtr result_str_; int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TerminateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TerminateResponse) */ { +class TerminateResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TerminateResponse) */ { public: inline TerminateResponse() : TerminateResponse(nullptr) {} - ~TerminateResponse() override; - template - explicit PROTOBUF_CONSTEXPR TerminateResponse(::google::protobuf::internal::ConstantInitialized); - - inline TerminateResponse(const TerminateResponse& from) - : TerminateResponse(nullptr, from) {} - TerminateResponse(TerminateResponse&& from) noexcept - : TerminateResponse() { - *this = ::std::move(from); + ~TerminateResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TerminateResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TerminateResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR TerminateResponse( + ::google::protobuf::internal::ConstantInitialized); + inline TerminateResponse(const TerminateResponse& from) : TerminateResponse(nullptr, from) {} + inline TerminateResponse(TerminateResponse&& from) noexcept + : TerminateResponse(nullptr, std::move(from)) {} inline TerminateResponse& operator=(const TerminateResponse& from) { CopyFrom(from); return *this; } inline TerminateResponse& operator=(TerminateResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2551,22 +2724,13 @@ class TerminateResponse final : } static inline const TerminateResponse* internal_default_instance() { return reinterpret_cast( - &_TerminateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(TerminateResponse& a, TerminateResponse& b) { - a.Swap(&b); + &_TerminateResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 18; + friend void swap(TerminateResponse& a, TerminateResponse& b) { a.Swap(&b); } inline void Swap(TerminateResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2580,52 +2744,74 @@ class TerminateResponse final : // implements Message ---------------------------------------------- - TerminateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TerminateResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TerminateResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TerminateResponse& from) { - TerminateResponse::MergeImpl(*this, from); - } + void MergeFrom(const TerminateResponse& from) { TerminateResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(TerminateResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.TerminateResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.TerminateResponse"; - } - protected: + protected: explicit TerminateResponse(::google::protobuf::Arena* arena); TerminateResponse(::google::protobuf::Arena* arena, const TerminateResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + TerminateResponse(::google::protobuf::Arena* arena, TerminateResponse&& from) noexcept + : TerminateResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionServerResultFieldNumber = 1, kTerminateFieldNumber = 2, @@ -2658,12 +2844,12 @@ class TerminateResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.TerminateResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2671,49 +2857,52 @@ class TerminateResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const TerminateResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; bool terminate_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class TakeoffResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TakeoffResponse) */ { +class TakeoffResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TakeoffResponse) */ { public: inline TakeoffResponse() : TakeoffResponse(nullptr) {} - ~TakeoffResponse() override; - template - explicit PROTOBUF_CONSTEXPR TakeoffResponse(::google::protobuf::internal::ConstantInitialized); - - inline TakeoffResponse(const TakeoffResponse& from) - : TakeoffResponse(nullptr, from) {} - TakeoffResponse(TakeoffResponse&& from) noexcept - : TakeoffResponse() { - *this = ::std::move(from); + ~TakeoffResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(TakeoffResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(TakeoffResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR TakeoffResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline TakeoffResponse(const TakeoffResponse& from) : TakeoffResponse(nullptr, from) {} + inline TakeoffResponse(TakeoffResponse&& from) noexcept + : TakeoffResponse(nullptr, std::move(from)) {} inline TakeoffResponse& operator=(const TakeoffResponse& from) { CopyFrom(from); return *this; } inline TakeoffResponse& operator=(TakeoffResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2744,22 +2933,13 @@ class TakeoffResponse final : } static inline const TakeoffResponse* internal_default_instance() { return reinterpret_cast( - &_TakeoffResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(TakeoffResponse& a, TakeoffResponse& b) { - a.Swap(&b); + &_TakeoffResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 14; + friend void swap(TakeoffResponse& a, TakeoffResponse& b) { a.Swap(&b); } inline void Swap(TakeoffResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2773,52 +2953,74 @@ class TakeoffResponse final : // implements Message ---------------------------------------------- - TakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const TakeoffResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const TakeoffResponse& from) { - TakeoffResponse::MergeImpl(*this, from); - } + void MergeFrom(const TakeoffResponse& from) { TakeoffResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(TakeoffResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.TakeoffResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.TakeoffResponse"; - } - protected: + protected: explicit TakeoffResponse(::google::protobuf::Arena* arena); TakeoffResponse(::google::protobuf::Arena* arena, const TakeoffResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + TakeoffResponse(::google::protobuf::Arena* arena, TakeoffResponse&& from) noexcept + : TakeoffResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionServerResultFieldNumber = 1, kTakeoffFieldNumber = 2, @@ -2851,12 +3053,12 @@ class TakeoffResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.TakeoffResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2864,49 +3066,52 @@ class TakeoffResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const TakeoffResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; bool takeoff_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ShutdownResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ShutdownResponse) */ { +class ShutdownResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ShutdownResponse) */ { public: inline ShutdownResponse() : ShutdownResponse(nullptr) {} - ~ShutdownResponse() override; - template - explicit PROTOBUF_CONSTEXPR ShutdownResponse(::google::protobuf::internal::ConstantInitialized); - - inline ShutdownResponse(const ShutdownResponse& from) - : ShutdownResponse(nullptr, from) {} - ShutdownResponse(ShutdownResponse&& from) noexcept - : ShutdownResponse() { - *this = ::std::move(from); + ~ShutdownResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ShutdownResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ShutdownResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ShutdownResponse( + ::google::protobuf::internal::ConstantInitialized); + inline ShutdownResponse(const ShutdownResponse& from) : ShutdownResponse(nullptr, from) {} + inline ShutdownResponse(ShutdownResponse&& from) noexcept + : ShutdownResponse(nullptr, std::move(from)) {} inline ShutdownResponse& operator=(const ShutdownResponse& from) { CopyFrom(from); return *this; } inline ShutdownResponse& operator=(ShutdownResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2937,22 +3142,13 @@ class ShutdownResponse final : } static inline const ShutdownResponse* internal_default_instance() { return reinterpret_cast( - &_ShutdownResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(ShutdownResponse& a, ShutdownResponse& b) { - a.Swap(&b); + &_ShutdownResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 17; + friend void swap(ShutdownResponse& a, ShutdownResponse& b) { a.Swap(&b); } inline void Swap(ShutdownResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2966,52 +3162,74 @@ class ShutdownResponse final : // implements Message ---------------------------------------------- - ShutdownResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ShutdownResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ShutdownResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ShutdownResponse& from) { - ShutdownResponse::MergeImpl(*this, from); - } + void MergeFrom(const ShutdownResponse& from) { ShutdownResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ShutdownResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.ShutdownResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ShutdownResponse"; - } - protected: + protected: explicit ShutdownResponse(::google::protobuf::Arena* arena); ShutdownResponse(::google::protobuf::Arena* arena, const ShutdownResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ShutdownResponse(::google::protobuf::Arena* arena, ShutdownResponse&& from) noexcept + : ShutdownResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionServerResultFieldNumber = 1, kShutdownFieldNumber = 2, @@ -3044,12 +3262,12 @@ class ShutdownResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ShutdownResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3057,49 +3275,52 @@ class ShutdownResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ShutdownResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; bool shutdown_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetDisarmableResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableResponse) */ { +class SetDisarmableResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableResponse) */ { public: inline SetDisarmableResponse() : SetDisarmableResponse(nullptr) {} - ~SetDisarmableResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetDisarmableResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetDisarmableResponse(const SetDisarmableResponse& from) - : SetDisarmableResponse(nullptr, from) {} - SetDisarmableResponse(SetDisarmableResponse&& from) noexcept - : SetDisarmableResponse() { - *this = ::std::move(from); + ~SetDisarmableResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetDisarmableResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetDisarmableResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SetDisarmableResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SetDisarmableResponse(const SetDisarmableResponse& from) : SetDisarmableResponse(nullptr, from) {} + inline SetDisarmableResponse(SetDisarmableResponse&& from) noexcept + : SetDisarmableResponse(nullptr, std::move(from)) {} inline SetDisarmableResponse& operator=(const SetDisarmableResponse& from) { CopyFrom(from); return *this; } inline SetDisarmableResponse& operator=(SetDisarmableResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3130,22 +3351,13 @@ class SetDisarmableResponse final : } static inline const SetDisarmableResponse* internal_default_instance() { return reinterpret_cast( - &_SetDisarmableResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(SetDisarmableResponse& a, SetDisarmableResponse& b) { - a.Swap(&b); + &_SetDisarmableResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 20; + friend void swap(SetDisarmableResponse& a, SetDisarmableResponse& b) { a.Swap(&b); } inline void Swap(SetDisarmableResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3159,52 +3371,74 @@ class SetDisarmableResponse final : // implements Message ---------------------------------------------- - SetDisarmableResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetDisarmableResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetDisarmableResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetDisarmableResponse& from) { - SetDisarmableResponse::MergeImpl(*this, from); - } + void MergeFrom(const SetDisarmableResponse& from) { SetDisarmableResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetDisarmableResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetDisarmableResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetDisarmableResponse"; - } - protected: + protected: explicit SetDisarmableResponse(::google::protobuf::Arena* arena); SetDisarmableResponse(::google::protobuf::Arena* arena, const SetDisarmableResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetDisarmableResponse(::google::protobuf::Arena* arena, SetDisarmableResponse&& from) noexcept + : SetDisarmableResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionServerResultFieldNumber = 1, }; @@ -3226,12 +3460,12 @@ class SetDisarmableResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetDisarmableResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3239,48 +3473,51 @@ class SetDisarmableResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetDisarmableResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetArmableResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableResponse) */ { +class SetArmableResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableResponse) */ { public: inline SetArmableResponse() : SetArmableResponse(nullptr) {} - ~SetArmableResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetArmableResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetArmableResponse(const SetArmableResponse& from) - : SetArmableResponse(nullptr, from) {} - SetArmableResponse(SetArmableResponse&& from) noexcept - : SetArmableResponse() { - *this = ::std::move(from); + ~SetArmableResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetArmableResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetArmableResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SetArmableResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SetArmableResponse(const SetArmableResponse& from) : SetArmableResponse(nullptr, from) {} + inline SetArmableResponse(SetArmableResponse&& from) noexcept + : SetArmableResponse(nullptr, std::move(from)) {} inline SetArmableResponse& operator=(const SetArmableResponse& from) { CopyFrom(from); return *this; } inline SetArmableResponse& operator=(SetArmableResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3311,22 +3548,13 @@ class SetArmableResponse final : } static inline const SetArmableResponse* internal_default_instance() { return reinterpret_cast( - &_SetArmableResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(SetArmableResponse& a, SetArmableResponse& b) { - a.Swap(&b); + &_SetArmableResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 19; + friend void swap(SetArmableResponse& a, SetArmableResponse& b) { a.Swap(&b); } inline void Swap(SetArmableResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3340,52 +3568,74 @@ class SetArmableResponse final : // implements Message ---------------------------------------------- - SetArmableResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetArmableResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetArmableResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetArmableResponse& from) { - SetArmableResponse::MergeImpl(*this, from); - } + void MergeFrom(const SetArmableResponse& from) { SetArmableResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetArmableResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetArmableResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetArmableResponse"; - } - protected: + protected: explicit SetArmableResponse(::google::protobuf::Arena* arena); SetArmableResponse(::google::protobuf::Arena* arena, const SetArmableResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetArmableResponse(::google::protobuf::Arena* arena, SetArmableResponse&& from) noexcept + : SetArmableResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionServerResultFieldNumber = 1, }; @@ -3407,12 +3657,12 @@ class SetArmableResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetArmableResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3420,48 +3670,51 @@ class SetArmableResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetArmableResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetAllowableFlightModesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) */ { +class SetAllowableFlightModesResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) */ { public: inline SetAllowableFlightModesResponse() : SetAllowableFlightModesResponse(nullptr) {} - ~SetAllowableFlightModesResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetAllowableFlightModesResponse(const SetAllowableFlightModesResponse& from) - : SetAllowableFlightModesResponse(nullptr, from) {} - SetAllowableFlightModesResponse(SetAllowableFlightModesResponse&& from) noexcept - : SetAllowableFlightModesResponse() { - *this = ::std::move(from); + ~SetAllowableFlightModesResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetAllowableFlightModesResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetAllowableFlightModesResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SetAllowableFlightModesResponse(const SetAllowableFlightModesResponse& from) : SetAllowableFlightModesResponse(nullptr, from) {} + inline SetAllowableFlightModesResponse(SetAllowableFlightModesResponse&& from) noexcept + : SetAllowableFlightModesResponse(nullptr, std::move(from)) {} inline SetAllowableFlightModesResponse& operator=(const SetAllowableFlightModesResponse& from) { CopyFrom(from); return *this; } inline SetAllowableFlightModesResponse& operator=(SetAllowableFlightModesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3492,22 +3745,13 @@ class SetAllowableFlightModesResponse final : } static inline const SetAllowableFlightModesResponse* internal_default_instance() { return reinterpret_cast( - &_SetAllowableFlightModesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(SetAllowableFlightModesResponse& a, SetAllowableFlightModesResponse& b) { - a.Swap(&b); + &_SetAllowableFlightModesResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 21; + friend void swap(SetAllowableFlightModesResponse& a, SetAllowableFlightModesResponse& b) { a.Swap(&b); } inline void Swap(SetAllowableFlightModesResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3521,52 +3765,74 @@ class SetAllowableFlightModesResponse final : // implements Message ---------------------------------------------- - SetAllowableFlightModesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetAllowableFlightModesResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetAllowableFlightModesResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetAllowableFlightModesResponse& from) { - SetAllowableFlightModesResponse::MergeImpl(*this, from); - } + void MergeFrom(const SetAllowableFlightModesResponse& from) { SetAllowableFlightModesResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetAllowableFlightModesResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetAllowableFlightModesResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowableFlightModesResponse"; - } - protected: + protected: explicit SetAllowableFlightModesResponse(::google::protobuf::Arena* arena); SetAllowableFlightModesResponse(::google::protobuf::Arena* arena, const SetAllowableFlightModesResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetAllowableFlightModesResponse(::google::protobuf::Arena* arena, SetAllowableFlightModesResponse&& from) noexcept + : SetAllowableFlightModesResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionServerResultFieldNumber = 1, }; @@ -3588,12 +3854,12 @@ class SetAllowableFlightModesResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3601,48 +3867,51 @@ class SetAllowableFlightModesResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetAllowableFlightModesResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetAllowableFlightModesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) */ { +class SetAllowableFlightModesRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) */ { public: inline SetAllowableFlightModesRequest() : SetAllowableFlightModesRequest(nullptr) {} - ~SetAllowableFlightModesRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetAllowableFlightModesRequest(const SetAllowableFlightModesRequest& from) - : SetAllowableFlightModesRequest(nullptr, from) {} - SetAllowableFlightModesRequest(SetAllowableFlightModesRequest&& from) noexcept - : SetAllowableFlightModesRequest() { - *this = ::std::move(from); + ~SetAllowableFlightModesRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetAllowableFlightModesRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetAllowableFlightModesRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SetAllowableFlightModesRequest(const SetAllowableFlightModesRequest& from) : SetAllowableFlightModesRequest(nullptr, from) {} + inline SetAllowableFlightModesRequest(SetAllowableFlightModesRequest&& from) noexcept + : SetAllowableFlightModesRequest(nullptr, std::move(from)) {} inline SetAllowableFlightModesRequest& operator=(const SetAllowableFlightModesRequest& from) { CopyFrom(from); return *this; } inline SetAllowableFlightModesRequest& operator=(SetAllowableFlightModesRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3673,22 +3942,13 @@ class SetAllowableFlightModesRequest final : } static inline const SetAllowableFlightModesRequest* internal_default_instance() { return reinterpret_cast( - &_SetAllowableFlightModesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(SetAllowableFlightModesRequest& a, SetAllowableFlightModesRequest& b) { - a.Swap(&b); + &_SetAllowableFlightModesRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(SetAllowableFlightModesRequest& a, SetAllowableFlightModesRequest& b) { a.Swap(&b); } inline void Swap(SetAllowableFlightModesRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3702,52 +3962,74 @@ class SetAllowableFlightModesRequest final : // implements Message ---------------------------------------------- - SetAllowableFlightModesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetAllowableFlightModesRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetAllowableFlightModesRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetAllowableFlightModesRequest& from) { - SetAllowableFlightModesRequest::MergeImpl(*this, from); - } + void MergeFrom(const SetAllowableFlightModesRequest& from) { SetAllowableFlightModesRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetAllowableFlightModesRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetAllowableFlightModesRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowableFlightModesRequest"; - } - protected: + protected: explicit SetAllowableFlightModesRequest(::google::protobuf::Arena* arena); SetAllowableFlightModesRequest(::google::protobuf::Arena* arena, const SetAllowableFlightModesRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetAllowableFlightModesRequest(::google::protobuf::Arena* arena, SetAllowableFlightModesRequest&& from) noexcept + : SetAllowableFlightModesRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kFlightModesFieldNumber = 1, }; @@ -3769,12 +4051,12 @@ class SetAllowableFlightModesRequest final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3782,48 +4064,51 @@ class SetAllowableFlightModesRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetAllowableFlightModesRequest& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SetAllowTakeoffResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffResponse) */ { +class SetAllowTakeoffResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffResponse) */ { public: inline SetAllowTakeoffResponse() : SetAllowTakeoffResponse(nullptr) {} - ~SetAllowTakeoffResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetAllowTakeoffResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetAllowTakeoffResponse(const SetAllowTakeoffResponse& from) - : SetAllowTakeoffResponse(nullptr, from) {} - SetAllowTakeoffResponse(SetAllowTakeoffResponse&& from) noexcept - : SetAllowTakeoffResponse() { - *this = ::std::move(from); + ~SetAllowTakeoffResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SetAllowTakeoffResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SetAllowTakeoffResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SetAllowTakeoffResponse( + ::google::protobuf::internal::ConstantInitialized); + inline SetAllowTakeoffResponse(const SetAllowTakeoffResponse& from) : SetAllowTakeoffResponse(nullptr, from) {} + inline SetAllowTakeoffResponse(SetAllowTakeoffResponse&& from) noexcept + : SetAllowTakeoffResponse(nullptr, std::move(from)) {} inline SetAllowTakeoffResponse& operator=(const SetAllowTakeoffResponse& from) { CopyFrom(from); return *this; } inline SetAllowTakeoffResponse& operator=(SetAllowTakeoffResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -3854,22 +4139,13 @@ class SetAllowTakeoffResponse final : } static inline const SetAllowTakeoffResponse* internal_default_instance() { return reinterpret_cast( - &_SetAllowTakeoffResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(SetAllowTakeoffResponse& a, SetAllowTakeoffResponse& b) { - a.Swap(&b); + &_SetAllowTakeoffResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 22; + friend void swap(SetAllowTakeoffResponse& a, SetAllowTakeoffResponse& b) { a.Swap(&b); } inline void Swap(SetAllowTakeoffResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -3883,52 +4159,74 @@ class SetAllowTakeoffResponse final : // implements Message ---------------------------------------------- - SetAllowTakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetAllowTakeoffResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SetAllowTakeoffResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetAllowTakeoffResponse& from) { - SetAllowTakeoffResponse::MergeImpl(*this, from); - } + void MergeFrom(const SetAllowTakeoffResponse& from) { SetAllowTakeoffResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(SetAllowTakeoffResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetAllowTakeoffResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.SetAllowTakeoffResponse"; - } - protected: + protected: explicit SetAllowTakeoffResponse(::google::protobuf::Arena* arena); SetAllowTakeoffResponse(::google::protobuf::Arena* arena, const SetAllowTakeoffResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + SetAllowTakeoffResponse(::google::protobuf::Arena* arena, SetAllowTakeoffResponse&& from) noexcept + : SetAllowTakeoffResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionServerResultFieldNumber = 1, }; @@ -3950,12 +4248,12 @@ class SetAllowTakeoffResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowTakeoffResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -3963,48 +4261,51 @@ class SetAllowTakeoffResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SetAllowTakeoffResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RebootResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.RebootResponse) */ { +class RebootResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.RebootResponse) */ { public: inline RebootResponse() : RebootResponse(nullptr) {} - ~RebootResponse() override; - template - explicit PROTOBUF_CONSTEXPR RebootResponse(::google::protobuf::internal::ConstantInitialized); - - inline RebootResponse(const RebootResponse& from) - : RebootResponse(nullptr, from) {} - RebootResponse(RebootResponse&& from) noexcept - : RebootResponse() { - *this = ::std::move(from); + ~RebootResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RebootResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RebootResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR RebootResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline RebootResponse(const RebootResponse& from) : RebootResponse(nullptr, from) {} + inline RebootResponse(RebootResponse&& from) noexcept + : RebootResponse(nullptr, std::move(from)) {} inline RebootResponse& operator=(const RebootResponse& from) { CopyFrom(from); return *this; } inline RebootResponse& operator=(RebootResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4035,22 +4336,13 @@ class RebootResponse final : } static inline const RebootResponse* internal_default_instance() { return reinterpret_cast( - &_RebootResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(RebootResponse& a, RebootResponse& b) { - a.Swap(&b); + &_RebootResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 16; + friend void swap(RebootResponse& a, RebootResponse& b) { a.Swap(&b); } inline void Swap(RebootResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4064,52 +4356,74 @@ class RebootResponse final : // implements Message ---------------------------------------------- - RebootResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RebootResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const RebootResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RebootResponse& from) { - RebootResponse::MergeImpl(*this, from); - } + void MergeFrom(const RebootResponse& from) { RebootResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(RebootResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.RebootResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.RebootResponse"; - } - protected: + protected: explicit RebootResponse(::google::protobuf::Arena* arena); RebootResponse(::google::protobuf::Arena* arena, const RebootResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + RebootResponse(::google::protobuf::Arena* arena, RebootResponse&& from) noexcept + : RebootResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionServerResultFieldNumber = 1, kRebootFieldNumber = 2, @@ -4142,12 +4456,12 @@ class RebootResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.RebootResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4155,49 +4469,52 @@ class RebootResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const RebootResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; bool reboot_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class LandResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.LandResponse) */ { +class LandResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.LandResponse) */ { public: inline LandResponse() : LandResponse(nullptr) {} - ~LandResponse() override; - template - explicit PROTOBUF_CONSTEXPR LandResponse(::google::protobuf::internal::ConstantInitialized); - - inline LandResponse(const LandResponse& from) - : LandResponse(nullptr, from) {} - LandResponse(LandResponse&& from) noexcept - : LandResponse() { - *this = ::std::move(from); + ~LandResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LandResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LandResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR LandResponse( + ::google::protobuf::internal::ConstantInitialized); + inline LandResponse(const LandResponse& from) : LandResponse(nullptr, from) {} + inline LandResponse(LandResponse&& from) noexcept + : LandResponse(nullptr, std::move(from)) {} inline LandResponse& operator=(const LandResponse& from) { CopyFrom(from); return *this; } inline LandResponse& operator=(LandResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4228,22 +4545,13 @@ class LandResponse final : } static inline const LandResponse* internal_default_instance() { return reinterpret_cast( - &_LandResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(LandResponse& a, LandResponse& b) { - a.Swap(&b); + &_LandResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 15; + friend void swap(LandResponse& a, LandResponse& b) { a.Swap(&b); } inline void Swap(LandResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4257,52 +4565,74 @@ class LandResponse final : // implements Message ---------------------------------------------- - LandResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + LandResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const LandResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const LandResponse& from) { - LandResponse::MergeImpl(*this, from); - } + void MergeFrom(const LandResponse& from) { LandResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(LandResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.LandResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.LandResponse"; - } - protected: + protected: explicit LandResponse(::google::protobuf::Arena* arena); LandResponse(::google::protobuf::Arena* arena, const LandResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + LandResponse(::google::protobuf::Arena* arena, LandResponse&& from) noexcept + : LandResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionServerResultFieldNumber = 1, kLandFieldNumber = 2, @@ -4335,12 +4665,12 @@ class LandResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.LandResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4348,49 +4678,52 @@ class LandResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const LandResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; bool land_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class GetAllowableFlightModesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) */ { +class GetAllowableFlightModesResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) */ { public: inline GetAllowableFlightModesResponse() : GetAllowableFlightModesResponse(nullptr) {} - ~GetAllowableFlightModesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetAllowableFlightModesResponse(const GetAllowableFlightModesResponse& from) - : GetAllowableFlightModesResponse(nullptr, from) {} - GetAllowableFlightModesResponse(GetAllowableFlightModesResponse&& from) noexcept - : GetAllowableFlightModesResponse() { - *this = ::std::move(from); + ~GetAllowableFlightModesResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetAllowableFlightModesResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetAllowableFlightModesResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline GetAllowableFlightModesResponse(const GetAllowableFlightModesResponse& from) : GetAllowableFlightModesResponse(nullptr, from) {} + inline GetAllowableFlightModesResponse(GetAllowableFlightModesResponse&& from) noexcept + : GetAllowableFlightModesResponse(nullptr, std::move(from)) {} inline GetAllowableFlightModesResponse& operator=(const GetAllowableFlightModesResponse& from) { CopyFrom(from); return *this; } inline GetAllowableFlightModesResponse& operator=(GetAllowableFlightModesResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4421,22 +4754,13 @@ class GetAllowableFlightModesResponse final : } static inline const GetAllowableFlightModesResponse* internal_default_instance() { return reinterpret_cast( - &_GetAllowableFlightModesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(GetAllowableFlightModesResponse& a, GetAllowableFlightModesResponse& b) { - a.Swap(&b); + &_GetAllowableFlightModesResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 23; + friend void swap(GetAllowableFlightModesResponse& a, GetAllowableFlightModesResponse& b) { a.Swap(&b); } inline void Swap(GetAllowableFlightModesResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4450,52 +4774,74 @@ class GetAllowableFlightModesResponse final : // implements Message ---------------------------------------------- - GetAllowableFlightModesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GetAllowableFlightModesResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GetAllowableFlightModesResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetAllowableFlightModesResponse& from) { - GetAllowableFlightModesResponse::MergeImpl(*this, from); - } + void MergeFrom(const GetAllowableFlightModesResponse& from) { GetAllowableFlightModesResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(GetAllowableFlightModesResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.GetAllowableFlightModesResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.GetAllowableFlightModesResponse"; - } - protected: + protected: explicit GetAllowableFlightModesResponse(::google::protobuf::Arena* arena); GetAllowableFlightModesResponse(::google::protobuf::Arena* arena, const GetAllowableFlightModesResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + GetAllowableFlightModesResponse(::google::protobuf::Arena* arena, GetAllowableFlightModesResponse&& from) noexcept + : GetAllowableFlightModesResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kFlightModesFieldNumber = 1, }; @@ -4517,12 +4863,12 @@ class GetAllowableFlightModesResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4530,48 +4876,51 @@ class GetAllowableFlightModesResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const GetAllowableFlightModesResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class FlightModeChangeResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.FlightModeChangeResponse) */ { +class FlightModeChangeResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.FlightModeChangeResponse) */ { public: inline FlightModeChangeResponse() : FlightModeChangeResponse(nullptr) {} - ~FlightModeChangeResponse() override; - template - explicit PROTOBUF_CONSTEXPR FlightModeChangeResponse(::google::protobuf::internal::ConstantInitialized); - - inline FlightModeChangeResponse(const FlightModeChangeResponse& from) - : FlightModeChangeResponse(nullptr, from) {} - FlightModeChangeResponse(FlightModeChangeResponse&& from) noexcept - : FlightModeChangeResponse() { - *this = ::std::move(from); + ~FlightModeChangeResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(FlightModeChangeResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(FlightModeChangeResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR FlightModeChangeResponse( + ::google::protobuf::internal::ConstantInitialized); + inline FlightModeChangeResponse(const FlightModeChangeResponse& from) : FlightModeChangeResponse(nullptr, from) {} + inline FlightModeChangeResponse(FlightModeChangeResponse&& from) noexcept + : FlightModeChangeResponse(nullptr, std::move(from)) {} inline FlightModeChangeResponse& operator=(const FlightModeChangeResponse& from) { CopyFrom(from); return *this; } inline FlightModeChangeResponse& operator=(FlightModeChangeResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4602,22 +4951,13 @@ class FlightModeChangeResponse final : } static inline const FlightModeChangeResponse* internal_default_instance() { return reinterpret_cast( - &_FlightModeChangeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(FlightModeChangeResponse& a, FlightModeChangeResponse& b) { - a.Swap(&b); + &_FlightModeChangeResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 13; + friend void swap(FlightModeChangeResponse& a, FlightModeChangeResponse& b) { a.Swap(&b); } inline void Swap(FlightModeChangeResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4631,52 +4971,74 @@ class FlightModeChangeResponse final : // implements Message ---------------------------------------------- - FlightModeChangeResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + FlightModeChangeResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const FlightModeChangeResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const FlightModeChangeResponse& from) { - FlightModeChangeResponse::MergeImpl(*this, from); - } + void MergeFrom(const FlightModeChangeResponse& from) { FlightModeChangeResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(FlightModeChangeResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.FlightModeChangeResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.FlightModeChangeResponse"; - } - protected: + protected: explicit FlightModeChangeResponse(::google::protobuf::Arena* arena); FlightModeChangeResponse(::google::protobuf::Arena* arena, const FlightModeChangeResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + FlightModeChangeResponse(::google::protobuf::Arena* arena, FlightModeChangeResponse&& from) noexcept + : FlightModeChangeResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionServerResultFieldNumber = 1, kFlightModeFieldNumber = 2, @@ -4709,12 +5071,12 @@ class FlightModeChangeResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.FlightModeChangeResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4722,49 +5084,52 @@ class FlightModeChangeResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const FlightModeChangeResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; int flight_mode_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ArmDisarmResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarmResponse) */ { +class ArmDisarmResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarmResponse) */ { public: inline ArmDisarmResponse() : ArmDisarmResponse(nullptr) {} - ~ArmDisarmResponse() override; - template - explicit PROTOBUF_CONSTEXPR ArmDisarmResponse(::google::protobuf::internal::ConstantInitialized); - - inline ArmDisarmResponse(const ArmDisarmResponse& from) - : ArmDisarmResponse(nullptr, from) {} - ArmDisarmResponse(ArmDisarmResponse&& from) noexcept - : ArmDisarmResponse() { - *this = ::std::move(from); + ~ArmDisarmResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmDisarmResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmDisarmResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR ArmDisarmResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline ArmDisarmResponse(const ArmDisarmResponse& from) : ArmDisarmResponse(nullptr, from) {} + inline ArmDisarmResponse(ArmDisarmResponse&& from) noexcept + : ArmDisarmResponse(nullptr, std::move(from)) {} inline ArmDisarmResponse& operator=(const ArmDisarmResponse& from) { CopyFrom(from); return *this; } inline ArmDisarmResponse& operator=(ArmDisarmResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -4795,22 +5160,13 @@ class ArmDisarmResponse final : } static inline const ArmDisarmResponse* internal_default_instance() { return reinterpret_cast( - &_ArmDisarmResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(ArmDisarmResponse& a, ArmDisarmResponse& b) { - a.Swap(&b); + &_ArmDisarmResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 12; + friend void swap(ArmDisarmResponse& a, ArmDisarmResponse& b) { a.Swap(&b); } inline void Swap(ArmDisarmResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -4824,52 +5180,74 @@ class ArmDisarmResponse final : // implements Message ---------------------------------------------- - ArmDisarmResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ArmDisarmResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ArmDisarmResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmDisarmResponse& from) { - ArmDisarmResponse::MergeImpl(*this, from); - } + void MergeFrom(const ArmDisarmResponse& from) { ArmDisarmResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ArmDisarmResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.ArmDisarmResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action_server.ArmDisarmResponse"; - } - protected: + protected: explicit ArmDisarmResponse(::google::protobuf::Arena* arena); ArmDisarmResponse(::google::protobuf::Arena* arena, const ArmDisarmResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ArmDisarmResponse(::google::protobuf::Arena* arena, ArmDisarmResponse&& from) noexcept + : ArmDisarmResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kActionServerResultFieldNumber = 1, kArmFieldNumber = 2, @@ -4907,12 +5285,12 @@ class ArmDisarmResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ArmDisarmResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 2, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -4920,15 +5298,15 @@ class ArmDisarmResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ArmDisarmResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; ::mavsdk::rpc::action_server::ArmDisarm* arm_; PROTOBUF_TSAN_DECLARE_MEMBER @@ -4955,7 +5333,7 @@ class ArmDisarmResponse final : // bool allow_takeoff = 1; inline void SetAllowTakeoffRequest::clear_allow_takeoff() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.allow_takeoff_ = false; } inline bool SetAllowTakeoffRequest::allow_takeoff() const { @@ -4967,12 +5345,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.allow_takeoff_; } inline void SetAllowTakeoffRequest::_internal_set_allow_takeoff(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.allow_takeoff_ = value; } @@ -4982,7 +5359,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.armable_ = false; } inline bool SetArmableRequest::armable() const { @@ -4994,18 +5371,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.armable_; } inline void SetArmableRequest::_internal_set_armable(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.armable_ = value; } // bool force_armable = 2; inline void SetArmableRequest::clear_force_armable() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.force_armable_ = false; } inline bool SetArmableRequest::force_armable() const { @@ -5017,12 +5393,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.force_armable_; } inline void SetArmableRequest::_internal_set_force_armable(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.force_armable_ = value; } @@ -5032,7 +5407,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.disarmable_ = false; } inline bool SetDisarmableRequest::disarmable() const { @@ -5044,18 +5419,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.disarmable_; } inline void SetDisarmableRequest::_internal_set_disarmable(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.disarmable_ = value; } // bool force_disarmable = 2; inline void SetDisarmableRequest::clear_force_disarmable() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.force_disarmable_ = false; } inline bool SetDisarmableRequest::force_disarmable() const { @@ -5067,12 +5441,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.force_disarmable_; } inline void SetDisarmableRequest::_internal_set_force_disarmable(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.force_disarmable_ = value; } @@ -5087,12 +5460,12 @@ inline bool SetAllowableFlightModesRequest::has_flight_modes() const { return value; } inline void SetAllowableFlightModesRequest::clear_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.flight_modes_ != nullptr) _impl_.flight_modes_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::AllowableFlightModes& SetAllowableFlightModesRequest::_internal_flight_modes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::AllowableFlightModes* p = _impl_.flight_modes_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_); } @@ -5101,7 +5474,7 @@ inline const ::mavsdk::rpc::action_server::AllowableFlightModes& SetAllowableFli return _internal_flight_modes(); } inline void SetAllowableFlightModesRequest::unsafe_arena_set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.flight_modes_); } @@ -5114,26 +5487,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::AllowableFlightModes* released = _impl_.flight_modes_; _impl_.flight_modes_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightModesRequest::unsafe_arena_release_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) _impl_._has_bits_[0] &= ~0x00000001u; @@ -5142,28 +5515,28 @@ inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightMod 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.flight_modes_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::AllowableFlightModes>(GetArena()); _impl_.flight_modes_ = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(p); } return _impl_.flight_modes_; } inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightModesRequest::mutable_flight_modes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::AllowableFlightModes* _msg = _internal_mutable_flight_modes(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) return _msg; } inline void SetAllowableFlightModesRequest::set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(_impl_.flight_modes_); + delete (_impl_.flight_modes_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -5219,12 +5592,12 @@ inline bool ArmDisarmResponse::has_action_server_result() const { return value; } inline void ArmDisarmResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& ArmDisarmResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5233,7 +5606,7 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& ArmDisarmResponse return _internal_action_server_result(); } inline void ArmDisarmResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } @@ -5246,26 +5619,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -5274,28 +5647,28 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::unsa 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); } return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) return _msg; } inline void ArmDisarmResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); + delete (_impl_.action_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -5315,12 +5688,12 @@ inline bool ArmDisarmResponse::has_arm() const { return value; } inline void ArmDisarmResponse::clear_arm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.arm_ != nullptr) _impl_.arm_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::_internal_arm() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ArmDisarm* p = _impl_.arm_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ArmDisarm_default_instance_); } @@ -5329,7 +5702,7 @@ inline const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::arm() c return _internal_arm(); } inline void ArmDisarmResponse::unsafe_arena_set_allocated_arm(::mavsdk::rpc::action_server::ArmDisarm* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.arm_); } @@ -5342,26 +5715,26 @@ inline void ArmDisarmResponse::unsafe_arena_set_allocated_arm(::mavsdk::rpc::act // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000002u; ::mavsdk::rpc::action_server::ArmDisarm* released = _impl_.arm_; _impl_.arm_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::unsafe_arena_release_arm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ArmDisarmResponse.arm) _impl_._has_bits_[0] &= ~0x00000002u; @@ -5370,28 +5743,28 @@ inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::unsafe_arena_ return temp; } inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::_internal_mutable_arm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.arm_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ArmDisarm>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ArmDisarm>(GetArena()); _impl_.arm_ = reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(p); } return _impl_.arm_; } inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::mutable_arm() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::mavsdk::rpc::action_server::ArmDisarm* _msg = _internal_mutable_arm(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.ArmDisarmResponse.arm) return _msg; } inline void ArmDisarmResponse::set_allocated_arm(::mavsdk::rpc::action_server::ArmDisarm* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(_impl_.arm_); + delete (_impl_.arm_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ArmDisarm*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -5415,12 +5788,12 @@ inline bool FlightModeChangeResponse::has_action_server_result() const { return value; } inline void FlightModeChangeResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& FlightModeChangeResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5429,7 +5802,7 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& FlightModeChangeR return _internal_action_server_result(); } inline void FlightModeChangeResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } @@ -5442,26 +5815,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -5470,28 +5843,28 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeRespons 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); } return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) return _msg; } inline void FlightModeChangeResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); + delete (_impl_.action_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -5506,7 +5879,7 @@ inline void FlightModeChangeResponse::set_allocated_action_server_result(::mavsd // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; inline void FlightModeChangeResponse::clear_flight_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.flight_mode_ = 0; } inline ::mavsdk::rpc::action_server::FlightMode FlightModeChangeResponse::flight_mode() const { @@ -5518,12 +5891,11 @@ inline void FlightModeChangeResponse::set_flight_mode(::mavsdk::rpc::action_serv // @@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); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::mavsdk::rpc::action_server::FlightMode>(_impl_.flight_mode_); } inline void FlightModeChangeResponse::_internal_set_flight_mode(::mavsdk::rpc::action_server::FlightMode value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.flight_mode_ = value; } @@ -5538,12 +5910,12 @@ inline bool TakeoffResponse::has_action_server_result() const { return value; } inline void TakeoffResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& TakeoffResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5552,7 +5924,7 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& TakeoffResponse:: return _internal_action_server_result(); } inline void TakeoffResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } @@ -5565,26 +5937,26 @@ inline void TakeoffResponse::unsafe_arena_set_allocated_action_server_result(::m // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -5593,28 +5965,28 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::unsafe 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); } return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) return _msg; } inline void TakeoffResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); + delete (_impl_.action_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -5629,7 +6001,7 @@ inline void TakeoffResponse::set_allocated_action_server_result(::mavsdk::rpc::a // bool takeoff = 2; inline void TakeoffResponse::clear_takeoff() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.takeoff_ = false; } inline bool TakeoffResponse::takeoff() const { @@ -5641,12 +6013,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.takeoff_; } inline void TakeoffResponse::_internal_set_takeoff(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.takeoff_ = value; } @@ -5661,12 +6032,12 @@ inline bool LandResponse::has_action_server_result() const { return value; } inline void LandResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& LandResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5675,7 +6046,7 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& LandResponse::act return _internal_action_server_result(); } inline void LandResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } @@ -5688,26 +6059,26 @@ inline void LandResponse::unsafe_arena_set_allocated_action_server_result(::mavs // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.LandResponse.action_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -5716,28 +6087,28 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::unsafe_ar 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); } return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.LandResponse.action_server_result) return _msg; } inline void LandResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); + delete (_impl_.action_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -5752,7 +6123,7 @@ inline void LandResponse::set_allocated_action_server_result(::mavsdk::rpc::acti // bool land = 2; inline void LandResponse::clear_land() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.land_ = false; } inline bool LandResponse::land() const { @@ -5764,12 +6135,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.land_; } inline void LandResponse::_internal_set_land(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.land_ = value; } @@ -5784,12 +6154,12 @@ inline bool RebootResponse::has_action_server_result() const { return value; } inline void RebootResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& RebootResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5798,7 +6168,7 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& RebootResponse::a return _internal_action_server_result(); } inline void RebootResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } @@ -5811,26 +6181,26 @@ inline void RebootResponse::unsafe_arena_set_allocated_action_server_result(::ma // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.RebootResponse.action_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -5839,28 +6209,28 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::unsafe_ 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); } return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.RebootResponse.action_server_result) return _msg; } inline void RebootResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); + delete (_impl_.action_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -5875,7 +6245,7 @@ inline void RebootResponse::set_allocated_action_server_result(::mavsdk::rpc::ac // bool reboot = 2; inline void RebootResponse::clear_reboot() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reboot_ = false; } inline bool RebootResponse::reboot() const { @@ -5887,12 +6257,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.reboot_; } inline void RebootResponse::_internal_set_reboot(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reboot_ = value; } @@ -5907,12 +6276,12 @@ inline bool ShutdownResponse::has_action_server_result() const { return value; } inline void ShutdownResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& ShutdownResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5921,7 +6290,7 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& ShutdownResponse: return _internal_action_server_result(); } inline void ShutdownResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } @@ -5934,26 +6303,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -5962,28 +6331,28 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::unsaf 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); } return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) return _msg; } inline void ShutdownResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); + delete (_impl_.action_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -5998,7 +6367,7 @@ inline void ShutdownResponse::set_allocated_action_server_result(::mavsdk::rpc:: // bool shutdown = 2; inline void ShutdownResponse::clear_shutdown() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.shutdown_ = false; } inline bool ShutdownResponse::shutdown() const { @@ -6010,12 +6379,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.shutdown_; } inline void ShutdownResponse::_internal_set_shutdown(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.shutdown_ = value; } @@ -6030,12 +6398,12 @@ inline bool TerminateResponse::has_action_server_result() const { return value; } inline void TerminateResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& TerminateResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -6044,7 +6412,7 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& TerminateResponse return _internal_action_server_result(); } inline void TerminateResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } @@ -6057,26 +6425,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.TerminateResponse.action_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -6085,28 +6453,28 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::unsa 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); } return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.TerminateResponse.action_server_result) return _msg; } inline void TerminateResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); + delete (_impl_.action_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -6121,7 +6489,7 @@ inline void TerminateResponse::set_allocated_action_server_result(::mavsdk::rpc: // bool terminate = 2; inline void TerminateResponse::clear_terminate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.terminate_ = false; } inline bool TerminateResponse::terminate() const { @@ -6133,12 +6501,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.terminate_; } inline void TerminateResponse::_internal_set_terminate(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.terminate_ = value; } @@ -6153,12 +6520,12 @@ inline bool SetArmableResponse::has_action_server_result() const { return value; } inline void SetArmableResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& SetArmableResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -6167,7 +6534,7 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& SetArmableRespons return _internal_action_server_result(); } inline void SetArmableResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } @@ -6180,26 +6547,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -6208,28 +6575,28 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::uns 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); } return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) return _msg; } inline void SetArmableResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); + delete (_impl_.action_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -6253,12 +6620,12 @@ inline bool SetDisarmableResponse::has_action_server_result() const { return value; } inline void SetDisarmableResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& SetDisarmableResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -6267,7 +6634,7 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& SetDisarmableResp return _internal_action_server_result(); } inline void SetDisarmableResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } @@ -6280,26 +6647,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -6308,28 +6675,28 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse:: 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); } return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) return _msg; } inline void SetDisarmableResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); + delete (_impl_.action_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -6353,12 +6720,12 @@ inline bool SetAllowableFlightModesResponse::has_action_server_result() const { return value; } inline void SetAllowableFlightModesResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowableFlightModesResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -6367,7 +6734,7 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowableFligh return _internal_action_server_result(); } inline void SetAllowableFlightModesResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } @@ -6380,26 +6747,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModesResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -6408,28 +6775,28 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModes 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); } return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModesResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) return _msg; } inline void SetAllowableFlightModesResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); + delete (_impl_.action_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -6453,12 +6820,12 @@ inline bool SetAllowTakeoffResponse::has_action_server_result() const { return value; } inline void SetAllowTakeoffResponse::clear_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowTakeoffResponse::_internal_action_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -6467,7 +6834,7 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowTakeoffRe return _internal_action_server_result(); } inline void SetAllowTakeoffResponse::unsafe_arena_set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_server_result_); } @@ -6480,26 +6847,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* released = _impl_.action_server_result_; _impl_.action_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse::unsafe_arena_release_action_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -6508,28 +6875,28 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.action_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::ActionServerResult>(GetArena()); _impl_.action_server_result_ = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(p); } return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse::mutable_action_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) return _msg; } inline void SetAllowTakeoffResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(_impl_.action_server_result_); + delete (_impl_.action_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::ActionServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -6553,12 +6920,12 @@ inline bool GetAllowableFlightModesResponse::has_flight_modes() const { return value; } inline void GetAllowableFlightModesResponse::clear_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.flight_modes_ != nullptr) _impl_.flight_modes_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::AllowableFlightModes& GetAllowableFlightModesResponse::_internal_flight_modes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::action_server::AllowableFlightModes* p = _impl_.flight_modes_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_); } @@ -6567,7 +6934,7 @@ inline const ::mavsdk::rpc::action_server::AllowableFlightModes& GetAllowableFli return _internal_flight_modes(); } inline void GetAllowableFlightModesResponse::unsafe_arena_set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.flight_modes_); } @@ -6580,26 +6947,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::action_server::AllowableFlightModes* released = _impl_.flight_modes_; _impl_.flight_modes_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightModesResponse::unsafe_arena_release_flight_modes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) _impl_._has_bits_[0] &= ~0x00000001u; @@ -6608,28 +6975,28 @@ inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightMod 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; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.flight_modes_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::action_server::AllowableFlightModes>(GetArena()); _impl_.flight_modes_ = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(p); } return _impl_.flight_modes_; } inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightModesResponse::mutable_flight_modes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::action_server::AllowableFlightModes* _msg = _internal_mutable_flight_modes(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) return _msg; } inline void GetAllowableFlightModesResponse::set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(_impl_.flight_modes_); + delete (_impl_.flight_modes_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action_server::AllowableFlightModes*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -6648,7 +7015,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.can_auto_mode_ = false; } inline bool AllowableFlightModes::can_auto_mode() const { @@ -6660,18 +7027,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.can_auto_mode_; } inline void AllowableFlightModes::_internal_set_can_auto_mode(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.can_auto_mode_ = value; } // bool can_guided_mode = 2; inline void AllowableFlightModes::clear_can_guided_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.can_guided_mode_ = false; } inline bool AllowableFlightModes::can_guided_mode() const { @@ -6683,18 +7049,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.can_guided_mode_; } inline void AllowableFlightModes::_internal_set_can_guided_mode(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.can_guided_mode_ = value; } // bool can_stabilize_mode = 3; inline void AllowableFlightModes::clear_can_stabilize_mode() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.can_stabilize_mode_ = false; } inline bool AllowableFlightModes::can_stabilize_mode() const { @@ -6706,12 +7071,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.can_stabilize_mode_; } inline void AllowableFlightModes::_internal_set_can_stabilize_mode(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.can_stabilize_mode_ = value; } @@ -6721,7 +7085,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.arm_ = false; } inline bool ArmDisarm::arm() const { @@ -6733,18 +7097,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.arm_; } inline void ArmDisarm::_internal_set_arm(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.arm_ = value; } // bool force = 2; inline void ArmDisarm::clear_force() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.force_ = false; } inline bool ArmDisarm::force() const { @@ -6756,12 +7119,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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.force_; } inline void ArmDisarm::_internal_set_force(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.force_ = value; } @@ -6771,7 +7133,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = 0; } inline ::mavsdk::rpc::action_server::ActionServerResult_Result ActionServerResult::result() const { @@ -6783,18 +7145,17 @@ inline void ActionServerResult::set_result(::mavsdk::rpc::action_server::ActionS // @@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); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::mavsdk::rpc::action_server::ActionServerResult_Result>(_impl_.result_); } inline void ActionServerResult::_internal_set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = value; } // string result_str = 2; inline void ActionServerResult::clear_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.ClearToEmpty(); } inline const std::string& ActionServerResult::result_str() const @@ -6805,8 +7166,7 @@ inline const std::string& ActionServerResult::result_str() const template inline PROTOBUF_ALWAYS_INLINE void ActionServerResult::set_result_str(Arg_&& arg, Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ActionServerResult.result_str) } @@ -6816,32 +7176,28 @@ inline std::string* ActionServerResult::mutable_result_str() ABSL_ATTRIBUTE_LIFE return _s; } inline const std::string& ActionServerResult::_internal_result_str() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.result_str_.Get(); } inline void ActionServerResult::_internal_set_result_str(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.Set(value, GetArena()); } inline std::string* ActionServerResult::_internal_mutable_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.result_str_.Mutable( GetArena()); } inline std::string* ActionServerResult::release_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ActionServerResult.result_str) return _impl_.result_str_.Release(); } inline void ActionServerResult::set_allocated_result_str(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.result_str_.IsDefault()) { - _impl_.result_str_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.result_str_.IsDefault()) { + _impl_.result_str_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ActionServerResult.result_str) } @@ -6878,4 +7234,4 @@ inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action_server::Fli #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto_2epb_2eh +#endif // action_5fserver_2faction_5fserver_2eproto_2epb_2eh diff --git a/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.cc b/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.cc index 3972b19909..3b0ea67d3d 100644 --- a/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.cc +++ b/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.cc @@ -1,17 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: arm_authorizer_server/arm_authorizer_server.proto +// Protobuf C++ Version: 5.29.1 #include "arm_authorizer_server/arm_authorizer_server.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -23,8 +27,14 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace arm_authorizer_server { - template -PROTOBUF_CONSTEXPR SubscribeArmAuthorizationRequest::SubscribeArmAuthorizationRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeArmAuthorizationRequest::SubscribeArmAuthorizationRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeArmAuthorizationRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeArmAuthorizationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeArmAuthorizationRequestDefaultTypeInternal() {} @@ -45,7 +55,13 @@ inline constexpr RejectArmAuthorizationRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR RejectArmAuthorizationRequest::RejectArmAuthorizationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct RejectArmAuthorizationRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR RejectArmAuthorizationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RejectArmAuthorizationRequestDefaultTypeInternal() {} @@ -67,7 +83,13 @@ inline constexpr ArmAuthorizerServerResult::Impl_::Impl_( template PROTOBUF_CONSTEXPR ArmAuthorizerServerResult::ArmAuthorizerServerResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ArmAuthorizerServerResultDefaultTypeInternal { PROTOBUF_CONSTEXPR ArmAuthorizerServerResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmAuthorizerServerResultDefaultTypeInternal() {} @@ -86,7 +108,13 @@ inline constexpr ArmAuthorizationResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ArmAuthorizationResponse::ArmAuthorizationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ArmAuthorizationResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ArmAuthorizationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmAuthorizationResponseDefaultTypeInternal() {} @@ -105,7 +133,13 @@ inline constexpr AcceptArmAuthorizationRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR AcceptArmAuthorizationRequest::AcceptArmAuthorizationRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct AcceptArmAuthorizationRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR AcceptArmAuthorizationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AcceptArmAuthorizationRequestDefaultTypeInternal() {} @@ -124,7 +158,13 @@ inline constexpr RejectArmAuthorizationResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR RejectArmAuthorizationResponse::RejectArmAuthorizationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct RejectArmAuthorizationResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR RejectArmAuthorizationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RejectArmAuthorizationResponseDefaultTypeInternal() {} @@ -143,7 +183,13 @@ inline constexpr AcceptArmAuthorizationResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR AcceptArmAuthorizationResponse::AcceptArmAuthorizationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct AcceptArmAuthorizationResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR AcceptArmAuthorizationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AcceptArmAuthorizationResponseDefaultTypeInternal() {} @@ -157,83 +203,83 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT } // namespace arm_authorizer_server } // namespace rpc } // namespace mavsdk -static ::_pb::Metadata file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[7]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto = nullptr; -const ::uint32_t TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::SubscribeArmAuthorizationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse, _impl_.system_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest, _impl_.valid_time_s_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, _impl_.arm_authorizer_server_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _impl_.temporarily_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _impl_.reason_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _impl_.extra_info_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, _impl_.arm_authorizer_server_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _impl_.result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _impl_.result_str_), +const ::uint32_t + TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::SubscribeArmAuthorizationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse, _impl_.system_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest, _impl_.valid_time_s_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse, _impl_.arm_authorizer_server_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _impl_.temporarily_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _impl_.reason_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest, _impl_.extra_info_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse, _impl_.arm_authorizer_server_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult, _impl_.result_str_), }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::SubscribeArmAuthorizationRequest)}, {8, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse)}, {17, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest)}, @@ -242,7 +288,6 @@ static const ::_pbi::MigrationSchema {47, 56, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse)}, {57, -1, -1, sizeof(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::arm_authorizer_server::_SubscribeArmAuthorizationRequest_default_instance_._instance, &::mavsdk::rpc::arm_authorizer_server::_ArmAuthorizationResponse_default_instance_._instance, @@ -252,7 +297,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::arm_authorizer_server::_RejectArmAuthorizationResponse_default_instance_._instance, &::mavsdk::rpc::arm_authorizer_server::_ArmAuthorizerServerResult_default_instance_._instance, }; -const char descriptor_table_protodef_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n1arm_authorizer_server/arm_authorizer_s" "erver.proto\022 mavsdk.rpc.arm_authorizer_s" "erver\032\024mavsdk_options.proto\"\"\n Subscribe" @@ -301,7 +347,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_arm_5fauthorizer_5f &::descriptor_table_mavsdk_5foptions_2eproto, }; static ::absl::once_flag descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto = { false, false, 1663, @@ -314,28 +360,9 @@ const ::_pbi::DescriptorTable descriptor_table_arm_5fauthorizer_5fserver_2farm_5 schemas, file_default_instances, TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto::offsets, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, file_level_enum_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, file_level_service_descriptors_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter() { - return &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto(&descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto); namespace mavsdk { namespace rpc { namespace arm_authorizer_server { @@ -376,13 +403,21 @@ class SubscribeArmAuthorizationRequest::_Internal { }; SubscribeArmAuthorizationRequest::SubscribeArmAuthorizationRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) } SubscribeArmAuthorizationRequest::SubscribeArmAuthorizationRequest( ::google::protobuf::Arena* arena, const SubscribeArmAuthorizationRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeArmAuthorizationRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -391,6 +426,68 @@ SubscribeArmAuthorizationRequest::SubscribeArmAuthorizationRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) } +inline void* SubscribeArmAuthorizationRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeArmAuthorizationRequest(arena); +} +constexpr auto SubscribeArmAuthorizationRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeArmAuthorizationRequest), + alignof(SubscribeArmAuthorizationRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeArmAuthorizationRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeArmAuthorizationRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeArmAuthorizationRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeArmAuthorizationRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeArmAuthorizationRequest::ByteSizeLong, + &SubscribeArmAuthorizationRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeArmAuthorizationRequest, _impl_._cached_size_), + false, + }, + &SubscribeArmAuthorizationRequest::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeArmAuthorizationRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeArmAuthorizationRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server::SubscribeArmAuthorizationRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -400,9 +497,7 @@ SubscribeArmAuthorizationRequest::SubscribeArmAuthorizationRequest( ::google::protobuf::Metadata SubscribeArmAuthorizationRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[0]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -411,7 +506,11 @@ class ArmAuthorizationResponse::_Internal { }; ArmAuthorizationResponse::ArmAuthorizationResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) } @@ -431,32 +530,50 @@ inline void ArmAuthorizationResponse::SharedCtor(::_pb::Arena* arena) { } ArmAuthorizationResponse::~ArmAuthorizationResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmAuthorizationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmAuthorizationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.system_id_ = 0u; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ArmAuthorizationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ArmAuthorizationResponse::SharedDtor(MessageLite& self) { + ArmAuthorizationResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* ArmAuthorizationResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ArmAuthorizationResponse(arena); +} +constexpr auto ArmAuthorizationResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ArmAuthorizationResponse), + alignof(ArmAuthorizationResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmAuthorizationResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmAuthorizationResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmAuthorizationResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmAuthorizationResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ArmAuthorizationResponse::ByteSizeLong, + &ArmAuthorizationResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmAuthorizationResponse, _impl_._cached_size_), + false, + }, + &ArmAuthorizationResponse::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmAuthorizationResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ArmAuthorizationResponse::_table_ = { { @@ -469,8 +586,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ArmAuthorizationResponse::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ArmAuthorizationResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizationResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint32 system_id = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ArmAuthorizationResponse, _impl_.system_id_), 63>(), @@ -487,55 +608,74 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ArmAuthorizationResponse::_table_ = { }}, }; -::uint8_t* ArmAuthorizationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint32 system_id = 1; - if (this->_internal_system_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_system_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - return target; -} - -::size_t ArmAuthorizationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ArmAuthorizationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // uint32 system_id = 1; - if (this->_internal_system_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_system_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmAuthorizationResponse::_class_data_ = { - ArmAuthorizationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmAuthorizationResponse::GetClassData() const { - return &_class_data_; + _impl_.system_id_ = 0u; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ArmAuthorizationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ArmAuthorizationResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ArmAuthorizationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ArmAuthorizationResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // uint32 system_id = 1; + if (this_._internal_system_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_system_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ArmAuthorizationResponse::ByteSizeLong(const MessageLite& base) { + const ArmAuthorizationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ArmAuthorizationResponse::ByteSizeLong() const { + const ArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // uint32 system_id = 1; + if (this_._internal_system_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_system_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ArmAuthorizationResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) @@ -544,7 +684,7 @@ void ArmAuthorizationResponse::MergeImpl(::google::protobuf::Message& to_msg, co (void) cached_has_bits; if (from._internal_system_id() != 0) { - _this->_internal_set_system_id(from._internal_system_id()); + _this->_impl_.system_id_ = from._impl_.system_id_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -556,13 +696,7 @@ void ArmAuthorizationResponse::CopyFrom(const ArmAuthorizationResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ArmAuthorizationResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ArmAuthorizationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ArmAuthorizationResponse::InternalSwap(ArmAuthorizationResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -570,9 +704,7 @@ void ArmAuthorizationResponse::InternalSwap(ArmAuthorizationResponse* PROTOBUF_R } ::google::protobuf::Metadata ArmAuthorizationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[1]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -581,7 +713,11 @@ class AcceptArmAuthorizationRequest::_Internal { }; AcceptArmAuthorizationRequest::AcceptArmAuthorizationRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) } @@ -601,32 +737,50 @@ inline void AcceptArmAuthorizationRequest::SharedCtor(::_pb::Arena* arena) { } AcceptArmAuthorizationRequest::~AcceptArmAuthorizationRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AcceptArmAuthorizationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AcceptArmAuthorizationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.valid_time_s_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AcceptArmAuthorizationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void AcceptArmAuthorizationRequest::SharedDtor(MessageLite& self) { + AcceptArmAuthorizationRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* AcceptArmAuthorizationRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) AcceptArmAuthorizationRequest(arena); +} +constexpr auto AcceptArmAuthorizationRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AcceptArmAuthorizationRequest), + alignof(AcceptArmAuthorizationRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull AcceptArmAuthorizationRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_AcceptArmAuthorizationRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AcceptArmAuthorizationRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AcceptArmAuthorizationRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &AcceptArmAuthorizationRequest::ByteSizeLong, + &AcceptArmAuthorizationRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationRequest, _impl_._cached_size_), + false, + }, + &AcceptArmAuthorizationRequest::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* AcceptArmAuthorizationRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AcceptArmAuthorizationRequest::_table_ = { { @@ -639,8 +793,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AcceptArmAuthorizationRequest::_table_ 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_AcceptArmAuthorizationRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 valid_time_s = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AcceptArmAuthorizationRequest, _impl_.valid_time_s_), 63>(), @@ -657,55 +815,74 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> AcceptArmAuthorizationRequest::_table_ }}, }; -::uint8_t* AcceptArmAuthorizationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 valid_time_s = 1; - if (this->_internal_valid_time_s() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_valid_time_s(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - return target; -} - -::size_t AcceptArmAuthorizationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void AcceptArmAuthorizationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // int32 valid_time_s = 1; - if (this->_internal_valid_time_s() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_valid_time_s()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AcceptArmAuthorizationRequest::_class_data_ = { - AcceptArmAuthorizationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AcceptArmAuthorizationRequest::GetClassData() const { - return &_class_data_; + _impl_.valid_time_s_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void AcceptArmAuthorizationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* AcceptArmAuthorizationRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const AcceptArmAuthorizationRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* AcceptArmAuthorizationRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const AcceptArmAuthorizationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // int32 valid_time_s = 1; + if (this_._internal_valid_time_s() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<1>( + stream, this_._internal_valid_time_s(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t AcceptArmAuthorizationRequest::ByteSizeLong(const MessageLite& base) { + const AcceptArmAuthorizationRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t AcceptArmAuthorizationRequest::ByteSizeLong() const { + const AcceptArmAuthorizationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // int32 valid_time_s = 1; + if (this_._internal_valid_time_s() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_valid_time_s()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void AcceptArmAuthorizationRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) @@ -714,7 +891,7 @@ void AcceptArmAuthorizationRequest::MergeImpl(::google::protobuf::Message& to_ms (void) cached_has_bits; if (from._internal_valid_time_s() != 0) { - _this->_internal_set_valid_time_s(from._internal_valid_time_s()); + _this->_impl_.valid_time_s_ = from._impl_.valid_time_s_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -726,13 +903,7 @@ void AcceptArmAuthorizationRequest::CopyFrom(const AcceptArmAuthorizationRequest MergeFrom(from); } -PROTOBUF_NOINLINE bool AcceptArmAuthorizationRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* AcceptArmAuthorizationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void AcceptArmAuthorizationRequest::InternalSwap(AcceptArmAuthorizationRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -740,50 +911,50 @@ void AcceptArmAuthorizationRequest::InternalSwap(AcceptArmAuthorizationRequest* } ::google::protobuf::Metadata AcceptArmAuthorizationRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[2]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class AcceptArmAuthorizationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& arm_authorizer_server_result(const AcceptArmAuthorizationResponse* msg); - static void set_has_arm_authorizer_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& AcceptArmAuthorizationResponse::_Internal::arm_authorizer_server_result(const AcceptArmAuthorizationResponse* msg) { - return *msg->_impl_.arm_authorizer_server_result_; -} AcceptArmAuthorizationResponse::AcceptArmAuthorizationResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) } inline PROTOBUF_NDEBUG_INLINE AcceptArmAuthorizationResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} AcceptArmAuthorizationResponse::AcceptArmAuthorizationResponse( ::google::protobuf::Arena* arena, const AcceptArmAuthorizationResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE AcceptArmAuthorizationResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.arm_authorizer_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(arena, *from._impl_.arm_authorizer_server_result_) - : nullptr; + _impl_.arm_authorizer_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>( + arena, *from._impl_.arm_authorizer_server_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) } @@ -798,38 +969,51 @@ inline void AcceptArmAuthorizationResponse::SharedCtor(::_pb::Arena* arena) { } AcceptArmAuthorizationResponse::~AcceptArmAuthorizationResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AcceptArmAuthorizationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.arm_authorizer_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void AcceptArmAuthorizationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.arm_authorizer_server_result_ != nullptr); - _impl_.arm_authorizer_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AcceptArmAuthorizationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void AcceptArmAuthorizationResponse::SharedDtor(MessageLite& self) { + AcceptArmAuthorizationResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.arm_authorizer_server_result_; + this_._impl_.~Impl_(); +} + +inline void* AcceptArmAuthorizationResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) AcceptArmAuthorizationResponse(arena); +} +constexpr auto AcceptArmAuthorizationResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AcceptArmAuthorizationResponse), + alignof(AcceptArmAuthorizationResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull AcceptArmAuthorizationResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_AcceptArmAuthorizationResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AcceptArmAuthorizationResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AcceptArmAuthorizationResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &AcceptArmAuthorizationResponse::ByteSizeLong, + &AcceptArmAuthorizationResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AcceptArmAuthorizationResponse, _impl_._cached_size_), + false, + }, + &AcceptArmAuthorizationResponse::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* AcceptArmAuthorizationResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> AcceptArmAuthorizationResponse::_table_ = { { @@ -842,8 +1026,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> AcceptArmAuthorizationResponse::_table 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_AcceptArmAuthorizationResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server::AcceptArmAuthorizationResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; {::_pbi::TcParser::FastMtS1, @@ -860,68 +1048,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> AcceptArmAuthorizationResponse::_table }}, }; -::uint8_t* AcceptArmAuthorizationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::arm_authorizer_server_result(this), - _Internal::arm_authorizer_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - return target; -} - -::size_t AcceptArmAuthorizationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void AcceptArmAuthorizationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.arm_authorizer_server_result_); + ABSL_DCHECK(_impl_.arm_authorizer_server_result_ != nullptr); + _impl_.arm_authorizer_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData AcceptArmAuthorizationResponse::_class_data_ = { - AcceptArmAuthorizationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* AcceptArmAuthorizationResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void AcceptArmAuthorizationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* AcceptArmAuthorizationResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const AcceptArmAuthorizationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* AcceptArmAuthorizationResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const AcceptArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.arm_authorizer_server_result_, this_._impl_.arm_authorizer_server_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t AcceptArmAuthorizationResponse::ByteSizeLong(const MessageLite& base) { + const AcceptArmAuthorizationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t AcceptArmAuthorizationResponse::ByteSizeLong() const { + const AcceptArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.arm_authorizer_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void AcceptArmAuthorizationResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_arm_authorizer_server_result()->::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult::MergeFrom( - from._internal_arm_authorizer_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.arm_authorizer_server_result_ != nullptr); + if (_this->_impl_.arm_authorizer_server_result_ == nullptr) { + _this->_impl_.arm_authorizer_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(arena, *from._impl_.arm_authorizer_server_result_); + } else { + _this->_impl_.arm_authorizer_server_result_->MergeFrom(*from._impl_.arm_authorizer_server_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -932,13 +1152,7 @@ void AcceptArmAuthorizationResponse::CopyFrom(const AcceptArmAuthorizationRespon MergeFrom(from); } -PROTOBUF_NOINLINE bool AcceptArmAuthorizationResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* AcceptArmAuthorizationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void AcceptArmAuthorizationResponse::InternalSwap(AcceptArmAuthorizationResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -947,9 +1161,7 @@ void AcceptArmAuthorizationResponse::InternalSwap(AcceptArmAuthorizationResponse } ::google::protobuf::Metadata AcceptArmAuthorizationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[3]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -958,7 +1170,11 @@ class RejectArmAuthorizationRequest::_Internal { }; RejectArmAuthorizationRequest::RejectArmAuthorizationRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) } @@ -983,34 +1199,50 @@ inline void RejectArmAuthorizationRequest::SharedCtor(::_pb::Arena* arena) { } RejectArmAuthorizationRequest::~RejectArmAuthorizationRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void RejectArmAuthorizationRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void RejectArmAuthorizationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.temporarily_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.extra_info_) - - reinterpret_cast(&_impl_.temporarily_)) + sizeof(_impl_.extra_info_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RejectArmAuthorizationRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void RejectArmAuthorizationRequest::SharedDtor(MessageLite& self) { + RejectArmAuthorizationRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* RejectArmAuthorizationRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) RejectArmAuthorizationRequest(arena); +} +constexpr auto RejectArmAuthorizationRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RejectArmAuthorizationRequest), + alignof(RejectArmAuthorizationRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull RejectArmAuthorizationRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_RejectArmAuthorizationRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RejectArmAuthorizationRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RejectArmAuthorizationRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RejectArmAuthorizationRequest::ByteSizeLong, + &RejectArmAuthorizationRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationRequest, _impl_._cached_size_), + false, + }, + &RejectArmAuthorizationRequest::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* RejectArmAuthorizationRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> RejectArmAuthorizationRequest::_table_ = { { @@ -1023,8 +1255,12 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> RejectArmAuthorizationRequest::_table_ 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_RejectArmAuthorizationRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bool temporarily = 1; @@ -1054,80 +1290,100 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> RejectArmAuthorizationRequest::_table_ }}, }; -::uint8_t* RejectArmAuthorizationRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool temporarily = 1; - if (this->_internal_temporarily() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_temporarily(), target); - } - - // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; - if (this->_internal_reason() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_reason(), target); - } - - // int32 extra_info = 3; - if (this->_internal_extra_info() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this->_internal_extra_info(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - return target; -} - -::size_t RejectArmAuthorizationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void RejectArmAuthorizationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bool temporarily = 1; - if (this->_internal_temporarily() != 0) { - total_size += 2; - } - - // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; - if (this->_internal_reason() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_reason()); - } - - // int32 extra_info = 3; - if (this->_internal_extra_info() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_extra_info()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData RejectArmAuthorizationRequest::_class_data_ = { - RejectArmAuthorizationRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* RejectArmAuthorizationRequest::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.temporarily_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.extra_info_) - + reinterpret_cast(&_impl_.temporarily_)) + sizeof(_impl_.extra_info_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void RejectArmAuthorizationRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* RejectArmAuthorizationRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const RejectArmAuthorizationRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* RejectArmAuthorizationRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const RejectArmAuthorizationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bool temporarily = 1; + if (this_._internal_temporarily() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_temporarily(), target); + } + + // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; + if (this_._internal_reason() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_reason(), target); + } + + // int32 extra_info = 3; + if (this_._internal_extra_info() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<3>( + stream, this_._internal_extra_info(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t RejectArmAuthorizationRequest::ByteSizeLong(const MessageLite& base) { + const RejectArmAuthorizationRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t RejectArmAuthorizationRequest::ByteSizeLong() const { + const RejectArmAuthorizationRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // bool temporarily = 1; + if (this_._internal_temporarily() != 0) { + total_size += 2; + } + // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; + if (this_._internal_reason() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_reason()); + } + // int32 extra_info = 3; + if (this_._internal_extra_info() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_extra_info()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void RejectArmAuthorizationRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) @@ -1136,13 +1392,13 @@ void RejectArmAuthorizationRequest::MergeImpl(::google::protobuf::Message& to_ms (void) cached_has_bits; if (from._internal_temporarily() != 0) { - _this->_internal_set_temporarily(from._internal_temporarily()); + _this->_impl_.temporarily_ = from._impl_.temporarily_; } if (from._internal_reason() != 0) { - _this->_internal_set_reason(from._internal_reason()); + _this->_impl_.reason_ = from._impl_.reason_; } if (from._internal_extra_info() != 0) { - _this->_internal_set_extra_info(from._internal_extra_info()); + _this->_impl_.extra_info_ = from._impl_.extra_info_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1154,13 +1410,7 @@ void RejectArmAuthorizationRequest::CopyFrom(const RejectArmAuthorizationRequest MergeFrom(from); } -PROTOBUF_NOINLINE bool RejectArmAuthorizationRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* RejectArmAuthorizationRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void RejectArmAuthorizationRequest::InternalSwap(RejectArmAuthorizationRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1173,50 +1423,50 @@ void RejectArmAuthorizationRequest::InternalSwap(RejectArmAuthorizationRequest* } ::google::protobuf::Metadata RejectArmAuthorizationRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[4]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class RejectArmAuthorizationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& arm_authorizer_server_result(const RejectArmAuthorizationResponse* msg); - static void set_has_arm_authorizer_server_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& RejectArmAuthorizationResponse::_Internal::arm_authorizer_server_result(const RejectArmAuthorizationResponse* msg) { - return *msg->_impl_.arm_authorizer_server_result_; -} RejectArmAuthorizationResponse::RejectArmAuthorizationResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) } inline PROTOBUF_NDEBUG_INLINE RejectArmAuthorizationResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} RejectArmAuthorizationResponse::RejectArmAuthorizationResponse( ::google::protobuf::Arena* arena, const RejectArmAuthorizationResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE RejectArmAuthorizationResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.arm_authorizer_server_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(arena, *from._impl_.arm_authorizer_server_result_) - : nullptr; + _impl_.arm_authorizer_server_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>( + arena, *from._impl_.arm_authorizer_server_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) } @@ -1231,38 +1481,51 @@ inline void RejectArmAuthorizationResponse::SharedCtor(::_pb::Arena* arena) { } RejectArmAuthorizationResponse::~RejectArmAuthorizationResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void RejectArmAuthorizationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.arm_authorizer_server_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void RejectArmAuthorizationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.arm_authorizer_server_result_ != nullptr); - _impl_.arm_authorizer_server_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RejectArmAuthorizationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void RejectArmAuthorizationResponse::SharedDtor(MessageLite& self) { + RejectArmAuthorizationResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.arm_authorizer_server_result_; + this_._impl_.~Impl_(); +} + +inline void* RejectArmAuthorizationResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) RejectArmAuthorizationResponse(arena); +} +constexpr auto RejectArmAuthorizationResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RejectArmAuthorizationResponse), + alignof(RejectArmAuthorizationResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull RejectArmAuthorizationResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_RejectArmAuthorizationResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RejectArmAuthorizationResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RejectArmAuthorizationResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RejectArmAuthorizationResponse::ByteSizeLong, + &RejectArmAuthorizationResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RejectArmAuthorizationResponse, _impl_._cached_size_), + false, + }, + &RejectArmAuthorizationResponse::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* RejectArmAuthorizationResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RejectArmAuthorizationResponse::_table_ = { { @@ -1275,8 +1538,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RejectArmAuthorizationResponse::_table 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_RejectArmAuthorizationResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server::RejectArmAuthorizationResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; {::_pbi::TcParser::FastMtS1, @@ -1293,68 +1560,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RejectArmAuthorizationResponse::_table }}, }; -::uint8_t* RejectArmAuthorizationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::arm_authorizer_server_result(this), - _Internal::arm_authorizer_server_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - return target; -} - -::size_t RejectArmAuthorizationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void RejectArmAuthorizationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.arm_authorizer_server_result_); + ABSL_DCHECK(_impl_.arm_authorizer_server_result_ != nullptr); + _impl_.arm_authorizer_server_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData RejectArmAuthorizationResponse::_class_data_ = { - RejectArmAuthorizationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* RejectArmAuthorizationResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void RejectArmAuthorizationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* RejectArmAuthorizationResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const RejectArmAuthorizationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* RejectArmAuthorizationResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const RejectArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.arm_authorizer_server_result_, this_._impl_.arm_authorizer_server_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t RejectArmAuthorizationResponse::ByteSizeLong(const MessageLite& base) { + const RejectArmAuthorizationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t RejectArmAuthorizationResponse::ByteSizeLong() const { + const RejectArmAuthorizationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult arm_authorizer_server_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.arm_authorizer_server_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void RejectArmAuthorizationResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_arm_authorizer_server_result()->::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult::MergeFrom( - from._internal_arm_authorizer_server_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.arm_authorizer_server_result_ != nullptr); + if (_this->_impl_.arm_authorizer_server_result_ == nullptr) { + _this->_impl_.arm_authorizer_server_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(arena, *from._impl_.arm_authorizer_server_result_); + } else { + _this->_impl_.arm_authorizer_server_result_->MergeFrom(*from._impl_.arm_authorizer_server_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1365,13 +1664,7 @@ void RejectArmAuthorizationResponse::CopyFrom(const RejectArmAuthorizationRespon MergeFrom(from); } -PROTOBUF_NOINLINE bool RejectArmAuthorizationResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* RejectArmAuthorizationResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void RejectArmAuthorizationResponse::InternalSwap(RejectArmAuthorizationResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1380,9 +1673,7 @@ void RejectArmAuthorizationResponse::InternalSwap(RejectArmAuthorizationResponse } ::google::protobuf::Metadata RejectArmAuthorizationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[5]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1391,25 +1682,33 @@ class ArmAuthorizerServerResult::_Internal { }; ArmAuthorizerServerResult::ArmAuthorizerServerResult(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) } inline PROTOBUF_NDEBUG_INLINE ArmAuthorizerServerResult::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& from_msg) : result_str_(arena, from.result_str_), _cached_size_{0} {} ArmAuthorizerServerResult::ArmAuthorizerServerResult( ::google::protobuf::Arena* arena, const ArmAuthorizerServerResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ArmAuthorizerServerResult* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.result_ = from._impl_.result_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) @@ -1426,34 +1725,51 @@ inline void ArmAuthorizerServerResult::SharedCtor(::_pb::Arena* arena) { } ArmAuthorizerServerResult::~ArmAuthorizerServerResult() { // @@protoc_insertion_point(destructor:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ArmAuthorizerServerResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.result_str_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ArmAuthorizerServerResult::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_str_.ClearToEmpty(); - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ArmAuthorizerServerResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ArmAuthorizerServerResult::SharedDtor(MessageLite& self) { + ArmAuthorizerServerResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.result_str_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* ArmAuthorizerServerResult::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ArmAuthorizerServerResult(arena); +} +constexpr auto ArmAuthorizerServerResult::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ArmAuthorizerServerResult), + alignof(ArmAuthorizerServerResult)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ArmAuthorizerServerResult::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ArmAuthorizerServerResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ArmAuthorizerServerResult::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ArmAuthorizerServerResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ArmAuthorizerServerResult::ByteSizeLong, + &ArmAuthorizerServerResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ArmAuthorizerServerResult, _impl_._cached_size_), + false, + }, + &ArmAuthorizerServerResult::kDescriptorMethods, + &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ArmAuthorizerServerResult::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 77, 2> ArmAuthorizerServerResult::_table_ = { { @@ -1466,8 +1782,12 @@ const ::_pbi::TcParseTable<1, 2, 0, 77, 2> ArmAuthorizerServerResult::_table_ = 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ArmAuthorizerServerResult_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // string result_str = 2; {::_pbi::TcParser::FastUS1, @@ -1493,69 +1813,89 @@ const ::_pbi::TcParseTable<1, 2, 0, 77, 2> ArmAuthorizerServerResult::_table_ = }}, }; -::uint8_t* ArmAuthorizerServerResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - const std::string& _s = this->_internal_result_str(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - return target; -} - -::size_t ArmAuthorizerServerResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ArmAuthorizerServerResult::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_result_str()); - } - - // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ArmAuthorizerServerResult::_class_data_ = { - ArmAuthorizerServerResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ArmAuthorizerServerResult::GetClassData() const { - return &_class_data_; + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ArmAuthorizerServerResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ArmAuthorizerServerResult::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ArmAuthorizerServerResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ArmAuthorizerServerResult::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ArmAuthorizerServerResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_result(), target); + } + + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + const std::string& _s = this_._internal_result_str(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ArmAuthorizerServerResult::ByteSizeLong(const MessageLite& base) { + const ArmAuthorizerServerResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ArmAuthorizerServerResult::ByteSizeLong() const { + const ArmAuthorizerServerResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_result_str()); + } + // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; + if (this_._internal_result() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ArmAuthorizerServerResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) @@ -1567,7 +1907,7 @@ void ArmAuthorizerServerResult::MergeImpl(::google::protobuf::Message& to_msg, c _this->_internal_set_result_str(from._internal_result_str()); } if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); + _this->_impl_.result_ = from._impl_.result_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1579,13 +1919,7 @@ void ArmAuthorizerServerResult::CopyFrom(const ArmAuthorizerServerResult& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool ArmAuthorizerServerResult::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ArmAuthorizerServerResult::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ArmAuthorizerServerResult::InternalSwap(ArmAuthorizerServerResult* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -1596,9 +1930,7 @@ void ArmAuthorizerServerResult::InternalSwap(ArmAuthorizerServerResult* PROTOBUF } ::google::protobuf::Metadata ArmAuthorizerServerResult::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_getter, &descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_once, - file_level_metadata_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto[6]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) } // namespace arm_authorizer_server @@ -1609,4 +1941,8 @@ namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.h b/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.h index 56ccb4f480..12c5cf6f5a 100644 --- a/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.h +++ b/src/mavsdk_server/src/generated/arm_authorizer_server/arm_authorizer_server.pb.h @@ -1,28 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: arm_authorizer_server/arm_authorizer_server.proto -// Protobuf C++ Version: 4.25.1 +// Protobuf C++ Version: 5.29.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh +#ifndef arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh +#define arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" @@ -32,6 +26,7 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_reflection.h" @@ -47,7 +42,8 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal } // namespace protobuf } // namespace google @@ -170,31 +166,33 @@ inline bool RejectionReason_Parse(absl::string_view name, RejectionReason* value // ------------------------------------------------------------------- -class SubscribeArmAuthorizationRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) */ { +class SubscribeArmAuthorizationRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) */ { public: inline SubscribeArmAuthorizationRequest() : SubscribeArmAuthorizationRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeArmAuthorizationRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeArmAuthorizationRequest(const SubscribeArmAuthorizationRequest& from) - : SubscribeArmAuthorizationRequest(nullptr, from) {} - SubscribeArmAuthorizationRequest(SubscribeArmAuthorizationRequest&& from) noexcept - : SubscribeArmAuthorizationRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeArmAuthorizationRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeArmAuthorizationRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SubscribeArmAuthorizationRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SubscribeArmAuthorizationRequest(const SubscribeArmAuthorizationRequest& from) : SubscribeArmAuthorizationRequest(nullptr, from) {} + inline SubscribeArmAuthorizationRequest(SubscribeArmAuthorizationRequest&& from) noexcept + : SubscribeArmAuthorizationRequest(nullptr, std::move(from)) {} inline SubscribeArmAuthorizationRequest& operator=(const SubscribeArmAuthorizationRequest& from) { CopyFrom(from); return *this; } inline SubscribeArmAuthorizationRequest& operator=(SubscribeArmAuthorizationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -225,22 +223,13 @@ class SubscribeArmAuthorizationRequest final : } static inline const SubscribeArmAuthorizationRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeArmAuthorizationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SubscribeArmAuthorizationRequest& a, SubscribeArmAuthorizationRequest& b) { - a.Swap(&b); + &_SubscribeArmAuthorizationRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SubscribeArmAuthorizationRequest& a, SubscribeArmAuthorizationRequest& b) { a.Swap(&b); } inline void Swap(SubscribeArmAuthorizationRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -254,8 +243,8 @@ class SubscribeArmAuthorizationRequest final : // implements Message ---------------------------------------------- - SubscribeArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeArmAuthorizationRequest& from) { @@ -265,27 +254,43 @@ class SubscribeArmAuthorizationRequest final : void MergeFrom(const SubscribeArmAuthorizationRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest"; } + + protected: explicit SubscribeArmAuthorizationRequest(::google::protobuf::Arena* arena); SubscribeArmAuthorizationRequest(::google::protobuf::Arena* arena, const SubscribeArmAuthorizationRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeArmAuthorizationRequest(::google::protobuf::Arena* arena, SubscribeArmAuthorizationRequest&& from) noexcept + : SubscribeArmAuthorizationRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.SubscribeArmAuthorizationRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -294,44 +299,47 @@ class SubscribeArmAuthorizationRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeArmAuthorizationRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RejectArmAuthorizationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) */ { +class RejectArmAuthorizationRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) */ { public: inline RejectArmAuthorizationRequest() : RejectArmAuthorizationRequest(nullptr) {} - ~RejectArmAuthorizationRequest() override; - template - explicit PROTOBUF_CONSTEXPR RejectArmAuthorizationRequest(::google::protobuf::internal::ConstantInitialized); - - inline RejectArmAuthorizationRequest(const RejectArmAuthorizationRequest& from) - : RejectArmAuthorizationRequest(nullptr, from) {} - RejectArmAuthorizationRequest(RejectArmAuthorizationRequest&& from) noexcept - : RejectArmAuthorizationRequest() { - *this = ::std::move(from); + ~RejectArmAuthorizationRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RejectArmAuthorizationRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RejectArmAuthorizationRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR RejectArmAuthorizationRequest( + ::google::protobuf::internal::ConstantInitialized); + inline RejectArmAuthorizationRequest(const RejectArmAuthorizationRequest& from) : RejectArmAuthorizationRequest(nullptr, from) {} + inline RejectArmAuthorizationRequest(RejectArmAuthorizationRequest&& from) noexcept + : RejectArmAuthorizationRequest(nullptr, std::move(from)) {} inline RejectArmAuthorizationRequest& operator=(const RejectArmAuthorizationRequest& from) { CopyFrom(from); return *this; } inline RejectArmAuthorizationRequest& operator=(RejectArmAuthorizationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -362,22 +370,13 @@ class RejectArmAuthorizationRequest final : } static inline const RejectArmAuthorizationRequest* internal_default_instance() { return reinterpret_cast( - &_RejectArmAuthorizationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(RejectArmAuthorizationRequest& a, RejectArmAuthorizationRequest& b) { - a.Swap(&b); + &_RejectArmAuthorizationRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(RejectArmAuthorizationRequest& a, RejectArmAuthorizationRequest& b) { a.Swap(&b); } inline void Swap(RejectArmAuthorizationRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -391,52 +390,74 @@ class RejectArmAuthorizationRequest final : // implements Message ---------------------------------------------- - RejectArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RejectArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const RejectArmAuthorizationRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RejectArmAuthorizationRequest& from) { - RejectArmAuthorizationRequest::MergeImpl(*this, from); - } + void MergeFrom(const RejectArmAuthorizationRequest& from) { RejectArmAuthorizationRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(RejectArmAuthorizationRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest"; - } - protected: + protected: explicit RejectArmAuthorizationRequest(::google::protobuf::Arena* arena); RejectArmAuthorizationRequest(::google::protobuf::Arena* arena, const RejectArmAuthorizationRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + RejectArmAuthorizationRequest(::google::protobuf::Arena* arena, RejectArmAuthorizationRequest&& from) noexcept + : RejectArmAuthorizationRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kTemporarilyFieldNumber = 1, kReasonFieldNumber = 2, @@ -475,12 +496,12 @@ class RejectArmAuthorizationRequest final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 3, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -488,49 +509,52 @@ class RejectArmAuthorizationRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const RejectArmAuthorizationRequest& from_msg); bool temporarily_; int reason_; ::int32_t extra_info_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ArmAuthorizerServerResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) */ { +class ArmAuthorizerServerResult final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) */ { public: inline ArmAuthorizerServerResult() : ArmAuthorizerServerResult(nullptr) {} - ~ArmAuthorizerServerResult() override; - template - explicit PROTOBUF_CONSTEXPR ArmAuthorizerServerResult(::google::protobuf::internal::ConstantInitialized); - - inline ArmAuthorizerServerResult(const ArmAuthorizerServerResult& from) - : ArmAuthorizerServerResult(nullptr, from) {} - ArmAuthorizerServerResult(ArmAuthorizerServerResult&& from) noexcept - : ArmAuthorizerServerResult() { - *this = ::std::move(from); + ~ArmAuthorizerServerResult() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmAuthorizerServerResult* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmAuthorizerServerResult)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ArmAuthorizerServerResult( + ::google::protobuf::internal::ConstantInitialized); + inline ArmAuthorizerServerResult(const ArmAuthorizerServerResult& from) : ArmAuthorizerServerResult(nullptr, from) {} + inline ArmAuthorizerServerResult(ArmAuthorizerServerResult&& from) noexcept + : ArmAuthorizerServerResult(nullptr, std::move(from)) {} inline ArmAuthorizerServerResult& operator=(const ArmAuthorizerServerResult& from) { CopyFrom(from); return *this; } inline ArmAuthorizerServerResult& operator=(ArmAuthorizerServerResult&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -561,22 +585,13 @@ class ArmAuthorizerServerResult final : } static inline const ArmAuthorizerServerResult* internal_default_instance() { return reinterpret_cast( - &_ArmAuthorizerServerResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(ArmAuthorizerServerResult& a, ArmAuthorizerServerResult& b) { - a.Swap(&b); + &_ArmAuthorizerServerResult_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + friend void swap(ArmAuthorizerServerResult& a, ArmAuthorizerServerResult& b) { a.Swap(&b); } inline void Swap(ArmAuthorizerServerResult* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -590,50 +605,72 @@ class ArmAuthorizerServerResult final : // implements Message ---------------------------------------------- - ArmAuthorizerServerResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ArmAuthorizerServerResult* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ArmAuthorizerServerResult& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmAuthorizerServerResult& from) { - ArmAuthorizerServerResult::MergeImpl(*this, from); - } + void MergeFrom(const ArmAuthorizerServerResult& from) { ArmAuthorizerServerResult::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ArmAuthorizerServerResult* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult"; - } - protected: + protected: explicit ArmAuthorizerServerResult(::google::protobuf::Arena* arena); ArmAuthorizerServerResult(::google::protobuf::Arena* arena, const ArmAuthorizerServerResult& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ArmAuthorizerServerResult(::google::protobuf::Arena* arena, ArmAuthorizerServerResult&& from) noexcept + : ArmAuthorizerServerResult(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - using Result = ArmAuthorizerServerResult_Result; static constexpr Result RESULT_UNKNOWN = ArmAuthorizerServerResult_Result_RESULT_UNKNOWN; static constexpr Result RESULT_SUCCESS = ArmAuthorizerServerResult_Result_RESULT_SUCCESS; @@ -656,7 +693,6 @@ class ArmAuthorizerServerResult final : } // accessors ------------------------------------------------------- - enum : int { kResultStrFieldNumber = 2, kResultFieldNumber = 1, @@ -690,12 +726,12 @@ class ArmAuthorizerServerResult final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, 77, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -703,48 +739,51 @@ class ArmAuthorizerServerResult final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ArmAuthorizerServerResult& from_msg); ::google::protobuf::internal::ArenaStringPtr result_str_; int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ArmAuthorizationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) */ { +class ArmAuthorizationResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) */ { public: inline ArmAuthorizationResponse() : ArmAuthorizationResponse(nullptr) {} - ~ArmAuthorizationResponse() override; - template - explicit PROTOBUF_CONSTEXPR ArmAuthorizationResponse(::google::protobuf::internal::ConstantInitialized); - - inline ArmAuthorizationResponse(const ArmAuthorizationResponse& from) - : ArmAuthorizationResponse(nullptr, from) {} - ArmAuthorizationResponse(ArmAuthorizationResponse&& from) noexcept - : ArmAuthorizationResponse() { - *this = ::std::move(from); + ~ArmAuthorizationResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ArmAuthorizationResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ArmAuthorizationResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ArmAuthorizationResponse( + ::google::protobuf::internal::ConstantInitialized); + inline ArmAuthorizationResponse(const ArmAuthorizationResponse& from) : ArmAuthorizationResponse(nullptr, from) {} + inline ArmAuthorizationResponse(ArmAuthorizationResponse&& from) noexcept + : ArmAuthorizationResponse(nullptr, std::move(from)) {} inline ArmAuthorizationResponse& operator=(const ArmAuthorizationResponse& from) { CopyFrom(from); return *this; } inline ArmAuthorizationResponse& operator=(ArmAuthorizationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -775,22 +814,13 @@ class ArmAuthorizationResponse final : } static inline const ArmAuthorizationResponse* internal_default_instance() { return reinterpret_cast( - &_ArmAuthorizationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(ArmAuthorizationResponse& a, ArmAuthorizationResponse& b) { - a.Swap(&b); + &_ArmAuthorizationResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(ArmAuthorizationResponse& a, ArmAuthorizationResponse& b) { a.Swap(&b); } inline void Swap(ArmAuthorizationResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -804,52 +834,74 @@ class ArmAuthorizationResponse final : // implements Message ---------------------------------------------- - ArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ArmAuthorizationResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ArmAuthorizationResponse& from) { - ArmAuthorizationResponse::MergeImpl(*this, from); - } + void MergeFrom(const ArmAuthorizationResponse& from) { ArmAuthorizationResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ArmAuthorizationResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse"; - } - protected: + protected: explicit ArmAuthorizationResponse(::google::protobuf::Arena* arena); ArmAuthorizationResponse(::google::protobuf::Arena* arena, const ArmAuthorizationResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ArmAuthorizationResponse(::google::protobuf::Arena* arena, ArmAuthorizationResponse&& from) noexcept + : ArmAuthorizationResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kSystemIdFieldNumber = 1, }; @@ -866,12 +918,12 @@ class ArmAuthorizationResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -879,47 +931,50 @@ class ArmAuthorizationResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ArmAuthorizationResponse& from_msg); ::uint32_t system_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AcceptArmAuthorizationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) */ { +class AcceptArmAuthorizationRequest final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) */ { public: inline AcceptArmAuthorizationRequest() : AcceptArmAuthorizationRequest(nullptr) {} - ~AcceptArmAuthorizationRequest() override; - template - explicit PROTOBUF_CONSTEXPR AcceptArmAuthorizationRequest(::google::protobuf::internal::ConstantInitialized); - - inline AcceptArmAuthorizationRequest(const AcceptArmAuthorizationRequest& from) - : AcceptArmAuthorizationRequest(nullptr, from) {} - AcceptArmAuthorizationRequest(AcceptArmAuthorizationRequest&& from) noexcept - : AcceptArmAuthorizationRequest() { - *this = ::std::move(from); + ~AcceptArmAuthorizationRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AcceptArmAuthorizationRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AcceptArmAuthorizationRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR AcceptArmAuthorizationRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline AcceptArmAuthorizationRequest(const AcceptArmAuthorizationRequest& from) : AcceptArmAuthorizationRequest(nullptr, from) {} + inline AcceptArmAuthorizationRequest(AcceptArmAuthorizationRequest&& from) noexcept + : AcceptArmAuthorizationRequest(nullptr, std::move(from)) {} inline AcceptArmAuthorizationRequest& operator=(const AcceptArmAuthorizationRequest& from) { CopyFrom(from); return *this; } inline AcceptArmAuthorizationRequest& operator=(AcceptArmAuthorizationRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -950,22 +1005,13 @@ class AcceptArmAuthorizationRequest final : } static inline const AcceptArmAuthorizationRequest* internal_default_instance() { return reinterpret_cast( - &_AcceptArmAuthorizationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(AcceptArmAuthorizationRequest& a, AcceptArmAuthorizationRequest& b) { - a.Swap(&b); + &_AcceptArmAuthorizationRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(AcceptArmAuthorizationRequest& a, AcceptArmAuthorizationRequest& b) { a.Swap(&b); } inline void Swap(AcceptArmAuthorizationRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -979,52 +1025,74 @@ class AcceptArmAuthorizationRequest final : // implements Message ---------------------------------------------- - AcceptArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AcceptArmAuthorizationRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const AcceptArmAuthorizationRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AcceptArmAuthorizationRequest& from) { - AcceptArmAuthorizationRequest::MergeImpl(*this, from); - } + void MergeFrom(const AcceptArmAuthorizationRequest& from) { AcceptArmAuthorizationRequest::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(AcceptArmAuthorizationRequest* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest"; - } - protected: + protected: explicit AcceptArmAuthorizationRequest(::google::protobuf::Arena* arena); AcceptArmAuthorizationRequest(::google::protobuf::Arena* arena, const AcceptArmAuthorizationRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + AcceptArmAuthorizationRequest(::google::protobuf::Arena* arena, AcceptArmAuthorizationRequest&& from) noexcept + : AcceptArmAuthorizationRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kValidTimeSFieldNumber = 1, }; @@ -1041,12 +1109,12 @@ class AcceptArmAuthorizationRequest final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1054,47 +1122,50 @@ class AcceptArmAuthorizationRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const AcceptArmAuthorizationRequest& from_msg); ::int32_t valid_time_s_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class RejectArmAuthorizationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) */ { +class RejectArmAuthorizationResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) */ { public: inline RejectArmAuthorizationResponse() : RejectArmAuthorizationResponse(nullptr) {} - ~RejectArmAuthorizationResponse() override; - template - explicit PROTOBUF_CONSTEXPR RejectArmAuthorizationResponse(::google::protobuf::internal::ConstantInitialized); - - inline RejectArmAuthorizationResponse(const RejectArmAuthorizationResponse& from) - : RejectArmAuthorizationResponse(nullptr, from) {} - RejectArmAuthorizationResponse(RejectArmAuthorizationResponse&& from) noexcept - : RejectArmAuthorizationResponse() { - *this = ::std::move(from); + ~RejectArmAuthorizationResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(RejectArmAuthorizationResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RejectArmAuthorizationResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR RejectArmAuthorizationResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline RejectArmAuthorizationResponse(const RejectArmAuthorizationResponse& from) : RejectArmAuthorizationResponse(nullptr, from) {} + inline RejectArmAuthorizationResponse(RejectArmAuthorizationResponse&& from) noexcept + : RejectArmAuthorizationResponse(nullptr, std::move(from)) {} inline RejectArmAuthorizationResponse& operator=(const RejectArmAuthorizationResponse& from) { CopyFrom(from); return *this; } inline RejectArmAuthorizationResponse& operator=(RejectArmAuthorizationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1125,22 +1196,13 @@ class RejectArmAuthorizationResponse final : } static inline const RejectArmAuthorizationResponse* internal_default_instance() { return reinterpret_cast( - &_RejectArmAuthorizationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(RejectArmAuthorizationResponse& a, RejectArmAuthorizationResponse& b) { - a.Swap(&b); + &_RejectArmAuthorizationResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 5; + friend void swap(RejectArmAuthorizationResponse& a, RejectArmAuthorizationResponse& b) { a.Swap(&b); } inline void Swap(RejectArmAuthorizationResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1154,52 +1216,74 @@ class RejectArmAuthorizationResponse final : // implements Message ---------------------------------------------- - RejectArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RejectArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const RejectArmAuthorizationResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const RejectArmAuthorizationResponse& from) { - RejectArmAuthorizationResponse::MergeImpl(*this, from); - } + void MergeFrom(const RejectArmAuthorizationResponse& from) { RejectArmAuthorizationResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(RejectArmAuthorizationResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse"; - } - protected: + protected: explicit RejectArmAuthorizationResponse(::google::protobuf::Arena* arena); RejectArmAuthorizationResponse(::google::protobuf::Arena* arena, const RejectArmAuthorizationResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + RejectArmAuthorizationResponse(::google::protobuf::Arena* arena, RejectArmAuthorizationResponse&& from) noexcept + : RejectArmAuthorizationResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kArmAuthorizerServerResultFieldNumber = 1, }; @@ -1221,12 +1305,12 @@ class RejectArmAuthorizationResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1234,48 +1318,51 @@ class RejectArmAuthorizationResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const RejectArmAuthorizationResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* arm_authorizer_server_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AcceptArmAuthorizationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) */ { +class AcceptArmAuthorizationResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) */ { public: inline AcceptArmAuthorizationResponse() : AcceptArmAuthorizationResponse(nullptr) {} - ~AcceptArmAuthorizationResponse() override; - template - explicit PROTOBUF_CONSTEXPR AcceptArmAuthorizationResponse(::google::protobuf::internal::ConstantInitialized); - - inline AcceptArmAuthorizationResponse(const AcceptArmAuthorizationResponse& from) - : AcceptArmAuthorizationResponse(nullptr, from) {} - AcceptArmAuthorizationResponse(AcceptArmAuthorizationResponse&& from) noexcept - : AcceptArmAuthorizationResponse() { - *this = ::std::move(from); + ~AcceptArmAuthorizationResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AcceptArmAuthorizationResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AcceptArmAuthorizationResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR AcceptArmAuthorizationResponse( + ::google::protobuf::internal::ConstantInitialized); + inline AcceptArmAuthorizationResponse(const AcceptArmAuthorizationResponse& from) : AcceptArmAuthorizationResponse(nullptr, from) {} + inline AcceptArmAuthorizationResponse(AcceptArmAuthorizationResponse&& from) noexcept + : AcceptArmAuthorizationResponse(nullptr, std::move(from)) {} inline AcceptArmAuthorizationResponse& operator=(const AcceptArmAuthorizationResponse& from) { CopyFrom(from); return *this; } inline AcceptArmAuthorizationResponse& operator=(AcceptArmAuthorizationResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1306,22 +1393,13 @@ class AcceptArmAuthorizationResponse final : } static inline const AcceptArmAuthorizationResponse* internal_default_instance() { return reinterpret_cast( - &_AcceptArmAuthorizationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(AcceptArmAuthorizationResponse& a, AcceptArmAuthorizationResponse& b) { - a.Swap(&b); + &_AcceptArmAuthorizationResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(AcceptArmAuthorizationResponse& a, AcceptArmAuthorizationResponse& b) { a.Swap(&b); } inline void Swap(AcceptArmAuthorizationResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1335,52 +1413,74 @@ class AcceptArmAuthorizationResponse final : // implements Message ---------------------------------------------- - AcceptArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AcceptArmAuthorizationResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const AcceptArmAuthorizationResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const AcceptArmAuthorizationResponse& from) { - AcceptArmAuthorizationResponse::MergeImpl(*this, from); - } + void MergeFrom(const AcceptArmAuthorizationResponse& from) { AcceptArmAuthorizationResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(AcceptArmAuthorizationResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse"; - } - protected: + protected: explicit AcceptArmAuthorizationResponse(::google::protobuf::Arena* arena); AcceptArmAuthorizationResponse(::google::protobuf::Arena* arena, const AcceptArmAuthorizationResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + AcceptArmAuthorizationResponse(::google::protobuf::Arena* arena, AcceptArmAuthorizationResponse&& from) noexcept + : AcceptArmAuthorizationResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kArmAuthorizerServerResultFieldNumber = 1, }; @@ -1402,12 +1502,12 @@ class AcceptArmAuthorizationResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1415,15 +1515,15 @@ class AcceptArmAuthorizationResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const AcceptArmAuthorizationResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* arm_authorizer_server_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; @@ -1453,7 +1553,7 @@ class AcceptArmAuthorizationResponse final : // uint32 system_id = 1; inline void ArmAuthorizationResponse::clear_system_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.system_id_ = 0u; } inline ::uint32_t ArmAuthorizationResponse::system_id() const { @@ -1465,12 +1565,11 @@ inline void ArmAuthorizationResponse::set_system_id(::uint32_t value) { // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.ArmAuthorizationResponse.system_id) } inline ::uint32_t ArmAuthorizationResponse::_internal_system_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.system_id_; } inline void ArmAuthorizationResponse::_internal_set_system_id(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.system_id_ = value; } @@ -1480,7 +1579,7 @@ inline void ArmAuthorizationResponse::_internal_set_system_id(::uint32_t value) // int32 valid_time_s = 1; inline void AcceptArmAuthorizationRequest::clear_valid_time_s() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.valid_time_s_ = 0; } inline ::int32_t AcceptArmAuthorizationRequest::valid_time_s() const { @@ -1492,12 +1591,11 @@ inline void AcceptArmAuthorizationRequest::set_valid_time_s(::int32_t value) { // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationRequest.valid_time_s) } inline ::int32_t AcceptArmAuthorizationRequest::_internal_valid_time_s() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.valid_time_s_; } inline void AcceptArmAuthorizationRequest::_internal_set_valid_time_s(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.valid_time_s_ = value; } @@ -1512,12 +1610,12 @@ inline bool AcceptArmAuthorizationResponse::has_arm_authorizer_server_result() c return value; } inline void AcceptArmAuthorizationResponse::clear_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.arm_authorizer_server_result_ != nullptr) _impl_.arm_authorizer_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& AcceptArmAuthorizationResponse::_internal_arm_authorizer_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* p = _impl_.arm_authorizer_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::arm_authorizer_server::_ArmAuthorizerServerResult_default_instance_); } @@ -1526,7 +1624,7 @@ inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& Ac return _internal_arm_authorizer_server_result(); } inline void AcceptArmAuthorizationResponse::unsafe_arena_set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.arm_authorizer_server_result_); } @@ -1539,26 +1637,26 @@ inline void AcceptArmAuthorizationResponse::unsafe_arena_set_allocated_arm_autho // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) } inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* AcceptArmAuthorizationResponse::release_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* released = _impl_.arm_authorizer_server_result_; _impl_.arm_authorizer_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* AcceptArmAuthorizationResponse::unsafe_arena_release_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -1567,28 +1665,28 @@ inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* AcceptAr return temp; } inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* AcceptArmAuthorizationResponse::_internal_mutable_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.arm_authorizer_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(GetArena()); _impl_.arm_authorizer_server_result_ = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(p); } return _impl_.arm_authorizer_server_result_; } inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* AcceptArmAuthorizationResponse::mutable_arm_authorizer_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* _msg = _internal_mutable_arm_authorizer_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.arm_authorizer_server.AcceptArmAuthorizationResponse.arm_authorizer_server_result) return _msg; } inline void AcceptArmAuthorizationResponse::set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(_impl_.arm_authorizer_server_result_); + delete (_impl_.arm_authorizer_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -1607,7 +1705,7 @@ inline void AcceptArmAuthorizationResponse::set_allocated_arm_authorizer_server_ // bool temporarily = 1; inline void RejectArmAuthorizationRequest::clear_temporarily() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.temporarily_ = false; } inline bool RejectArmAuthorizationRequest::temporarily() const { @@ -1619,18 +1717,17 @@ inline void RejectArmAuthorizationRequest::set_temporarily(bool value) { // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.temporarily) } inline bool RejectArmAuthorizationRequest::_internal_temporarily() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.temporarily_; } inline void RejectArmAuthorizationRequest::_internal_set_temporarily(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.temporarily_ = value; } // .mavsdk.rpc.arm_authorizer_server.RejectionReason reason = 2; inline void RejectArmAuthorizationRequest::clear_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reason_ = 0; } inline ::mavsdk::rpc::arm_authorizer_server::RejectionReason RejectArmAuthorizationRequest::reason() const { @@ -1642,18 +1739,17 @@ inline void RejectArmAuthorizationRequest::set_reason(::mavsdk::rpc::arm_authori // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.reason) } inline ::mavsdk::rpc::arm_authorizer_server::RejectionReason RejectArmAuthorizationRequest::_internal_reason() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::mavsdk::rpc::arm_authorizer_server::RejectionReason>(_impl_.reason_); } inline void RejectArmAuthorizationRequest::_internal_set_reason(::mavsdk::rpc::arm_authorizer_server::RejectionReason value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reason_ = value; } // int32 extra_info = 3; inline void RejectArmAuthorizationRequest::clear_extra_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extra_info_ = 0; } inline ::int32_t RejectArmAuthorizationRequest::extra_info() const { @@ -1665,12 +1761,11 @@ inline void RejectArmAuthorizationRequest::set_extra_info(::int32_t value) { // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationRequest.extra_info) } inline ::int32_t RejectArmAuthorizationRequest::_internal_extra_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extra_info_; } inline void RejectArmAuthorizationRequest::_internal_set_extra_info(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extra_info_ = value; } @@ -1685,12 +1780,12 @@ inline bool RejectArmAuthorizationResponse::has_arm_authorizer_server_result() c return value; } inline void RejectArmAuthorizationResponse::clear_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.arm_authorizer_server_result_ != nullptr) _impl_.arm_authorizer_server_result_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& RejectArmAuthorizationResponse::_internal_arm_authorizer_server_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* p = _impl_.arm_authorizer_server_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::arm_authorizer_server::_ArmAuthorizerServerResult_default_instance_); } @@ -1699,7 +1794,7 @@ inline const ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult& Re return _internal_arm_authorizer_server_result(); } inline void RejectArmAuthorizationResponse::unsafe_arena_set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.arm_authorizer_server_result_); } @@ -1712,26 +1807,26 @@ inline void RejectArmAuthorizationResponse::unsafe_arena_set_allocated_arm_autho // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) } inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* RejectArmAuthorizationResponse::release_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* released = _impl_.arm_authorizer_server_result_; _impl_.arm_authorizer_server_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* RejectArmAuthorizationResponse::unsafe_arena_release_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -1740,28 +1835,28 @@ inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* RejectAr return temp; } inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* RejectArmAuthorizationResponse::_internal_mutable_arm_authorizer_server_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.arm_authorizer_server_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult>(GetArena()); _impl_.arm_authorizer_server_result_ = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(p); } return _impl_.arm_authorizer_server_result_; } inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* RejectArmAuthorizationResponse::mutable_arm_authorizer_server_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* _msg = _internal_mutable_arm_authorizer_server_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.arm_authorizer_server.RejectArmAuthorizationResponse.arm_authorizer_server_result) return _msg; } inline void RejectArmAuthorizationResponse::set_allocated_arm_authorizer_server_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(_impl_.arm_authorizer_server_result_); + delete (_impl_.arm_authorizer_server_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -1780,7 +1875,7 @@ inline void RejectArmAuthorizationResponse::set_allocated_arm_authorizer_server_ // .mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.Result result = 1; inline void ArmAuthorizerServerResult::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = 0; } inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result ArmAuthorizerServerResult::result() const { @@ -1792,18 +1887,17 @@ inline void ArmAuthorizerServerResult::set_result(::mavsdk::rpc::arm_authorizer_ // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result) } inline ::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result ArmAuthorizerServerResult::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result>(_impl_.result_); } inline void ArmAuthorizerServerResult::_internal_set_result(::mavsdk::rpc::arm_authorizer_server::ArmAuthorizerServerResult_Result value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = value; } // string result_str = 2; inline void ArmAuthorizerServerResult::clear_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.ClearToEmpty(); } inline const std::string& ArmAuthorizerServerResult::result_str() const @@ -1814,8 +1908,7 @@ inline const std::string& ArmAuthorizerServerResult::result_str() const template inline PROTOBUF_ALWAYS_INLINE void ArmAuthorizerServerResult::set_result_str(Arg_&& arg, Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) } @@ -1825,32 +1918,28 @@ inline std::string* ArmAuthorizerServerResult::mutable_result_str() ABSL_ATTRIBU return _s; } inline const std::string& ArmAuthorizerServerResult::_internal_result_str() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.result_str_.Get(); } inline void ArmAuthorizerServerResult::_internal_set_result_str(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.Set(value, GetArena()); } inline std::string* ArmAuthorizerServerResult::_internal_mutable_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.result_str_.Mutable( GetArena()); } inline std::string* ArmAuthorizerServerResult::release_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) return _impl_.result_str_.Release(); } inline void ArmAuthorizerServerResult::set_allocated_result_str(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.result_str_.IsDefault()) { - _impl_.result_str_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.result_str_.IsDefault()) { + _impl_.result_str_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.arm_authorizer_server.ArmAuthorizerServerResult.result_str) } @@ -1887,4 +1976,4 @@ inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::arm_authorizer_ser #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh +#endif // arm_5fauthorizer_5fserver_2farm_5fauthorizer_5fserver_2eproto_2epb_2eh diff --git a/src/mavsdk_server/src/generated/calibration/calibration.pb.cc b/src/mavsdk_server/src/generated/calibration/calibration.pb.cc index fbb5ecf546..f9f4f635ef 100644 --- a/src/mavsdk_server/src/generated/calibration/calibration.pb.cc +++ b/src/mavsdk_server/src/generated/calibration/calibration.pb.cc @@ -1,17 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: calibration/calibration.proto +// Protobuf C++ Version: 5.29.1 #include "calibration/calibration.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -23,8 +27,14 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace calibration { - template -PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeCalibrateMagnetometerRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateMagnetometerRequestDefaultTypeInternal() {} @@ -35,8 +45,14 @@ struct SubscribeCalibrateMagnetometerRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateMagnetometerRequestDefaultTypeInternal _SubscribeCalibrateMagnetometerRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal() {} @@ -47,8 +63,14 @@ struct SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal _SubscribeCalibrateLevelHorizonRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeCalibrateGyroRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateGyroRequestDefaultTypeInternal() {} @@ -59,8 +81,14 @@ struct SubscribeCalibrateGyroRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateGyroRequestDefaultTypeInternal _SubscribeCalibrateGyroRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() {} @@ -71,8 +99,14 @@ struct SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal _SubscribeCalibrateGimbalAccelerometerRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeCalibrateAccelerometerRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateAccelerometerRequestDefaultTypeInternal() {} @@ -96,7 +130,13 @@ inline constexpr ProgressData::Impl_::Impl_( template PROTOBUF_CONSTEXPR ProgressData::ProgressData(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ProgressDataDefaultTypeInternal { PROTOBUF_CONSTEXPR ProgressDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ProgressDataDefaultTypeInternal() {} @@ -107,8 +147,14 @@ struct ProgressDataDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProgressDataDefaultTypeInternal _ProgressData_default_instance_; - template -PROTOBUF_CONSTEXPR CancelRequest::CancelRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR CancelRequest::CancelRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct CancelRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR CancelRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CancelRequestDefaultTypeInternal() {} @@ -130,7 +176,13 @@ inline constexpr CalibrationResult::Impl_::Impl_( template PROTOBUF_CONSTEXPR CalibrationResult::CalibrationResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CalibrationResultDefaultTypeInternal { PROTOBUF_CONSTEXPR CalibrationResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrationResultDefaultTypeInternal() {} @@ -149,7 +201,13 @@ inline constexpr CancelResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR CancelResponse::CancelResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CancelResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CancelResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CancelResponseDefaultTypeInternal() {} @@ -169,7 +227,13 @@ inline constexpr CalibrateMagnetometerResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CalibrateMagnetometerResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CalibrateMagnetometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateMagnetometerResponseDefaultTypeInternal() {} @@ -189,7 +253,13 @@ inline constexpr CalibrateLevelHorizonResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CalibrateLevelHorizonResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateLevelHorizonResponseDefaultTypeInternal() {} @@ -209,7 +279,13 @@ inline constexpr CalibrateGyroResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR CalibrateGyroResponse::CalibrateGyroResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CalibrateGyroResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CalibrateGyroResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateGyroResponseDefaultTypeInternal() {} @@ -229,7 +305,13 @@ inline constexpr CalibrateGimbalAccelerometerResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CalibrateGimbalAccelerometerResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateGimbalAccelerometerResponseDefaultTypeInternal() {} @@ -249,7 +331,13 @@ inline constexpr CalibrateAccelerometerResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CalibrateAccelerometerResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CalibrateAccelerometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateAccelerometerResponseDefaultTypeInternal() {} @@ -263,156 +351,156 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT } // namespace calibration } // namespace rpc } // namespace mavsdk -static ::_pb::Metadata file_level_metadata_calibration_2fcalibration_2eproto[14]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_calibration_2fcalibration_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_calibration_2fcalibration_2eproto = nullptr; -const ::uint32_t TableStruct_calibration_2fcalibration_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_.calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_.progress_data_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_.calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_.progress_data_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_.calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_.progress_data_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_.calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_.progress_data_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_.progress_data_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _impl_.calibration_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _impl_.result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _impl_.result_str_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.has_progress_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.progress_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.has_status_text_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.status_text_), +const ::uint32_t + TableStruct_calibration_2fcalibration_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _impl_.calibration_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _impl_.result_str_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.has_progress_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.progress_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.has_status_text_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.status_text_), }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest)}, {8, 18, -1, sizeof(::mavsdk::rpc::calibration::CalibrateGyroResponse)}, {20, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest)}, @@ -428,7 +516,6 @@ static const ::_pbi::MigrationSchema {118, -1, -1, sizeof(::mavsdk::rpc::calibration::CalibrationResult)}, {128, -1, -1, sizeof(::mavsdk::rpc::calibration::ProgressData)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::calibration::_SubscribeCalibrateGyroRequest_default_instance_._instance, &::mavsdk::rpc::calibration::_CalibrateGyroResponse_default_instance_._instance, @@ -445,7 +532,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::calibration::_CalibrationResult_default_instance_._instance, &::mavsdk::rpc::calibration::_ProgressData_default_instance_._instance, }; -const char descriptor_table_protodef_calibration_2fcalibration_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_calibration_2fcalibration_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\035calibration/calibration.proto\022\026mavsdk." "rpc.calibration\032\024mavsdk_options.proto\"\037\n" "\035SubscribeCalibrateGyroRequest\"\233\001\n\025Calib" @@ -521,7 +609,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_calibration_2fcalib &::descriptor_table_mavsdk_5foptions_2eproto, }; static ::absl::once_flag descriptor_table_calibration_2fcalibration_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_calibration_2fcalibration_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_calibration_2fcalibration_2eproto = { false, false, 2727, @@ -534,28 +622,9 @@ const ::_pbi::DescriptorTable descriptor_table_calibration_2fcalibration_2eproto schemas, file_default_instances, TableStruct_calibration_2fcalibration_2eproto::offsets, - file_level_metadata_calibration_2fcalibration_2eproto, file_level_enum_descriptors_calibration_2fcalibration_2eproto, file_level_service_descriptors_calibration_2fcalibration_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_calibration_2fcalibration_2eproto_getter() { - return &descriptor_table_calibration_2fcalibration_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_calibration_2fcalibration_2eproto(&descriptor_table_calibration_2fcalibration_2eproto); namespace mavsdk { namespace rpc { namespace calibration { @@ -596,13 +665,21 @@ class SubscribeCalibrateGyroRequest::_Internal { }; SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) } SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest( ::google::protobuf::Arena* arena, const SubscribeCalibrateGyroRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeCalibrateGyroRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -611,6 +688,68 @@ SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) } +inline void* SubscribeCalibrateGyroRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeCalibrateGyroRequest(arena); +} +constexpr auto SubscribeCalibrateGyroRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeCalibrateGyroRequest), + alignof(SubscribeCalibrateGyroRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeCalibrateGyroRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCalibrateGyroRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCalibrateGyroRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCalibrateGyroRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeCalibrateGyroRequest::ByteSizeLong, + &SubscribeCalibrateGyroRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCalibrateGyroRequest, _impl_._cached_size_), + false, + }, + &SubscribeCalibrateGyroRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeCalibrateGyroRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeCalibrateGyroRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -620,60 +759,53 @@ SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest( ::google::protobuf::Metadata SubscribeCalibrateGyroRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[0]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CalibrateGyroResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateGyroResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateGyroResponse* msg); - static void set_has_progress_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + 8 * PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGyroResponse::_Internal::calibration_result(const CalibrateGyroResponse* msg) { - return *msg->_impl_.calibration_result_; -} -const ::mavsdk::rpc::calibration::ProgressData& CalibrateGyroResponse::_Internal::progress_data(const CalibrateGyroResponse* msg) { - return *msg->_impl_.progress_data_; -} CalibrateGyroResponse::CalibrateGyroResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateGyroResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateGyroResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::calibration::CalibrateGyroResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} CalibrateGyroResponse::CalibrateGyroResponse( ::google::protobuf::Arena* arena, const CalibrateGyroResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CalibrateGyroResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? 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; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) + : nullptr; + _impl_.progress_data_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>( + arena, *from._impl_.progress_data_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateGyroResponse) } @@ -693,45 +825,52 @@ inline void CalibrateGyroResponse::SharedCtor(::_pb::Arena* arena) { } CalibrateGyroResponse::~CalibrateGyroResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateGyroResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrateGyroResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - delete _impl_.progress_data_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrateGyroResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.progress_data_ != nullptr); - _impl_.progress_data_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrateGyroResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void CalibrateGyroResponse::SharedDtor(MessageLite& self) { + CalibrateGyroResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + delete this_._impl_.progress_data_; + this_._impl_.~Impl_(); +} + +inline void* CalibrateGyroResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CalibrateGyroResponse(arena); +} +constexpr auto CalibrateGyroResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CalibrateGyroResponse), + alignof(CalibrateGyroResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CalibrateGyroResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrateGyroResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrateGyroResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrateGyroResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CalibrateGyroResponse::ByteSizeLong, + &CalibrateGyroResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_._cached_size_), + false, + }, + &CalibrateGyroResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CalibrateGyroResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateGyroResponse::_table_ = { { @@ -744,8 +883,12 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateGyroResponse::_table_ = { 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_CalibrateGyroResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrateGyroResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.calibration.ProgressData progress_data = 2; {::_pbi::TcParser::FastMtS1, @@ -769,74 +912,103 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateGyroResponse::_table_ = { }}, }; -::uint8_t* CalibrateGyroResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::progress_data(this), - _Internal::progress_data(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateGyroResponse) - return target; -} - -::size_t CalibrateGyroResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void CalibrateGyroResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateGyroResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrateGyroResponse::_class_data_ = { - CalibrateGyroResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrateGyroResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void CalibrateGyroResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* CalibrateGyroResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const CalibrateGyroResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* CalibrateGyroResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const CalibrateGyroResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateGyroResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.calibration_result_, this_._impl_.calibration_result_->GetCachedSize(), target, + stream); + } + + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.progress_data_, this_._impl_.progress_data_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateGyroResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t CalibrateGyroResponse::ByteSizeLong(const MessageLite& base) { + const CalibrateGyroResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t CalibrateGyroResponse::ByteSizeLong() const { + const CalibrateGyroResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateGyroResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.calibration_result_); + } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.progress_data_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void CalibrateGyroResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateGyroResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -845,14 +1017,25 @@ void CalibrateGyroResponse::MergeImpl(::google::protobuf::Message& to_msg, const cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( - from._internal_progress_data()); + ABSL_DCHECK(from._impl_.progress_data_ != nullptr); + if (_this->_impl_.progress_data_ == nullptr) { + _this->_impl_.progress_data_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_); + } else { + _this->_impl_.progress_data_->MergeFrom(*from._impl_.progress_data_); + } } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -863,13 +1046,7 @@ void CalibrateGyroResponse::CopyFrom(const CalibrateGyroResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CalibrateGyroResponse::IsInitialized() const { - return true; -} -::_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_); @@ -883,9 +1060,7 @@ void CalibrateGyroResponse::InternalSwap(CalibrateGyroResponse* PROTOBUF_RESTRIC } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -894,13 +1069,21 @@ class SubscribeCalibrateAccelerometerRequest::_Internal { }; SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) } SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest( ::google::protobuf::Arena* arena, const SubscribeCalibrateAccelerometerRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeCalibrateAccelerometerRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -909,6 +1092,68 @@ SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) } +inline void* SubscribeCalibrateAccelerometerRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeCalibrateAccelerometerRequest(arena); +} +constexpr auto SubscribeCalibrateAccelerometerRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeCalibrateAccelerometerRequest), + alignof(SubscribeCalibrateAccelerometerRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeCalibrateAccelerometerRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCalibrateAccelerometerRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCalibrateAccelerometerRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCalibrateAccelerometerRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeCalibrateAccelerometerRequest::ByteSizeLong, + &SubscribeCalibrateAccelerometerRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCalibrateAccelerometerRequest, _impl_._cached_size_), + false, + }, + &SubscribeCalibrateAccelerometerRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeCalibrateAccelerometerRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeCalibrateAccelerometerRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -918,60 +1163,53 @@ SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest( ::google::protobuf::Metadata SubscribeCalibrateAccelerometerRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[2]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CalibrateAccelerometerResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateAccelerometerResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateAccelerometerResponse* msg); - static void set_has_progress_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + 8 * PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateAccelerometerResponse::_Internal::calibration_result(const CalibrateAccelerometerResponse* msg) { - return *msg->_impl_.calibration_result_; -} -const ::mavsdk::rpc::calibration::ProgressData& CalibrateAccelerometerResponse::_Internal::progress_data(const CalibrateAccelerometerResponse* msg) { - return *msg->_impl_.progress_data_; -} CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateAccelerometerResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::calibration::CalibrateAccelerometerResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} CalibrateAccelerometerResponse::CalibrateAccelerometerResponse( ::google::protobuf::Arena* arena, const CalibrateAccelerometerResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CalibrateAccelerometerResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? 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; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) + : nullptr; + _impl_.progress_data_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>( + arena, *from._impl_.progress_data_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) } @@ -991,45 +1229,52 @@ inline void CalibrateAccelerometerResponse::SharedCtor(::_pb::Arena* arena) { } CalibrateAccelerometerResponse::~CalibrateAccelerometerResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrateAccelerometerResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - delete _impl_.progress_data_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrateAccelerometerResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.progress_data_ != nullptr); - _impl_.progress_data_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrateAccelerometerResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void CalibrateAccelerometerResponse::SharedDtor(MessageLite& self) { + CalibrateAccelerometerResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + delete this_._impl_.progress_data_; + this_._impl_.~Impl_(); +} + +inline void* CalibrateAccelerometerResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CalibrateAccelerometerResponse(arena); +} +constexpr auto CalibrateAccelerometerResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CalibrateAccelerometerResponse), + alignof(CalibrateAccelerometerResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CalibrateAccelerometerResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrateAccelerometerResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrateAccelerometerResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrateAccelerometerResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CalibrateAccelerometerResponse::ByteSizeLong, + &CalibrateAccelerometerResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_._cached_size_), + false, + }, + &CalibrateAccelerometerResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CalibrateAccelerometerResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateAccelerometerResponse::_table_ = { { @@ -1042,8 +1287,12 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateAccelerometerResponse::_table 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_CalibrateAccelerometerResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrateAccelerometerResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.calibration.ProgressData progress_data = 2; {::_pbi::TcParser::FastMtS1, @@ -1067,74 +1316,103 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateAccelerometerResponse::_table }}, }; -::uint8_t* CalibrateAccelerometerResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::progress_data(this), - _Internal::progress_data(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - return target; -} - -::size_t CalibrateAccelerometerResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void CalibrateAccelerometerResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrateAccelerometerResponse::_class_data_ = { - CalibrateAccelerometerResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrateAccelerometerResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void CalibrateAccelerometerResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* CalibrateAccelerometerResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const CalibrateAccelerometerResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* CalibrateAccelerometerResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const CalibrateAccelerometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.calibration_result_, this_._impl_.calibration_result_->GetCachedSize(), target, + stream); + } + + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.progress_data_, this_._impl_.progress_data_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t CalibrateAccelerometerResponse::ByteSizeLong(const MessageLite& base) { + const CalibrateAccelerometerResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t CalibrateAccelerometerResponse::ByteSizeLong() const { + const CalibrateAccelerometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.calibration_result_); + } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.progress_data_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void CalibrateAccelerometerResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -1143,14 +1421,25 @@ void CalibrateAccelerometerResponse::MergeImpl(::google::protobuf::Message& to_m cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( - from._internal_progress_data()); + ABSL_DCHECK(from._impl_.progress_data_ != nullptr); + if (_this->_impl_.progress_data_ == nullptr) { + _this->_impl_.progress_data_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_); + } else { + _this->_impl_.progress_data_->MergeFrom(*from._impl_.progress_data_); + } } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1161,13 +1450,7 @@ void CalibrateAccelerometerResponse::CopyFrom(const CalibrateAccelerometerRespon MergeFrom(from); } -PROTOBUF_NOINLINE bool CalibrateAccelerometerResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* CalibrateAccelerometerResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void CalibrateAccelerometerResponse::InternalSwap(CalibrateAccelerometerResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1181,9 +1464,7 @@ void CalibrateAccelerometerResponse::InternalSwap(CalibrateAccelerometerResponse } ::google::protobuf::Metadata CalibrateAccelerometerResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[3]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1192,13 +1473,21 @@ class SubscribeCalibrateMagnetometerRequest::_Internal { }; SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) } SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest( ::google::protobuf::Arena* arena, const SubscribeCalibrateMagnetometerRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeCalibrateMagnetometerRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1207,6 +1496,68 @@ SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) } +inline void* SubscribeCalibrateMagnetometerRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeCalibrateMagnetometerRequest(arena); +} +constexpr auto SubscribeCalibrateMagnetometerRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeCalibrateMagnetometerRequest), + alignof(SubscribeCalibrateMagnetometerRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeCalibrateMagnetometerRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCalibrateMagnetometerRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCalibrateMagnetometerRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCalibrateMagnetometerRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeCalibrateMagnetometerRequest::ByteSizeLong, + &SubscribeCalibrateMagnetometerRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCalibrateMagnetometerRequest, _impl_._cached_size_), + false, + }, + &SubscribeCalibrateMagnetometerRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeCalibrateMagnetometerRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeCalibrateMagnetometerRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -1216,60 +1567,53 @@ SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest( ::google::protobuf::Metadata SubscribeCalibrateMagnetometerRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[4]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CalibrateMagnetometerResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateMagnetometerResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateMagnetometerResponse* msg); - static void set_has_progress_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + 8 * PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateMagnetometerResponse::_Internal::calibration_result(const CalibrateMagnetometerResponse* msg) { - return *msg->_impl_.calibration_result_; -} -const ::mavsdk::rpc::calibration::ProgressData& CalibrateMagnetometerResponse::_Internal::progress_data(const CalibrateMagnetometerResponse* msg) { - return *msg->_impl_.progress_data_; -} CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateMagnetometerResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::calibration::CalibrateMagnetometerResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} CalibrateMagnetometerResponse::CalibrateMagnetometerResponse( ::google::protobuf::Arena* arena, const CalibrateMagnetometerResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CalibrateMagnetometerResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? 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; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) + : nullptr; + _impl_.progress_data_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>( + arena, *from._impl_.progress_data_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) } @@ -1289,45 +1633,52 @@ inline void CalibrateMagnetometerResponse::SharedCtor(::_pb::Arena* arena) { } CalibrateMagnetometerResponse::~CalibrateMagnetometerResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrateMagnetometerResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - delete _impl_.progress_data_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrateMagnetometerResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.progress_data_ != nullptr); - _impl_.progress_data_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrateMagnetometerResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void CalibrateMagnetometerResponse::SharedDtor(MessageLite& self) { + CalibrateMagnetometerResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + delete this_._impl_.progress_data_; + this_._impl_.~Impl_(); +} + +inline void* CalibrateMagnetometerResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CalibrateMagnetometerResponse(arena); +} +constexpr auto CalibrateMagnetometerResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CalibrateMagnetometerResponse), + alignof(CalibrateMagnetometerResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CalibrateMagnetometerResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrateMagnetometerResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrateMagnetometerResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrateMagnetometerResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CalibrateMagnetometerResponse::ByteSizeLong, + &CalibrateMagnetometerResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_._cached_size_), + false, + }, + &CalibrateMagnetometerResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CalibrateMagnetometerResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateMagnetometerResponse::_table_ = { { @@ -1340,8 +1691,12 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateMagnetometerResponse::_table_ 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_CalibrateMagnetometerResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrateMagnetometerResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.calibration.ProgressData progress_data = 2; {::_pbi::TcParser::FastMtS1, @@ -1365,74 +1720,103 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateMagnetometerResponse::_table_ }}, }; -::uint8_t* CalibrateMagnetometerResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::progress_data(this), - _Internal::progress_data(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - return target; -} - -::size_t CalibrateMagnetometerResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void CalibrateMagnetometerResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrateMagnetometerResponse::_class_data_ = { - CalibrateMagnetometerResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrateMagnetometerResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void CalibrateMagnetometerResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* CalibrateMagnetometerResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const CalibrateMagnetometerResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* CalibrateMagnetometerResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const CalibrateMagnetometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.calibration_result_, this_._impl_.calibration_result_->GetCachedSize(), target, + stream); + } + + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.progress_data_, this_._impl_.progress_data_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t CalibrateMagnetometerResponse::ByteSizeLong(const MessageLite& base) { + const CalibrateMagnetometerResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t CalibrateMagnetometerResponse::ByteSizeLong() const { + const CalibrateMagnetometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.calibration_result_); + } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.progress_data_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void CalibrateMagnetometerResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -1441,14 +1825,25 @@ void CalibrateMagnetometerResponse::MergeImpl(::google::protobuf::Message& to_ms cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( - from._internal_progress_data()); + ABSL_DCHECK(from._impl_.progress_data_ != nullptr); + if (_this->_impl_.progress_data_ == nullptr) { + _this->_impl_.progress_data_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_); + } else { + _this->_impl_.progress_data_->MergeFrom(*from._impl_.progress_data_); + } } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1459,13 +1854,7 @@ void CalibrateMagnetometerResponse::CopyFrom(const CalibrateMagnetometerResponse MergeFrom(from); } -PROTOBUF_NOINLINE bool CalibrateMagnetometerResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* CalibrateMagnetometerResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void CalibrateMagnetometerResponse::InternalSwap(CalibrateMagnetometerResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1479,9 +1868,7 @@ void CalibrateMagnetometerResponse::InternalSwap(CalibrateMagnetometerResponse* } ::google::protobuf::Metadata CalibrateMagnetometerResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[5]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1490,13 +1877,21 @@ class SubscribeCalibrateLevelHorizonRequest::_Internal { }; SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) } SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest( ::google::protobuf::Arena* arena, const SubscribeCalibrateLevelHorizonRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeCalibrateLevelHorizonRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1505,69 +1900,124 @@ SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) } +inline void* SubscribeCalibrateLevelHorizonRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeCalibrateLevelHorizonRequest(arena); +} +constexpr auto SubscribeCalibrateLevelHorizonRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeCalibrateLevelHorizonRequest), + alignof(SubscribeCalibrateLevelHorizonRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeCalibrateLevelHorizonRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCalibrateLevelHorizonRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCalibrateLevelHorizonRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCalibrateLevelHorizonRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeCalibrateLevelHorizonRequest::ByteSizeLong, + &SubscribeCalibrateLevelHorizonRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCalibrateLevelHorizonRequest, _impl_._cached_size_), + false, + }, + &SubscribeCalibrateLevelHorizonRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeCalibrateLevelHorizonRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeCalibrateLevelHorizonRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; + + + + + + - - - - - - ::google::protobuf::Metadata SubscribeCalibrateLevelHorizonRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[6]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CalibrateLevelHorizonResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateLevelHorizonResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateLevelHorizonResponse* msg); - static void set_has_progress_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + 8 * PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateLevelHorizonResponse::_Internal::calibration_result(const CalibrateLevelHorizonResponse* msg) { - return *msg->_impl_.calibration_result_; -} -const ::mavsdk::rpc::calibration::ProgressData& CalibrateLevelHorizonResponse::_Internal::progress_data(const CalibrateLevelHorizonResponse* msg) { - return *msg->_impl_.progress_data_; -} CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateLevelHorizonResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse( ::google::protobuf::Arena* arena, const CalibrateLevelHorizonResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CalibrateLevelHorizonResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? 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; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) + : nullptr; + _impl_.progress_data_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>( + arena, *from._impl_.progress_data_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) } @@ -1587,45 +2037,52 @@ inline void CalibrateLevelHorizonResponse::SharedCtor(::_pb::Arena* arena) { } CalibrateLevelHorizonResponse::~CalibrateLevelHorizonResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrateLevelHorizonResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - delete _impl_.progress_data_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrateLevelHorizonResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.progress_data_ != nullptr); - _impl_.progress_data_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrateLevelHorizonResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void CalibrateLevelHorizonResponse::SharedDtor(MessageLite& self) { + CalibrateLevelHorizonResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + delete this_._impl_.progress_data_; + this_._impl_.~Impl_(); +} + +inline void* CalibrateLevelHorizonResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CalibrateLevelHorizonResponse(arena); +} +constexpr auto CalibrateLevelHorizonResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CalibrateLevelHorizonResponse), + alignof(CalibrateLevelHorizonResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CalibrateLevelHorizonResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrateLevelHorizonResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrateLevelHorizonResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrateLevelHorizonResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CalibrateLevelHorizonResponse::ByteSizeLong, + &CalibrateLevelHorizonResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_._cached_size_), + false, + }, + &CalibrateLevelHorizonResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CalibrateLevelHorizonResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateLevelHorizonResponse::_table_ = { { @@ -1638,8 +2095,12 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateLevelHorizonResponse::_table_ 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_CalibrateLevelHorizonResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.calibration.ProgressData progress_data = 2; {::_pbi::TcParser::FastMtS1, @@ -1663,74 +2124,103 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateLevelHorizonResponse::_table_ }}, }; -::uint8_t* CalibrateLevelHorizonResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::progress_data(this), - _Internal::progress_data(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - return target; -} - -::size_t CalibrateLevelHorizonResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void CalibrateLevelHorizonResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrateLevelHorizonResponse::_class_data_ = { - CalibrateLevelHorizonResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrateLevelHorizonResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void CalibrateLevelHorizonResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* CalibrateLevelHorizonResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const CalibrateLevelHorizonResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* CalibrateLevelHorizonResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const CalibrateLevelHorizonResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.calibration_result_, this_._impl_.calibration_result_->GetCachedSize(), target, + stream); + } + + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.progress_data_, this_._impl_.progress_data_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t CalibrateLevelHorizonResponse::ByteSizeLong(const MessageLite& base) { + const CalibrateLevelHorizonResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t CalibrateLevelHorizonResponse::ByteSizeLong() const { + const CalibrateLevelHorizonResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.calibration_result_); + } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.progress_data_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void CalibrateLevelHorizonResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -1739,14 +2229,25 @@ void CalibrateLevelHorizonResponse::MergeImpl(::google::protobuf::Message& to_ms cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( - from._internal_progress_data()); + ABSL_DCHECK(from._impl_.progress_data_ != nullptr); + if (_this->_impl_.progress_data_ == nullptr) { + _this->_impl_.progress_data_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_); + } else { + _this->_impl_.progress_data_->MergeFrom(*from._impl_.progress_data_); + } } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1757,13 +2258,7 @@ void CalibrateLevelHorizonResponse::CopyFrom(const CalibrateLevelHorizonResponse MergeFrom(from); } -PROTOBUF_NOINLINE bool CalibrateLevelHorizonResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* CalibrateLevelHorizonResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void CalibrateLevelHorizonResponse::InternalSwap(CalibrateLevelHorizonResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -1777,9 +2272,7 @@ void CalibrateLevelHorizonResponse::InternalSwap(CalibrateLevelHorizonResponse* } ::google::protobuf::Metadata CalibrateLevelHorizonResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[7]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -1788,13 +2281,21 @@ class SubscribeCalibrateGimbalAccelerometerRequest::_Internal { }; SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) } SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest( ::google::protobuf::Arena* arena, const SubscribeCalibrateGimbalAccelerometerRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeCalibrateGimbalAccelerometerRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1803,6 +2304,68 @@ SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerome // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) } +inline void* SubscribeCalibrateGimbalAccelerometerRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeCalibrateGimbalAccelerometerRequest(arena); +} +constexpr auto SubscribeCalibrateGimbalAccelerometerRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeCalibrateGimbalAccelerometerRequest), + alignof(SubscribeCalibrateGimbalAccelerometerRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeCalibrateGimbalAccelerometerRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCalibrateGimbalAccelerometerRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCalibrateGimbalAccelerometerRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeCalibrateGimbalAccelerometerRequest::ByteSizeLong, + &SubscribeCalibrateGimbalAccelerometerRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCalibrateGimbalAccelerometerRequest, _impl_._cached_size_), + false, + }, + &SubscribeCalibrateGimbalAccelerometerRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeCalibrateGimbalAccelerometerRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeCalibrateGimbalAccelerometerRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -1812,60 +2375,53 @@ SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerome ::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]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CalibrateGimbalAccelerometerResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateGimbalAccelerometerResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateGimbalAccelerometerResponse* msg); - static void set_has_progress_data(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + 8 * PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGimbalAccelerometerResponse::_Internal::calibration_result(const CalibrateGimbalAccelerometerResponse* msg) { - return *msg->_impl_.calibration_result_; -} -const ::mavsdk::rpc::calibration::ProgressData& CalibrateGimbalAccelerometerResponse::_Internal::progress_data(const CalibrateGimbalAccelerometerResponse* msg) { - return *msg->_impl_.progress_data_; -} CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) } inline PROTOBUF_NDEBUG_INLINE CalibrateGimbalAccelerometerResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse( ::google::protobuf::Arena* arena, const CalibrateGimbalAccelerometerResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CalibrateGimbalAccelerometerResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? 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; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) + : nullptr; + _impl_.progress_data_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>( + arena, *from._impl_.progress_data_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) } @@ -1885,45 +2441,52 @@ inline void CalibrateGimbalAccelerometerResponse::SharedCtor(::_pb::Arena* arena } CalibrateGimbalAccelerometerResponse::~CalibrateGimbalAccelerometerResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrateGimbalAccelerometerResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - delete _impl_.progress_data_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrateGimbalAccelerometerResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.progress_data_ != nullptr); - _impl_.progress_data_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrateGimbalAccelerometerResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void CalibrateGimbalAccelerometerResponse::SharedDtor(MessageLite& self) { + CalibrateGimbalAccelerometerResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + delete this_._impl_.progress_data_; + this_._impl_.~Impl_(); +} + +inline void* CalibrateGimbalAccelerometerResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CalibrateGimbalAccelerometerResponse(arena); +} +constexpr auto CalibrateGimbalAccelerometerResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CalibrateGimbalAccelerometerResponse), + alignof(CalibrateGimbalAccelerometerResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CalibrateGimbalAccelerometerResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrateGimbalAccelerometerResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrateGimbalAccelerometerResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrateGimbalAccelerometerResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CalibrateGimbalAccelerometerResponse::ByteSizeLong, + &CalibrateGimbalAccelerometerResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_._cached_size_), + false, + }, + &CalibrateGimbalAccelerometerResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CalibrateGimbalAccelerometerResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateGimbalAccelerometerResponse::_table_ = { { @@ -1936,8 +2499,12 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateGimbalAccelerometerResponse:: 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_CalibrateGimbalAccelerometerResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.calibration.ProgressData progress_data = 2; {::_pbi::TcParser::FastMtS1, @@ -1961,74 +2528,103 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> CalibrateGimbalAccelerometerResponse:: }}, }; -::uint8_t* CalibrateGimbalAccelerometerResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::progress_data(this), - _Internal::progress_data(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - return target; -} - -::size_t CalibrateGimbalAccelerometerResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void CalibrateGimbalAccelerometerResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); } - - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.progress_data_); + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrateGimbalAccelerometerResponse::_class_data_ = { - CalibrateGimbalAccelerometerResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrateGimbalAccelerometerResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void CalibrateGimbalAccelerometerResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* CalibrateGimbalAccelerometerResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const CalibrateGimbalAccelerometerResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* CalibrateGimbalAccelerometerResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const CalibrateGimbalAccelerometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.calibration_result_, this_._impl_.calibration_result_->GetCachedSize(), target, + stream); + } + + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.progress_data_, this_._impl_.progress_data_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t CalibrateGimbalAccelerometerResponse::ByteSizeLong(const MessageLite& base) { + const CalibrateGimbalAccelerometerResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t CalibrateGimbalAccelerometerResponse::ByteSizeLong() const { + const CalibrateGimbalAccelerometerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.calibration_result_); + } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.progress_data_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void CalibrateGimbalAccelerometerResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -2037,14 +2633,25 @@ void CalibrateGimbalAccelerometerResponse::MergeImpl(::google::protobuf::Message cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( - from._internal_progress_data()); + ABSL_DCHECK(from._impl_.progress_data_ != nullptr); + if (_this->_impl_.progress_data_ == nullptr) { + _this->_impl_.progress_data_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::ProgressData>(arena, *from._impl_.progress_data_); + } else { + _this->_impl_.progress_data_->MergeFrom(*from._impl_.progress_data_); + } } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2055,13 +2662,7 @@ void CalibrateGimbalAccelerometerResponse::CopyFrom(const CalibrateGimbalAcceler MergeFrom(from); } -PROTOBUF_NOINLINE bool CalibrateGimbalAccelerometerResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* CalibrateGimbalAccelerometerResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void CalibrateGimbalAccelerometerResponse::InternalSwap(CalibrateGimbalAccelerometerResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -2075,9 +2676,7 @@ void CalibrateGimbalAccelerometerResponse::InternalSwap(CalibrateGimbalAccelerom } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2086,13 +2685,21 @@ class CancelRequest::_Internal { }; CancelRequest::CancelRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CancelRequest) } CancelRequest::CancelRequest( ::google::protobuf::Arena* arena, const CancelRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CancelRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2101,6 +2708,68 @@ CancelRequest::CancelRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CancelRequest) } +inline void* CancelRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CancelRequest(arena); +} +constexpr auto CancelRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CancelRequest), + alignof(CancelRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CancelRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CancelRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CancelRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CancelRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &CancelRequest::ByteSizeLong, + &CancelRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CancelRequest, _impl_._cached_size_), + false, + }, + &CancelRequest::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CancelRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> CancelRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CancelRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -2110,50 +2779,50 @@ CancelRequest::CancelRequest( ::google::protobuf::Metadata CancelRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, - file_level_metadata_calibration_2fcalibration_2eproto[10]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CancelResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CancelResponse* msg); - static void set_has_calibration_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::calibration::CalibrationResult& CancelResponse::_Internal::calibration_result(const CancelResponse* msg) { - return *msg->_impl_.calibration_result_; -} CancelResponse::CancelResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CancelResponse) } inline PROTOBUF_NDEBUG_INLINE CancelResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::calibration::CancelResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} CancelResponse::CancelResponse( ::google::protobuf::Arena* arena, const CancelResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CancelResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_) - : nullptr; + _impl_.calibration_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>( + arena, *from._impl_.calibration_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CancelResponse) } @@ -2168,38 +2837,51 @@ inline void CancelResponse::SharedCtor(::_pb::Arena* arena) { } CancelResponse::~CancelResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CancelResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CancelResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.calibration_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CancelResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CancelResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.calibration_result_ != nullptr); - _impl_.calibration_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CancelResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void CancelResponse::SharedDtor(MessageLite& self) { + CancelResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.calibration_result_; + this_._impl_.~Impl_(); +} + +inline void* CancelResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CancelResponse(arena); +} +constexpr auto CancelResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CancelResponse), + alignof(CancelResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CancelResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CancelResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CancelResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CancelResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CancelResponse::ByteSizeLong, + &CancelResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_._cached_size_), + false, + }, + &CancelResponse::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CancelResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CancelResponse::_table_ = { { @@ -2212,8 +2894,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CancelResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_CancelResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CancelResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; {::_pbi::TcParser::FastMtS1, @@ -2230,68 +2916,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CancelResponse::_table_ = { }}, }; -::uint8_t* CancelResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CancelResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::calibration_result(this), - _Internal::calibration_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CancelResponse) - return target; -} - -::size_t CancelResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CancelResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void CancelResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CancelResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.calibration_result_); + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CancelResponse::_class_data_ = { - CancelResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CancelResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void CancelResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* CancelResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const CancelResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* CancelResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const CancelResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CancelResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.calibration_result_, this_._impl_.calibration_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CancelResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t CancelResponse::ByteSizeLong(const MessageLite& base) { + const CancelResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t CancelResponse::ByteSizeLong() const { + const CancelResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CancelResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.calibration_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void CancelResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CancelResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( - from._internal_calibration_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.calibration_result_ != nullptr); + if (_this->_impl_.calibration_result_ == nullptr) { + _this->_impl_.calibration_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::calibration::CalibrationResult>(arena, *from._impl_.calibration_result_); + } else { + _this->_impl_.calibration_result_->MergeFrom(*from._impl_.calibration_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2302,13 +3020,7 @@ void CancelResponse::CopyFrom(const CancelResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CancelResponse::IsInitialized() const { - return true; -} -::_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_); @@ -2317,9 +3029,7 @@ void CancelResponse::InternalSwap(CancelResponse* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2328,25 +3038,33 @@ class CalibrationResult::_Internal { }; CalibrationResult::CalibrationResult(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrationResult) } inline PROTOBUF_NDEBUG_INLINE CalibrationResult::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::calibration::CalibrationResult& from_msg) : result_str_(arena, from.result_str_), _cached_size_{0} {} CalibrationResult::CalibrationResult( ::google::protobuf::Arena* arena, const CalibrationResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CalibrationResult* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.result_ = from._impl_.result_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrationResult) @@ -2363,34 +3081,51 @@ inline void CalibrationResult::SharedCtor(::_pb::Arena* arena) { } CalibrationResult::~CalibrationResult() { // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.CalibrationResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CalibrationResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.result_str_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CalibrationResult::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrationResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_str_.ClearToEmpty(); - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CalibrationResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void CalibrationResult::SharedDtor(MessageLite& self) { + CalibrationResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.result_str_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* CalibrationResult::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CalibrationResult(arena); +} +constexpr auto CalibrationResult::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CalibrationResult), + alignof(CalibrationResult)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CalibrationResult::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CalibrationResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CalibrationResult::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CalibrationResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CalibrationResult::ByteSizeLong, + &CalibrationResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CalibrationResult, _impl_._cached_size_), + false, + }, + &CalibrationResult::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CalibrationResult::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 59, 2> CalibrationResult::_table_ = { { @@ -2403,8 +3138,12 @@ const ::_pbi::TcParseTable<1, 2, 0, 59, 2> CalibrationResult::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_CalibrationResult_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::CalibrationResult>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // string result_str = 2; {::_pbi::TcParser::FastUS1, @@ -2430,69 +3169,89 @@ const ::_pbi::TcParseTable<1, 2, 0, 59, 2> CalibrationResult::_table_ = { }}, }; -::uint8_t* CalibrationResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrationResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - const std::string& _s = this->_internal_result_str(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.calibration.CalibrationResult.result_str"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrationResult) - return target; -} - -::size_t CalibrationResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrationResult) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void CalibrationResult::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrationResult) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_result_str()); - } - - // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CalibrationResult::_class_data_ = { - CalibrationResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CalibrationResult::GetClassData() const { - return &_class_data_; + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void CalibrationResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* CalibrationResult::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const CalibrationResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* CalibrationResult::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const CalibrationResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrationResult) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_result(), target); + } + + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + const std::string& _s = this_._internal_result_str(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.calibration.CalibrationResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.CalibrationResult) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t CalibrationResult::ByteSizeLong(const MessageLite& base) { + const CalibrationResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t CalibrationResult::ByteSizeLong() const { + const CalibrationResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrationResult) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_result_str()); + } + // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; + if (this_._internal_result() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void CalibrationResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrationResult) @@ -2504,7 +3263,7 @@ void CalibrationResult::MergeImpl(::google::protobuf::Message& to_msg, const ::g _this->_internal_set_result_str(from._internal_result_str()); } if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); + _this->_impl_.result_ = from._impl_.result_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2516,13 +3275,7 @@ void CalibrationResult::CopyFrom(const CalibrationResult& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CalibrationResult::IsInitialized() const { - return true; -} -::_pbi::CachedSize* CalibrationResult::AccessCachedSize() const { - return &_impl_._cached_size_; -} void CalibrationResult::InternalSwap(CalibrationResult* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2533,9 +3286,7 @@ void CalibrationResult::InternalSwap(CalibrationResult* PROTOBUF_RESTRICT other) } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -2544,25 +3295,33 @@ class ProgressData::_Internal { }; ProgressData::ProgressData(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.ProgressData) } inline PROTOBUF_NDEBUG_INLINE ProgressData::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::calibration::ProgressData& from_msg) : status_text_(arena, from.status_text_), _cached_size_{0} {} ProgressData::ProgressData( ::google::protobuf::Arena* arena, const ProgressData& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ProgressData* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, progress_), reinterpret_cast(&from._impl_) + @@ -2590,36 +3349,51 @@ inline void ProgressData::SharedCtor(::_pb::Arena* arena) { } ProgressData::~ProgressData() { // @@protoc_insertion_point(destructor:mavsdk.rpc.calibration.ProgressData) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ProgressData::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.status_text_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ProgressData::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.ProgressData) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.status_text_.ClearToEmpty(); - ::memset(&_impl_.progress_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.has_status_text_) - - reinterpret_cast(&_impl_.progress_)) + sizeof(_impl_.has_status_text_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ProgressData::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ProgressData::SharedDtor(MessageLite& self) { + ProgressData& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.status_text_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* ProgressData::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ProgressData(arena); +} +constexpr auto ProgressData::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ProgressData), + alignof(ProgressData)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ProgressData::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ProgressData_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ProgressData::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ProgressData::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ProgressData::ByteSizeLong, + &ProgressData::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ProgressData, _impl_._cached_size_), + false, + }, + &ProgressData::kDescriptorMethods, + &descriptor_table_calibration_2fcalibration_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ProgressData::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 55, 2> ProgressData::_table_ = { { @@ -2632,8 +3406,12 @@ const ::_pbi::TcParseTable<2, 4, 0, 55, 2> ProgressData::_table_ = { 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ProgressData_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::calibration::ProgressData>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // string status_text = 4; {::_pbi::TcParser::FastUS1, @@ -2671,102 +3449,112 @@ const ::_pbi::TcParseTable<2, 4, 0, 55, 2> ProgressData::_table_ = { }}, }; -::uint8_t* ProgressData::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.ProgressData) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; - if (this->_internal_has_progress() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_has_progress(), target); - } - - // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_progress = this->_internal_progress(); - ::uint32_t raw_progress; - memcpy(&raw_progress, &tmp_progress, sizeof(tmp_progress)); - if (raw_progress != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_progress(), target); - } - - // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; - if (this->_internal_has_status_text() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_has_status_text(), target); - } - - // string status_text = 4; - if (!this->_internal_status_text().empty()) { - const std::string& _s = this->_internal_status_text(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.calibration.ProgressData.status_text"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.ProgressData) - return target; -} - -::size_t ProgressData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.ProgressData) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ProgressData::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.ProgressData) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string status_text = 4; - if (!this->_internal_status_text().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_status_text()); - } - - // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_progress = this->_internal_progress(); - ::uint32_t raw_progress; - memcpy(&raw_progress, &tmp_progress, sizeof(tmp_progress)); - if (raw_progress != 0) { - total_size += 5; - } - - // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; - if (this->_internal_has_progress() != 0) { - total_size += 2; - } - - // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; - if (this->_internal_has_status_text() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ProgressData::_class_data_ = { - ProgressData::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ProgressData::GetClassData() const { - return &_class_data_; + _impl_.status_text_.ClearToEmpty(); + ::memset(&_impl_.progress_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.has_status_text_) - + reinterpret_cast(&_impl_.progress_)) + sizeof(_impl_.has_status_text_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ProgressData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ProgressData::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ProgressData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ProgressData::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ProgressData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.ProgressData) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; + if (this_._internal_has_progress() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_has_progress(), target); + } + + // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint32_t>(this_._internal_progress()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_progress(), target); + } + + // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; + if (this_._internal_has_status_text() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_has_status_text(), target); + } + + // string status_text = 4; + if (!this_._internal_status_text().empty()) { + const std::string& _s = this_._internal_status_text(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.calibration.ProgressData.status_text"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.calibration.ProgressData) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ProgressData::ByteSizeLong(const MessageLite& base) { + const ProgressData& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ProgressData::ByteSizeLong() const { + const ProgressData& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.ProgressData) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string status_text = 4; + if (!this_._internal_status_text().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_status_text()); + } + // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; + if (::absl::bit_cast<::uint32_t>(this_._internal_progress()) != 0) { + total_size += 5; + } + // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; + if (this_._internal_has_progress() != 0) { + total_size += 2; + } + // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; + if (this_._internal_has_status_text() != 0) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ProgressData::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.ProgressData) @@ -2777,19 +3565,14 @@ void ProgressData::MergeImpl(::google::protobuf::Message& to_msg, const ::google if (!from._internal_status_text().empty()) { _this->_internal_set_status_text(from._internal_status_text()); } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_progress = from._internal_progress(); - ::uint32_t raw_progress; - memcpy(&raw_progress, &tmp_progress, sizeof(tmp_progress)); - if (raw_progress != 0) { - _this->_internal_set_progress(from._internal_progress()); + if (::absl::bit_cast<::uint32_t>(from._internal_progress()) != 0) { + _this->_impl_.progress_ = from._impl_.progress_; } if (from._internal_has_progress() != 0) { - _this->_internal_set_has_progress(from._internal_has_progress()); + _this->_impl_.has_progress_ = from._impl_.has_progress_; } if (from._internal_has_status_text() != 0) { - _this->_internal_set_has_status_text(from._internal_has_status_text()); + _this->_impl_.has_status_text_ = from._impl_.has_status_text_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -2801,13 +3584,7 @@ void ProgressData::CopyFrom(const ProgressData& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ProgressData::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ProgressData::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ProgressData::InternalSwap(ProgressData* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -2823,9 +3600,7 @@ void ProgressData::InternalSwap(ProgressData* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) } // namespace calibration @@ -2836,4 +3611,8 @@ namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_calibration_2fcalibration_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/calibration/calibration.pb.h b/src/mavsdk_server/src/generated/calibration/calibration.pb.h index aec1afa038..5e59ddcc4f 100644 --- a/src/mavsdk_server/src/generated/calibration/calibration.pb.h +++ b/src/mavsdk_server/src/generated/calibration/calibration.pb.h @@ -1,28 +1,22 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: calibration/calibration.proto -// Protobuf C++ Version: 4.25.1 +// Protobuf C++ Version: 5.29.1 -#ifndef GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto_2epb_2eh +#ifndef calibration_2fcalibration_2eproto_2epb_2eh +#define calibration_2fcalibration_2eproto_2epb_2eh #include #include #include #include -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4025000 -#error "This file was generated by a newer version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please update" -#error "your headers." -#endif // PROTOBUF_VERSION - -#if 4025001 < PROTOBUF_MIN_PROTOC_VERSION -#error "This file was generated by an older version of protoc which is" -#error "incompatible with your Protocol Buffer headers. Please" -#error "regenerate this file with a newer version of protoc." -#endif // PROTOBUF_MIN_PROTOC_VERSION -#include "google/protobuf/port_undef.inc" +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" @@ -32,6 +26,7 @@ #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" #include "google/protobuf/repeated_field.h" // IWYU pragma: export #include "google/protobuf/extension_set.h" // IWYU pragma: export #include "google/protobuf/generated_enum_reflection.h" @@ -47,7 +42,8 @@ namespace google { namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal } // namespace protobuf } // namespace google @@ -163,31 +159,33 @@ inline bool CalibrationResult_Result_Parse(absl::string_view name, CalibrationRe // ------------------------------------------------------------------- -class SubscribeCalibrateMagnetometerRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) */ { +class SubscribeCalibrateMagnetometerRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) */ { public: inline SubscribeCalibrateMagnetometerRequest() : SubscribeCalibrateMagnetometerRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeCalibrateMagnetometerRequest(const SubscribeCalibrateMagnetometerRequest& from) - : SubscribeCalibrateMagnetometerRequest(nullptr, from) {} - SubscribeCalibrateMagnetometerRequest(SubscribeCalibrateMagnetometerRequest&& from) noexcept - : SubscribeCalibrateMagnetometerRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeCalibrateMagnetometerRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeCalibrateMagnetometerRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SubscribeCalibrateMagnetometerRequest(const SubscribeCalibrateMagnetometerRequest& from) : SubscribeCalibrateMagnetometerRequest(nullptr, from) {} + inline SubscribeCalibrateMagnetometerRequest(SubscribeCalibrateMagnetometerRequest&& from) noexcept + : SubscribeCalibrateMagnetometerRequest(nullptr, std::move(from)) {} inline SubscribeCalibrateMagnetometerRequest& operator=(const SubscribeCalibrateMagnetometerRequest& from) { CopyFrom(from); return *this; } inline SubscribeCalibrateMagnetometerRequest& operator=(SubscribeCalibrateMagnetometerRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -218,22 +216,13 @@ class SubscribeCalibrateMagnetometerRequest final : } static inline const SubscribeCalibrateMagnetometerRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeCalibrateMagnetometerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(SubscribeCalibrateMagnetometerRequest& a, SubscribeCalibrateMagnetometerRequest& b) { - a.Swap(&b); + &_SubscribeCalibrateMagnetometerRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(SubscribeCalibrateMagnetometerRequest& a, SubscribeCalibrateMagnetometerRequest& b) { a.Swap(&b); } inline void Swap(SubscribeCalibrateMagnetometerRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -247,8 +236,8 @@ class SubscribeCalibrateMagnetometerRequest final : // implements Message ---------------------------------------------- - SubscribeCalibrateMagnetometerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCalibrateMagnetometerRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeCalibrateMagnetometerRequest& from) { @@ -258,27 +247,43 @@ class SubscribeCalibrateMagnetometerRequest final : void MergeFrom(const SubscribeCalibrateMagnetometerRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest"; } + + protected: explicit SubscribeCalibrateMagnetometerRequest(::google::protobuf::Arena* arena); SubscribeCalibrateMagnetometerRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateMagnetometerRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeCalibrateMagnetometerRequest(::google::protobuf::Arena* arena, SubscribeCalibrateMagnetometerRequest&& from) noexcept + : SubscribeCalibrateMagnetometerRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -287,43 +292,46 @@ class SubscribeCalibrateMagnetometerRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeCalibrateMagnetometerRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubscribeCalibrateLevelHorizonRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) */ { +class SubscribeCalibrateLevelHorizonRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) */ { public: inline SubscribeCalibrateLevelHorizonRequest() : SubscribeCalibrateLevelHorizonRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeCalibrateLevelHorizonRequest(const SubscribeCalibrateLevelHorizonRequest& from) - : SubscribeCalibrateLevelHorizonRequest(nullptr, from) {} - SubscribeCalibrateLevelHorizonRequest(SubscribeCalibrateLevelHorizonRequest&& from) noexcept - : SubscribeCalibrateLevelHorizonRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeCalibrateLevelHorizonRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeCalibrateLevelHorizonRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequest( + ::google::protobuf::internal::ConstantInitialized); + inline SubscribeCalibrateLevelHorizonRequest(const SubscribeCalibrateLevelHorizonRequest& from) : SubscribeCalibrateLevelHorizonRequest(nullptr, from) {} + inline SubscribeCalibrateLevelHorizonRequest(SubscribeCalibrateLevelHorizonRequest&& from) noexcept + : SubscribeCalibrateLevelHorizonRequest(nullptr, std::move(from)) {} inline SubscribeCalibrateLevelHorizonRequest& operator=(const SubscribeCalibrateLevelHorizonRequest& from) { CopyFrom(from); return *this; } inline SubscribeCalibrateLevelHorizonRequest& operator=(SubscribeCalibrateLevelHorizonRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -354,22 +362,13 @@ class SubscribeCalibrateLevelHorizonRequest final : } static inline const SubscribeCalibrateLevelHorizonRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeCalibrateLevelHorizonRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(SubscribeCalibrateLevelHorizonRequest& a, SubscribeCalibrateLevelHorizonRequest& b) { - a.Swap(&b); + &_SubscribeCalibrateLevelHorizonRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + friend void swap(SubscribeCalibrateLevelHorizonRequest& a, SubscribeCalibrateLevelHorizonRequest& b) { a.Swap(&b); } inline void Swap(SubscribeCalibrateLevelHorizonRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -383,8 +382,8 @@ class SubscribeCalibrateLevelHorizonRequest final : // implements Message ---------------------------------------------- - SubscribeCalibrateLevelHorizonRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCalibrateLevelHorizonRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeCalibrateLevelHorizonRequest& from) { @@ -394,27 +393,43 @@ class SubscribeCalibrateLevelHorizonRequest final : void MergeFrom(const SubscribeCalibrateLevelHorizonRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest"; } + + protected: explicit SubscribeCalibrateLevelHorizonRequest(::google::protobuf::Arena* arena); SubscribeCalibrateLevelHorizonRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateLevelHorizonRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeCalibrateLevelHorizonRequest(::google::protobuf::Arena* arena, SubscribeCalibrateLevelHorizonRequest&& from) noexcept + : SubscribeCalibrateLevelHorizonRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -423,43 +438,46 @@ class SubscribeCalibrateLevelHorizonRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeCalibrateLevelHorizonRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubscribeCalibrateGyroRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) */ { +class SubscribeCalibrateGyroRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) */ { public: inline SubscribeCalibrateGyroRequest() : SubscribeCalibrateGyroRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeCalibrateGyroRequest(const SubscribeCalibrateGyroRequest& from) - : SubscribeCalibrateGyroRequest(nullptr, from) {} - SubscribeCalibrateGyroRequest(SubscribeCalibrateGyroRequest&& from) noexcept - : SubscribeCalibrateGyroRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeCalibrateGyroRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeCalibrateGyroRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SubscribeCalibrateGyroRequest(const SubscribeCalibrateGyroRequest& from) : SubscribeCalibrateGyroRequest(nullptr, from) {} + inline SubscribeCalibrateGyroRequest(SubscribeCalibrateGyroRequest&& from) noexcept + : SubscribeCalibrateGyroRequest(nullptr, std::move(from)) {} inline SubscribeCalibrateGyroRequest& operator=(const SubscribeCalibrateGyroRequest& from) { CopyFrom(from); return *this; } inline SubscribeCalibrateGyroRequest& operator=(SubscribeCalibrateGyroRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -490,22 +508,13 @@ class SubscribeCalibrateGyroRequest final : } static inline const SubscribeCalibrateGyroRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeCalibrateGyroRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SubscribeCalibrateGyroRequest& a, SubscribeCalibrateGyroRequest& b) { - a.Swap(&b); + &_SubscribeCalibrateGyroRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SubscribeCalibrateGyroRequest& a, SubscribeCalibrateGyroRequest& b) { a.Swap(&b); } inline void Swap(SubscribeCalibrateGyroRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -519,8 +528,8 @@ class SubscribeCalibrateGyroRequest final : // implements Message ---------------------------------------------- - SubscribeCalibrateGyroRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCalibrateGyroRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeCalibrateGyroRequest& from) { @@ -530,27 +539,43 @@ class SubscribeCalibrateGyroRequest final : void MergeFrom(const SubscribeCalibrateGyroRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest"; } + + protected: explicit SubscribeCalibrateGyroRequest(::google::protobuf::Arena* arena); SubscribeCalibrateGyroRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateGyroRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeCalibrateGyroRequest(::google::protobuf::Arena* arena, SubscribeCalibrateGyroRequest&& from) noexcept + : SubscribeCalibrateGyroRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -559,43 +584,46 @@ class SubscribeCalibrateGyroRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeCalibrateGyroRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubscribeCalibrateGimbalAccelerometerRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) */ { +class SubscribeCalibrateGimbalAccelerometerRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) */ { public: inline SubscribeCalibrateGimbalAccelerometerRequest() : SubscribeCalibrateGimbalAccelerometerRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeCalibrateGimbalAccelerometerRequest(const SubscribeCalibrateGimbalAccelerometerRequest& from) - : SubscribeCalibrateGimbalAccelerometerRequest(nullptr, from) {} - SubscribeCalibrateGimbalAccelerometerRequest(SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept - : SubscribeCalibrateGimbalAccelerometerRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeCalibrateGimbalAccelerometerRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeCalibrateGimbalAccelerometerRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SubscribeCalibrateGimbalAccelerometerRequest(const SubscribeCalibrateGimbalAccelerometerRequest& from) : SubscribeCalibrateGimbalAccelerometerRequest(nullptr, from) {} + inline SubscribeCalibrateGimbalAccelerometerRequest(SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept + : SubscribeCalibrateGimbalAccelerometerRequest(nullptr, std::move(from)) {} inline SubscribeCalibrateGimbalAccelerometerRequest& operator=(const SubscribeCalibrateGimbalAccelerometerRequest& from) { CopyFrom(from); return *this; } inline SubscribeCalibrateGimbalAccelerometerRequest& operator=(SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -626,22 +654,13 @@ class SubscribeCalibrateGimbalAccelerometerRequest final : } static inline const SubscribeCalibrateGimbalAccelerometerRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(SubscribeCalibrateGimbalAccelerometerRequest& a, SubscribeCalibrateGimbalAccelerometerRequest& b) { - a.Swap(&b); + &_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 8; + friend void swap(SubscribeCalibrateGimbalAccelerometerRequest& a, SubscribeCalibrateGimbalAccelerometerRequest& b) { a.Swap(&b); } inline void Swap(SubscribeCalibrateGimbalAccelerometerRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -655,8 +674,8 @@ class SubscribeCalibrateGimbalAccelerometerRequest final : // implements Message ---------------------------------------------- - SubscribeCalibrateGimbalAccelerometerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCalibrateGimbalAccelerometerRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeCalibrateGimbalAccelerometerRequest& from) { @@ -666,27 +685,43 @@ class SubscribeCalibrateGimbalAccelerometerRequest final : void MergeFrom(const SubscribeCalibrateGimbalAccelerometerRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest"; } + + protected: explicit SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::Arena* arena); SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateGimbalAccelerometerRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeCalibrateGimbalAccelerometerRequest(::google::protobuf::Arena* arena, SubscribeCalibrateGimbalAccelerometerRequest&& from) noexcept + : SubscribeCalibrateGimbalAccelerometerRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -695,43 +730,46 @@ class SubscribeCalibrateGimbalAccelerometerRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeCalibrateGimbalAccelerometerRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class SubscribeCalibrateAccelerometerRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) */ { +class SubscribeCalibrateAccelerometerRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) */ { public: inline SubscribeCalibrateAccelerometerRequest() : SubscribeCalibrateAccelerometerRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest(::google::protobuf::internal::ConstantInitialized); - inline SubscribeCalibrateAccelerometerRequest(const SubscribeCalibrateAccelerometerRequest& from) - : SubscribeCalibrateAccelerometerRequest(nullptr, from) {} - SubscribeCalibrateAccelerometerRequest(SubscribeCalibrateAccelerometerRequest&& from) noexcept - : SubscribeCalibrateAccelerometerRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SubscribeCalibrateAccelerometerRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SubscribeCalibrateAccelerometerRequest)); } +#endif + template + explicit PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest( + ::google::protobuf::internal::ConstantInitialized); + + inline SubscribeCalibrateAccelerometerRequest(const SubscribeCalibrateAccelerometerRequest& from) : SubscribeCalibrateAccelerometerRequest(nullptr, from) {} + inline SubscribeCalibrateAccelerometerRequest(SubscribeCalibrateAccelerometerRequest&& from) noexcept + : SubscribeCalibrateAccelerometerRequest(nullptr, std::move(from)) {} inline SubscribeCalibrateAccelerometerRequest& operator=(const SubscribeCalibrateAccelerometerRequest& from) { CopyFrom(from); return *this; } inline SubscribeCalibrateAccelerometerRequest& operator=(SubscribeCalibrateAccelerometerRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -762,22 +800,13 @@ class SubscribeCalibrateAccelerometerRequest final : } static inline const SubscribeCalibrateAccelerometerRequest* internal_default_instance() { return reinterpret_cast( - &_SubscribeCalibrateAccelerometerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(SubscribeCalibrateAccelerometerRequest& a, SubscribeCalibrateAccelerometerRequest& b) { - a.Swap(&b); + &_SubscribeCalibrateAccelerometerRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(SubscribeCalibrateAccelerometerRequest& a, SubscribeCalibrateAccelerometerRequest& b) { a.Swap(&b); } inline void Swap(SubscribeCalibrateAccelerometerRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -791,8 +820,8 @@ class SubscribeCalibrateAccelerometerRequest final : // implements Message ---------------------------------------------- - SubscribeCalibrateAccelerometerRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SubscribeCalibrateAccelerometerRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeCalibrateAccelerometerRequest& from) { @@ -802,27 +831,43 @@ class SubscribeCalibrateAccelerometerRequest final : void MergeFrom(const SubscribeCalibrateAccelerometerRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest"; } + + protected: explicit SubscribeCalibrateAccelerometerRequest(::google::protobuf::Arena* arena); SubscribeCalibrateAccelerometerRequest(::google::protobuf::Arena* arena, const SubscribeCalibrateAccelerometerRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + SubscribeCalibrateAccelerometerRequest(::google::protobuf::Arena* arena, SubscribeCalibrateAccelerometerRequest&& from) noexcept + : SubscribeCalibrateAccelerometerRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -831,44 +876,47 @@ class SubscribeCalibrateAccelerometerRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SubscribeCalibrateAccelerometerRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class ProgressData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.ProgressData) */ { +class ProgressData final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.ProgressData) */ { public: inline ProgressData() : ProgressData(nullptr) {} - ~ProgressData() override; - template - explicit PROTOBUF_CONSTEXPR ProgressData(::google::protobuf::internal::ConstantInitialized); - - inline ProgressData(const ProgressData& from) - : ProgressData(nullptr, from) {} - ProgressData(ProgressData&& from) noexcept - : ProgressData() { - *this = ::std::move(from); + ~ProgressData() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ProgressData* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ProgressData)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ProgressData( + ::google::protobuf::internal::ConstantInitialized); + inline ProgressData(const ProgressData& from) : ProgressData(nullptr, from) {} + inline ProgressData(ProgressData&& from) noexcept + : ProgressData(nullptr, std::move(from)) {} inline ProgressData& operator=(const ProgressData& from) { CopyFrom(from); return *this; } inline ProgressData& operator=(ProgressData&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -899,22 +947,13 @@ class ProgressData final : } static inline const ProgressData* internal_default_instance() { return reinterpret_cast( - &_ProgressData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(ProgressData& a, ProgressData& b) { - a.Swap(&b); + &_ProgressData_default_instance_); } + static constexpr int kIndexInFileMessages = 13; + friend void swap(ProgressData& a, ProgressData& b) { a.Swap(&b); } inline void Swap(ProgressData* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -928,52 +967,74 @@ class ProgressData final : // implements Message ---------------------------------------------- - ProgressData* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ProgressData* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ProgressData& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const ProgressData& from) { - ProgressData::MergeImpl(*this, from); - } + void MergeFrom(const ProgressData& from) { ProgressData::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(ProgressData* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.ProgressData"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.ProgressData"; - } - protected: + protected: explicit ProgressData(::google::protobuf::Arena* arena); ProgressData(::google::protobuf::Arena* arena, const ProgressData& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + ProgressData(::google::protobuf::Arena* arena, ProgressData&& from) noexcept + : ProgressData(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kStatusTextFieldNumber = 4, kProgressFieldNumber = 2, @@ -1029,12 +1090,12 @@ class ProgressData final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.ProgressData) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 2, 4, 0, 55, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1042,49 +1103,52 @@ class ProgressData final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ProgressData& from_msg); ::google::protobuf::internal::ArenaStringPtr status_text_; float progress_; bool has_progress_; bool has_status_text_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CancelRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelRequest) */ { +class CancelRequest final + : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelRequest) */ { public: inline CancelRequest() : CancelRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR CancelRequest(::google::protobuf::internal::ConstantInitialized); - inline CancelRequest(const CancelRequest& from) - : CancelRequest(nullptr, from) {} - CancelRequest(CancelRequest&& from) noexcept - : CancelRequest() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CancelRequest* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CancelRequest)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR CancelRequest( + ::google::protobuf::internal::ConstantInitialized); + inline CancelRequest(const CancelRequest& from) : CancelRequest(nullptr, from) {} + inline CancelRequest(CancelRequest&& from) noexcept + : CancelRequest(nullptr, std::move(from)) {} inline CancelRequest& operator=(const CancelRequest& from) { CopyFrom(from); return *this; } inline CancelRequest& operator=(CancelRequest&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1115,22 +1179,13 @@ class CancelRequest final : } static inline const CancelRequest* internal_default_instance() { return reinterpret_cast( - &_CancelRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(CancelRequest& a, CancelRequest& b) { - a.Swap(&b); + &_CancelRequest_default_instance_); } + static constexpr int kIndexInFileMessages = 10; + friend void swap(CancelRequest& a, CancelRequest& b) { a.Swap(&b); } inline void Swap(CancelRequest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1144,8 +1199,8 @@ class CancelRequest final : // implements Message ---------------------------------------------- - CancelRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CancelRequest* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const CancelRequest& from) { @@ -1155,27 +1210,43 @@ class CancelRequest final : void MergeFrom(const CancelRequest& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CancelRequest"; + public: + bool IsInitialized() const { + return true; } - protected: + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CancelRequest"; } + + protected: explicit CancelRequest(::google::protobuf::Arena* arena); CancelRequest(::google::protobuf::Arena* arena, const CancelRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; + CancelRequest(::google::protobuf::Arena* arena, CancelRequest&& from) noexcept + : CancelRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CancelRequest) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; @@ -1184,44 +1255,47 @@ class CancelRequest final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CancelRequest& from_msg); PROTOBUF_TSAN_DECLARE_MEMBER }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CalibrationResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrationResult) */ { +class CalibrationResult final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrationResult) */ { public: inline CalibrationResult() : CalibrationResult(nullptr) {} - ~CalibrationResult() override; - template - explicit PROTOBUF_CONSTEXPR CalibrationResult(::google::protobuf::internal::ConstantInitialized); - - inline CalibrationResult(const CalibrationResult& from) - : CalibrationResult(nullptr, from) {} - CalibrationResult(CalibrationResult&& from) noexcept - : CalibrationResult() { - *this = ::std::move(from); + ~CalibrationResult() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrationResult* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CalibrationResult)); } +#endif + template + explicit PROTOBUF_CONSTEXPR CalibrationResult( + ::google::protobuf::internal::ConstantInitialized); + + inline CalibrationResult(const CalibrationResult& from) : CalibrationResult(nullptr, from) {} + inline CalibrationResult(CalibrationResult&& from) noexcept + : CalibrationResult(nullptr, std::move(from)) {} inline CalibrationResult& operator=(const CalibrationResult& from) { CopyFrom(from); return *this; } inline CalibrationResult& operator=(CalibrationResult&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1252,22 +1326,13 @@ class CalibrationResult final : } static inline const CalibrationResult* internal_default_instance() { return reinterpret_cast( - &_CalibrationResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(CalibrationResult& a, CalibrationResult& b) { - a.Swap(&b); + &_CalibrationResult_default_instance_); } + static constexpr int kIndexInFileMessages = 12; + friend void swap(CalibrationResult& a, CalibrationResult& b) { a.Swap(&b); } inline void Swap(CalibrationResult* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1281,50 +1346,72 @@ class CalibrationResult final : // implements Message ---------------------------------------------- - CalibrationResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CalibrationResult* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const CalibrationResult& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrationResult& from) { - CalibrationResult::MergeImpl(*this, from); - } + void MergeFrom(const CalibrationResult& from) { CalibrationResult::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(CalibrationResult* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrationResult"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrationResult"; - } - protected: + protected: explicit CalibrationResult(::google::protobuf::Arena* arena); CalibrationResult(::google::protobuf::Arena* arena, const CalibrationResult& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + CalibrationResult(::google::protobuf::Arena* arena, CalibrationResult&& from) noexcept + : CalibrationResult(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - using Result = CalibrationResult_Result; static constexpr Result RESULT_UNKNOWN = CalibrationResult_Result_RESULT_UNKNOWN; static constexpr Result RESULT_SUCCESS = CalibrationResult_Result_RESULT_SUCCESS; @@ -1356,7 +1443,6 @@ class CalibrationResult final : } // accessors ------------------------------------------------------- - enum : int { kResultStrFieldNumber = 2, kResultFieldNumber = 1, @@ -1390,12 +1476,12 @@ class CalibrationResult final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrationResult) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 0, 59, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1403,48 +1489,51 @@ class CalibrationResult final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CalibrationResult& from_msg); ::google::protobuf::internal::ArenaStringPtr result_str_; int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CancelResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelResponse) */ { +class CancelResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelResponse) */ { public: inline CancelResponse() : CancelResponse(nullptr) {} - ~CancelResponse() override; - template - explicit PROTOBUF_CONSTEXPR CancelResponse(::google::protobuf::internal::ConstantInitialized); - - inline CancelResponse(const CancelResponse& from) - : CancelResponse(nullptr, from) {} - CancelResponse(CancelResponse&& from) noexcept - : CancelResponse() { - *this = ::std::move(from); + ~CancelResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CancelResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CancelResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR CancelResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline CancelResponse(const CancelResponse& from) : CancelResponse(nullptr, from) {} + inline CancelResponse(CancelResponse&& from) noexcept + : CancelResponse(nullptr, std::move(from)) {} inline CancelResponse& operator=(const CancelResponse& from) { CopyFrom(from); return *this; } inline CancelResponse& operator=(CancelResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1475,22 +1564,13 @@ class CancelResponse final : } static inline const CancelResponse* internal_default_instance() { return reinterpret_cast( - &_CancelResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(CancelResponse& a, CancelResponse& b) { - a.Swap(&b); + &_CancelResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 11; + friend void swap(CancelResponse& a, CancelResponse& b) { a.Swap(&b); } inline void Swap(CancelResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1504,52 +1584,74 @@ class CancelResponse final : // implements Message ---------------------------------------------- - CancelResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CancelResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const CancelResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CancelResponse& from) { - CancelResponse::MergeImpl(*this, from); - } + void MergeFrom(const CancelResponse& from) { CancelResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(CancelResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CancelResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CancelResponse"; - } - protected: + protected: explicit CancelResponse(::google::protobuf::Arena* arena); CancelResponse(::google::protobuf::Arena* arena, const CancelResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + CancelResponse(::google::protobuf::Arena* arena, CancelResponse&& from) noexcept + : CancelResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCalibrationResultFieldNumber = 1, }; @@ -1571,12 +1673,12 @@ class CancelResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CancelResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1584,48 +1686,51 @@ class CancelResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CancelResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CalibrateMagnetometerResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) */ { +class CalibrateMagnetometerResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) */ { public: inline CalibrateMagnetometerResponse() : CalibrateMagnetometerResponse(nullptr) {} - ~CalibrateMagnetometerResponse() override; - template - explicit PROTOBUF_CONSTEXPR CalibrateMagnetometerResponse(::google::protobuf::internal::ConstantInitialized); - - inline CalibrateMagnetometerResponse(const CalibrateMagnetometerResponse& from) - : CalibrateMagnetometerResponse(nullptr, from) {} - CalibrateMagnetometerResponse(CalibrateMagnetometerResponse&& from) noexcept - : CalibrateMagnetometerResponse() { - *this = ::std::move(from); + ~CalibrateMagnetometerResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrateMagnetometerResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CalibrateMagnetometerResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR CalibrateMagnetometerResponse( + ::google::protobuf::internal::ConstantInitialized); + inline CalibrateMagnetometerResponse(const CalibrateMagnetometerResponse& from) : CalibrateMagnetometerResponse(nullptr, from) {} + inline CalibrateMagnetometerResponse(CalibrateMagnetometerResponse&& from) noexcept + : CalibrateMagnetometerResponse(nullptr, std::move(from)) {} inline CalibrateMagnetometerResponse& operator=(const CalibrateMagnetometerResponse& from) { CopyFrom(from); return *this; } inline CalibrateMagnetometerResponse& operator=(CalibrateMagnetometerResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1656,22 +1761,13 @@ class CalibrateMagnetometerResponse final : } static inline const CalibrateMagnetometerResponse* internal_default_instance() { return reinterpret_cast( - &_CalibrateMagnetometerResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(CalibrateMagnetometerResponse& a, CalibrateMagnetometerResponse& b) { - a.Swap(&b); + &_CalibrateMagnetometerResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 5; + friend void swap(CalibrateMagnetometerResponse& a, CalibrateMagnetometerResponse& b) { a.Swap(&b); } inline void Swap(CalibrateMagnetometerResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1685,52 +1781,74 @@ class CalibrateMagnetometerResponse final : // implements Message ---------------------------------------------- - CalibrateMagnetometerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CalibrateMagnetometerResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const CalibrateMagnetometerResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrateMagnetometerResponse& from) { - CalibrateMagnetometerResponse::MergeImpl(*this, from); - } + void MergeFrom(const CalibrateMagnetometerResponse& from) { CalibrateMagnetometerResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(CalibrateMagnetometerResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrateMagnetometerResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateMagnetometerResponse"; - } - protected: + protected: explicit CalibrateMagnetometerResponse(::google::protobuf::Arena* arena); CalibrateMagnetometerResponse(::google::protobuf::Arena* arena, const CalibrateMagnetometerResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + CalibrateMagnetometerResponse(::google::protobuf::Arena* arena, CalibrateMagnetometerResponse&& from) noexcept + : CalibrateMagnetometerResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCalibrationResultFieldNumber = 1, kProgressDataFieldNumber = 2, @@ -1768,12 +1886,12 @@ class CalibrateMagnetometerResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 2, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1781,49 +1899,52 @@ class CalibrateMagnetometerResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CalibrateMagnetometerResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; ::mavsdk::rpc::calibration::ProgressData* progress_data_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CalibrateLevelHorizonResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) */ { +class CalibrateLevelHorizonResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) */ { public: inline CalibrateLevelHorizonResponse() : CalibrateLevelHorizonResponse(nullptr) {} - ~CalibrateLevelHorizonResponse() override; - template - explicit PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponse(::google::protobuf::internal::ConstantInitialized); - - inline CalibrateLevelHorizonResponse(const CalibrateLevelHorizonResponse& from) - : CalibrateLevelHorizonResponse(nullptr, from) {} - CalibrateLevelHorizonResponse(CalibrateLevelHorizonResponse&& from) noexcept - : CalibrateLevelHorizonResponse() { - *this = ::std::move(from); + ~CalibrateLevelHorizonResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrateLevelHorizonResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CalibrateLevelHorizonResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponse( + ::google::protobuf::internal::ConstantInitialized); + inline CalibrateLevelHorizonResponse(const CalibrateLevelHorizonResponse& from) : CalibrateLevelHorizonResponse(nullptr, from) {} + inline CalibrateLevelHorizonResponse(CalibrateLevelHorizonResponse&& from) noexcept + : CalibrateLevelHorizonResponse(nullptr, std::move(from)) {} inline CalibrateLevelHorizonResponse& operator=(const CalibrateLevelHorizonResponse& from) { CopyFrom(from); return *this; } inline CalibrateLevelHorizonResponse& operator=(CalibrateLevelHorizonResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1854,22 +1975,13 @@ class CalibrateLevelHorizonResponse final : } static inline const CalibrateLevelHorizonResponse* internal_default_instance() { return reinterpret_cast( - &_CalibrateLevelHorizonResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(CalibrateLevelHorizonResponse& a, CalibrateLevelHorizonResponse& b) { - a.Swap(&b); + &_CalibrateLevelHorizonResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 7; + friend void swap(CalibrateLevelHorizonResponse& a, CalibrateLevelHorizonResponse& b) { a.Swap(&b); } inline void Swap(CalibrateLevelHorizonResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -1883,52 +1995,74 @@ class CalibrateLevelHorizonResponse final : // implements Message ---------------------------------------------- - CalibrateLevelHorizonResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CalibrateLevelHorizonResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const CalibrateLevelHorizonResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrateLevelHorizonResponse& from) { - CalibrateLevelHorizonResponse::MergeImpl(*this, from); - } + void MergeFrom(const CalibrateLevelHorizonResponse& from) { CalibrateLevelHorizonResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(CalibrateLevelHorizonResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrateLevelHorizonResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateLevelHorizonResponse"; - } - protected: + protected: explicit CalibrateLevelHorizonResponse(::google::protobuf::Arena* arena); CalibrateLevelHorizonResponse(::google::protobuf::Arena* arena, const CalibrateLevelHorizonResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + CalibrateLevelHorizonResponse(::google::protobuf::Arena* arena, CalibrateLevelHorizonResponse&& from) noexcept + : CalibrateLevelHorizonResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCalibrationResultFieldNumber = 1, kProgressDataFieldNumber = 2, @@ -1966,12 +2100,12 @@ class CalibrateLevelHorizonResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 2, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -1979,49 +2113,52 @@ class CalibrateLevelHorizonResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CalibrateLevelHorizonResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; ::mavsdk::rpc::calibration::ProgressData* progress_data_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CalibrateGyroResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGyroResponse) */ { +class CalibrateGyroResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGyroResponse) */ { public: inline CalibrateGyroResponse() : CalibrateGyroResponse(nullptr) {} - ~CalibrateGyroResponse() override; - template - explicit PROTOBUF_CONSTEXPR CalibrateGyroResponse(::google::protobuf::internal::ConstantInitialized); - - inline CalibrateGyroResponse(const CalibrateGyroResponse& from) - : CalibrateGyroResponse(nullptr, from) {} - CalibrateGyroResponse(CalibrateGyroResponse&& from) noexcept - : CalibrateGyroResponse() { - *this = ::std::move(from); + ~CalibrateGyroResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrateGyroResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CalibrateGyroResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR CalibrateGyroResponse( + ::google::protobuf::internal::ConstantInitialized); + inline CalibrateGyroResponse(const CalibrateGyroResponse& from) : CalibrateGyroResponse(nullptr, from) {} + inline CalibrateGyroResponse(CalibrateGyroResponse&& from) noexcept + : CalibrateGyroResponse(nullptr, std::move(from)) {} inline CalibrateGyroResponse& operator=(const CalibrateGyroResponse& from) { CopyFrom(from); return *this; } inline CalibrateGyroResponse& operator=(CalibrateGyroResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2052,22 +2189,13 @@ class CalibrateGyroResponse final : } static inline const CalibrateGyroResponse* internal_default_instance() { return reinterpret_cast( - &_CalibrateGyroResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(CalibrateGyroResponse& a, CalibrateGyroResponse& b) { - a.Swap(&b); + &_CalibrateGyroResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(CalibrateGyroResponse& a, CalibrateGyroResponse& b) { a.Swap(&b); } inline void Swap(CalibrateGyroResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2081,52 +2209,74 @@ class CalibrateGyroResponse final : // implements Message ---------------------------------------------- - CalibrateGyroResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CalibrateGyroResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const CalibrateGyroResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrateGyroResponse& from) { - CalibrateGyroResponse::MergeImpl(*this, from); - } + void MergeFrom(const CalibrateGyroResponse& from) { CalibrateGyroResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(CalibrateGyroResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrateGyroResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateGyroResponse"; - } - protected: + protected: explicit CalibrateGyroResponse(::google::protobuf::Arena* arena); CalibrateGyroResponse(::google::protobuf::Arena* arena, const CalibrateGyroResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + CalibrateGyroResponse(::google::protobuf::Arena* arena, CalibrateGyroResponse&& from) noexcept + : CalibrateGyroResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCalibrationResultFieldNumber = 1, kProgressDataFieldNumber = 2, @@ -2164,12 +2314,12 @@ class CalibrateGyroResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateGyroResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 2, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2177,49 +2327,52 @@ class CalibrateGyroResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CalibrateGyroResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; ::mavsdk::rpc::calibration::ProgressData* progress_data_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CalibrateGimbalAccelerometerResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) */ { +class CalibrateGimbalAccelerometerResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) */ { public: inline CalibrateGimbalAccelerometerResponse() : CalibrateGimbalAccelerometerResponse(nullptr) {} - ~CalibrateGimbalAccelerometerResponse() override; - template - explicit PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponse(::google::protobuf::internal::ConstantInitialized); - - inline CalibrateGimbalAccelerometerResponse(const CalibrateGimbalAccelerometerResponse& from) - : CalibrateGimbalAccelerometerResponse(nullptr, from) {} - CalibrateGimbalAccelerometerResponse(CalibrateGimbalAccelerometerResponse&& from) noexcept - : CalibrateGimbalAccelerometerResponse() { - *this = ::std::move(from); + ~CalibrateGimbalAccelerometerResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrateGimbalAccelerometerResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CalibrateGimbalAccelerometerResponse)); } +#endif + template + explicit PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponse( + ::google::protobuf::internal::ConstantInitialized); + + inline CalibrateGimbalAccelerometerResponse(const CalibrateGimbalAccelerometerResponse& from) : CalibrateGimbalAccelerometerResponse(nullptr, from) {} + inline CalibrateGimbalAccelerometerResponse(CalibrateGimbalAccelerometerResponse&& from) noexcept + : CalibrateGimbalAccelerometerResponse(nullptr, std::move(from)) {} inline CalibrateGimbalAccelerometerResponse& operator=(const CalibrateGimbalAccelerometerResponse& from) { CopyFrom(from); return *this; } inline CalibrateGimbalAccelerometerResponse& operator=(CalibrateGimbalAccelerometerResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2250,22 +2403,13 @@ class CalibrateGimbalAccelerometerResponse final : } static inline const CalibrateGimbalAccelerometerResponse* internal_default_instance() { return reinterpret_cast( - &_CalibrateGimbalAccelerometerResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(CalibrateGimbalAccelerometerResponse& a, CalibrateGimbalAccelerometerResponse& b) { - a.Swap(&b); + &_CalibrateGimbalAccelerometerResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 9; + friend void swap(CalibrateGimbalAccelerometerResponse& a, CalibrateGimbalAccelerometerResponse& b) { a.Swap(&b); } inline void Swap(CalibrateGimbalAccelerometerResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2279,52 +2423,74 @@ class CalibrateGimbalAccelerometerResponse final : // implements Message ---------------------------------------------- - CalibrateGimbalAccelerometerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CalibrateGimbalAccelerometerResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const CalibrateGimbalAccelerometerResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrateGimbalAccelerometerResponse& from) { - CalibrateGimbalAccelerometerResponse::MergeImpl(*this, from); - } + void MergeFrom(const CalibrateGimbalAccelerometerResponse& from) { CalibrateGimbalAccelerometerResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(CalibrateGimbalAccelerometerResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse"; - } - protected: + protected: explicit CalibrateGimbalAccelerometerResponse(::google::protobuf::Arena* arena); CalibrateGimbalAccelerometerResponse(::google::protobuf::Arena* arena, const CalibrateGimbalAccelerometerResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + CalibrateGimbalAccelerometerResponse(::google::protobuf::Arena* arena, CalibrateGimbalAccelerometerResponse&& from) noexcept + : CalibrateGimbalAccelerometerResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCalibrationResultFieldNumber = 1, kProgressDataFieldNumber = 2, @@ -2362,12 +2528,12 @@ class CalibrateGimbalAccelerometerResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 2, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2375,49 +2541,52 @@ class CalibrateGimbalAccelerometerResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CalibrateGimbalAccelerometerResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; ::mavsdk::rpc::calibration::ProgressData* progress_data_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class CalibrateAccelerometerResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) */ { +class CalibrateAccelerometerResponse final + : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) */ { public: inline CalibrateAccelerometerResponse() : CalibrateAccelerometerResponse(nullptr) {} - ~CalibrateAccelerometerResponse() override; - template - explicit PROTOBUF_CONSTEXPR CalibrateAccelerometerResponse(::google::protobuf::internal::ConstantInitialized); - - inline CalibrateAccelerometerResponse(const CalibrateAccelerometerResponse& from) - : CalibrateAccelerometerResponse(nullptr, from) {} - CalibrateAccelerometerResponse(CalibrateAccelerometerResponse&& from) noexcept - : CalibrateAccelerometerResponse() { - *this = ::std::move(from); + ~CalibrateAccelerometerResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(CalibrateAccelerometerResponse* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(CalibrateAccelerometerResponse)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR CalibrateAccelerometerResponse( + ::google::protobuf::internal::ConstantInitialized); + inline CalibrateAccelerometerResponse(const CalibrateAccelerometerResponse& from) : CalibrateAccelerometerResponse(nullptr, from) {} + inline CalibrateAccelerometerResponse(CalibrateAccelerometerResponse&& from) noexcept + : CalibrateAccelerometerResponse(nullptr, std::move(from)) {} inline CalibrateAccelerometerResponse& operator=(const CalibrateAccelerometerResponse& from) { CopyFrom(from); return *this; } inline CalibrateAccelerometerResponse& operator=(CalibrateAccelerometerResponse&& from) noexcept { if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2448,22 +2617,13 @@ class CalibrateAccelerometerResponse final : } static inline const CalibrateAccelerometerResponse* internal_default_instance() { return reinterpret_cast( - &_CalibrateAccelerometerResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(CalibrateAccelerometerResponse& a, CalibrateAccelerometerResponse& b) { - a.Swap(&b); + &_CalibrateAccelerometerResponse_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(CalibrateAccelerometerResponse& a, CalibrateAccelerometerResponse& b) { a.Swap(&b); } inline void Swap(CalibrateAccelerometerResponse* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { ::google::protobuf::internal::GenericSwap(this, other); @@ -2477,52 +2637,74 @@ class CalibrateAccelerometerResponse final : // implements Message ---------------------------------------------- - CalibrateAccelerometerResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CalibrateAccelerometerResponse* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; void CopyFrom(const CalibrateAccelerometerResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const CalibrateAccelerometerResponse& from) { - CalibrateAccelerometerResponse::MergeImpl(*this, from); - } + void MergeFrom(const CalibrateAccelerometerResponse& from) { CalibrateAccelerometerResponse::MergeImpl(*this, from); } + private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - 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; + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); + static void SharedDtor(MessageLite& self); void InternalSwap(CalibrateAccelerometerResponse* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrateAccelerometerResponse"; } - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.calibration.CalibrateAccelerometerResponse"; - } - protected: + protected: explicit CalibrateAccelerometerResponse(::google::protobuf::Arena* arena); CalibrateAccelerometerResponse(::google::protobuf::Arena* arena, const CalibrateAccelerometerResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; + CalibrateAccelerometerResponse(::google::protobuf::Arena* arena, CalibrateAccelerometerResponse&& from) noexcept + : CalibrateAccelerometerResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kCalibrationResultFieldNumber = 1, kProgressDataFieldNumber = 2, @@ -2560,12 +2742,12 @@ class CalibrateAccelerometerResponse final : // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) private: class _Internal; - friend class ::google::protobuf::internal::TcParser; static const ::google::protobuf::internal::TcParseTable< 1, 2, 2, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; template @@ -2573,15 +2755,15 @@ class CalibrateAccelerometerResponse final : 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); + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const CalibrateAccelerometerResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::CachedSize _cached_size_; ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; ::mavsdk::rpc::calibration::ProgressData* progress_data_; PROTOBUF_TSAN_DECLARE_MEMBER @@ -2617,12 +2799,12 @@ inline bool CalibrateGyroResponse::has_calibration_result() const { return value; } inline void CalibrateGyroResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); 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); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -2631,7 +2813,7 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGyroRespons return _internal_calibration_result(); } inline void CalibrateGyroResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } @@ -2644,26 +2826,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -2672,28 +2854,28 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::uns return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); } return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) return _msg; } inline void CalibrateGyroResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); + delete (_impl_.calibration_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2713,12 +2895,12 @@ inline bool CalibrateGyroResponse::has_progress_data() const { return value; } inline void CalibrateGyroResponse::clear_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); 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); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); } @@ -2727,7 +2909,7 @@ inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGyroResponse::pr return _internal_progress_data(); } inline void CalibrateGyroResponse::unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); } @@ -2740,26 +2922,26 @@ inline void CalibrateGyroResponse::unsafe_arena_set_allocated_progress_data(::ma // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000002u; ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; _impl_.progress_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::unsafe_arena_release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) _impl_._has_bits_[0] &= ~0x00000002u; @@ -2768,28 +2950,28 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::unsafe_a return temp; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::_internal_mutable_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.progress_data_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::ProgressData>(GetArena()); _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); } return _impl_.progress_data_; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) return _msg; } inline void CalibrateGyroResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); + delete (_impl_.progress_data_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2817,12 +2999,12 @@ inline bool CalibrateAccelerometerResponse::has_calibration_result() const { return value; } inline void CalibrateAccelerometerResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); 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); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -2831,7 +3013,7 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateAcceleromet return _internal_calibration_result(); } inline void CalibrateAccelerometerResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } @@ -2844,26 +3026,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -2872,28 +3054,28 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResp return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); } return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) return _msg; } inline void CalibrateAccelerometerResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); + delete (_impl_.calibration_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -2913,12 +3095,12 @@ inline bool CalibrateAccelerometerResponse::has_progress_data() const { return value; } inline void CalibrateAccelerometerResponse::clear_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); 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); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); } @@ -2927,7 +3109,7 @@ inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateAccelerometerRes return _internal_progress_data(); } inline void CalibrateAccelerometerResponse::unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); } @@ -2940,26 +3122,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000002u; ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; _impl_.progress_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse::unsafe_arena_release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) _impl_._has_bits_[0] &= ~0x00000002u; @@ -2968,28 +3150,28 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse: return temp; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse::_internal_mutable_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.progress_data_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::ProgressData>(GetArena()); _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); } return _impl_.progress_data_; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) return _msg; } inline void CalibrateAccelerometerResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); + delete (_impl_.progress_data_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3017,12 +3199,12 @@ inline bool CalibrateMagnetometerResponse::has_calibration_result() const { return value; } inline void CalibrateMagnetometerResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); 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); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -3031,7 +3213,7 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateMagnetomete return _internal_calibration_result(); } inline void CalibrateMagnetometerResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } @@ -3044,26 +3226,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -3072,28 +3254,28 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerRespo return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); } return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) return _msg; } inline void CalibrateMagnetometerResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); + delete (_impl_.calibration_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3113,12 +3295,12 @@ inline bool CalibrateMagnetometerResponse::has_progress_data() const { return value; } inline void CalibrateMagnetometerResponse::clear_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); 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); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); } @@ -3127,7 +3309,7 @@ inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateMagnetometerResp return _internal_progress_data(); } inline void CalibrateMagnetometerResponse::unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); } @@ -3140,26 +3322,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000002u; ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; _impl_.progress_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse::unsafe_arena_release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) _impl_._has_bits_[0] &= ~0x00000002u; @@ -3168,28 +3350,28 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse:: return temp; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse::_internal_mutable_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.progress_data_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::ProgressData>(GetArena()); _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); } return _impl_.progress_data_; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) return _msg; } inline void CalibrateMagnetometerResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); + delete (_impl_.progress_data_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3217,12 +3399,12 @@ inline bool CalibrateLevelHorizonResponse::has_calibration_result() const { return value; } inline void CalibrateLevelHorizonResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); 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); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -3231,7 +3413,7 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateLevelHorizo return _internal_calibration_result(); } inline void CalibrateLevelHorizonResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } @@ -3244,26 +3426,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -3272,28 +3454,28 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonRespo return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); } return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) return _msg; } inline void CalibrateLevelHorizonResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); + delete (_impl_.calibration_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3313,12 +3495,12 @@ inline bool CalibrateLevelHorizonResponse::has_progress_data() const { return value; } inline void CalibrateLevelHorizonResponse::clear_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); 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); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); } @@ -3327,7 +3509,7 @@ inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateLevelHorizonResp return _internal_progress_data(); } inline void CalibrateLevelHorizonResponse::unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); } @@ -3340,26 +3522,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000002u; ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; _impl_.progress_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse::unsafe_arena_release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) _impl_._has_bits_[0] &= ~0x00000002u; @@ -3368,28 +3550,28 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse:: return temp; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse::_internal_mutable_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.progress_data_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::ProgressData>(GetArena()); _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); } return _impl_.progress_data_; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) return _msg; } inline void CalibrateLevelHorizonResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); + delete (_impl_.progress_data_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3417,12 +3599,12 @@ inline bool CalibrateGimbalAccelerometerResponse::has_calibration_result() const return value; } inline void CalibrateGimbalAccelerometerResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); 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); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -3431,7 +3613,7 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGimbalAccel return _internal_calibration_result(); } inline void CalibrateGimbalAccelerometerResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } @@ -3444,26 +3626,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAccelerometerResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -3472,28 +3654,28 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAcceleromet return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAccelerometerResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); } return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAccelerometerResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) return _msg; } inline void CalibrateGimbalAccelerometerResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); + delete (_impl_.calibration_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3513,12 +3695,12 @@ inline bool CalibrateGimbalAccelerometerResponse::has_progress_data() const { return value; } inline void CalibrateGimbalAccelerometerResponse::clear_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); 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); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_ProgressData_default_instance_); } @@ -3527,7 +3709,7 @@ inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGimbalAccelerome return _internal_progress_data(); } inline void CalibrateGimbalAccelerometerResponse::unsafe_arena_set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.progress_data_); } @@ -3540,26 +3722,26 @@ 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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000002u; ::mavsdk::rpc::calibration::ProgressData* released = _impl_.progress_data_; _impl_.progress_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerResponse::unsafe_arena_release_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) _impl_._has_bits_[0] &= ~0x00000002u; @@ -3568,28 +3750,28 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerRes return temp; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerResponse::_internal_mutable_progress_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.progress_data_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::ProgressData>(GetArena()); _impl_.progress_data_ = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(p); } return _impl_.progress_data_; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerResponse::mutable_progress_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) return _msg; } inline void CalibrateGimbalAccelerometerResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(_impl_.progress_data_); + delete (_impl_.progress_data_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::ProgressData*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3617,12 +3799,12 @@ inline bool CancelResponse::has_calibration_result() const { return value; } inline void CancelResponse::clear_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); 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); + ::google::protobuf::internal::TSanRead(&_impl_); const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -3631,7 +3813,7 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CancelResponse::cali return _internal_calibration_result(); } inline void CancelResponse::unsafe_arena_set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.calibration_result_); } @@ -3644,26 +3826,26 @@ inline void CancelResponse::unsafe_arena_set_allocated_calibration_result(::mavs // @@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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] &= ~0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* released = _impl_.calibration_result_; _impl_.calibration_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return released; } inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::unsafe_arena_release_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CancelResponse.calibration_result) _impl_._has_bits_[0] &= ~0x00000001u; @@ -3672,28 +3854,28 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::unsafe_are return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::_internal_mutable_calibration_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.calibration_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); + auto* p = ::google::protobuf::Message::DefaultConstruct<::mavsdk::rpc::calibration::CalibrationResult>(GetArena()); _impl_.calibration_result_ = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(p); } return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::mutable_calibration_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); // @@protoc_insertion_point(field_mutable:mavsdk.rpc.calibration.CancelResponse.calibration_result) return _msg; } inline void CancelResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* value) { ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(_impl_.calibration_result_); + delete (_impl_.calibration_result_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::calibration::CalibrationResult*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } @@ -3712,7 +3894,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = 0; } inline ::mavsdk::rpc::calibration::CalibrationResult_Result CalibrationResult::result() const { @@ -3724,18 +3906,17 @@ inline void CalibrationResult::set_result(::mavsdk::rpc::calibration::Calibratio // @@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); + ::google::protobuf::internal::TSanRead(&_impl_); return static_cast<::mavsdk::rpc::calibration::CalibrationResult_Result>(_impl_.result_); } inline void CalibrationResult::_internal_set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_ = value; } // string result_str = 2; inline void CalibrationResult::clear_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.ClearToEmpty(); } inline const std::string& CalibrationResult::result_str() const @@ -3746,8 +3927,7 @@ inline const std::string& CalibrationResult::result_str() const template inline PROTOBUF_ALWAYS_INLINE void CalibrationResult::set_result_str(Arg_&& arg, Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.CalibrationResult.result_str) } @@ -3757,32 +3937,28 @@ inline std::string* CalibrationResult::mutable_result_str() ABSL_ATTRIBUTE_LIFET return _s; } inline const std::string& CalibrationResult::_internal_result_str() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.result_str_.Get(); } inline void CalibrationResult::_internal_set_result_str(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.Set(value, GetArena()); } inline std::string* CalibrationResult::_internal_mutable_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.result_str_.Mutable( GetArena()); } inline std::string* CalibrationResult::release_result_str() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrationResult.result_str) return _impl_.result_str_.Release(); } inline void CalibrationResult::set_allocated_result_str(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.result_str_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.result_str_.IsDefault()) { - _impl_.result_str_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.result_str_.IsDefault()) { + _impl_.result_str_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrationResult.result_str) } @@ -3792,7 +3968,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); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.has_progress_ = false; } inline bool ProgressData::has_progress() const { @@ -3804,18 +3980,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.has_progress_; } inline void ProgressData::_internal_set_has_progress(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.has_progress_ = value; } // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; inline void ProgressData::clear_progress() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.progress_ = 0; } inline float ProgressData::progress() const { @@ -3827,18 +4002,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.progress_; } inline void ProgressData::_internal_set_progress(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.progress_ = value; } // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; inline void ProgressData::clear_has_status_text() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.has_status_text_ = false; } inline bool ProgressData::has_status_text() const { @@ -3850,18 +4024,17 @@ 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); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.has_status_text_; } inline void ProgressData::_internal_set_has_status_text(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.has_status_text_ = value; } // string status_text = 4; inline void ProgressData::clear_status_text() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.status_text_.ClearToEmpty(); } inline const std::string& ProgressData::status_text() const @@ -3872,8 +4045,7 @@ inline const std::string& ProgressData::status_text() const template inline PROTOBUF_ALWAYS_INLINE void ProgressData::set_status_text(Arg_&& arg, Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.status_text_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.status_text) } @@ -3883,32 +4055,28 @@ inline std::string* ProgressData::mutable_status_text() ABSL_ATTRIBUTE_LIFETIME_ return _s; } inline const std::string& ProgressData::_internal_status_text() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.status_text_.Get(); } inline void ProgressData::_internal_set_status_text(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.status_text_.Set(value, GetArena()); } inline std::string* ProgressData::_internal_mutable_status_text() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.status_text_.Mutable( GetArena()); } inline std::string* ProgressData::release_status_text() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.ProgressData.status_text) return _impl_.status_text_.Release(); } inline void ProgressData::set_allocated_status_text(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.status_text_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.status_text_.IsDefault()) { - _impl_.status_text_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.status_text_.IsDefault()) { + _impl_.status_text_.Set("", GetArena()); + } // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.ProgressData.status_text) } @@ -3939,4 +4107,4 @@ inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::calibration::Calib #include "google/protobuf/port_undef.inc" -#endif // GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto_2epb_2eh +#endif // calibration_2fcalibration_2eproto_2epb_2eh diff --git a/src/mavsdk_server/src/generated/camera/camera.pb.cc b/src/mavsdk_server/src/generated/camera/camera.pb.cc index 415cd73036..7cfc9077a4 100644 --- a/src/mavsdk_server/src/generated/camera/camera.pb.cc +++ b/src/mavsdk_server/src/generated/camera/camera.pb.cc @@ -1,17 +1,21 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: camera/camera.proto +// Protobuf C++ Version: 5.29.1 #include "camera/camera.pb.h" #include +#include #include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -23,8 +27,14 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace mavsdk { namespace rpc { namespace camera { - template -PROTOBUF_CONSTEXPR ZoomStopRequest::ZoomStopRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR ZoomStopRequest::ZoomStopRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ZoomStopRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ZoomStopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ZoomStopRequestDefaultTypeInternal() {} @@ -43,7 +53,13 @@ inline constexpr ZoomRangeRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR ZoomRangeRequest::ZoomRangeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ZoomRangeRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ZoomRangeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ZoomRangeRequestDefaultTypeInternal() {} @@ -54,8 +70,14 @@ struct ZoomRangeRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ZoomRangeRequestDefaultTypeInternal _ZoomRangeRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ZoomOutStartRequest::ZoomOutStartRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR ZoomOutStartRequest::ZoomOutStartRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ZoomOutStartRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ZoomOutStartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ZoomOutStartRequestDefaultTypeInternal() {} @@ -66,8 +88,14 @@ struct ZoomOutStartRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ZoomOutStartRequestDefaultTypeInternal _ZoomOutStartRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ZoomInStartRequest::ZoomInStartRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR ZoomInStartRequest::ZoomInStartRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ZoomInStartRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ZoomInStartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ZoomInStartRequestDefaultTypeInternal() {} @@ -94,7 +122,13 @@ inline constexpr VideoStreamSettings::Impl_::Impl_( template PROTOBUF_CONSTEXPR VideoStreamSettings::VideoStreamSettings(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct VideoStreamSettingsDefaultTypeInternal { PROTOBUF_CONSTEXPR VideoStreamSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~VideoStreamSettingsDefaultTypeInternal() {} @@ -105,8 +139,14 @@ struct VideoStreamSettingsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamSettingsDefaultTypeInternal _VideoStreamSettings_default_instance_; - template -PROTOBUF_CONSTEXPR TrackStopRequest::TrackStopRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR TrackStopRequest::TrackStopRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct TrackStopRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TrackStopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TrackStopRequestDefaultTypeInternal() {} @@ -128,7 +168,13 @@ inline constexpr TrackRectangleRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR TrackRectangleRequest::TrackRectangleRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TrackRectangleRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TrackRectangleRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TrackRectangleRequestDefaultTypeInternal() {} @@ -149,7 +195,13 @@ inline constexpr TrackPointRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR TrackPointRequest::TrackPointRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TrackPointRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TrackPointRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TrackPointRequestDefaultTypeInternal() {} @@ -160,8 +212,14 @@ struct TrackPointRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrackPointRequestDefaultTypeInternal _TrackPointRequest_default_instance_; - template -PROTOBUF_CONSTEXPR TakePhotoRequest::TakePhotoRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR TakePhotoRequest::TakePhotoRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct TakePhotoRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TakePhotoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakePhotoRequestDefaultTypeInternal() {} @@ -172,8 +230,14 @@ struct TakePhotoRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakePhotoRequestDefaultTypeInternal _TakePhotoRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeVideoStreamInfoRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeVideoStreamInfoRequestDefaultTypeInternal() {} @@ -184,8 +248,14 @@ struct SubscribeVideoStreamInfoRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeVideoStreamInfoRequestDefaultTypeInternal _SubscribeVideoStreamInfoRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeStatusRequest::SubscribeStatusRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeStatusRequest::SubscribeStatusRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeStatusRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeStatusRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeStatusRequestDefaultTypeInternal() {} @@ -196,8 +266,14 @@ struct SubscribeStatusRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeStatusRequestDefaultTypeInternal _SubscribeStatusRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribePossibleSettingOptionsRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribePossibleSettingOptionsRequestDefaultTypeInternal() {} @@ -208,8 +284,14 @@ struct SubscribePossibleSettingOptionsRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribePossibleSettingOptionsRequestDefaultTypeInternal _SubscribePossibleSettingOptionsRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeModeRequest::SubscribeModeRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeModeRequest::SubscribeModeRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeModeRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeModeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeModeRequestDefaultTypeInternal() {} @@ -220,8 +302,14 @@ struct SubscribeModeRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeModeRequestDefaultTypeInternal _SubscribeModeRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeInformationRequest::SubscribeInformationRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeInformationRequest::SubscribeInformationRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeInformationRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeInformationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeInformationRequestDefaultTypeInternal() {} @@ -232,8 +320,14 @@ struct SubscribeInformationRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeInformationRequestDefaultTypeInternal _SubscribeInformationRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeCurrentSettingsRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCurrentSettingsRequestDefaultTypeInternal() {} @@ -244,8 +338,14 @@ struct SubscribeCurrentSettingsRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCurrentSettingsRequestDefaultTypeInternal _SubscribeCurrentSettingsRequest_default_instance_; - template -PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct SubscribeCaptureInfoRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCaptureInfoRequestDefaultTypeInternal() {} @@ -264,7 +364,13 @@ inline constexpr StopVideoStreamingRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR StopVideoStreamingRequest::StopVideoStreamingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StopVideoStreamingRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR StopVideoStreamingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopVideoStreamingRequestDefaultTypeInternal() {} @@ -275,8 +381,14 @@ struct StopVideoStreamingRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoStreamingRequestDefaultTypeInternal _StopVideoStreamingRequest_default_instance_; - template -PROTOBUF_CONSTEXPR StopVideoRequest::StopVideoRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR StopVideoRequest::StopVideoRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct StopVideoRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR StopVideoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopVideoRequestDefaultTypeInternal() {} @@ -287,8 +399,14 @@ struct StopVideoRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoRequestDefaultTypeInternal _StopVideoRequest_default_instance_; - template -PROTOBUF_CONSTEXPR StopPhotoIntervalRequest::StopPhotoIntervalRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR StopPhotoIntervalRequest::StopPhotoIntervalRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct StopPhotoIntervalRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR StopPhotoIntervalRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopPhotoIntervalRequestDefaultTypeInternal() {} @@ -318,7 +436,13 @@ inline constexpr Status::Impl_::Impl_( template PROTOBUF_CONSTEXPR Status::Status(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StatusDefaultTypeInternal { PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StatusDefaultTypeInternal() {} @@ -337,7 +461,13 @@ inline constexpr StartVideoStreamingRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR StartVideoStreamingRequest::StartVideoStreamingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StartVideoStreamingRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR StartVideoStreamingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartVideoStreamingRequestDefaultTypeInternal() {} @@ -348,8 +478,14 @@ struct StartVideoStreamingRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoStreamingRequestDefaultTypeInternal _StartVideoStreamingRequest_default_instance_; - template -PROTOBUF_CONSTEXPR StartVideoRequest::StartVideoRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR StartVideoRequest::StartVideoRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct StartVideoRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR StartVideoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartVideoRequestDefaultTypeInternal() {} @@ -368,7 +504,13 @@ inline constexpr StartPhotoIntervalRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR StartPhotoIntervalRequest::StartPhotoIntervalRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StartPhotoIntervalRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR StartPhotoIntervalRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartPhotoIntervalRequestDefaultTypeInternal() {} @@ -387,7 +529,13 @@ inline constexpr SetModeRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetModeRequest::SetModeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetModeRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SetModeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetModeRequestDefaultTypeInternal() {} @@ -406,7 +554,13 @@ inline constexpr SelectCameraRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SelectCameraRequest::SelectCameraRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SelectCameraRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SelectCameraRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SelectCameraRequestDefaultTypeInternal() {} @@ -417,8 +571,14 @@ struct SelectCameraRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectCameraRequestDefaultTypeInternal _SelectCameraRequest_default_instance_; - template -PROTOBUF_CONSTEXPR ResetSettingsRequest::ResetSettingsRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR ResetSettingsRequest::ResetSettingsRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ResetSettingsRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ResetSettingsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ResetSettingsRequestDefaultTypeInternal() {} @@ -440,7 +600,13 @@ inline constexpr Quaternion::Impl_::Impl_( template PROTOBUF_CONSTEXPR Quaternion::Quaternion(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct QuaternionDefaultTypeInternal { PROTOBUF_CONSTEXPR QuaternionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~QuaternionDefaultTypeInternal() {} @@ -451,8 +617,14 @@ struct QuaternionDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuaternionDefaultTypeInternal _Quaternion_default_instance_; - template -PROTOBUF_CONSTEXPR PrepareRequest::PrepareRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR PrepareRequest::PrepareRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct PrepareRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR PrepareRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PrepareRequestDefaultTypeInternal() {} @@ -474,7 +646,13 @@ inline constexpr Position::Impl_::Impl_( template PROTOBUF_CONSTEXPR Position::Position(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PositionDefaultTypeInternal { PROTOBUF_CONSTEXPR PositionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PositionDefaultTypeInternal() {} @@ -498,7 +676,13 @@ inline constexpr Option::Impl_::Impl_( template PROTOBUF_CONSTEXPR Option::Option(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct OptionDefaultTypeInternal { PROTOBUF_CONSTEXPR OptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~OptionDefaultTypeInternal() {} @@ -517,7 +701,13 @@ inline constexpr ModeResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ModeResponse::ModeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ModeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ModeResponseDefaultTypeInternal() {} @@ -536,7 +726,13 @@ inline constexpr ListPhotosRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR ListPhotosRequest::ListPhotosRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ListPhotosRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ListPhotosRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListPhotosRequestDefaultTypeInternal() {} @@ -565,7 +761,13 @@ inline constexpr Information::Impl_::Impl_( template PROTOBUF_CONSTEXPR Information::Information(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct InformationDefaultTypeInternal { PROTOBUF_CONSTEXPR InformationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~InformationDefaultTypeInternal() {} @@ -584,7 +786,13 @@ inline constexpr FormatStorageRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR FormatStorageRequest::FormatStorageRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FormatStorageRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR FormatStorageRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FormatStorageRequestDefaultTypeInternal() {} @@ -595,8 +803,14 @@ struct FormatStorageRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FormatStorageRequestDefaultTypeInternal _FormatStorageRequest_default_instance_; - template -PROTOBUF_CONSTEXPR FocusStopRequest::FocusStopRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR FocusStopRequest::FocusStopRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct FocusStopRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR FocusStopRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FocusStopRequestDefaultTypeInternal() {} @@ -615,7 +829,13 @@ inline constexpr FocusRangeRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR FocusRangeRequest::FocusRangeRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FocusRangeRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR FocusRangeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FocusRangeRequestDefaultTypeInternal() {} @@ -626,8 +846,14 @@ struct FocusRangeRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FocusRangeRequestDefaultTypeInternal _FocusRangeRequest_default_instance_; - template -PROTOBUF_CONSTEXPR FocusOutStartRequest::FocusOutStartRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR FocusOutStartRequest::FocusOutStartRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct FocusOutStartRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR FocusOutStartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FocusOutStartRequestDefaultTypeInternal() {} @@ -638,8 +864,14 @@ struct FocusOutStartRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FocusOutStartRequestDefaultTypeInternal _FocusOutStartRequest_default_instance_; - template -PROTOBUF_CONSTEXPR FocusInStartRequest::FocusInStartRequest(::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR FocusInStartRequest::FocusInStartRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct FocusInStartRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR FocusInStartRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FocusInStartRequestDefaultTypeInternal() {} @@ -660,7 +892,13 @@ inline constexpr EulerAngle::Impl_::Impl_( template PROTOBUF_CONSTEXPR EulerAngle::EulerAngle(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct EulerAngleDefaultTypeInternal { PROTOBUF_CONSTEXPR EulerAngleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EulerAngleDefaultTypeInternal() {} @@ -682,7 +920,13 @@ inline constexpr CameraResult::Impl_::Impl_( template PROTOBUF_CONSTEXPR CameraResult::CameraResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CameraResultDefaultTypeInternal { PROTOBUF_CONSTEXPR CameraResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CameraResultDefaultTypeInternal() {} @@ -701,7 +945,13 @@ inline constexpr ZoomStopResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ZoomStopResponse::ZoomStopResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ZoomStopResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ZoomStopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ZoomStopResponseDefaultTypeInternal() {} @@ -720,7 +970,13 @@ inline constexpr ZoomRangeResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ZoomRangeResponse::ZoomRangeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ZoomRangeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ZoomRangeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ZoomRangeResponseDefaultTypeInternal() {} @@ -739,7 +995,13 @@ inline constexpr ZoomOutStartResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ZoomOutStartResponse::ZoomOutStartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ZoomOutStartResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ZoomOutStartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ZoomOutStartResponseDefaultTypeInternal() {} @@ -758,7 +1020,13 @@ inline constexpr ZoomInStartResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ZoomInStartResponse::ZoomInStartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ZoomInStartResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ZoomInStartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ZoomInStartResponseDefaultTypeInternal() {} @@ -779,7 +1047,13 @@ inline constexpr VideoStreamInfo::Impl_::Impl_( template PROTOBUF_CONSTEXPR VideoStreamInfo::VideoStreamInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct VideoStreamInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR VideoStreamInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~VideoStreamInfoDefaultTypeInternal() {} @@ -798,7 +1072,13 @@ inline constexpr TrackStopResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR TrackStopResponse::TrackStopResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TrackStopResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TrackStopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TrackStopResponseDefaultTypeInternal() {} @@ -817,7 +1097,13 @@ inline constexpr TrackRectangleResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR TrackRectangleResponse::TrackRectangleResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TrackRectangleResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TrackRectangleResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TrackRectangleResponseDefaultTypeInternal() {} @@ -836,7 +1122,13 @@ inline constexpr TrackPointResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR TrackPointResponse::TrackPointResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TrackPointResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TrackPointResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TrackPointResponseDefaultTypeInternal() {} @@ -855,7 +1147,13 @@ inline constexpr TakePhotoResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR TakePhotoResponse::TakePhotoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct TakePhotoResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR TakePhotoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakePhotoResponseDefaultTypeInternal() {} @@ -874,7 +1172,13 @@ inline constexpr StopVideoStreamingResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR StopVideoStreamingResponse::StopVideoStreamingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StopVideoStreamingResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR StopVideoStreamingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopVideoStreamingResponseDefaultTypeInternal() {} @@ -893,7 +1197,13 @@ inline constexpr StopVideoResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR StopVideoResponse::StopVideoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StopVideoResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR StopVideoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopVideoResponseDefaultTypeInternal() {} @@ -912,7 +1222,13 @@ inline constexpr StopPhotoIntervalResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR StopPhotoIntervalResponse::StopPhotoIntervalResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StopPhotoIntervalResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR StopPhotoIntervalResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopPhotoIntervalResponseDefaultTypeInternal() {} @@ -931,7 +1247,13 @@ inline constexpr StatusResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR StatusResponse::StatusResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StatusResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR StatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StatusResponseDefaultTypeInternal() {} @@ -950,7 +1272,13 @@ inline constexpr StartVideoStreamingResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR StartVideoStreamingResponse::StartVideoStreamingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StartVideoStreamingResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR StartVideoStreamingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartVideoStreamingResponseDefaultTypeInternal() {} @@ -969,7 +1297,13 @@ inline constexpr StartVideoResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR StartVideoResponse::StartVideoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StartVideoResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR StartVideoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartVideoResponseDefaultTypeInternal() {} @@ -988,7 +1322,13 @@ inline constexpr StartPhotoIntervalResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR StartPhotoIntervalResponse::StartPhotoIntervalResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StartPhotoIntervalResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR StartPhotoIntervalResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartPhotoIntervalResponseDefaultTypeInternal() {} @@ -1014,7 +1354,13 @@ inline constexpr SettingOptions::Impl_::Impl_( template PROTOBUF_CONSTEXPR SettingOptions::SettingOptions(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SettingOptionsDefaultTypeInternal { PROTOBUF_CONSTEXPR SettingOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SettingOptionsDefaultTypeInternal() {} @@ -1040,7 +1386,13 @@ inline constexpr Setting::Impl_::Impl_( template PROTOBUF_CONSTEXPR Setting::Setting(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SettingDefaultTypeInternal { PROTOBUF_CONSTEXPR SettingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SettingDefaultTypeInternal() {} @@ -1059,7 +1411,13 @@ inline constexpr SetSettingResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetSettingResponse::SetSettingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetSettingResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetSettingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetSettingResponseDefaultTypeInternal() {} @@ -1078,7 +1436,13 @@ inline constexpr SetModeResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetModeResponse::SetModeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetModeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SetModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetModeResponseDefaultTypeInternal() {} @@ -1097,7 +1461,13 @@ inline constexpr SelectCameraResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR SelectCameraResponse::SelectCameraResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SelectCameraResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR SelectCameraResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SelectCameraResponseDefaultTypeInternal() {} @@ -1116,7 +1486,13 @@ inline constexpr ResetSettingsResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ResetSettingsResponse::ResetSettingsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ResetSettingsResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ResetSettingsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ResetSettingsResponseDefaultTypeInternal() {} @@ -1135,7 +1511,13 @@ inline constexpr PrepareResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR PrepareResponse::PrepareResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PrepareResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR PrepareResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PrepareResponseDefaultTypeInternal() {} @@ -1154,7 +1536,13 @@ inline constexpr InformationResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR InformationResponse::InformationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct InformationResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR InformationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~InformationResponseDefaultTypeInternal() {} @@ -1173,7 +1561,13 @@ inline constexpr FormatStorageResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR FormatStorageResponse::FormatStorageResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FormatStorageResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR FormatStorageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FormatStorageResponseDefaultTypeInternal() {} @@ -1192,7 +1586,13 @@ inline constexpr FocusStopResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR FocusStopResponse::FocusStopResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FocusStopResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR FocusStopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FocusStopResponseDefaultTypeInternal() {} @@ -1211,7 +1611,13 @@ inline constexpr FocusRangeResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR FocusRangeResponse::FocusRangeResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FocusRangeResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR FocusRangeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FocusRangeResponseDefaultTypeInternal() {} @@ -1230,7 +1636,13 @@ inline constexpr FocusOutStartResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR FocusOutStartResponse::FocusOutStartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FocusOutStartResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR FocusOutStartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FocusOutStartResponseDefaultTypeInternal() {} @@ -1249,7 +1661,13 @@ inline constexpr FocusInStartResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR FocusInStartResponse::FocusInStartResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FocusInStartResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR FocusInStartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FocusInStartResponseDefaultTypeInternal() {} @@ -1276,7 +1694,13 @@ inline constexpr CaptureInfo::Impl_::Impl_( template PROTOBUF_CONSTEXPR CaptureInfo::CaptureInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CaptureInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR CaptureInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CaptureInfoDefaultTypeInternal() {} @@ -1295,7 +1719,13 @@ inline constexpr VideoStreamInfoResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR VideoStreamInfoResponse::VideoStreamInfoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct VideoStreamInfoResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR VideoStreamInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~VideoStreamInfoResponseDefaultTypeInternal() {} @@ -1314,7 +1744,13 @@ inline constexpr SetSettingRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR SetSettingRequest::SetSettingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SetSettingRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR SetSettingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetSettingRequestDefaultTypeInternal() {} @@ -1333,7 +1769,13 @@ inline constexpr PossibleSettingOptionsResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PossibleSettingOptionsResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR PossibleSettingOptionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PossibleSettingOptionsResponseDefaultTypeInternal() {} @@ -1353,7 +1795,13 @@ inline constexpr ListPhotosResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR ListPhotosResponse::ListPhotosResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ListPhotosResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR ListPhotosResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListPhotosResponseDefaultTypeInternal() {} @@ -1373,7 +1821,13 @@ inline constexpr GetSettingResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetSettingResponse::GetSettingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetSettingResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR GetSettingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetSettingResponseDefaultTypeInternal() {} @@ -1392,7 +1846,13 @@ inline constexpr GetSettingRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR GetSettingRequest::GetSettingRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct GetSettingRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR GetSettingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetSettingRequestDefaultTypeInternal() {} @@ -1411,7 +1871,13 @@ inline constexpr CurrentSettingsResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR CurrentSettingsResponse::CurrentSettingsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CurrentSettingsResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CurrentSettingsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CurrentSettingsResponseDefaultTypeInternal() {} @@ -1430,7 +1896,13 @@ inline constexpr CaptureInfoResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR CaptureInfoResponse::CaptureInfoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct CaptureInfoResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CaptureInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CaptureInfoResponseDefaultTypeInternal() {} @@ -1444,798 +1916,798 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT } // namespace camera } // namespace rpc } // namespace mavsdk -static ::_pb::Metadata file_level_metadata_camera_2fcamera_2eproto[78]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_camera_2fcamera_2eproto[7]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_camera_2fcamera_2eproto = nullptr; -const ::uint32_t TableStruct_camera_2fcamera_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalRequest, _impl_.interval_s_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingRequest, _impl_.stream_id_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingRequest, _impl_.stream_id_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeRequest, _impl_.mode_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosRequest, _impl_.photos_range_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_.camera_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_.capture_infos_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeInformationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _impl_.information_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeModeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ModeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ModeResponse, _impl_.mode_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _impl_.video_stream_info_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeCaptureInfoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _impl_.capture_info_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeStatusRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _impl_.camera_status_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CurrentSettingsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CurrentSettingsResponse, _impl_.current_settings_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PossibleSettingOptionsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PossibleSettingOptionsResponse, _impl_.setting_options_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _impl_.setting_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _impl_.camera_result_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _impl_.setting_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_.camera_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_.setting_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageRequest, _impl_.storage_id_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _impl_.camera_result_), - 0, - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraRequest, _impl_.camera_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeRequest, _impl_.range_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _impl_.point_x_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _impl_.point_y_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _impl_.radius_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.top_left_x_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.top_left_y_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.bottom_right_x_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.bottom_right_y_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeRequest, _impl_.range_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeResponse, _impl_.camera_result_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _impl_.result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _impl_.result_str_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.latitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.longitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.absolute_altitude_m_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.relative_altitude_m_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.w_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.z_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.roll_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.pitch_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.yaw_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.position_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.attitude_quaternion_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.attitude_euler_angle_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.time_utc_us_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.is_success_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.index_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.file_url_), - 0, - 1, - 2, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.frame_rate_hz_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.horizontal_resolution_pix_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.vertical_resolution_pix_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.bit_rate_b_s_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.rotation_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.uri_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.horizontal_fov_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.settings_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.spectrum_), - 0, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.video_on_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.photo_interval_on_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.used_storage_mib_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.available_storage_mib_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.total_storage_mib_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.recording_time_s_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.media_folder_name_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_status_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_id_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _impl_.option_id_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _impl_.option_description_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.setting_id_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.setting_description_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.option_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.is_range_), - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.setting_id_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.setting_description_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.options_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.is_range_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.vendor_name_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.model_name_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.focal_length_mm_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.horizontal_sensor_size_mm_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.vertical_sensor_size_mm_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.horizontal_resolution_px_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.vertical_resolution_px_), +const ::uint32_t + TableStruct_camera_2fcamera_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalRequest, _impl_.interval_s_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingRequest, _impl_.stream_id_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingRequest, _impl_.stream_id_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeRequest, _impl_.mode_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosRequest, _impl_.photos_range_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_.camera_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_.capture_infos_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeInformationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _impl_.information_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeModeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ModeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ModeResponse, _impl_.mode_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _impl_.video_stream_info_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeCaptureInfoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _impl_.capture_info_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeStatusRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _impl_.camera_status_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CurrentSettingsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CurrentSettingsResponse, _impl_.current_settings_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PossibleSettingOptionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PossibleSettingOptionsResponse, _impl_.setting_options_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _impl_.setting_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _impl_.camera_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _impl_.setting_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_.camera_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_.setting_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageRequest, _impl_.storage_id_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _impl_.camera_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraRequest, _impl_.camera_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ResetSettingsResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomInStartResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomOutStartResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomStopResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeRequest, _impl_.range_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ZoomRangeResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _impl_.point_x_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _impl_.point_y_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointRequest, _impl_.radius_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackPointResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.top_left_x_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.top_left_y_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.bottom_right_x_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleRequest, _impl_.bottom_right_y_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackRectangleResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TrackStopResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusInStartResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusOutStartResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusStopResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeRequest, _impl_.range_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FocusRangeResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _impl_.result_str_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.latitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.longitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.absolute_altitude_m_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.relative_altitude_m_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.w_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.roll_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.pitch_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.yaw_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.position_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.attitude_quaternion_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.attitude_euler_angle_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.time_utc_us_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.is_success_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.index_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.file_url_), + 0, + 1, + 2, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.frame_rate_hz_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.horizontal_resolution_pix_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.vertical_resolution_pix_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.bit_rate_b_s_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.rotation_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.uri_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.horizontal_fov_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.settings_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.status_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.spectrum_), + 0, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.video_on_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.photo_interval_on_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.used_storage_mib_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.available_storage_mib_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.total_storage_mib_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.recording_time_s_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.media_folder_name_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_status_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_id_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _impl_.option_id_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _impl_.option_description_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.setting_id_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.setting_description_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.option_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.is_range_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.setting_id_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.setting_description_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.options_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.is_range_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.vendor_name_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.model_name_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.focal_length_mm_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.horizontal_sensor_size_mm_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.vertical_sensor_size_mm_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.horizontal_resolution_px_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.vertical_resolution_px_), }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::mavsdk::rpc::camera::PrepareRequest)}, {8, 17, -1, sizeof(::mavsdk::rpc::camera::PrepareResponse)}, {18, -1, -1, sizeof(::mavsdk::rpc::camera::TakePhotoRequest)}, @@ -2315,7 +2787,6 @@ static const ::_pbi::MigrationSchema {755, -1, -1, sizeof(::mavsdk::rpc::camera::SettingOptions)}, {767, -1, -1, sizeof(::mavsdk::rpc::camera::Information)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::camera::_PrepareRequest_default_instance_._instance, &::mavsdk::rpc::camera::_PrepareResponse_default_instance_._instance, @@ -2396,7 +2867,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::camera::_SettingOptions_default_instance_._instance, &::mavsdk::rpc::camera::_Information_default_instance_._instance, }; -const char descriptor_table_protodef_camera_2fcamera_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_camera_2fcamera_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\023camera/camera.proto\022\021mavsdk.rpc.camera" "\032\024mavsdk_options.proto\"\020\n\016PrepareRequest" "\"I\n\017PrepareResponse\0226\n\rcamera_result\030\001 \001" @@ -2660,7 +3132,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_camera_2fcamera_2ep &::descriptor_table_mavsdk_5foptions_2eproto, }; static ::absl::once_flag descriptor_table_camera_2fcamera_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_camera_2fcamera_2eproto = { +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_camera_2fcamera_2eproto = { false, false, 10256, @@ -2673,28 +3145,9 @@ const ::_pbi::DescriptorTable descriptor_table_camera_2fcamera_2eproto = { schemas, file_default_instances, TableStruct_camera_2fcamera_2eproto::offsets, - file_level_metadata_camera_2fcamera_2eproto, file_level_enum_descriptors_camera_2fcamera_2eproto, file_level_service_descriptors_camera_2fcamera_2eproto, }; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_camera_2fcamera_2eproto_getter() { - return &descriptor_table_camera_2fcamera_2eproto; -} -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_camera_2fcamera_2eproto(&descriptor_table_camera_2fcamera_2eproto); namespace mavsdk { namespace rpc { namespace camera { @@ -2838,13 +3291,21 @@ class PrepareRequest::_Internal { }; PrepareRequest::PrepareRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PrepareRequest) } PrepareRequest::PrepareRequest( ::google::protobuf::Arena* arena, const PrepareRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE PrepareRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -2853,6 +3314,68 @@ PrepareRequest::PrepareRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PrepareRequest) } +inline void* PrepareRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) PrepareRequest(arena); +} +constexpr auto PrepareRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PrepareRequest), + alignof(PrepareRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull PrepareRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_PrepareRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PrepareRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PrepareRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &PrepareRequest::ByteSizeLong, + &PrepareRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PrepareRequest, _impl_._cached_size_), + false, + }, + &PrepareRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* PrepareRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> PrepareRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::PrepareRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -2862,50 +3385,50 @@ PrepareRequest::PrepareRequest( ::google::protobuf::Metadata PrepareRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[0]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class PrepareResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const PrepareResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& PrepareResponse::_Internal::camera_result(const PrepareResponse* msg) { - return *msg->_impl_.camera_result_; -} PrepareResponse::PrepareResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PrepareResponse) } inline PROTOBUF_NDEBUG_INLINE PrepareResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::PrepareResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} PrepareResponse::PrepareResponse( ::google::protobuf::Arena* arena, const PrepareResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE PrepareResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PrepareResponse) } @@ -2920,38 +3443,51 @@ inline void PrepareResponse::SharedCtor(::_pb::Arena* arena) { } PrepareResponse::~PrepareResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.PrepareResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void PrepareResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void PrepareResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.PrepareResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PrepareResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void PrepareResponse::SharedDtor(MessageLite& self) { + PrepareResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* PrepareResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) PrepareResponse(arena); +} +constexpr auto PrepareResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PrepareResponse), + alignof(PrepareResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull PrepareResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_PrepareResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PrepareResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PrepareResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &PrepareResponse::ByteSizeLong, + &PrepareResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_._cached_size_), + false, + }, + &PrepareResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* PrepareResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PrepareResponse::_table_ = { { @@ -2964,8 +3500,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PrepareResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_PrepareResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::PrepareResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -2982,68 +3522,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PrepareResponse::_table_ = { }}, }; -::uint8_t* PrepareResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.PrepareResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.PrepareResponse) - return target; -} - -::size_t PrepareResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.PrepareResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void PrepareResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.PrepareResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData PrepareResponse::_class_data_ = { - PrepareResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* PrepareResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void PrepareResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* PrepareResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const PrepareResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* PrepareResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const PrepareResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.PrepareResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.PrepareResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t PrepareResponse::ByteSizeLong(const MessageLite& base) { + const PrepareResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t PrepareResponse::ByteSizeLong() const { + const PrepareResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.PrepareResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void PrepareResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.PrepareResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3054,13 +3626,7 @@ void PrepareResponse::CopyFrom(const PrepareResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool PrepareResponse::IsInitialized() const { - return true; -} -::_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_); @@ -3069,9 +3635,7 @@ void PrepareResponse::InternalSwap(PrepareResponse* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -3080,13 +3644,21 @@ class TakePhotoRequest::_Internal { }; TakePhotoRequest::TakePhotoRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TakePhotoRequest) } TakePhotoRequest::TakePhotoRequest( ::google::protobuf::Arena* arena, const TakePhotoRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TakePhotoRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -3095,6 +3667,68 @@ TakePhotoRequest::TakePhotoRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TakePhotoRequest) } +inline void* TakePhotoRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TakePhotoRequest(arena); +} +constexpr auto TakePhotoRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TakePhotoRequest), + alignof(TakePhotoRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TakePhotoRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TakePhotoRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TakePhotoRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TakePhotoRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &TakePhotoRequest::ByteSizeLong, + &TakePhotoRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TakePhotoRequest, _impl_._cached_size_), + false, + }, + &TakePhotoRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TakePhotoRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> TakePhotoRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TakePhotoRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -3104,50 +3738,50 @@ TakePhotoRequest::TakePhotoRequest( ::google::protobuf::Metadata TakePhotoRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[2]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TakePhotoResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const TakePhotoResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& TakePhotoResponse::_Internal::camera_result(const TakePhotoResponse* msg) { - return *msg->_impl_.camera_result_; -} TakePhotoResponse::TakePhotoResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TakePhotoResponse) } inline PROTOBUF_NDEBUG_INLINE TakePhotoResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::TakePhotoResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TakePhotoResponse::TakePhotoResponse( ::google::protobuf::Arena* arena, const TakePhotoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TakePhotoResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TakePhotoResponse) } @@ -3162,38 +3796,51 @@ inline void TakePhotoResponse::SharedCtor(::_pb::Arena* arena) { } TakePhotoResponse::~TakePhotoResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TakePhotoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TakePhotoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TakePhotoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TakePhotoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TakePhotoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void TakePhotoResponse::SharedDtor(MessageLite& self) { + TakePhotoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* TakePhotoResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TakePhotoResponse(arena); +} +constexpr auto TakePhotoResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TakePhotoResponse), + alignof(TakePhotoResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TakePhotoResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TakePhotoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TakePhotoResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TakePhotoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TakePhotoResponse::ByteSizeLong, + &TakePhotoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_._cached_size_), + false, + }, + &TakePhotoResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TakePhotoResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TakePhotoResponse::_table_ = { { @@ -3206,8 +3853,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TakePhotoResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TakePhotoResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TakePhotoResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -3224,68 +3875,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TakePhotoResponse::_table_ = { }}, }; -::uint8_t* TakePhotoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TakePhotoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TakePhotoResponse) - return target; -} - -::size_t TakePhotoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TakePhotoResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TakePhotoResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TakePhotoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TakePhotoResponse::_class_data_ = { - TakePhotoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TakePhotoResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TakePhotoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TakePhotoResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TakePhotoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TakePhotoResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TakePhotoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TakePhotoResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TakePhotoResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TakePhotoResponse::ByteSizeLong(const MessageLite& base) { + const TakePhotoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TakePhotoResponse::ByteSizeLong() const { + const TakePhotoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TakePhotoResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TakePhotoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TakePhotoResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3296,13 +3979,7 @@ void TakePhotoResponse::CopyFrom(const TakePhotoResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TakePhotoResponse::IsInitialized() const { - return true; -} -::_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_); @@ -3311,9 +3988,7 @@ void TakePhotoResponse::InternalSwap(TakePhotoResponse* PROTOBUF_RESTRICT other) } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -3322,7 +3997,11 @@ class StartPhotoIntervalRequest::_Internal { }; StartPhotoIntervalRequest::StartPhotoIntervalRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartPhotoIntervalRequest) } @@ -3342,32 +4021,50 @@ inline void StartPhotoIntervalRequest::SharedCtor(::_pb::Arena* arena) { } StartPhotoIntervalRequest::~StartPhotoIntervalRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartPhotoIntervalRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StartPhotoIntervalRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StartPhotoIntervalRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.interval_s_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartPhotoIntervalRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void StartPhotoIntervalRequest::SharedDtor(MessageLite& self) { + StartPhotoIntervalRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* StartPhotoIntervalRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StartPhotoIntervalRequest(arena); +} +constexpr auto StartPhotoIntervalRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StartPhotoIntervalRequest), + alignof(StartPhotoIntervalRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartPhotoIntervalRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartPhotoIntervalRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartPhotoIntervalRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartPhotoIntervalRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StartPhotoIntervalRequest::ByteSizeLong, + &StartPhotoIntervalRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartPhotoIntervalRequest, _impl_._cached_size_), + false, + }, + &StartPhotoIntervalRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartPhotoIntervalRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StartPhotoIntervalRequest::_table_ = { { @@ -3380,8 +4077,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StartPhotoIntervalRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_StartPhotoIntervalRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StartPhotoIntervalRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float interval_s = 1; {::_pbi::TcParser::FastF32S1, @@ -3398,64 +4099,73 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StartPhotoIntervalRequest::_table_ = { }}, }; -::uint8_t* StartPhotoIntervalRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float interval_s = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_interval_s = this->_internal_interval_s(); - ::uint32_t raw_interval_s; - memcpy(&raw_interval_s, &tmp_interval_s, sizeof(tmp_interval_s)); - if (raw_interval_s != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_interval_s(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartPhotoIntervalRequest) - return target; -} - -::size_t StartPhotoIntervalRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void StartPhotoIntervalRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float interval_s = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_interval_s = this->_internal_interval_s(); - ::uint32_t raw_interval_s; - memcpy(&raw_interval_s, &tmp_interval_s, sizeof(tmp_interval_s)); - if (raw_interval_s != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StartPhotoIntervalRequest::_class_data_ = { - StartPhotoIntervalRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StartPhotoIntervalRequest::GetClassData() const { - return &_class_data_; + _impl_.interval_s_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void StartPhotoIntervalRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StartPhotoIntervalRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StartPhotoIntervalRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StartPhotoIntervalRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StartPhotoIntervalRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float interval_s = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_interval_s()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_interval_s(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartPhotoIntervalRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StartPhotoIntervalRequest::ByteSizeLong(const MessageLite& base) { + const StartPhotoIntervalRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StartPhotoIntervalRequest::ByteSizeLong() const { + const StartPhotoIntervalRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // float interval_s = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_interval_s()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StartPhotoIntervalRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) @@ -3463,13 +4173,8 @@ void StartPhotoIntervalRequest::MergeImpl(::google::protobuf::Message& to_msg, c ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_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()); + if (::absl::bit_cast<::uint32_t>(from._internal_interval_s()) != 0) { + _this->_impl_.interval_s_ = from._impl_.interval_s_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3481,13 +4186,7 @@ void StartPhotoIntervalRequest::CopyFrom(const StartPhotoIntervalRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool StartPhotoIntervalRequest::IsInitialized() const { - return true; -} -::_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_); @@ -3495,50 +4194,50 @@ void StartPhotoIntervalRequest::InternalSwap(StartPhotoIntervalRequest* PROTOBUF } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StartPhotoIntervalResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StartPhotoIntervalResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& StartPhotoIntervalResponse::_Internal::camera_result(const StartPhotoIntervalResponse* msg) { - return *msg->_impl_.camera_result_; -} StartPhotoIntervalResponse::StartPhotoIntervalResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) } inline PROTOBUF_NDEBUG_INLINE StartPhotoIntervalResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::StartPhotoIntervalResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} StartPhotoIntervalResponse::StartPhotoIntervalResponse( ::google::protobuf::Arena* arena, const StartPhotoIntervalResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE StartPhotoIntervalResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) } @@ -3553,38 +4252,51 @@ inline void StartPhotoIntervalResponse::SharedCtor(::_pb::Arena* arena) { } StartPhotoIntervalResponse::~StartPhotoIntervalResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StartPhotoIntervalResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StartPhotoIntervalResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartPhotoIntervalResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void StartPhotoIntervalResponse::SharedDtor(MessageLite& self) { + StartPhotoIntervalResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* StartPhotoIntervalResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StartPhotoIntervalResponse(arena); +} +constexpr auto StartPhotoIntervalResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StartPhotoIntervalResponse), + alignof(StartPhotoIntervalResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartPhotoIntervalResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartPhotoIntervalResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartPhotoIntervalResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartPhotoIntervalResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StartPhotoIntervalResponse::ByteSizeLong, + &StartPhotoIntervalResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_._cached_size_), + false, + }, + &StartPhotoIntervalResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartPhotoIntervalResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartPhotoIntervalResponse::_table_ = { { @@ -3597,8 +4309,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartPhotoIntervalResponse::_table_ = 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_StartPhotoIntervalResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StartPhotoIntervalResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -3615,68 +4331,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartPhotoIntervalResponse::_table_ = }}, }; -::uint8_t* StartPhotoIntervalResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) +PROTOBUF_NOINLINE void StartPhotoIntervalResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartPhotoIntervalResponse) - return target; -} - -::size_t StartPhotoIntervalResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StartPhotoIntervalResponse::_class_data_ = { - StartPhotoIntervalResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StartPhotoIntervalResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void StartPhotoIntervalResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StartPhotoIntervalResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StartPhotoIntervalResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StartPhotoIntervalResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StartPhotoIntervalResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartPhotoIntervalResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StartPhotoIntervalResponse::ByteSizeLong(const MessageLite& base) { + const StartPhotoIntervalResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StartPhotoIntervalResponse::ByteSizeLong() const { + const StartPhotoIntervalResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StartPhotoIntervalResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3687,13 +4435,7 @@ void StartPhotoIntervalResponse::CopyFrom(const StartPhotoIntervalResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool StartPhotoIntervalResponse::IsInitialized() const { - return true; -} -::_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_); @@ -3702,9 +4444,7 @@ void StartPhotoIntervalResponse::InternalSwap(StartPhotoIntervalResponse* PROTOB } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -3713,13 +4453,21 @@ class StopPhotoIntervalRequest::_Internal { }; StopPhotoIntervalRequest::StopPhotoIntervalRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopPhotoIntervalRequest) } StopPhotoIntervalRequest::StopPhotoIntervalRequest( ::google::protobuf::Arena* arena, const StopPhotoIntervalRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE StopPhotoIntervalRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -3728,6 +4476,68 @@ StopPhotoIntervalRequest::StopPhotoIntervalRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopPhotoIntervalRequest) } +inline void* StopPhotoIntervalRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StopPhotoIntervalRequest(arena); +} +constexpr auto StopPhotoIntervalRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StopPhotoIntervalRequest), + alignof(StopPhotoIntervalRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopPhotoIntervalRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopPhotoIntervalRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopPhotoIntervalRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopPhotoIntervalRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &StopPhotoIntervalRequest::ByteSizeLong, + &StopPhotoIntervalRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopPhotoIntervalRequest, _impl_._cached_size_), + false, + }, + &StopPhotoIntervalRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopPhotoIntervalRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> StopPhotoIntervalRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StopPhotoIntervalRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -3737,50 +4547,50 @@ StopPhotoIntervalRequest::StopPhotoIntervalRequest( ::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]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StopPhotoIntervalResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StopPhotoIntervalResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& StopPhotoIntervalResponse::_Internal::camera_result(const StopPhotoIntervalResponse* msg) { - return *msg->_impl_.camera_result_; -} StopPhotoIntervalResponse::StopPhotoIntervalResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) } inline PROTOBUF_NDEBUG_INLINE StopPhotoIntervalResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::StopPhotoIntervalResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} StopPhotoIntervalResponse::StopPhotoIntervalResponse( ::google::protobuf::Arena* arena, const StopPhotoIntervalResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE StopPhotoIntervalResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) } @@ -3795,38 +4605,51 @@ inline void StopPhotoIntervalResponse::SharedCtor(::_pb::Arena* arena) { } StopPhotoIntervalResponse::~StopPhotoIntervalResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StopPhotoIntervalResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StopPhotoIntervalResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopPhotoIntervalResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void StopPhotoIntervalResponse::SharedDtor(MessageLite& self) { + StopPhotoIntervalResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* StopPhotoIntervalResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StopPhotoIntervalResponse(arena); +} +constexpr auto StopPhotoIntervalResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StopPhotoIntervalResponse), + alignof(StopPhotoIntervalResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopPhotoIntervalResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopPhotoIntervalResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopPhotoIntervalResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopPhotoIntervalResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StopPhotoIntervalResponse::ByteSizeLong, + &StopPhotoIntervalResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_._cached_size_), + false, + }, + &StopPhotoIntervalResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopPhotoIntervalResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopPhotoIntervalResponse::_table_ = { { @@ -3839,8 +4662,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopPhotoIntervalResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_StopPhotoIntervalResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StopPhotoIntervalResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -3857,68 +4684,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopPhotoIntervalResponse::_table_ = { }}, }; -::uint8_t* StopPhotoIntervalResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopPhotoIntervalResponse) - return target; -} - -::size_t StopPhotoIntervalResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void StopPhotoIntervalResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StopPhotoIntervalResponse::_class_data_ = { - StopPhotoIntervalResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StopPhotoIntervalResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void StopPhotoIntervalResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StopPhotoIntervalResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StopPhotoIntervalResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StopPhotoIntervalResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StopPhotoIntervalResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopPhotoIntervalResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StopPhotoIntervalResponse::ByteSizeLong(const MessageLite& base) { + const StopPhotoIntervalResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StopPhotoIntervalResponse::ByteSizeLong() const { + const StopPhotoIntervalResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StopPhotoIntervalResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -3929,13 +4788,7 @@ void StopPhotoIntervalResponse::CopyFrom(const StopPhotoIntervalResponse& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool StopPhotoIntervalResponse::IsInitialized() const { - return true; -} -::_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_); @@ -3944,9 +4797,7 @@ void StopPhotoIntervalResponse::InternalSwap(StopPhotoIntervalResponse* PROTOBUF } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -3955,13 +4806,21 @@ class StartVideoRequest::_Internal { }; StartVideoRequest::StartVideoRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoRequest) } StartVideoRequest::StartVideoRequest( ::google::protobuf::Arena* arena, const StartVideoRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE StartVideoRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -3970,6 +4829,68 @@ StartVideoRequest::StartVideoRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoRequest) } +inline void* StartVideoRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StartVideoRequest(arena); +} +constexpr auto StartVideoRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StartVideoRequest), + alignof(StartVideoRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartVideoRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartVideoRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartVideoRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartVideoRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &StartVideoRequest::ByteSizeLong, + &StartVideoRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartVideoRequest, _impl_._cached_size_), + false, + }, + &StartVideoRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartVideoRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> StartVideoRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StartVideoRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -3979,50 +4900,50 @@ StartVideoRequest::StartVideoRequest( ::google::protobuf::Metadata StartVideoRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[8]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StartVideoResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StartVideoResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& StartVideoResponse::_Internal::camera_result(const StartVideoResponse* msg) { - return *msg->_impl_.camera_result_; -} StartVideoResponse::StartVideoResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoResponse) } inline PROTOBUF_NDEBUG_INLINE StartVideoResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::StartVideoResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} StartVideoResponse::StartVideoResponse( ::google::protobuf::Arena* arena, const StartVideoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE StartVideoResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoResponse) } @@ -4037,38 +4958,51 @@ inline void StartVideoResponse::SharedCtor(::_pb::Arena* arena) { } StartVideoResponse::~StartVideoResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StartVideoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StartVideoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartVideoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void StartVideoResponse::SharedDtor(MessageLite& self) { + StartVideoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* StartVideoResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StartVideoResponse(arena); +} +constexpr auto StartVideoResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StartVideoResponse), + alignof(StartVideoResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartVideoResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartVideoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartVideoResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartVideoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StartVideoResponse::ByteSizeLong, + &StartVideoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_._cached_size_), + false, + }, + &StartVideoResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartVideoResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartVideoResponse::_table_ = { { @@ -4081,8 +5015,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartVideoResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_StartVideoResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StartVideoResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -4099,68 +5037,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartVideoResponse::_table_ = { }}, }; -::uint8_t* StartVideoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoResponse) - return target; -} - -::size_t StartVideoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void StartVideoResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StartVideoResponse::_class_data_ = { - StartVideoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StartVideoResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void StartVideoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StartVideoResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StartVideoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StartVideoResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StartVideoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StartVideoResponse::ByteSizeLong(const MessageLite& base) { + const StartVideoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StartVideoResponse::ByteSizeLong() const { + const StartVideoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StartVideoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4171,13 +5141,7 @@ void StartVideoResponse::CopyFrom(const StartVideoResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StartVideoResponse::IsInitialized() const { - return true; -} -::_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_); @@ -4186,9 +5150,7 @@ void StartVideoResponse::InternalSwap(StartVideoResponse* PROTOBUF_RESTRICT othe } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -4197,13 +5159,21 @@ class StopVideoRequest::_Internal { }; StopVideoRequest::StopVideoRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoRequest) } StopVideoRequest::StopVideoRequest( ::google::protobuf::Arena* arena, const StopVideoRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE StopVideoRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -4212,6 +5182,68 @@ StopVideoRequest::StopVideoRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoRequest) } +inline void* StopVideoRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StopVideoRequest(arena); +} +constexpr auto StopVideoRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StopVideoRequest), + alignof(StopVideoRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopVideoRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopVideoRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopVideoRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopVideoRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &StopVideoRequest::ByteSizeLong, + &StopVideoRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopVideoRequest, _impl_._cached_size_), + false, + }, + &StopVideoRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopVideoRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> StopVideoRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StopVideoRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -4221,50 +5253,50 @@ StopVideoRequest::StopVideoRequest( ::google::protobuf::Metadata StopVideoRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[10]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StopVideoResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StopVideoResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& StopVideoResponse::_Internal::camera_result(const StopVideoResponse* msg) { - return *msg->_impl_.camera_result_; -} StopVideoResponse::StopVideoResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoResponse) } inline PROTOBUF_NDEBUG_INLINE StopVideoResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::StopVideoResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} StopVideoResponse::StopVideoResponse( ::google::protobuf::Arena* arena, const StopVideoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE StopVideoResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoResponse) } @@ -4279,38 +5311,51 @@ inline void StopVideoResponse::SharedCtor(::_pb::Arena* arena) { } StopVideoResponse::~StopVideoResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StopVideoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StopVideoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopVideoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void StopVideoResponse::SharedDtor(MessageLite& self) { + StopVideoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* StopVideoResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StopVideoResponse(arena); +} +constexpr auto StopVideoResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StopVideoResponse), + alignof(StopVideoResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopVideoResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopVideoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopVideoResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopVideoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StopVideoResponse::ByteSizeLong, + &StopVideoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_._cached_size_), + false, + }, + &StopVideoResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopVideoResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopVideoResponse::_table_ = { { @@ -4323,8 +5368,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopVideoResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_StopVideoResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StopVideoResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -4341,68 +5390,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopVideoResponse::_table_ = { }}, }; -::uint8_t* StopVideoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoResponse) - return target; -} - -::size_t StopVideoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void StopVideoResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StopVideoResponse::_class_data_ = { - StopVideoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StopVideoResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void StopVideoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StopVideoResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StopVideoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StopVideoResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StopVideoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StopVideoResponse::ByteSizeLong(const MessageLite& base) { + const StopVideoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StopVideoResponse::ByteSizeLong() const { + const StopVideoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StopVideoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4413,13 +5494,7 @@ void StopVideoResponse::CopyFrom(const StopVideoResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StopVideoResponse::IsInitialized() const { - return true; -} -::_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_); @@ -4428,9 +5503,7 @@ void StopVideoResponse::InternalSwap(StopVideoResponse* PROTOBUF_RESTRICT other) } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -4439,7 +5512,11 @@ class StartVideoStreamingRequest::_Internal { }; StartVideoStreamingRequest::StartVideoStreamingRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoStreamingRequest) } @@ -4459,32 +5536,50 @@ inline void StartVideoStreamingRequest::SharedCtor(::_pb::Arena* arena) { } StartVideoStreamingRequest::~StartVideoStreamingRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoStreamingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StartVideoStreamingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StartVideoStreamingRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoStreamingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.stream_id_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartVideoStreamingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void StartVideoStreamingRequest::SharedDtor(MessageLite& self) { + StartVideoStreamingRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* StartVideoStreamingRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StartVideoStreamingRequest(arena); +} +constexpr auto StartVideoStreamingRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StartVideoStreamingRequest), + alignof(StartVideoStreamingRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartVideoStreamingRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartVideoStreamingRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartVideoStreamingRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartVideoStreamingRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StartVideoStreamingRequest::ByteSizeLong, + &StartVideoStreamingRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartVideoStreamingRequest, _impl_._cached_size_), + false, + }, + &StartVideoStreamingRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartVideoStreamingRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StartVideoStreamingRequest::_table_ = { { @@ -4497,8 +5592,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StartVideoStreamingRequest::_table_ = 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_StartVideoStreamingRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StartVideoStreamingRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 stream_id = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StartVideoStreamingRequest, _impl_.stream_id_), 63>(), @@ -4515,55 +5614,74 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StartVideoStreamingRequest::_table_ = }}, }; -::uint8_t* StartVideoStreamingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoStreamingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 stream_id = 1; - if (this->_internal_stream_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_stream_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoStreamingRequest) - return target; -} - -::size_t StartVideoStreamingRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoStreamingRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void StartVideoStreamingRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoStreamingRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // int32 stream_id = 1; - if (this->_internal_stream_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_stream_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StartVideoStreamingRequest::_class_data_ = { - StartVideoStreamingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StartVideoStreamingRequest::GetClassData() const { - return &_class_data_; + _impl_.stream_id_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void StartVideoStreamingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StartVideoStreamingRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StartVideoStreamingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StartVideoStreamingRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StartVideoStreamingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoStreamingRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // int32 stream_id = 1; + if (this_._internal_stream_id() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<1>( + stream, this_._internal_stream_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoStreamingRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StartVideoStreamingRequest::ByteSizeLong(const MessageLite& base) { + const StartVideoStreamingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StartVideoStreamingRequest::ByteSizeLong() const { + const StartVideoStreamingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoStreamingRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // int32 stream_id = 1; + if (this_._internal_stream_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_stream_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StartVideoStreamingRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoStreamingRequest) @@ -4572,7 +5690,7 @@ void StartVideoStreamingRequest::MergeImpl(::google::protobuf::Message& to_msg, (void) cached_has_bits; if (from._internal_stream_id() != 0) { - _this->_internal_set_stream_id(from._internal_stream_id()); + _this->_impl_.stream_id_ = from._impl_.stream_id_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4584,13 +5702,7 @@ void StartVideoStreamingRequest::CopyFrom(const StartVideoStreamingRequest& from MergeFrom(from); } -PROTOBUF_NOINLINE bool StartVideoStreamingRequest::IsInitialized() const { - return true; -} -::_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_); @@ -4598,50 +5710,50 @@ void StartVideoStreamingRequest::InternalSwap(StartVideoStreamingRequest* PROTOB } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StartVideoStreamingResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StartVideoStreamingResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& StartVideoStreamingResponse::_Internal::camera_result(const StartVideoStreamingResponse* msg) { - return *msg->_impl_.camera_result_; -} StartVideoStreamingResponse::StartVideoStreamingResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoStreamingResponse) } inline PROTOBUF_NDEBUG_INLINE StartVideoStreamingResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::StartVideoStreamingResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} StartVideoStreamingResponse::StartVideoStreamingResponse( ::google::protobuf::Arena* arena, const StartVideoStreamingResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE StartVideoStreamingResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoStreamingResponse) } @@ -4656,38 +5768,51 @@ inline void StartVideoStreamingResponse::SharedCtor(::_pb::Arena* arena) { } StartVideoStreamingResponse::~StartVideoStreamingResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StartVideoStreamingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); +} +inline void StartVideoStreamingResponse::SharedDtor(MessageLite& self) { + StartVideoStreamingResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* StartVideoStreamingResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StartVideoStreamingResponse(arena); +} +constexpr auto StartVideoStreamingResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StartVideoStreamingResponse), + alignof(StartVideoStreamingResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StartVideoStreamingResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StartVideoStreamingResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StartVideoStreamingResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StartVideoStreamingResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StartVideoStreamingResponse::ByteSizeLong, + &StartVideoStreamingResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_._cached_size_), + false, + }, + &StartVideoStreamingResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StartVideoStreamingResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } -inline void StartVideoStreamingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StartVideoStreamingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StartVideoStreamingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartVideoStreamingResponse::_table_ = { { @@ -4700,8 +5825,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartVideoStreamingResponse::_table_ = 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_StartVideoStreamingResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StartVideoStreamingResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -4718,68 +5847,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StartVideoStreamingResponse::_table_ = }}, }; -::uint8_t* StartVideoStreamingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoStreamingResponse) - return target; -} - -::size_t StartVideoStreamingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void StartVideoStreamingResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoStreamingResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StartVideoStreamingResponse::_class_data_ = { - StartVideoStreamingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StartVideoStreamingResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void StartVideoStreamingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StartVideoStreamingResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StartVideoStreamingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StartVideoStreamingResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StartVideoStreamingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoStreamingResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StartVideoStreamingResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StartVideoStreamingResponse::ByteSizeLong(const MessageLite& base) { + const StartVideoStreamingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StartVideoStreamingResponse::ByteSizeLong() const { + const StartVideoStreamingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoStreamingResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StartVideoStreamingResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoStreamingResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4790,13 +5951,7 @@ void StartVideoStreamingResponse::CopyFrom(const StartVideoStreamingResponse& fr MergeFrom(from); } -PROTOBUF_NOINLINE bool StartVideoStreamingResponse::IsInitialized() const { - return true; -} -::_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_); @@ -4805,9 +5960,7 @@ void StartVideoStreamingResponse::InternalSwap(StartVideoStreamingResponse* PROT } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -4816,7 +5969,11 @@ class StopVideoStreamingRequest::_Internal { }; StopVideoStreamingRequest::StopVideoStreamingRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoStreamingRequest) } @@ -4836,32 +5993,50 @@ inline void StopVideoStreamingRequest::SharedCtor(::_pb::Arena* arena) { } StopVideoStreamingRequest::~StopVideoStreamingRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoStreamingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StopVideoStreamingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StopVideoStreamingRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoStreamingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.stream_id_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopVideoStreamingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void StopVideoStreamingRequest::SharedDtor(MessageLite& self) { + StopVideoStreamingRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* StopVideoStreamingRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StopVideoStreamingRequest(arena); +} +constexpr auto StopVideoStreamingRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StopVideoStreamingRequest), + alignof(StopVideoStreamingRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopVideoStreamingRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopVideoStreamingRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopVideoStreamingRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopVideoStreamingRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StopVideoStreamingRequest::ByteSizeLong, + &StopVideoStreamingRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopVideoStreamingRequest, _impl_._cached_size_), + false, + }, + &StopVideoStreamingRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopVideoStreamingRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StopVideoStreamingRequest::_table_ = { { @@ -4874,8 +6049,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StopVideoStreamingRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_StopVideoStreamingRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StopVideoStreamingRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 stream_id = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StopVideoStreamingRequest, _impl_.stream_id_), 63>(), @@ -4892,55 +6071,74 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> StopVideoStreamingRequest::_table_ = { }}, }; -::uint8_t* StopVideoStreamingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoStreamingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 stream_id = 1; - if (this->_internal_stream_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_stream_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoStreamingRequest) - return target; -} - -::size_t StopVideoStreamingRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoStreamingRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void StopVideoStreamingRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoStreamingRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // int32 stream_id = 1; - if (this->_internal_stream_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_stream_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StopVideoStreamingRequest::_class_data_ = { - StopVideoStreamingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StopVideoStreamingRequest::GetClassData() const { - return &_class_data_; + _impl_.stream_id_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void StopVideoStreamingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StopVideoStreamingRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StopVideoStreamingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StopVideoStreamingRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StopVideoStreamingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoStreamingRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // int32 stream_id = 1; + if (this_._internal_stream_id() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<1>( + stream, this_._internal_stream_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoStreamingRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StopVideoStreamingRequest::ByteSizeLong(const MessageLite& base) { + const StopVideoStreamingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StopVideoStreamingRequest::ByteSizeLong() const { + const StopVideoStreamingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoStreamingRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // int32 stream_id = 1; + if (this_._internal_stream_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_stream_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StopVideoStreamingRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoStreamingRequest) @@ -4949,7 +6147,7 @@ void StopVideoStreamingRequest::MergeImpl(::google::protobuf::Message& to_msg, c (void) cached_has_bits; if (from._internal_stream_id() != 0) { - _this->_internal_set_stream_id(from._internal_stream_id()); + _this->_impl_.stream_id_ = from._impl_.stream_id_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4961,13 +6159,7 @@ void StopVideoStreamingRequest::CopyFrom(const StopVideoStreamingRequest& from) MergeFrom(from); } -PROTOBUF_NOINLINE bool StopVideoStreamingRequest::IsInitialized() const { - return true; -} -::_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_); @@ -4975,50 +6167,50 @@ void StopVideoStreamingRequest::InternalSwap(StopVideoStreamingRequest* PROTOBUF } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StopVideoStreamingResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StopVideoStreamingResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& StopVideoStreamingResponse::_Internal::camera_result(const StopVideoStreamingResponse* msg) { - return *msg->_impl_.camera_result_; -} StopVideoStreamingResponse::StopVideoStreamingResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoStreamingResponse) } inline PROTOBUF_NDEBUG_INLINE StopVideoStreamingResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::StopVideoStreamingResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} StopVideoStreamingResponse::StopVideoStreamingResponse( ::google::protobuf::Arena* arena, const StopVideoStreamingResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE StopVideoStreamingResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoStreamingResponse) } @@ -5033,38 +6225,51 @@ inline void StopVideoStreamingResponse::SharedCtor(::_pb::Arena* arena) { } StopVideoStreamingResponse::~StopVideoStreamingResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StopVideoStreamingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StopVideoStreamingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StopVideoStreamingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StopVideoStreamingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void StopVideoStreamingResponse::SharedDtor(MessageLite& self) { + StopVideoStreamingResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* StopVideoStreamingResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StopVideoStreamingResponse(arena); +} +constexpr auto StopVideoStreamingResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StopVideoStreamingResponse), + alignof(StopVideoStreamingResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StopVideoStreamingResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StopVideoStreamingResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StopVideoStreamingResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StopVideoStreamingResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StopVideoStreamingResponse::ByteSizeLong, + &StopVideoStreamingResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_._cached_size_), + false, + }, + &StopVideoStreamingResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StopVideoStreamingResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopVideoStreamingResponse::_table_ = { { @@ -5077,8 +6282,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopVideoStreamingResponse::_table_ = 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_StopVideoStreamingResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StopVideoStreamingResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -5095,68 +6304,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StopVideoStreamingResponse::_table_ = }}, }; -::uint8_t* StopVideoStreamingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoStreamingResponse) - return target; -} - -::size_t StopVideoStreamingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void StopVideoStreamingResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoStreamingResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StopVideoStreamingResponse::_class_data_ = { - StopVideoStreamingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StopVideoStreamingResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void StopVideoStreamingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StopVideoStreamingResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StopVideoStreamingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StopVideoStreamingResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StopVideoStreamingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoStreamingResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StopVideoStreamingResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StopVideoStreamingResponse::ByteSizeLong(const MessageLite& base) { + const StopVideoStreamingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StopVideoStreamingResponse::ByteSizeLong() const { + const StopVideoStreamingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoStreamingResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StopVideoStreamingResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoStreamingResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5167,13 +6408,7 @@ void StopVideoStreamingResponse::CopyFrom(const StopVideoStreamingResponse& from MergeFrom(from); } -PROTOBUF_NOINLINE bool StopVideoStreamingResponse::IsInitialized() const { - return true; -} -::_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_); @@ -5182,9 +6417,7 @@ void StopVideoStreamingResponse::InternalSwap(StopVideoStreamingResponse* PROTOB } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -5193,7 +6426,11 @@ class SetModeRequest::_Internal { }; SetModeRequest::SetModeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetModeRequest) } @@ -5213,32 +6450,50 @@ inline void SetModeRequest::SharedCtor(::_pb::Arena* arena) { } SetModeRequest::~SetModeRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetModeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetModeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetModeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetModeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.mode_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetModeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetModeRequest::SharedDtor(MessageLite& self) { + SetModeRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* SetModeRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetModeRequest(arena); +} +constexpr auto SetModeRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetModeRequest), + alignof(SetModeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetModeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetModeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetModeRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetModeRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetModeRequest::ByteSizeLong, + &SetModeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetModeRequest, _impl_._cached_size_), + false, + }, + &SetModeRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetModeRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetModeRequest::_table_ = { { @@ -5251,8 +6506,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetModeRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SetModeRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SetModeRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.Mode mode = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SetModeRequest, _impl_.mode_), 63>(), @@ -5269,55 +6528,74 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetModeRequest::_table_ = { }}, }; -::uint8_t* SetModeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetModeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.camera.Mode mode = 1; - if (this->_internal_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_mode(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetModeRequest) - return target; -} - -::size_t SetModeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetModeRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetModeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetModeRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.Mode mode = 1; - if (this->_internal_mode() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetModeRequest::_class_data_ = { - SetModeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetModeRequest::GetClassData() const { - return &_class_data_; + _impl_.mode_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetModeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetModeRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetModeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetModeRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetModeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetModeRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // .mavsdk.rpc.camera.Mode mode = 1; + if (this_._internal_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_mode(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetModeRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetModeRequest::ByteSizeLong(const MessageLite& base) { + const SetModeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetModeRequest::ByteSizeLong() const { + const SetModeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetModeRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.Mode mode = 1; + if (this_._internal_mode() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_mode()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetModeRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetModeRequest) @@ -5326,7 +6604,7 @@ void SetModeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::goog (void) cached_has_bits; if (from._internal_mode() != 0) { - _this->_internal_set_mode(from._internal_mode()); + _this->_impl_.mode_ = from._impl_.mode_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5338,13 +6616,7 @@ void SetModeRequest::CopyFrom(const SetModeRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetModeRequest::IsInitialized() const { - return true; -} -::_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_); @@ -5352,50 +6624,50 @@ void SetModeRequest::InternalSwap(SetModeRequest* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetModeResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const SetModeResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& SetModeResponse::_Internal::camera_result(const SetModeResponse* msg) { - return *msg->_impl_.camera_result_; -} SetModeResponse::SetModeResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetModeResponse) } inline PROTOBUF_NDEBUG_INLINE SetModeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::SetModeResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetModeResponse::SetModeResponse( ::google::protobuf::Arena* arena, const SetModeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetModeResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetModeResponse) } @@ -5410,38 +6682,51 @@ inline void SetModeResponse::SharedCtor(::_pb::Arena* arena) { } SetModeResponse::~SetModeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetModeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetModeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetModeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetModeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void SetModeResponse::SharedDtor(MessageLite& self) { + SetModeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* SetModeResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetModeResponse(arena); +} +constexpr auto SetModeResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetModeResponse), + alignof(SetModeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetModeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetModeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetModeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetModeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetModeResponse::ByteSizeLong, + &SetModeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_._cached_size_), + false, + }, + &SetModeResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetModeResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* SetModeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetModeResponse::_table_ = { { @@ -5454,8 +6739,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetModeResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetModeResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SetModeResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -5472,68 +6761,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetModeResponse::_table_ = { }}, }; -::uint8_t* SetModeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetModeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetModeResponse) - return target; -} - -::size_t SetModeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetModeResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetModeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetModeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetModeResponse::_class_data_ = { - SetModeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetModeResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetModeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetModeResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetModeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetModeResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetModeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetModeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetModeResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetModeResponse::ByteSizeLong(const MessageLite& base) { + const SetModeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetModeResponse::ByteSizeLong() const { + const SetModeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetModeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetModeResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetModeResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5544,13 +6865,7 @@ void SetModeResponse::CopyFrom(const SetModeResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetModeResponse::IsInitialized() const { - return true; -} -::_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_); @@ -5559,9 +6874,7 @@ void SetModeResponse::InternalSwap(SetModeResponse* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -5570,7 +6883,11 @@ class ListPhotosRequest::_Internal { }; ListPhotosRequest::ListPhotosRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ListPhotosRequest) } @@ -5590,32 +6907,50 @@ inline void ListPhotosRequest::SharedCtor(::_pb::Arena* arena) { } ListPhotosRequest::~ListPhotosRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ListPhotosRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ListPhotosRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ListPhotosRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ListPhotosRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.photos_range_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void ListPhotosRequest::SharedDtor(MessageLite& self) { + ListPhotosRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* ListPhotosRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ListPhotosRequest(arena); +} +constexpr auto ListPhotosRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ListPhotosRequest), + alignof(ListPhotosRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ListPhotosRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ListPhotosRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ListPhotosRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ListPhotosRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ListPhotosRequest::ByteSizeLong, + &ListPhotosRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ListPhotosRequest, _impl_._cached_size_), + false, + }, + &ListPhotosRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ListPhotosRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* ListPhotosRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ListPhotosRequest::_table_ = { { @@ -5628,8 +6963,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ListPhotosRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ListPhotosRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ListPhotosRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.PhotosRange photos_range = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ListPhotosRequest, _impl_.photos_range_), 63>(), @@ -5646,55 +6985,74 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ListPhotosRequest::_table_ = { }}, }; -::uint8_t* ListPhotosRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ListPhotosRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.camera.PhotosRange photos_range = 1; - if (this->_internal_photos_range() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_photos_range(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ListPhotosRequest) - return target; -} - -::size_t ListPhotosRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ListPhotosRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ListPhotosRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ListPhotosRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.PhotosRange photos_range = 1; - if (this->_internal_photos_range() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_photos_range()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ListPhotosRequest::_class_data_ = { - ListPhotosRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ListPhotosRequest::GetClassData() const { - return &_class_data_; + _impl_.photos_range_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ListPhotosRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ListPhotosRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ListPhotosRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ListPhotosRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ListPhotosRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ListPhotosRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // .mavsdk.rpc.camera.PhotosRange photos_range = 1; + if (this_._internal_photos_range() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_photos_range(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ListPhotosRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ListPhotosRequest::ByteSizeLong(const MessageLite& base) { + const ListPhotosRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ListPhotosRequest::ByteSizeLong() const { + const ListPhotosRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ListPhotosRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.PhotosRange photos_range = 1; + if (this_._internal_photos_range() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_photos_range()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ListPhotosRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ListPhotosRequest) @@ -5703,7 +7061,7 @@ void ListPhotosRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::g (void) cached_has_bits; if (from._internal_photos_range() != 0) { - _this->_internal_set_photos_range(from._internal_photos_range()); + _this->_impl_.photos_range_ = from._impl_.photos_range_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5715,13 +7073,7 @@ void ListPhotosRequest::CopyFrom(const ListPhotosRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListPhotosRequest::IsInitialized() const { - return true; -} -::_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_); @@ -5729,34 +7081,30 @@ void ListPhotosRequest::InternalSwap(ListPhotosRequest* PROTOBUF_RESTRICT other) } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ListPhotosResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ListPhotosResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ListPhotosResponse::_Internal::camera_result(const ListPhotosResponse* msg) { - return *msg->_impl_.camera_result_; -} ListPhotosResponse::ListPhotosResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ListPhotosResponse) } inline PROTOBUF_NDEBUG_INLINE ListPhotosResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::ListPhotosResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, capture_infos_{visibility, arena, from.capture_infos_} {} @@ -5764,16 +7112,20 @@ inline PROTOBUF_NDEBUG_INLINE ListPhotosResponse::Impl_::Impl_( ListPhotosResponse::ListPhotosResponse( ::google::protobuf::Arena* arena, const ListPhotosResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ListPhotosResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ListPhotosResponse) } @@ -5789,39 +7141,63 @@ inline void ListPhotosResponse::SharedCtor(::_pb::Arena* arena) { } ListPhotosResponse::~ListPhotosResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ListPhotosResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ListPhotosResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ListPhotosResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ListPhotosResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.capture_infos_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListPhotosResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ListPhotosResponse::SharedDtor(MessageLite& self) { + ListPhotosResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* ListPhotosResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ListPhotosResponse(arena); +} +constexpr auto ListPhotosResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_.capture_infos_) + + decltype(ListPhotosResponse::_impl_.capture_infos_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ListPhotosResponse), alignof(ListPhotosResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&ListPhotosResponse::PlacementNew_, + sizeof(ListPhotosResponse), + alignof(ListPhotosResponse)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ListPhotosResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ListPhotosResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ListPhotosResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ListPhotosResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ListPhotosResponse::ByteSizeLong, + &ListPhotosResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_._cached_size_), + false, + }, + &ListPhotosResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ListPhotosResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ListPhotosResponse::_table_ = { { @@ -5834,8 +7210,12 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ListPhotosResponse::_table_ = { 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ListPhotosResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ListPhotosResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; {::_pbi::TcParser::FastMtR1, @@ -5859,73 +7239,106 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> ListPhotosResponse::_table_ = { }}, }; -::uint8_t* ListPhotosResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ListPhotosResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_capture_infos_size()); i < n; i++) { - const auto& repfield = this->_internal_capture_infos().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ListPhotosResponse) - return target; -} - -::size_t ListPhotosResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ListPhotosResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ListPhotosResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ListPhotosResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; - total_size += 1UL * this->_internal_capture_infos_size(); - for (const auto& msg : this->_internal_capture_infos()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // .mavsdk.rpc.camera.CameraResult camera_result = 1; + _impl_.capture_infos_.Clear(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ListPhotosResponse::_class_data_ = { - ListPhotosResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ListPhotosResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ListPhotosResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ListPhotosResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ListPhotosResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ListPhotosResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ListPhotosResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ListPhotosResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; + for (unsigned i = 0, n = static_cast( + this_._internal_capture_infos_size()); + i < n; i++) { + const auto& repfield = this_._internal_capture_infos().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ListPhotosResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ListPhotosResponse::ByteSizeLong(const MessageLite& base) { + const ListPhotosResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ListPhotosResponse::ByteSizeLong() const { + const ListPhotosResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ListPhotosResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; + { + total_size += 1UL * this_._internal_capture_infos_size(); + for (const auto& msg : this_._internal_capture_infos()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ListPhotosResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ListPhotosResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -5933,10 +7346,17 @@ void ListPhotosResponse::MergeImpl(::google::protobuf::Message& to_msg, const :: _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()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -5947,13 +7367,7 @@ void ListPhotosResponse::CopyFrom(const ListPhotosResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ListPhotosResponse::IsInitialized() const { - return true; -} -::_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_); @@ -5963,9 +7377,7 @@ void ListPhotosResponse::InternalSwap(ListPhotosResponse* PROTOBUF_RESTRICT othe } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -5974,13 +7386,21 @@ class SubscribeInformationRequest::_Internal { }; SubscribeInformationRequest::SubscribeInformationRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeInformationRequest) } SubscribeInformationRequest::SubscribeInformationRequest( ::google::protobuf::Arena* arena, const SubscribeInformationRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeInformationRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -5989,6 +7409,68 @@ SubscribeInformationRequest::SubscribeInformationRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeInformationRequest) } +inline void* SubscribeInformationRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeInformationRequest(arena); +} +constexpr auto SubscribeInformationRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeInformationRequest), + alignof(SubscribeInformationRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeInformationRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeInformationRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeInformationRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeInformationRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeInformationRequest::ByteSizeLong, + &SubscribeInformationRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeInformationRequest, _impl_._cached_size_), + false, + }, + &SubscribeInformationRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeInformationRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeInformationRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SubscribeInformationRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -5998,50 +7480,50 @@ SubscribeInformationRequest::SubscribeInformationRequest( ::google::protobuf::Metadata SubscribeInformationRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[20]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class InformationResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::Information& information(const InformationResponse* msg); - static void set_has_information(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::Information& InformationResponse::_Internal::information(const InformationResponse* msg) { - return *msg->_impl_.information_; -} InformationResponse::InformationResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.InformationResponse) } inline PROTOBUF_NDEBUG_INLINE InformationResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::InformationResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} InformationResponse::InformationResponse( ::google::protobuf::Arena* arena, const InformationResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE InformationResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::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; + _impl_.information_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Information>( + arena, *from._impl_.information_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.InformationResponse) } @@ -6056,38 +7538,51 @@ inline void InformationResponse::SharedCtor(::_pb::Arena* arena) { } InformationResponse::~InformationResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.InformationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void InformationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.information_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void InformationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.InformationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.information_ != nullptr); - _impl_.information_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* InformationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void InformationResponse::SharedDtor(MessageLite& self) { + InformationResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.information_; + this_._impl_.~Impl_(); +} + +inline void* InformationResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) InformationResponse(arena); +} +constexpr auto InformationResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(InformationResponse), + alignof(InformationResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull InformationResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_InformationResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &InformationResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &InformationResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &InformationResponse::ByteSizeLong, + &InformationResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_._cached_size_), + false, + }, + &InformationResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* InformationResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> InformationResponse::_table_ = { { @@ -6100,8 +7595,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> InformationResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_InformationResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::InformationResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.Information information = 1; {::_pbi::TcParser::FastMtS1, @@ -6118,68 +7617,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> InformationResponse::_table_ = { }}, }; -::uint8_t* InformationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.InformationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.Information information = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::information(this), - _Internal::information(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.InformationResponse) - return target; -} - -::size_t InformationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.InformationResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void InformationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.InformationResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.Information information = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.information_); + ABSL_DCHECK(_impl_.information_ != nullptr); + _impl_.information_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData InformationResponse::_class_data_ = { - InformationResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* InformationResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void InformationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* InformationResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const InformationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* InformationResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const InformationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.InformationResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.Information information = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.information_, this_._impl_.information_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.InformationResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t InformationResponse::ByteSizeLong(const MessageLite& base) { + const InformationResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t InformationResponse::ByteSizeLong() const { + const InformationResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.InformationResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.Information information = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.information_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void InformationResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.InformationResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_information()->::mavsdk::rpc::camera::Information::MergeFrom( - from._internal_information()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.information_ != nullptr); + if (_this->_impl_.information_ == nullptr) { + _this->_impl_.information_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Information>(arena, *from._impl_.information_); + } else { + _this->_impl_.information_->MergeFrom(*from._impl_.information_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6190,13 +7721,7 @@ void InformationResponse::CopyFrom(const InformationResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool InformationResponse::IsInitialized() const { - return true; -} -::_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_); @@ -6205,9 +7730,7 @@ void InformationResponse::InternalSwap(InformationResponse* PROTOBUF_RESTRICT ot } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -6216,13 +7739,21 @@ class SubscribeModeRequest::_Internal { }; SubscribeModeRequest::SubscribeModeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeModeRequest) } SubscribeModeRequest::SubscribeModeRequest( ::google::protobuf::Arena* arena, const SubscribeModeRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeModeRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -6231,6 +7762,68 @@ SubscribeModeRequest::SubscribeModeRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeModeRequest) } +inline void* SubscribeModeRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeModeRequest(arena); +} +constexpr auto SubscribeModeRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeModeRequest), + alignof(SubscribeModeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeModeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeModeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeModeRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeModeRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeModeRequest::ByteSizeLong, + &SubscribeModeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeModeRequest, _impl_._cached_size_), + false, + }, + &SubscribeModeRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeModeRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeModeRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SubscribeModeRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -6240,9 +7833,7 @@ SubscribeModeRequest::SubscribeModeRequest( ::google::protobuf::Metadata SubscribeModeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[22]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -6251,7 +7842,11 @@ class ModeResponse::_Internal { }; ModeResponse::ModeResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ModeResponse) } @@ -6271,32 +7866,50 @@ inline void ModeResponse::SharedCtor(::_pb::Arena* arena) { } ModeResponse::~ModeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ModeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); +} +inline void ModeResponse::SharedDtor(MessageLite& self) { + ModeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* ModeResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ModeResponse(arena); +} +constexpr auto ModeResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ModeResponse), + alignof(ModeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ModeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ModeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ModeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ModeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ModeResponse::ByteSizeLong, + &ModeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ModeResponse, _impl_._cached_size_), + false, + }, + &ModeResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ModeResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } -inline void ModeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ModeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ModeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.mode_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ModeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ModeResponse::_table_ = { { @@ -6309,8 +7922,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ModeResponse::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ModeResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ModeResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.Mode mode = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ModeResponse, _impl_.mode_), 63>(), @@ -6327,55 +7944,74 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ModeResponse::_table_ = { }}, }; -::uint8_t* ModeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ModeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.camera.Mode mode = 1; - if (this->_internal_mode() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_mode(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ModeResponse) - return target; -} - -::size_t ModeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ModeResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ModeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ModeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.Mode mode = 1; - if (this->_internal_mode() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ModeResponse::_class_data_ = { - ModeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ModeResponse::GetClassData() const { - return &_class_data_; + _impl_.mode_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ModeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ModeResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ModeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ModeResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ModeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ModeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // .mavsdk.rpc.camera.Mode mode = 1; + if (this_._internal_mode() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_mode(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ModeResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ModeResponse::ByteSizeLong(const MessageLite& base) { + const ModeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ModeResponse::ByteSizeLong() const { + const ModeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ModeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.Mode mode = 1; + if (this_._internal_mode() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_mode()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ModeResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ModeResponse) @@ -6384,7 +8020,7 @@ void ModeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google (void) cached_has_bits; if (from._internal_mode() != 0) { - _this->_internal_set_mode(from._internal_mode()); + _this->_impl_.mode_ = from._impl_.mode_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6396,13 +8032,7 @@ void ModeResponse::CopyFrom(const ModeResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ModeResponse::IsInitialized() const { - return true; -} -::_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_); @@ -6410,9 +8040,7 @@ void ModeResponse::InternalSwap(ModeResponse* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -6421,13 +8049,21 @@ class SubscribeVideoStreamInfoRequest::_Internal { }; SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest) } SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest( ::google::protobuf::Arena* arena, const SubscribeVideoStreamInfoRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeVideoStreamInfoRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -6436,6 +8072,68 @@ SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest) } +inline void* SubscribeVideoStreamInfoRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeVideoStreamInfoRequest(arena); +} +constexpr auto SubscribeVideoStreamInfoRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeVideoStreamInfoRequest), + alignof(SubscribeVideoStreamInfoRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeVideoStreamInfoRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeVideoStreamInfoRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeVideoStreamInfoRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeVideoStreamInfoRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeVideoStreamInfoRequest::ByteSizeLong, + &SubscribeVideoStreamInfoRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeVideoStreamInfoRequest, _impl_._cached_size_), + false, + }, + &SubscribeVideoStreamInfoRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeVideoStreamInfoRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeVideoStreamInfoRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -6445,50 +8143,50 @@ SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest( ::google::protobuf::Metadata SubscribeVideoStreamInfoRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[24]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class VideoStreamInfoResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::VideoStreamInfo& video_stream_info(const VideoStreamInfoResponse* msg); - static void set_has_video_stream_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::VideoStreamInfo& VideoStreamInfoResponse::_Internal::video_stream_info(const VideoStreamInfoResponse* msg) { - return *msg->_impl_.video_stream_info_; -} VideoStreamInfoResponse::VideoStreamInfoResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamInfoResponse) } inline PROTOBUF_NDEBUG_INLINE VideoStreamInfoResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::VideoStreamInfoResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} VideoStreamInfoResponse::VideoStreamInfoResponse( ::google::protobuf::Arena* arena, const VideoStreamInfoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE VideoStreamInfoResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.video_stream_info_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::VideoStreamInfo>(arena, *from._impl_.video_stream_info_) - : nullptr; + _impl_.video_stream_info_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::VideoStreamInfo>( + arena, *from._impl_.video_stream_info_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.VideoStreamInfoResponse) } @@ -6503,38 +8201,51 @@ inline void VideoStreamInfoResponse::SharedCtor(::_pb::Arena* arena) { } VideoStreamInfoResponse::~VideoStreamInfoResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.VideoStreamInfoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void VideoStreamInfoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.video_stream_info_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void VideoStreamInfoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.video_stream_info_ != nullptr); - _impl_.video_stream_info_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* VideoStreamInfoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void VideoStreamInfoResponse::SharedDtor(MessageLite& self) { + VideoStreamInfoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.video_stream_info_; + this_._impl_.~Impl_(); +} + +inline void* VideoStreamInfoResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) VideoStreamInfoResponse(arena); +} +constexpr auto VideoStreamInfoResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(VideoStreamInfoResponse), + alignof(VideoStreamInfoResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull VideoStreamInfoResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_VideoStreamInfoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &VideoStreamInfoResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &VideoStreamInfoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &VideoStreamInfoResponse::ByteSizeLong, + &VideoStreamInfoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_._cached_size_), + false, + }, + &VideoStreamInfoResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* VideoStreamInfoResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> VideoStreamInfoResponse::_table_ = { { @@ -6547,8 +8258,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> VideoStreamInfoResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_VideoStreamInfoResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::VideoStreamInfoResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; {::_pbi::TcParser::FastMtS1, @@ -6565,68 +8280,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> VideoStreamInfoResponse::_table_ = { }}, }; -::uint8_t* VideoStreamInfoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::video_stream_info(this), - _Internal::video_stream_info(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamInfoResponse) - return target; -} - -::size_t VideoStreamInfoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void VideoStreamInfoResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamInfoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.video_stream_info_); + ABSL_DCHECK(_impl_.video_stream_info_ != nullptr); + _impl_.video_stream_info_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData VideoStreamInfoResponse::_class_data_ = { - VideoStreamInfoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* VideoStreamInfoResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void VideoStreamInfoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* VideoStreamInfoResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const VideoStreamInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* VideoStreamInfoResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const VideoStreamInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamInfoResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.video_stream_info_, this_._impl_.video_stream_info_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamInfoResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t VideoStreamInfoResponse::ByteSizeLong(const MessageLite& base) { + const VideoStreamInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t VideoStreamInfoResponse::ByteSizeLong() const { + const VideoStreamInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamInfoResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.video_stream_info_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void VideoStreamInfoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamInfoResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_video_stream_info()->::mavsdk::rpc::camera::VideoStreamInfo::MergeFrom( - from._internal_video_stream_info()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.video_stream_info_ != nullptr); + if (_this->_impl_.video_stream_info_ == nullptr) { + _this->_impl_.video_stream_info_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::VideoStreamInfo>(arena, *from._impl_.video_stream_info_); + } else { + _this->_impl_.video_stream_info_->MergeFrom(*from._impl_.video_stream_info_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6637,13 +8384,7 @@ void VideoStreamInfoResponse::CopyFrom(const VideoStreamInfoResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool VideoStreamInfoResponse::IsInitialized() const { - return true; -} -::_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_); @@ -6652,9 +8393,7 @@ void VideoStreamInfoResponse::InternalSwap(VideoStreamInfoResponse* PROTOBUF_RES } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -6663,13 +8402,21 @@ class SubscribeCaptureInfoRequest::_Internal { }; SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeCaptureInfoRequest) } SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest( ::google::protobuf::Arena* arena, const SubscribeCaptureInfoRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeCaptureInfoRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -6678,6 +8425,68 @@ SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeCaptureInfoRequest) } +inline void* SubscribeCaptureInfoRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeCaptureInfoRequest(arena); +} +constexpr auto SubscribeCaptureInfoRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeCaptureInfoRequest), + alignof(SubscribeCaptureInfoRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeCaptureInfoRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCaptureInfoRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCaptureInfoRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCaptureInfoRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeCaptureInfoRequest::ByteSizeLong, + &SubscribeCaptureInfoRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCaptureInfoRequest, _impl_._cached_size_), + false, + }, + &SubscribeCaptureInfoRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeCaptureInfoRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeCaptureInfoRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SubscribeCaptureInfoRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -6687,50 +8496,50 @@ SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest( ::google::protobuf::Metadata SubscribeCaptureInfoRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[26]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CaptureInfoResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CaptureInfo& capture_info(const CaptureInfoResponse* msg); - static void set_has_capture_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CaptureInfo& CaptureInfoResponse::_Internal::capture_info(const CaptureInfoResponse* msg) { - return *msg->_impl_.capture_info_; -} CaptureInfoResponse::CaptureInfoResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CaptureInfoResponse) } inline PROTOBUF_NDEBUG_INLINE CaptureInfoResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::CaptureInfoResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} CaptureInfoResponse::CaptureInfoResponse( ::google::protobuf::Arena* arena, const CaptureInfoResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CaptureInfoResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.capture_info_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CaptureInfo>(arena, *from._impl_.capture_info_) - : nullptr; + _impl_.capture_info_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CaptureInfo>( + arena, *from._impl_.capture_info_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CaptureInfoResponse) } @@ -6745,38 +8554,51 @@ inline void CaptureInfoResponse::SharedCtor(::_pb::Arena* arena) { } CaptureInfoResponse::~CaptureInfoResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CaptureInfoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CaptureInfoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.capture_info_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CaptureInfoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CaptureInfoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.capture_info_ != nullptr); - _impl_.capture_info_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CaptureInfoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void CaptureInfoResponse::SharedDtor(MessageLite& self) { + CaptureInfoResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.capture_info_; + this_._impl_.~Impl_(); +} + +inline void* CaptureInfoResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CaptureInfoResponse(arena); +} +constexpr auto CaptureInfoResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CaptureInfoResponse), + alignof(CaptureInfoResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CaptureInfoResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CaptureInfoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CaptureInfoResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CaptureInfoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CaptureInfoResponse::ByteSizeLong, + &CaptureInfoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_._cached_size_), + false, + }, + &CaptureInfoResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CaptureInfoResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CaptureInfoResponse::_table_ = { { @@ -6789,8 +8611,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CaptureInfoResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_CaptureInfoResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CaptureInfoResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; {::_pbi::TcParser::FastMtS1, @@ -6807,68 +8633,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CaptureInfoResponse::_table_ = { }}, }; -::uint8_t* CaptureInfoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CaptureInfoResponse) +PROTOBUF_NOINLINE void CaptureInfoResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CaptureInfoResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::capture_info(this), - _Internal::capture_info(this).GetCachedSize(), target, stream); + ABSL_DCHECK(_impl_.capture_info_ != nullptr); + _impl_.capture_info_->Clear(); } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CaptureInfoResponse) - return target; -} - -::size_t CaptureInfoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CaptureInfoResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.capture_info_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CaptureInfoResponse::_class_data_ = { - CaptureInfoResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CaptureInfoResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void CaptureInfoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* CaptureInfoResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const CaptureInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* CaptureInfoResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const CaptureInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CaptureInfoResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.capture_info_, this_._impl_.capture_info_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CaptureInfoResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t CaptureInfoResponse::ByteSizeLong(const MessageLite& base) { + const CaptureInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t CaptureInfoResponse::ByteSizeLong() const { + const CaptureInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CaptureInfoResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.capture_info_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void CaptureInfoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CaptureInfoResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_capture_info()->::mavsdk::rpc::camera::CaptureInfo::MergeFrom( - from._internal_capture_info()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.capture_info_ != nullptr); + if (_this->_impl_.capture_info_ == nullptr) { + _this->_impl_.capture_info_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CaptureInfo>(arena, *from._impl_.capture_info_); + } else { + _this->_impl_.capture_info_->MergeFrom(*from._impl_.capture_info_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -6879,13 +8737,7 @@ void CaptureInfoResponse::CopyFrom(const CaptureInfoResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CaptureInfoResponse::IsInitialized() const { - return true; -} -::_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_); @@ -6894,9 +8746,7 @@ void CaptureInfoResponse::InternalSwap(CaptureInfoResponse* PROTOBUF_RESTRICT ot } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -6905,13 +8755,21 @@ class SubscribeStatusRequest::_Internal { }; SubscribeStatusRequest::SubscribeStatusRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeStatusRequest) } SubscribeStatusRequest::SubscribeStatusRequest( ::google::protobuf::Arena* arena, const SubscribeStatusRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeStatusRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -6920,6 +8778,68 @@ SubscribeStatusRequest::SubscribeStatusRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeStatusRequest) } +inline void* SubscribeStatusRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeStatusRequest(arena); +} +constexpr auto SubscribeStatusRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeStatusRequest), + alignof(SubscribeStatusRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeStatusRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeStatusRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeStatusRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeStatusRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeStatusRequest::ByteSizeLong, + &SubscribeStatusRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeStatusRequest, _impl_._cached_size_), + false, + }, + &SubscribeStatusRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeStatusRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeStatusRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SubscribeStatusRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -6929,50 +8849,50 @@ SubscribeStatusRequest::SubscribeStatusRequest( ::google::protobuf::Metadata SubscribeStatusRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[28]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StatusResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::Status& camera_status(const StatusResponse* msg); - static void set_has_camera_status(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::Status& StatusResponse::_Internal::camera_status(const StatusResponse* msg) { - return *msg->_impl_.camera_status_; -} StatusResponse::StatusResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StatusResponse) } inline PROTOBUF_NDEBUG_INLINE StatusResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::StatusResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} StatusResponse::StatusResponse( ::google::protobuf::Arena* arena, const StatusResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE StatusResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_status_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::Status>(arena, *from._impl_.camera_status_) - : nullptr; + _impl_.camera_status_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Status>( + arena, *from._impl_.camera_status_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StatusResponse) } @@ -6987,38 +8907,51 @@ inline void StatusResponse::SharedCtor(::_pb::Arena* arena) { } StatusResponse::~StatusResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.StatusResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StatusResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_status_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void StatusResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StatusResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_status_ != nullptr); - _impl_.camera_status_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StatusResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void StatusResponse::SharedDtor(MessageLite& self) { + StatusResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_status_; + this_._impl_.~Impl_(); +} + +inline void* StatusResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StatusResponse(arena); +} +constexpr auto StatusResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StatusResponse), + alignof(StatusResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StatusResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StatusResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StatusResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StatusResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StatusResponse::ByteSizeLong, + &StatusResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_._cached_size_), + false, + }, + &StatusResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StatusResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StatusResponse::_table_ = { { @@ -7031,8 +8964,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StatusResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_StatusResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::StatusResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.Status camera_status = 1; {::_pbi::TcParser::FastMtS1, @@ -7049,68 +8986,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> StatusResponse::_table_ = { }}, }; -::uint8_t* StatusResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StatusResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.Status camera_status = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_status(this), - _Internal::camera_status(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StatusResponse) - return target; -} - -::size_t StatusResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StatusResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void StatusResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StatusResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.Status camera_status = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_status_); + ABSL_DCHECK(_impl_.camera_status_ != nullptr); + _impl_.camera_status_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData StatusResponse::_class_data_ = { - StatusResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* StatusResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void StatusResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StatusResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StatusResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StatusResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StatusResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StatusResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.Status camera_status = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_status_, this_._impl_.camera_status_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.StatusResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StatusResponse::ByteSizeLong(const MessageLite& base) { + const StatusResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StatusResponse::ByteSizeLong() const { + const StatusResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StatusResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.Status camera_status = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_status_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StatusResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StatusResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_status()->::mavsdk::rpc::camera::Status::MergeFrom( - from._internal_camera_status()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_status_ != nullptr); + if (_this->_impl_.camera_status_ == nullptr) { + _this->_impl_.camera_status_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Status>(arena, *from._impl_.camera_status_); + } else { + _this->_impl_.camera_status_->MergeFrom(*from._impl_.camera_status_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7121,13 +9090,7 @@ void StatusResponse::CopyFrom(const StatusResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool StatusResponse::IsInitialized() const { - return true; -} -::_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_); @@ -7136,9 +9099,7 @@ void StatusResponse::InternalSwap(StatusResponse* PROTOBUF_RESTRICT other) { } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -7147,13 +9108,21 @@ class SubscribeCurrentSettingsRequest::_Internal { }; SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeCurrentSettingsRequest) } SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest( ::google::protobuf::Arena* arena, const SubscribeCurrentSettingsRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribeCurrentSettingsRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -7162,6 +9131,68 @@ SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeCurrentSettingsRequest) } +inline void* SubscribeCurrentSettingsRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribeCurrentSettingsRequest(arena); +} +constexpr auto SubscribeCurrentSettingsRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribeCurrentSettingsRequest), + alignof(SubscribeCurrentSettingsRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribeCurrentSettingsRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribeCurrentSettingsRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribeCurrentSettingsRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribeCurrentSettingsRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribeCurrentSettingsRequest::ByteSizeLong, + &SubscribeCurrentSettingsRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribeCurrentSettingsRequest, _impl_._cached_size_), + false, + }, + &SubscribeCurrentSettingsRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribeCurrentSettingsRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribeCurrentSettingsRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -7171,9 +9202,7 @@ SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest( ::google::protobuf::Metadata SubscribeCurrentSettingsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[30]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -7182,25 +9211,33 @@ class CurrentSettingsResponse::_Internal { }; CurrentSettingsResponse::CurrentSettingsResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CurrentSettingsResponse) } inline PROTOBUF_NDEBUG_INLINE CurrentSettingsResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::CurrentSettingsResponse& from_msg) : current_settings_{visibility, arena, from.current_settings_}, _cached_size_{0} {} CurrentSettingsResponse::CurrentSettingsResponse( ::google::protobuf::Arena* arena, const CurrentSettingsResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CurrentSettingsResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CurrentSettingsResponse) } @@ -7215,32 +9252,62 @@ inline void CurrentSettingsResponse::SharedCtor(::_pb::Arena* arena) { } CurrentSettingsResponse::~CurrentSettingsResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CurrentSettingsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CurrentSettingsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CurrentSettingsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CurrentSettingsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.current_settings_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CurrentSettingsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void CurrentSettingsResponse::SharedDtor(MessageLite& self) { + CurrentSettingsResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* CurrentSettingsResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CurrentSettingsResponse(arena); +} +constexpr auto CurrentSettingsResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(CurrentSettingsResponse, _impl_.current_settings_) + + decltype(CurrentSettingsResponse::_impl_.current_settings_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(CurrentSettingsResponse), alignof(CurrentSettingsResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&CurrentSettingsResponse::PlacementNew_, + sizeof(CurrentSettingsResponse), + alignof(CurrentSettingsResponse)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CurrentSettingsResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CurrentSettingsResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CurrentSettingsResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CurrentSettingsResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CurrentSettingsResponse::ByteSizeLong, + &CurrentSettingsResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CurrentSettingsResponse, _impl_._cached_size_), + false, + }, + &CurrentSettingsResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CurrentSettingsResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CurrentSettingsResponse::_table_ = { { @@ -7253,8 +9320,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CurrentSettingsResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_CurrentSettingsResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CurrentSettingsResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated .mavsdk.rpc.camera.Setting current_settings = 1; {::_pbi::TcParser::FastMtR1, @@ -7271,56 +9342,81 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CurrentSettingsResponse::_table_ = { }}, }; -::uint8_t* CurrentSettingsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CurrentSettingsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .mavsdk.rpc.camera.Setting current_settings = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_current_settings_size()); i < n; i++) { - const auto& repfield = this->_internal_current_settings().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CurrentSettingsResponse) - return target; -} - -::size_t CurrentSettingsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CurrentSettingsResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void CurrentSettingsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CurrentSettingsResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .mavsdk.rpc.camera.Setting current_settings = 1; - total_size += 1UL * this->_internal_current_settings_size(); - for (const auto& msg : this->_internal_current_settings()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CurrentSettingsResponse::_class_data_ = { - CurrentSettingsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CurrentSettingsResponse::GetClassData() const { - return &_class_data_; + _impl_.current_settings_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void CurrentSettingsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* CurrentSettingsResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const CurrentSettingsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* CurrentSettingsResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const CurrentSettingsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CurrentSettingsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .mavsdk.rpc.camera.Setting current_settings = 1; + for (unsigned i = 0, n = static_cast( + this_._internal_current_settings_size()); + i < n; i++) { + const auto& repfield = this_._internal_current_settings().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CurrentSettingsResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t CurrentSettingsResponse::ByteSizeLong(const MessageLite& base) { + const CurrentSettingsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t CurrentSettingsResponse::ByteSizeLong() const { + const CurrentSettingsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CurrentSettingsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .mavsdk.rpc.camera.Setting current_settings = 1; + { + total_size += 1UL * this_._internal_current_settings_size(); + for (const auto& msg : this_._internal_current_settings()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void CurrentSettingsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CurrentSettingsResponse) @@ -7340,13 +9436,7 @@ void CurrentSettingsResponse::CopyFrom(const CurrentSettingsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CurrentSettingsResponse::IsInitialized() const { - return true; -} -::_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_); @@ -7354,9 +9444,7 @@ void CurrentSettingsResponse::InternalSwap(CurrentSettingsResponse* PROTOBUF_RES } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -7365,13 +9453,21 @@ class SubscribePossibleSettingOptionsRequest::_Internal { }; SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest) } SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest( ::google::protobuf::Arena* arena, const SubscribePossibleSettingOptionsRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SubscribePossibleSettingOptionsRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -7380,6 +9476,68 @@ SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest) } +inline void* SubscribePossibleSettingOptionsRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SubscribePossibleSettingOptionsRequest(arena); +} +constexpr auto SubscribePossibleSettingOptionsRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SubscribePossibleSettingOptionsRequest), + alignof(SubscribePossibleSettingOptionsRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SubscribePossibleSettingOptionsRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SubscribePossibleSettingOptionsRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SubscribePossibleSettingOptionsRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SubscribePossibleSettingOptionsRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &SubscribePossibleSettingOptionsRequest::ByteSizeLong, + &SubscribePossibleSettingOptionsRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SubscribePossibleSettingOptionsRequest, _impl_._cached_size_), + false, + }, + &SubscribePossibleSettingOptionsRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SubscribePossibleSettingOptionsRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> SubscribePossibleSettingOptionsRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -7389,9 +9547,7 @@ SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest( ::google::protobuf::Metadata SubscribePossibleSettingOptionsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[32]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -7400,25 +9556,33 @@ class PossibleSettingOptionsResponse::_Internal { }; PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) } inline PROTOBUF_NDEBUG_INLINE PossibleSettingOptionsResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::PossibleSettingOptionsResponse& from_msg) : setting_options_{visibility, arena, from.setting_options_}, _cached_size_{0} {} PossibleSettingOptionsResponse::PossibleSettingOptionsResponse( ::google::protobuf::Arena* arena, const PossibleSettingOptionsResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE PossibleSettingOptionsResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) } @@ -7433,32 +9597,62 @@ inline void PossibleSettingOptionsResponse::SharedCtor(::_pb::Arena* arena) { } PossibleSettingOptionsResponse::~PossibleSettingOptionsResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void PossibleSettingOptionsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void PossibleSettingOptionsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.setting_options_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PossibleSettingOptionsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void PossibleSettingOptionsResponse::SharedDtor(MessageLite& self) { + PossibleSettingOptionsResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* PossibleSettingOptionsResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) PossibleSettingOptionsResponse(arena); +} +constexpr auto PossibleSettingOptionsResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(PossibleSettingOptionsResponse, _impl_.setting_options_) + + decltype(PossibleSettingOptionsResponse::_impl_.setting_options_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(PossibleSettingOptionsResponse), alignof(PossibleSettingOptionsResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&PossibleSettingOptionsResponse::PlacementNew_, + sizeof(PossibleSettingOptionsResponse), + alignof(PossibleSettingOptionsResponse)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull PossibleSettingOptionsResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_PossibleSettingOptionsResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PossibleSettingOptionsResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PossibleSettingOptionsResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &PossibleSettingOptionsResponse::ByteSizeLong, + &PossibleSettingOptionsResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PossibleSettingOptionsResponse, _impl_._cached_size_), + false, + }, + &PossibleSettingOptionsResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* PossibleSettingOptionsResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PossibleSettingOptionsResponse::_table_ = { { @@ -7471,8 +9665,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PossibleSettingOptionsResponse::_table 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_PossibleSettingOptionsResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::PossibleSettingOptionsResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; {::_pbi::TcParser::FastMtR1, @@ -7489,56 +9687,81 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PossibleSettingOptionsResponse::_table }}, }; -::uint8_t* PossibleSettingOptionsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_setting_options_size()); i < n; i++) { - const auto& repfield = this->_internal_setting_options().Get(i); - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - return target; -} - -::size_t PossibleSettingOptionsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void PossibleSettingOptionsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; - total_size += 1UL * this->_internal_setting_options_size(); - for (const auto& msg : this->_internal_setting_options()) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData PossibleSettingOptionsResponse::_class_data_ = { - PossibleSettingOptionsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* PossibleSettingOptionsResponse::GetClassData() const { - return &_class_data_; + _impl_.setting_options_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void PossibleSettingOptionsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* PossibleSettingOptionsResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const PossibleSettingOptionsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* PossibleSettingOptionsResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const PossibleSettingOptionsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; + for (unsigned i = 0, n = static_cast( + this_._internal_setting_options_size()); + i < n; i++) { + const auto& repfield = this_._internal_setting_options().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t PossibleSettingOptionsResponse::ByteSizeLong(const MessageLite& base) { + const PossibleSettingOptionsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t PossibleSettingOptionsResponse::ByteSizeLong() const { + const PossibleSettingOptionsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; + { + total_size += 1UL * this_._internal_setting_options_size(); + for (const auto& msg : this_._internal_setting_options()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void PossibleSettingOptionsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) @@ -7558,13 +9781,7 @@ void PossibleSettingOptionsResponse::CopyFrom(const PossibleSettingOptionsRespon MergeFrom(from); } -PROTOBUF_NOINLINE bool PossibleSettingOptionsResponse::IsInitialized() const { - return true; -} -::_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_); @@ -7572,50 +9789,50 @@ void PossibleSettingOptionsResponse::InternalSwap(PossibleSettingOptionsResponse } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetSettingRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::Setting& setting(const SetSettingRequest* msg); - static void set_has_setting(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::Setting& SetSettingRequest::_Internal::setting(const SetSettingRequest* msg) { - return *msg->_impl_.setting_; -} SetSettingRequest::SetSettingRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetSettingRequest) } inline PROTOBUF_NDEBUG_INLINE SetSettingRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::SetSettingRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetSettingRequest::SetSettingRequest( ::google::protobuf::Arena* arena, const SetSettingRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetSettingRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::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; + _impl_.setting_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>( + arena, *from._impl_.setting_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetSettingRequest) } @@ -7630,38 +9847,51 @@ inline void SetSettingRequest::SharedCtor(::_pb::Arena* arena) { } SetSettingRequest::~SetSettingRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetSettingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetSettingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.setting_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetSettingRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetSettingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.setting_ != nullptr); - _impl_.setting_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetSettingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetSettingRequest::SharedDtor(MessageLite& self) { + SetSettingRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.setting_; + this_._impl_.~Impl_(); +} + +inline void* SetSettingRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetSettingRequest(arena); +} +constexpr auto SetSettingRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetSettingRequest), + alignof(SetSettingRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetSettingRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetSettingRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetSettingRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetSettingRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetSettingRequest::ByteSizeLong, + &SetSettingRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_._cached_size_), + false, + }, + &SetSettingRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetSettingRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetSettingRequest::_table_ = { { @@ -7674,8 +9904,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetSettingRequest::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetSettingRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SetSettingRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.Setting setting = 1; {::_pbi::TcParser::FastMtS1, @@ -7692,68 +9926,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetSettingRequest::_table_ = { }}, }; -::uint8_t* SetSettingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetSettingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.Setting setting = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::setting(this), - _Internal::setting(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetSettingRequest) - return target; -} - -::size_t SetSettingRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetSettingRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetSettingRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetSettingRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.Setting setting = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.setting_); + ABSL_DCHECK(_impl_.setting_ != nullptr); + _impl_.setting_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetSettingRequest::_class_data_ = { - SetSettingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetSettingRequest::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetSettingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetSettingRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetSettingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetSettingRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetSettingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetSettingRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.Setting setting = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.setting_, this_._impl_.setting_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetSettingRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetSettingRequest::ByteSizeLong(const MessageLite& base) { + const SetSettingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetSettingRequest::ByteSizeLong() const { + const SetSettingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetSettingRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.Setting setting = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.setting_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetSettingRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetSettingRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom( - from._internal_setting()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.setting_ != nullptr); + if (_this->_impl_.setting_ == nullptr) { + _this->_impl_.setting_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>(arena, *from._impl_.setting_); + } else { + _this->_impl_.setting_->MergeFrom(*from._impl_.setting_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7764,13 +10030,7 @@ void SetSettingRequest::CopyFrom(const SetSettingRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetSettingRequest::IsInitialized() const { - return true; -} -::_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_); @@ -7779,50 +10039,50 @@ void SetSettingRequest::InternalSwap(SetSettingRequest* PROTOBUF_RESTRICT other) } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SetSettingResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const SetSettingResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& SetSettingResponse::_Internal::camera_result(const SetSettingResponse* msg) { - return *msg->_impl_.camera_result_; -} SetSettingResponse::SetSettingResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetSettingResponse) } inline PROTOBUF_NDEBUG_INLINE SetSettingResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::SetSettingResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SetSettingResponse::SetSettingResponse( ::google::protobuf::Arena* arena, const SetSettingResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SetSettingResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetSettingResponse) } @@ -7837,38 +10097,51 @@ inline void SetSettingResponse::SharedCtor(::_pb::Arena* arena) { } SetSettingResponse::~SetSettingResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SetSettingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetSettingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetSettingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetSettingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetSettingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SetSettingResponse::SharedDtor(MessageLite& self) { + SetSettingResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* SetSettingResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SetSettingResponse(arena); +} +constexpr auto SetSettingResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SetSettingResponse), + alignof(SetSettingResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SetSettingResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SetSettingResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SetSettingResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SetSettingResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SetSettingResponse::ByteSizeLong, + &SetSettingResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_._cached_size_), + false, + }, + &SetSettingResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SetSettingResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetSettingResponse::_table_ = { { @@ -7881,8 +10154,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetSettingResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetSettingResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SetSettingResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -7899,68 +10176,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetSettingResponse::_table_ = { }}, }; -::uint8_t* SetSettingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetSettingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetSettingResponse) - return target; -} - -::size_t SetSettingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetSettingResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SetSettingResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetSettingResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetSettingResponse::_class_data_ = { - SetSettingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetSettingResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SetSettingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SetSettingResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SetSettingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SetSettingResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SetSettingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetSettingResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SetSettingResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SetSettingResponse::ByteSizeLong(const MessageLite& base) { + const SetSettingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SetSettingResponse::ByteSizeLong() const { + const SetSettingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetSettingResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SetSettingResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetSettingResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -7971,13 +10280,7 @@ void SetSettingResponse::CopyFrom(const SetSettingResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SetSettingResponse::IsInitialized() const { - return true; -} -::_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_); @@ -7986,50 +10289,50 @@ void SetSettingResponse::InternalSwap(SetSettingResponse* PROTOBUF_RESTRICT othe } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetSettingRequest::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::Setting& setting(const GetSettingRequest* msg); - static void set_has_setting(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::Setting& GetSettingRequest::_Internal::setting(const GetSettingRequest* msg) { - return *msg->_impl_.setting_; -} GetSettingRequest::GetSettingRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.GetSettingRequest) } inline PROTOBUF_NDEBUG_INLINE GetSettingRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::GetSettingRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} GetSettingRequest::GetSettingRequest( ::google::protobuf::Arena* arena, const GetSettingRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetSettingRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::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; + _impl_.setting_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>( + arena, *from._impl_.setting_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.GetSettingRequest) } @@ -8044,38 +10347,51 @@ inline void GetSettingRequest::SharedCtor(::_pb::Arena* arena) { } GetSettingRequest::~GetSettingRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.GetSettingRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetSettingRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.setting_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetSettingRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.GetSettingRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.setting_ != nullptr); - _impl_.setting_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void GetSettingRequest::SharedDtor(MessageLite& self) { + GetSettingRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.setting_; + this_._impl_.~Impl_(); +} + +inline void* GetSettingRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) GetSettingRequest(arena); +} +constexpr auto GetSettingRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetSettingRequest), + alignof(GetSettingRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetSettingRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetSettingRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetSettingRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetSettingRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetSettingRequest::ByteSizeLong, + &GetSettingRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_._cached_size_), + false, + }, + &GetSettingRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetSettingRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* GetSettingRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetSettingRequest::_table_ = { { @@ -8088,8 +10404,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetSettingRequest::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetSettingRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::GetSettingRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.Setting setting = 1; {::_pbi::TcParser::FastMtS1, @@ -8106,68 +10426,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetSettingRequest::_table_ = { }}, }; -::uint8_t* GetSettingRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.GetSettingRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.Setting setting = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::setting(this), - _Internal::setting(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.GetSettingRequest) - return target; -} - -::size_t GetSettingRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.GetSettingRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void GetSettingRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.GetSettingRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.Setting setting = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.setting_); + ABSL_DCHECK(_impl_.setting_ != nullptr); + _impl_.setting_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetSettingRequest::_class_data_ = { - GetSettingRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetSettingRequest::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void GetSettingRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* GetSettingRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const GetSettingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* GetSettingRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const GetSettingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.GetSettingRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.Setting setting = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.setting_, this_._impl_.setting_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.GetSettingRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t GetSettingRequest::ByteSizeLong(const MessageLite& base) { + const GetSettingRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t GetSettingRequest::ByteSizeLong() const { + const GetSettingRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.GetSettingRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.Setting setting = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.setting_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void GetSettingRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.GetSettingRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom( - from._internal_setting()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.setting_ != nullptr); + if (_this->_impl_.setting_ == nullptr) { + _this->_impl_.setting_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>(arena, *from._impl_.setting_); + } else { + _this->_impl_.setting_->MergeFrom(*from._impl_.setting_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -8178,13 +10530,7 @@ void GetSettingRequest::CopyFrom(const GetSettingRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetSettingRequest::IsInitialized() const { - return true; -} -::_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_); @@ -8193,60 +10539,53 @@ void GetSettingRequest::InternalSwap(GetSettingRequest* PROTOBUF_RESTRICT other) } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetSettingResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const GetSettingResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::camera::Setting& setting(const GetSettingResponse* msg); - static void set_has_setting(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + 8 * PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& GetSettingResponse::_Internal::camera_result(const GetSettingResponse* msg) { - return *msg->_impl_.camera_result_; -} -const ::mavsdk::rpc::camera::Setting& GetSettingResponse::_Internal::setting(const GetSettingResponse* msg) { - return *msg->_impl_.setting_; -} GetSettingResponse::GetSettingResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.GetSettingResponse) } inline PROTOBUF_NDEBUG_INLINE GetSettingResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::GetSettingResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} GetSettingResponse::GetSettingResponse( ::google::protobuf::Arena* arena, const GetSettingResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE GetSettingResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? 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; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; + _impl_.setting_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>( + arena, *from._impl_.setting_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.GetSettingResponse) } @@ -8266,45 +10605,52 @@ inline void GetSettingResponse::SharedCtor(::_pb::Arena* arena) { } GetSettingResponse::~GetSettingResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.GetSettingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetSettingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - delete _impl_.setting_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetSettingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.GetSettingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.setting_ != nullptr); - _impl_.setting_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetSettingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void GetSettingResponse::SharedDtor(MessageLite& self) { + GetSettingResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + delete this_._impl_.setting_; + this_._impl_.~Impl_(); +} + +inline void* GetSettingResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) GetSettingResponse(arena); +} +constexpr auto GetSettingResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GetSettingResponse), + alignof(GetSettingResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull GetSettingResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_GetSettingResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetSettingResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetSettingResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetSettingResponse::ByteSizeLong, + &GetSettingResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_._cached_size_), + false, + }, + &GetSettingResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* GetSettingResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSettingResponse::_table_ = { { @@ -8317,8 +10663,12 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSettingResponse::_table_ = { 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetSettingResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::GetSettingResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.Setting setting = 2; {::_pbi::TcParser::FastMtS1, @@ -8342,74 +10692,103 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSettingResponse::_table_ = { }}, }; -::uint8_t* GetSettingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.GetSettingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.camera.Setting setting = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::setting(this), - _Internal::setting(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.GetSettingResponse) - return target; -} - -::size_t GetSettingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.GetSettingResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void GetSettingResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.GetSettingResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { - // .mavsdk.rpc.camera.CameraResult camera_result = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - // .mavsdk.rpc.camera.Setting setting = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.setting_); + ABSL_DCHECK(_impl_.setting_ != nullptr); + _impl_.setting_->Clear(); } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetSettingResponse::_class_data_ = { - GetSettingResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetSettingResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void GetSettingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* GetSettingResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const GetSettingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* GetSettingResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const GetSettingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.GetSettingResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + // .mavsdk.rpc.camera.Setting setting = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.setting_, this_._impl_.setting_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.GetSettingResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t GetSettingResponse::ByteSizeLong(const MessageLite& base) { + const GetSettingResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t GetSettingResponse::ByteSizeLong() const { + const GetSettingResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.GetSettingResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + // .mavsdk.rpc.camera.Setting setting = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.setting_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void GetSettingResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.GetSettingResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -8418,14 +10797,25 @@ void GetSettingResponse::MergeImpl(::google::protobuf::Message& to_msg, const :: cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom( - from._internal_setting()); + ABSL_DCHECK(from._impl_.setting_ != nullptr); + if (_this->_impl_.setting_ == nullptr) { + _this->_impl_.setting_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Setting>(arena, *from._impl_.setting_); + } else { + _this->_impl_.setting_->MergeFrom(*from._impl_.setting_); + } } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -8436,13 +10826,7 @@ void GetSettingResponse::CopyFrom(const GetSettingResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool GetSettingResponse::IsInitialized() const { - return true; -} -::_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_); @@ -8456,9 +10840,7 @@ void GetSettingResponse::InternalSwap(GetSettingResponse* PROTOBUF_RESTRICT othe } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -8467,7 +10849,11 @@ class FormatStorageRequest::_Internal { }; FormatStorageRequest::FormatStorageRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FormatStorageRequest) } @@ -8487,32 +10873,50 @@ inline void FormatStorageRequest::SharedCtor(::_pb::Arena* arena) { } FormatStorageRequest::~FormatStorageRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FormatStorageRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); +} +inline void FormatStorageRequest::SharedDtor(MessageLite& self) { + FormatStorageRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* FormatStorageRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FormatStorageRequest(arena); +} +constexpr auto FormatStorageRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FormatStorageRequest), + alignof(FormatStorageRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FormatStorageRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FormatStorageRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FormatStorageRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FormatStorageRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FormatStorageRequest::ByteSizeLong, + &FormatStorageRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FormatStorageRequest, _impl_._cached_size_), + false, + }, + &FormatStorageRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FormatStorageRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } -inline void FormatStorageRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FormatStorageRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FormatStorageRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.storage_id_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FormatStorageRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FormatStorageRequest::_table_ = { { @@ -8525,8 +10929,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FormatStorageRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_FormatStorageRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FormatStorageRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 storage_id = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FormatStorageRequest, _impl_.storage_id_), 63>(), @@ -8543,55 +10951,74 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FormatStorageRequest::_table_ = { }}, }; -::uint8_t* FormatStorageRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FormatStorageRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 storage_id = 1; - if (this->_internal_storage_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_storage_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FormatStorageRequest) - return target; -} - -::size_t FormatStorageRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FormatStorageRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void FormatStorageRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FormatStorageRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // int32 storage_id = 1; - if (this->_internal_storage_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_storage_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FormatStorageRequest::_class_data_ = { - FormatStorageRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FormatStorageRequest::GetClassData() const { - return &_class_data_; + _impl_.storage_id_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void FormatStorageRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* FormatStorageRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const FormatStorageRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* FormatStorageRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const FormatStorageRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FormatStorageRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // int32 storage_id = 1; + if (this_._internal_storage_id() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<1>( + stream, this_._internal_storage_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FormatStorageRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t FormatStorageRequest::ByteSizeLong(const MessageLite& base) { + const FormatStorageRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t FormatStorageRequest::ByteSizeLong() const { + const FormatStorageRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FormatStorageRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // int32 storage_id = 1; + if (this_._internal_storage_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_storage_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void FormatStorageRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FormatStorageRequest) @@ -8600,7 +11027,7 @@ void FormatStorageRequest::MergeImpl(::google::protobuf::Message& to_msg, const (void) cached_has_bits; if (from._internal_storage_id() != 0) { - _this->_internal_set_storage_id(from._internal_storage_id()); + _this->_impl_.storage_id_ = from._impl_.storage_id_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -8612,13 +11039,7 @@ void FormatStorageRequest::CopyFrom(const FormatStorageRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FormatStorageRequest::IsInitialized() const { - return true; -} -::_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_); @@ -8626,50 +11047,50 @@ void FormatStorageRequest::InternalSwap(FormatStorageRequest* PROTOBUF_RESTRICT } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FormatStorageResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const FormatStorageResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& FormatStorageResponse::_Internal::camera_result(const FormatStorageResponse* msg) { - return *msg->_impl_.camera_result_; -} FormatStorageResponse::FormatStorageResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FormatStorageResponse) } inline PROTOBUF_NDEBUG_INLINE FormatStorageResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::FormatStorageResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} FormatStorageResponse::FormatStorageResponse( ::google::protobuf::Arena* arena, const FormatStorageResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FormatStorageResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FormatStorageResponse) } @@ -8684,38 +11105,51 @@ inline void FormatStorageResponse::SharedCtor(::_pb::Arena* arena) { } FormatStorageResponse::~FormatStorageResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FormatStorageResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FormatStorageResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FormatStorageResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FormatStorageResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void FormatStorageResponse::SharedDtor(MessageLite& self) { + FormatStorageResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* FormatStorageResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FormatStorageResponse(arena); +} +constexpr auto FormatStorageResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FormatStorageResponse), + alignof(FormatStorageResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FormatStorageResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FormatStorageResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FormatStorageResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FormatStorageResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FormatStorageResponse::ByteSizeLong, + &FormatStorageResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_._cached_size_), + false, + }, + &FormatStorageResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FormatStorageResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* FormatStorageResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FormatStorageResponse::_table_ = { { @@ -8728,8 +11162,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FormatStorageResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_FormatStorageResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FormatStorageResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -8746,68 +11184,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FormatStorageResponse::_table_ = { }}, }; -::uint8_t* FormatStorageResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FormatStorageResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FormatStorageResponse) - return target; -} - -::size_t FormatStorageResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FormatStorageResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void FormatStorageResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FormatStorageResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FormatStorageResponse::_class_data_ = { - FormatStorageResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FormatStorageResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void FormatStorageResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* FormatStorageResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const FormatStorageResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* FormatStorageResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const FormatStorageResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FormatStorageResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FormatStorageResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t FormatStorageResponse::ByteSizeLong(const MessageLite& base) { + const FormatStorageResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t FormatStorageResponse::ByteSizeLong() const { + const FormatStorageResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FormatStorageResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void FormatStorageResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FormatStorageResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -8818,13 +11288,7 @@ void FormatStorageResponse::CopyFrom(const FormatStorageResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FormatStorageResponse::IsInitialized() const { - return true; -} -::_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_); @@ -8833,50 +11297,50 @@ void FormatStorageResponse::InternalSwap(FormatStorageResponse* PROTOBUF_RESTRIC } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class SelectCameraResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const SelectCameraResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& SelectCameraResponse::_Internal::camera_result(const SelectCameraResponse* msg) { - return *msg->_impl_.camera_result_; -} SelectCameraResponse::SelectCameraResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SelectCameraResponse) } inline PROTOBUF_NDEBUG_INLINE SelectCameraResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::SelectCameraResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} SelectCameraResponse::SelectCameraResponse( ::google::protobuf::Arena* arena, const SelectCameraResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SelectCameraResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SelectCameraResponse) } @@ -8891,38 +11355,51 @@ inline void SelectCameraResponse::SharedCtor(::_pb::Arena* arena) { } SelectCameraResponse::~SelectCameraResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SelectCameraResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SelectCameraResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SelectCameraResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SelectCameraResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SelectCameraResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void SelectCameraResponse::SharedDtor(MessageLite& self) { + SelectCameraResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* SelectCameraResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SelectCameraResponse(arena); +} +constexpr auto SelectCameraResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SelectCameraResponse), + alignof(SelectCameraResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SelectCameraResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SelectCameraResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SelectCameraResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SelectCameraResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SelectCameraResponse::ByteSizeLong, + &SelectCameraResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_._cached_size_), + false, + }, + &SelectCameraResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SelectCameraResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SelectCameraResponse::_table_ = { { @@ -8935,8 +11412,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SelectCameraResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SelectCameraResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SelectCameraResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -8953,68 +11434,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SelectCameraResponse::_table_ = { }}, }; -::uint8_t* SelectCameraResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SelectCameraResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SelectCameraResponse) - return target; -} - -::size_t SelectCameraResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SelectCameraResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SelectCameraResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SelectCameraResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SelectCameraResponse::_class_data_ = { - SelectCameraResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SelectCameraResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SelectCameraResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SelectCameraResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SelectCameraResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SelectCameraResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SelectCameraResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SelectCameraResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SelectCameraResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SelectCameraResponse::ByteSizeLong(const MessageLite& base) { + const SelectCameraResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SelectCameraResponse::ByteSizeLong() const { + const SelectCameraResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SelectCameraResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SelectCameraResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SelectCameraResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -9025,13 +11538,7 @@ void SelectCameraResponse::CopyFrom(const SelectCameraResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SelectCameraResponse::IsInitialized() const { - return true; -} -::_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_); @@ -9040,9 +11547,7 @@ void SelectCameraResponse::InternalSwap(SelectCameraResponse* PROTOBUF_RESTRICT } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -9051,7 +11556,11 @@ class SelectCameraRequest::_Internal { }; SelectCameraRequest::SelectCameraRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SelectCameraRequest) } @@ -9071,32 +11580,50 @@ inline void SelectCameraRequest::SharedCtor(::_pb::Arena* arena) { } SelectCameraRequest::~SelectCameraRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.SelectCameraRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); +} +inline void SelectCameraRequest::SharedDtor(MessageLite& self) { + SelectCameraRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* SelectCameraRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SelectCameraRequest(arena); +} +constexpr auto SelectCameraRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SelectCameraRequest), + alignof(SelectCameraRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SelectCameraRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SelectCameraRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SelectCameraRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SelectCameraRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SelectCameraRequest::ByteSizeLong, + &SelectCameraRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SelectCameraRequest, _impl_._cached_size_), + false, + }, + &SelectCameraRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SelectCameraRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } -inline void SelectCameraRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SelectCameraRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SelectCameraRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.camera_id_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SelectCameraRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SelectCameraRequest::_table_ = { { @@ -9109,8 +11636,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SelectCameraRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SelectCameraRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::SelectCameraRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 camera_id = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SelectCameraRequest, _impl_.camera_id_), 63>(), @@ -9127,55 +11658,74 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SelectCameraRequest::_table_ = { }}, }; -::uint8_t* SelectCameraRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SelectCameraRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 camera_id = 1; - if (this->_internal_camera_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this->_internal_camera_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SelectCameraRequest) - return target; -} - -::size_t SelectCameraRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SelectCameraRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void SelectCameraRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SelectCameraRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // int32 camera_id = 1; - if (this->_internal_camera_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_camera_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SelectCameraRequest::_class_data_ = { - SelectCameraRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SelectCameraRequest::GetClassData() const { - return &_class_data_; + _impl_.camera_id_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void SelectCameraRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SelectCameraRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SelectCameraRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SelectCameraRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SelectCameraRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SelectCameraRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // int32 camera_id = 1; + if (this_._internal_camera_id() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<1>( + stream, this_._internal_camera_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.SelectCameraRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SelectCameraRequest::ByteSizeLong(const MessageLite& base) { + const SelectCameraRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SelectCameraRequest::ByteSizeLong() const { + const SelectCameraRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SelectCameraRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // int32 camera_id = 1; + if (this_._internal_camera_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_camera_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SelectCameraRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SelectCameraRequest) @@ -9184,7 +11734,7 @@ void SelectCameraRequest::MergeImpl(::google::protobuf::Message& to_msg, const : (void) cached_has_bits; if (from._internal_camera_id() != 0) { - _this->_internal_set_camera_id(from._internal_camera_id()); + _this->_impl_.camera_id_ = from._impl_.camera_id_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -9196,13 +11746,7 @@ void SelectCameraRequest::CopyFrom(const SelectCameraRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool SelectCameraRequest::IsInitialized() const { - return true; -} -::_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_); @@ -9210,9 +11754,7 @@ void SelectCameraRequest::InternalSwap(SelectCameraRequest* PROTOBUF_RESTRICT ot } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -9221,13 +11763,21 @@ class ResetSettingsRequest::_Internal { }; ResetSettingsRequest::ResetSettingsRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ResetSettingsRequest) } ResetSettingsRequest::ResetSettingsRequest( ::google::protobuf::Arena* arena, const ResetSettingsRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ResetSettingsRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -9236,6 +11786,68 @@ ResetSettingsRequest::ResetSettingsRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ResetSettingsRequest) } +inline void* ResetSettingsRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ResetSettingsRequest(arena); +} +constexpr auto ResetSettingsRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ResetSettingsRequest), + alignof(ResetSettingsRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ResetSettingsRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ResetSettingsRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ResetSettingsRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ResetSettingsRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ResetSettingsRequest::ByteSizeLong, + &ResetSettingsRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ResetSettingsRequest, _impl_._cached_size_), + false, + }, + &ResetSettingsRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ResetSettingsRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ResetSettingsRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ResetSettingsRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -9245,50 +11857,50 @@ ResetSettingsRequest::ResetSettingsRequest( ::google::protobuf::Metadata ResetSettingsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[42]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ResetSettingsResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ResetSettingsResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ResetSettingsResponse::_Internal::camera_result(const ResetSettingsResponse* msg) { - return *msg->_impl_.camera_result_; -} ResetSettingsResponse::ResetSettingsResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ResetSettingsResponse) } inline PROTOBUF_NDEBUG_INLINE ResetSettingsResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::ResetSettingsResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ResetSettingsResponse::ResetSettingsResponse( ::google::protobuf::Arena* arena, const ResetSettingsResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ResetSettingsResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ResetSettingsResponse) } @@ -9303,38 +11915,51 @@ inline void ResetSettingsResponse::SharedCtor(::_pb::Arena* arena) { } ResetSettingsResponse::~ResetSettingsResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ResetSettingsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ResetSettingsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ResetSettingsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ResetSettingsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ResetSettingsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ResetSettingsResponse::SharedDtor(MessageLite& self) { + ResetSettingsResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* ResetSettingsResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ResetSettingsResponse(arena); +} +constexpr auto ResetSettingsResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ResetSettingsResponse), + alignof(ResetSettingsResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ResetSettingsResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ResetSettingsResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ResetSettingsResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ResetSettingsResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ResetSettingsResponse::ByteSizeLong, + &ResetSettingsResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ResetSettingsResponse, _impl_._cached_size_), + false, + }, + &ResetSettingsResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ResetSettingsResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ResetSettingsResponse::_table_ = { { @@ -9347,8 +11972,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ResetSettingsResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ResetSettingsResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ResetSettingsResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -9365,68 +11994,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ResetSettingsResponse::_table_ = { }}, }; -::uint8_t* ResetSettingsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ResetSettingsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ResetSettingsResponse) - return target; -} - -::size_t ResetSettingsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ResetSettingsResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ResetSettingsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ResetSettingsResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ResetSettingsResponse::_class_data_ = { - ResetSettingsResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ResetSettingsResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ResetSettingsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ResetSettingsResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ResetSettingsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ResetSettingsResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ResetSettingsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ResetSettingsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ResetSettingsResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ResetSettingsResponse::ByteSizeLong(const MessageLite& base) { + const ResetSettingsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ResetSettingsResponse::ByteSizeLong() const { + const ResetSettingsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ResetSettingsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ResetSettingsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ResetSettingsResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -9437,13 +12098,7 @@ void ResetSettingsResponse::CopyFrom(const ResetSettingsResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ResetSettingsResponse::IsInitialized() const { - return true; -} -::_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_); @@ -9452,9 +12107,7 @@ void ResetSettingsResponse::InternalSwap(ResetSettingsResponse* PROTOBUF_RESTRIC } ::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]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -9463,13 +12116,21 @@ class ZoomInStartRequest::_Internal { }; ZoomInStartRequest::ZoomInStartRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomInStartRequest) } ZoomInStartRequest::ZoomInStartRequest( ::google::protobuf::Arena* arena, const ZoomInStartRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ZoomInStartRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -9478,6 +12139,68 @@ ZoomInStartRequest::ZoomInStartRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomInStartRequest) } +inline void* ZoomInStartRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ZoomInStartRequest(arena); +} +constexpr auto ZoomInStartRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ZoomInStartRequest), + alignof(ZoomInStartRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomInStartRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomInStartRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomInStartRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomInStartRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ZoomInStartRequest::ByteSizeLong, + &ZoomInStartRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomInStartRequest, _impl_._cached_size_), + false, + }, + &ZoomInStartRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomInStartRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ZoomInStartRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomInStartRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -9487,50 +12210,50 @@ ZoomInStartRequest::ZoomInStartRequest( ::google::protobuf::Metadata ZoomInStartRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[44]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomInStartResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ZoomInStartResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ZoomInStartResponse::_Internal::camera_result(const ZoomInStartResponse* msg) { - return *msg->_impl_.camera_result_; -} ZoomInStartResponse::ZoomInStartResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomInStartResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomInStartResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::ZoomInStartResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ZoomInStartResponse::ZoomInStartResponse( ::google::protobuf::Arena* arena, const ZoomInStartResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ZoomInStartResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomInStartResponse) } @@ -9545,38 +12268,51 @@ inline void ZoomInStartResponse::SharedCtor(::_pb::Arena* arena) { } ZoomInStartResponse::~ZoomInStartResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomInStartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ZoomInStartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ZoomInStartResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomInStartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ZoomInStartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ZoomInStartResponse::SharedDtor(MessageLite& self) { + ZoomInStartResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* ZoomInStartResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ZoomInStartResponse(arena); +} +constexpr auto ZoomInStartResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ZoomInStartResponse), + alignof(ZoomInStartResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomInStartResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomInStartResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomInStartResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomInStartResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ZoomInStartResponse::ByteSizeLong, + &ZoomInStartResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomInStartResponse, _impl_._cached_size_), + false, + }, + &ZoomInStartResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomInStartResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomInStartResponse::_table_ = { { @@ -9589,8 +12325,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomInStartResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ZoomInStartResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomInStartResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -9607,68 +12347,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomInStartResponse::_table_ = { }}, }; -::uint8_t* ZoomInStartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomInStartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomInStartResponse) - return target; -} - -::size_t ZoomInStartResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomInStartResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ZoomInStartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomInStartResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ZoomInStartResponse::_class_data_ = { - ZoomInStartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ZoomInStartResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ZoomInStartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ZoomInStartResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ZoomInStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ZoomInStartResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ZoomInStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomInStartResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomInStartResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ZoomInStartResponse::ByteSizeLong(const MessageLite& base) { + const ZoomInStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ZoomInStartResponse::ByteSizeLong() const { + const ZoomInStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomInStartResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ZoomInStartResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomInStartResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -9679,13 +12451,7 @@ void ZoomInStartResponse::CopyFrom(const ZoomInStartResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ZoomInStartResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ZoomInStartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ZoomInStartResponse::InternalSwap(ZoomInStartResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -9694,9 +12460,7 @@ void ZoomInStartResponse::InternalSwap(ZoomInStartResponse* PROTOBUF_RESTRICT ot } ::google::protobuf::Metadata ZoomInStartResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[45]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -9705,13 +12469,21 @@ class ZoomOutStartRequest::_Internal { }; ZoomOutStartRequest::ZoomOutStartRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomOutStartRequest) } ZoomOutStartRequest::ZoomOutStartRequest( ::google::protobuf::Arena* arena, const ZoomOutStartRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ZoomOutStartRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -9720,6 +12492,68 @@ ZoomOutStartRequest::ZoomOutStartRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomOutStartRequest) } +inline void* ZoomOutStartRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ZoomOutStartRequest(arena); +} +constexpr auto ZoomOutStartRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ZoomOutStartRequest), + alignof(ZoomOutStartRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomOutStartRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomOutStartRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomOutStartRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomOutStartRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ZoomOutStartRequest::ByteSizeLong, + &ZoomOutStartRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomOutStartRequest, _impl_._cached_size_), + false, + }, + &ZoomOutStartRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomOutStartRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ZoomOutStartRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomOutStartRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -9729,50 +12563,50 @@ ZoomOutStartRequest::ZoomOutStartRequest( ::google::protobuf::Metadata ZoomOutStartRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[46]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomOutStartResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ZoomOutStartResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ZoomOutStartResponse::_Internal::camera_result(const ZoomOutStartResponse* msg) { - return *msg->_impl_.camera_result_; -} ZoomOutStartResponse::ZoomOutStartResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomOutStartResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomOutStartResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::ZoomOutStartResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ZoomOutStartResponse::ZoomOutStartResponse( ::google::protobuf::Arena* arena, const ZoomOutStartResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ZoomOutStartResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomOutStartResponse) } @@ -9787,38 +12621,51 @@ inline void ZoomOutStartResponse::SharedCtor(::_pb::Arena* arena) { } ZoomOutStartResponse::~ZoomOutStartResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomOutStartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ZoomOutStartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ZoomOutStartResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomOutStartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ZoomOutStartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ZoomOutStartResponse::SharedDtor(MessageLite& self) { + ZoomOutStartResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* ZoomOutStartResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ZoomOutStartResponse(arena); +} +constexpr auto ZoomOutStartResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ZoomOutStartResponse), + alignof(ZoomOutStartResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomOutStartResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomOutStartResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomOutStartResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomOutStartResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ZoomOutStartResponse::ByteSizeLong, + &ZoomOutStartResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomOutStartResponse, _impl_._cached_size_), + false, + }, + &ZoomOutStartResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomOutStartResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomOutStartResponse::_table_ = { { @@ -9831,8 +12678,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomOutStartResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ZoomOutStartResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomOutStartResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -9849,68 +12700,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomOutStartResponse::_table_ = { }}, }; -::uint8_t* ZoomOutStartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomOutStartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomOutStartResponse) - return target; -} - -::size_t ZoomOutStartResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomOutStartResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ZoomOutStartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomOutStartResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ZoomOutStartResponse::_class_data_ = { - ZoomOutStartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ZoomOutStartResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ZoomOutStartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ZoomOutStartResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ZoomOutStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ZoomOutStartResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ZoomOutStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomOutStartResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomOutStartResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ZoomOutStartResponse::ByteSizeLong(const MessageLite& base) { + const ZoomOutStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ZoomOutStartResponse::ByteSizeLong() const { + const ZoomOutStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomOutStartResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ZoomOutStartResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomOutStartResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -9921,13 +12804,7 @@ void ZoomOutStartResponse::CopyFrom(const ZoomOutStartResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ZoomOutStartResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ZoomOutStartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ZoomOutStartResponse::InternalSwap(ZoomOutStartResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -9936,9 +12813,7 @@ void ZoomOutStartResponse::InternalSwap(ZoomOutStartResponse* PROTOBUF_RESTRICT } ::google::protobuf::Metadata ZoomOutStartResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[47]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -9947,13 +12822,21 @@ class ZoomStopRequest::_Internal { }; ZoomStopRequest::ZoomStopRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomStopRequest) } ZoomStopRequest::ZoomStopRequest( ::google::protobuf::Arena* arena, const ZoomStopRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ZoomStopRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -9962,6 +12845,68 @@ ZoomStopRequest::ZoomStopRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomStopRequest) } +inline void* ZoomStopRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ZoomStopRequest(arena); +} +constexpr auto ZoomStopRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ZoomStopRequest), + alignof(ZoomStopRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomStopRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomStopRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomStopRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomStopRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ZoomStopRequest::ByteSizeLong, + &ZoomStopRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomStopRequest, _impl_._cached_size_), + false, + }, + &ZoomStopRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomStopRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ZoomStopRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomStopRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -9971,50 +12916,50 @@ ZoomStopRequest::ZoomStopRequest( ::google::protobuf::Metadata ZoomStopRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[48]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomStopResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ZoomStopResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ZoomStopResponse::_Internal::camera_result(const ZoomStopResponse* msg) { - return *msg->_impl_.camera_result_; -} ZoomStopResponse::ZoomStopResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomStopResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomStopResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::ZoomStopResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ZoomStopResponse::ZoomStopResponse( ::google::protobuf::Arena* arena, const ZoomStopResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ZoomStopResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomStopResponse) } @@ -10029,38 +12974,51 @@ inline void ZoomStopResponse::SharedCtor(::_pb::Arena* arena) { } ZoomStopResponse::~ZoomStopResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomStopResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ZoomStopResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); + SharedDtor(*this); +} +inline void ZoomStopResponse::SharedDtor(MessageLite& self) { + ZoomStopResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* ZoomStopResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ZoomStopResponse(arena); +} +constexpr auto ZoomStopResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ZoomStopResponse), + alignof(ZoomStopResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomStopResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomStopResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomStopResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomStopResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ZoomStopResponse::ByteSizeLong, + &ZoomStopResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomStopResponse, _impl_._cached_size_), + false, + }, + &ZoomStopResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomStopResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -PROTOBUF_NOINLINE void ZoomStopResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomStopResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ZoomStopResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomStopResponse::_table_ = { { @@ -10073,8 +13031,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomStopResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ZoomStopResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomStopResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -10091,68 +13053,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomStopResponse::_table_ = { }}, }; -::uint8_t* ZoomStopResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomStopResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomStopResponse) - return target; -} - -::size_t ZoomStopResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomStopResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ZoomStopResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomStopResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ZoomStopResponse::_class_data_ = { - ZoomStopResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ZoomStopResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ZoomStopResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ZoomStopResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ZoomStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ZoomStopResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ZoomStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomStopResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomStopResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ZoomStopResponse::ByteSizeLong(const MessageLite& base) { + const ZoomStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ZoomStopResponse::ByteSizeLong() const { + const ZoomStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomStopResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ZoomStopResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomStopResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -10163,13 +13157,7 @@ void ZoomStopResponse::CopyFrom(const ZoomStopResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ZoomStopResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ZoomStopResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ZoomStopResponse::InternalSwap(ZoomStopResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -10178,9 +13166,7 @@ void ZoomStopResponse::InternalSwap(ZoomStopResponse* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata ZoomStopResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[49]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -10189,7 +13175,11 @@ class ZoomRangeRequest::_Internal { }; ZoomRangeRequest::ZoomRangeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomRangeRequest) } @@ -10209,32 +13199,50 @@ inline void ZoomRangeRequest::SharedCtor(::_pb::Arena* arena) { } ZoomRangeRequest::~ZoomRangeRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomRangeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ZoomRangeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ZoomRangeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomRangeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.range_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ZoomRangeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ZoomRangeRequest::SharedDtor(MessageLite& self) { + ZoomRangeRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* ZoomRangeRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ZoomRangeRequest(arena); +} +constexpr auto ZoomRangeRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ZoomRangeRequest), + alignof(ZoomRangeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomRangeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomRangeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomRangeRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomRangeRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ZoomRangeRequest::ByteSizeLong, + &ZoomRangeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomRangeRequest, _impl_._cached_size_), + false, + }, + &ZoomRangeRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomRangeRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ZoomRangeRequest::_table_ = { { @@ -10247,8 +13255,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ZoomRangeRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_ZoomRangeRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomRangeRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float range = 1; {::_pbi::TcParser::FastF32S1, @@ -10265,64 +13277,73 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ZoomRangeRequest::_table_ = { }}, }; -::uint8_t* ZoomRangeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomRangeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float range = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = this->_internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_range(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomRangeRequest) - return target; -} - -::size_t ZoomRangeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomRangeRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ZoomRangeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomRangeRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float range = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = this->_internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ZoomRangeRequest::_class_data_ = { - ZoomRangeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ZoomRangeRequest::GetClassData() const { - return &_class_data_; + _impl_.range_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ZoomRangeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ZoomRangeRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ZoomRangeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ZoomRangeRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ZoomRangeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomRangeRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float range = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_range()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_range(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomRangeRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ZoomRangeRequest::ByteSizeLong(const MessageLite& base) { + const ZoomRangeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ZoomRangeRequest::ByteSizeLong() const { + const ZoomRangeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomRangeRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // float range = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_range()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ZoomRangeRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomRangeRequest) @@ -10330,13 +13351,8 @@ void ZoomRangeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::go ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = from._internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - _this->_internal_set_range(from._internal_range()); + if (::absl::bit_cast<::uint32_t>(from._internal_range()) != 0) { + _this->_impl_.range_ = from._impl_.range_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -10348,13 +13364,7 @@ void ZoomRangeRequest::CopyFrom(const ZoomRangeRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ZoomRangeRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ZoomRangeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ZoomRangeRequest::InternalSwap(ZoomRangeRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -10362,50 +13372,50 @@ void ZoomRangeRequest::InternalSwap(ZoomRangeRequest* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata ZoomRangeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[50]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ZoomRangeResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ZoomRangeResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& ZoomRangeResponse::_Internal::camera_result(const ZoomRangeResponse* msg) { - return *msg->_impl_.camera_result_; -} ZoomRangeResponse::ZoomRangeResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ZoomRangeResponse) } inline PROTOBUF_NDEBUG_INLINE ZoomRangeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::ZoomRangeResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ZoomRangeResponse::ZoomRangeResponse( ::google::protobuf::Arena* arena, const ZoomRangeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE ZoomRangeResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ZoomRangeResponse) } @@ -10420,38 +13430,51 @@ inline void ZoomRangeResponse::SharedCtor(::_pb::Arena* arena) { } ZoomRangeResponse::~ZoomRangeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.ZoomRangeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ZoomRangeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void ZoomRangeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomRangeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ZoomRangeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void ZoomRangeResponse::SharedDtor(MessageLite& self) { + ZoomRangeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* ZoomRangeResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ZoomRangeResponse(arena); +} +constexpr auto ZoomRangeResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ZoomRangeResponse), + alignof(ZoomRangeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ZoomRangeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ZoomRangeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ZoomRangeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ZoomRangeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ZoomRangeResponse::ByteSizeLong, + &ZoomRangeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ZoomRangeResponse, _impl_._cached_size_), + false, + }, + &ZoomRangeResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ZoomRangeResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomRangeResponse::_table_ = { { @@ -10464,8 +13487,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomRangeResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_ZoomRangeResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::ZoomRangeResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -10482,68 +13509,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ZoomRangeResponse::_table_ = { }}, }; -::uint8_t* ZoomRangeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomRangeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomRangeResponse) - return target; -} - -::size_t ZoomRangeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomRangeResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void ZoomRangeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ZoomRangeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData ZoomRangeResponse::_class_data_ = { - ZoomRangeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* ZoomRangeResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void ZoomRangeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ZoomRangeResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ZoomRangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ZoomRangeResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ZoomRangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ZoomRangeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.ZoomRangeResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ZoomRangeResponse::ByteSizeLong(const MessageLite& base) { + const ZoomRangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ZoomRangeResponse::ByteSizeLong() const { + const ZoomRangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ZoomRangeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ZoomRangeResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ZoomRangeResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -10554,13 +13613,7 @@ void ZoomRangeResponse::CopyFrom(const ZoomRangeResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool ZoomRangeResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* ZoomRangeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void ZoomRangeResponse::InternalSwap(ZoomRangeResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -10569,9 +13622,7 @@ void ZoomRangeResponse::InternalSwap(ZoomRangeResponse* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata ZoomRangeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[51]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -10580,7 +13631,11 @@ class TrackPointRequest::_Internal { }; TrackPointRequest::TrackPointRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackPointRequest) } @@ -10605,34 +13660,50 @@ inline void TrackPointRequest::SharedCtor(::_pb::Arena* arena) { } TrackPointRequest::~TrackPointRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackPointRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TrackPointRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TrackPointRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackPointRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.point_x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.radius_) - - reinterpret_cast(&_impl_.point_x_)) + sizeof(_impl_.radius_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrackPointRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void TrackPointRequest::SharedDtor(MessageLite& self) { + TrackPointRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* TrackPointRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TrackPointRequest(arena); +} +constexpr auto TrackPointRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TrackPointRequest), + alignof(TrackPointRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackPointRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackPointRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackPointRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackPointRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TrackPointRequest::ByteSizeLong, + &TrackPointRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackPointRequest, _impl_._cached_size_), + false, + }, + &TrackPointRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackPointRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> TrackPointRequest::_table_ = { { @@ -10645,8 +13716,12 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> TrackPointRequest::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_TrackPointRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TrackPointRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // float point_x = 1; @@ -10676,108 +13751,98 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> TrackPointRequest::_table_ = { }}, }; -::uint8_t* TrackPointRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackPointRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float point_x = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_x = this->_internal_point_x(); - ::uint32_t raw_point_x; - memcpy(&raw_point_x, &tmp_point_x, sizeof(tmp_point_x)); - if (raw_point_x != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_point_x(), target); - } - - // float point_y = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_y = this->_internal_point_y(); - ::uint32_t raw_point_y; - memcpy(&raw_point_y, &tmp_point_y, sizeof(tmp_point_y)); - if (raw_point_y != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_point_y(), target); - } - - // float radius = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius = this->_internal_radius(); - ::uint32_t raw_radius; - memcpy(&raw_radius, &tmp_radius, sizeof(tmp_radius)); - if (raw_radius != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_radius(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackPointRequest) - return target; -} - -::size_t TrackPointRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackPointRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TrackPointRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackPointRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float point_x = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_x = this->_internal_point_x(); - ::uint32_t raw_point_x; - memcpy(&raw_point_x, &tmp_point_x, sizeof(tmp_point_x)); - if (raw_point_x != 0) { - total_size += 5; - } - - // float point_y = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_y = this->_internal_point_y(); - ::uint32_t raw_point_y; - memcpy(&raw_point_y, &tmp_point_y, sizeof(tmp_point_y)); - if (raw_point_y != 0) { - total_size += 5; - } - - // float radius = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius = this->_internal_radius(); - ::uint32_t raw_radius; - memcpy(&raw_radius, &tmp_radius, sizeof(tmp_radius)); - if (raw_radius != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TrackPointRequest::_class_data_ = { - TrackPointRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TrackPointRequest::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.point_x_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.radius_) - + reinterpret_cast(&_impl_.point_x_)) + sizeof(_impl_.radius_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TrackPointRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TrackPointRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TrackPointRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TrackPointRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TrackPointRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackPointRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float point_x = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_point_x()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_point_x(), target); + } + + // float point_y = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_point_y()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_point_y(), target); + } + + // float radius = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_radius()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_radius(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackPointRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TrackPointRequest::ByteSizeLong(const MessageLite& base) { + const TrackPointRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TrackPointRequest::ByteSizeLong() const { + const TrackPointRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackPointRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // float point_x = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_point_x()) != 0) { + total_size += 5; + } + // float point_y = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_point_y()) != 0) { + total_size += 5; + } + // float radius = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_radius()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TrackPointRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackPointRequest) @@ -10785,29 +13850,14 @@ void TrackPointRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::g ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_x = from._internal_point_x(); - ::uint32_t raw_point_x; - memcpy(&raw_point_x, &tmp_point_x, sizeof(tmp_point_x)); - if (raw_point_x != 0) { - _this->_internal_set_point_x(from._internal_point_x()); + if (::absl::bit_cast<::uint32_t>(from._internal_point_x()) != 0) { + _this->_impl_.point_x_ = from._impl_.point_x_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_point_y = from._internal_point_y(); - ::uint32_t raw_point_y; - memcpy(&raw_point_y, &tmp_point_y, sizeof(tmp_point_y)); - if (raw_point_y != 0) { - _this->_internal_set_point_y(from._internal_point_y()); + if (::absl::bit_cast<::uint32_t>(from._internal_point_y()) != 0) { + _this->_impl_.point_y_ = from._impl_.point_y_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_radius = from._internal_radius(); - ::uint32_t raw_radius; - memcpy(&raw_radius, &tmp_radius, sizeof(tmp_radius)); - if (raw_radius != 0) { - _this->_internal_set_radius(from._internal_radius()); + if (::absl::bit_cast<::uint32_t>(from._internal_radius()) != 0) { + _this->_impl_.radius_ = from._impl_.radius_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -10819,13 +13869,7 @@ void TrackPointRequest::CopyFrom(const TrackPointRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TrackPointRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* TrackPointRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TrackPointRequest::InternalSwap(TrackPointRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -10838,50 +13882,50 @@ void TrackPointRequest::InternalSwap(TrackPointRequest* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata TrackPointRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[52]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TrackPointResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const TrackPointResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& TrackPointResponse::_Internal::camera_result(const TrackPointResponse* msg) { - return *msg->_impl_.camera_result_; -} TrackPointResponse::TrackPointResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackPointResponse) } inline PROTOBUF_NDEBUG_INLINE TrackPointResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::TrackPointResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TrackPointResponse::TrackPointResponse( ::google::protobuf::Arena* arena, const TrackPointResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TrackPointResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackPointResponse) } @@ -10896,38 +13940,51 @@ inline void TrackPointResponse::SharedCtor(::_pb::Arena* arena) { } TrackPointResponse::~TrackPointResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackPointResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TrackPointResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TrackPointResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackPointResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrackPointResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void TrackPointResponse::SharedDtor(MessageLite& self) { + TrackPointResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* TrackPointResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TrackPointResponse(arena); +} +constexpr auto TrackPointResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TrackPointResponse), + alignof(TrackPointResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackPointResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackPointResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackPointResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackPointResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TrackPointResponse::ByteSizeLong, + &TrackPointResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackPointResponse, _impl_._cached_size_), + false, + }, + &TrackPointResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackPointResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackPointResponse::_table_ = { { @@ -10940,8 +13997,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackPointResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TrackPointResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TrackPointResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -10958,68 +14019,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackPointResponse::_table_ = { }}, }; -::uint8_t* TrackPointResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackPointResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackPointResponse) - return target; -} - -::size_t TrackPointResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackPointResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TrackPointResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackPointResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TrackPointResponse::_class_data_ = { - TrackPointResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TrackPointResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TrackPointResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TrackPointResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TrackPointResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TrackPointResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TrackPointResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackPointResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackPointResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TrackPointResponse::ByteSizeLong(const MessageLite& base) { + const TrackPointResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TrackPointResponse::ByteSizeLong() const { + const TrackPointResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackPointResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TrackPointResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackPointResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -11030,13 +14123,7 @@ void TrackPointResponse::CopyFrom(const TrackPointResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TrackPointResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* TrackPointResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TrackPointResponse::InternalSwap(TrackPointResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -11045,9 +14132,7 @@ void TrackPointResponse::InternalSwap(TrackPointResponse* PROTOBUF_RESTRICT othe } ::google::protobuf::Metadata TrackPointResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[53]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -11056,7 +14141,11 @@ class TrackRectangleRequest::_Internal { }; TrackRectangleRequest::TrackRectangleRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackRectangleRequest) } @@ -11081,34 +14170,50 @@ inline void TrackRectangleRequest::SharedCtor(::_pb::Arena* arena) { } TrackRectangleRequest::~TrackRectangleRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackRectangleRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TrackRectangleRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TrackRectangleRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackRectangleRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.top_left_x_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.bottom_right_y_) - - reinterpret_cast(&_impl_.top_left_x_)) + sizeof(_impl_.bottom_right_y_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrackRectangleRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void TrackRectangleRequest::SharedDtor(MessageLite& self) { + TrackRectangleRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* TrackRectangleRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TrackRectangleRequest(arena); +} +constexpr auto TrackRectangleRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TrackRectangleRequest), + alignof(TrackRectangleRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackRectangleRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackRectangleRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackRectangleRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackRectangleRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TrackRectangleRequest::ByteSizeLong, + &TrackRectangleRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackRectangleRequest, _impl_._cached_size_), + false, + }, + &TrackRectangleRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackRectangleRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> TrackRectangleRequest::_table_ = { { @@ -11121,8 +14226,12 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> TrackRectangleRequest::_table_ = { 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_TrackRectangleRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TrackRectangleRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float bottom_right_y = 4; {::_pbi::TcParser::FastF32S1, @@ -11157,130 +14266,109 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> TrackRectangleRequest::_table_ = { }}, }; -::uint8_t* TrackRectangleRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackRectangleRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float top_left_x = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_top_left_x = this->_internal_top_left_x(); - ::uint32_t raw_top_left_x; - memcpy(&raw_top_left_x, &tmp_top_left_x, sizeof(tmp_top_left_x)); - if (raw_top_left_x != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_top_left_x(), target); - } - - // float top_left_y = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_top_left_y = this->_internal_top_left_y(); - ::uint32_t raw_top_left_y; - memcpy(&raw_top_left_y, &tmp_top_left_y, sizeof(tmp_top_left_y)); - if (raw_top_left_y != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_top_left_y(), target); - } - - // float bottom_right_x = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_x = this->_internal_bottom_right_x(); - ::uint32_t raw_bottom_right_x; - memcpy(&raw_bottom_right_x, &tmp_bottom_right_x, sizeof(tmp_bottom_right_x)); - if (raw_bottom_right_x != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_bottom_right_x(), target); - } - - // float bottom_right_y = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_y = this->_internal_bottom_right_y(); - ::uint32_t raw_bottom_right_y; - memcpy(&raw_bottom_right_y, &tmp_bottom_right_y, sizeof(tmp_bottom_right_y)); - if (raw_bottom_right_y != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_bottom_right_y(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackRectangleRequest) - return target; -} - -::size_t TrackRectangleRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackRectangleRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TrackRectangleRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackRectangleRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float top_left_x = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_top_left_x = this->_internal_top_left_x(); - ::uint32_t raw_top_left_x; - memcpy(&raw_top_left_x, &tmp_top_left_x, sizeof(tmp_top_left_x)); - if (raw_top_left_x != 0) { - total_size += 5; - } - - // float top_left_y = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_top_left_y = this->_internal_top_left_y(); - ::uint32_t raw_top_left_y; - memcpy(&raw_top_left_y, &tmp_top_left_y, sizeof(tmp_top_left_y)); - if (raw_top_left_y != 0) { - total_size += 5; - } - - // float bottom_right_x = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_x = this->_internal_bottom_right_x(); - ::uint32_t raw_bottom_right_x; - memcpy(&raw_bottom_right_x, &tmp_bottom_right_x, sizeof(tmp_bottom_right_x)); - if (raw_bottom_right_x != 0) { - total_size += 5; - } - - // float bottom_right_y = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_y = this->_internal_bottom_right_y(); - ::uint32_t raw_bottom_right_y; - memcpy(&raw_bottom_right_y, &tmp_bottom_right_y, sizeof(tmp_bottom_right_y)); - if (raw_bottom_right_y != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TrackRectangleRequest::_class_data_ = { - TrackRectangleRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TrackRectangleRequest::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.top_left_x_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.bottom_right_y_) - + reinterpret_cast(&_impl_.top_left_x_)) + sizeof(_impl_.bottom_right_y_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TrackRectangleRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TrackRectangleRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TrackRectangleRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TrackRectangleRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TrackRectangleRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackRectangleRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float top_left_x = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_top_left_x()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_top_left_x(), target); + } + + // float top_left_y = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_top_left_y()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_top_left_y(), target); + } + + // float bottom_right_x = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_bottom_right_x()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_bottom_right_x(), target); + } + + // float bottom_right_y = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_bottom_right_y()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_bottom_right_y(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackRectangleRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TrackRectangleRequest::ByteSizeLong(const MessageLite& base) { + const TrackRectangleRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TrackRectangleRequest::ByteSizeLong() const { + const TrackRectangleRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackRectangleRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // float top_left_x = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_top_left_x()) != 0) { + total_size += 5; + } + // float top_left_y = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_top_left_y()) != 0) { + total_size += 5; + } + // float bottom_right_x = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_bottom_right_x()) != 0) { + total_size += 5; + } + // float bottom_right_y = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_bottom_right_y()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TrackRectangleRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackRectangleRequest) @@ -11288,37 +14376,17 @@ void TrackRectangleRequest::MergeImpl(::google::protobuf::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."); - float tmp_top_left_x = from._internal_top_left_x(); - ::uint32_t raw_top_left_x; - memcpy(&raw_top_left_x, &tmp_top_left_x, sizeof(tmp_top_left_x)); - if (raw_top_left_x != 0) { - _this->_internal_set_top_left_x(from._internal_top_left_x()); + if (::absl::bit_cast<::uint32_t>(from._internal_top_left_x()) != 0) { + _this->_impl_.top_left_x_ = from._impl_.top_left_x_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_top_left_y = from._internal_top_left_y(); - ::uint32_t raw_top_left_y; - memcpy(&raw_top_left_y, &tmp_top_left_y, sizeof(tmp_top_left_y)); - if (raw_top_left_y != 0) { - _this->_internal_set_top_left_y(from._internal_top_left_y()); + if (::absl::bit_cast<::uint32_t>(from._internal_top_left_y()) != 0) { + _this->_impl_.top_left_y_ = from._impl_.top_left_y_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_x = from._internal_bottom_right_x(); - ::uint32_t raw_bottom_right_x; - memcpy(&raw_bottom_right_x, &tmp_bottom_right_x, sizeof(tmp_bottom_right_x)); - if (raw_bottom_right_x != 0) { - _this->_internal_set_bottom_right_x(from._internal_bottom_right_x()); + if (::absl::bit_cast<::uint32_t>(from._internal_bottom_right_x()) != 0) { + _this->_impl_.bottom_right_x_ = from._impl_.bottom_right_x_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_bottom_right_y = from._internal_bottom_right_y(); - ::uint32_t raw_bottom_right_y; - memcpy(&raw_bottom_right_y, &tmp_bottom_right_y, sizeof(tmp_bottom_right_y)); - if (raw_bottom_right_y != 0) { - _this->_internal_set_bottom_right_y(from._internal_bottom_right_y()); + if (::absl::bit_cast<::uint32_t>(from._internal_bottom_right_y()) != 0) { + _this->_impl_.bottom_right_y_ = from._impl_.bottom_right_y_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -11330,13 +14398,7 @@ void TrackRectangleRequest::CopyFrom(const TrackRectangleRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TrackRectangleRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* TrackRectangleRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TrackRectangleRequest::InternalSwap(TrackRectangleRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -11349,50 +14411,50 @@ void TrackRectangleRequest::InternalSwap(TrackRectangleRequest* PROTOBUF_RESTRIC } ::google::protobuf::Metadata TrackRectangleRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[54]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TrackRectangleResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const TrackRectangleResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& TrackRectangleResponse::_Internal::camera_result(const TrackRectangleResponse* msg) { - return *msg->_impl_.camera_result_; -} TrackRectangleResponse::TrackRectangleResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackRectangleResponse) } inline PROTOBUF_NDEBUG_INLINE TrackRectangleResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::TrackRectangleResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TrackRectangleResponse::TrackRectangleResponse( ::google::protobuf::Arena* arena, const TrackRectangleResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TrackRectangleResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackRectangleResponse) } @@ -11407,38 +14469,51 @@ inline void TrackRectangleResponse::SharedCtor(::_pb::Arena* arena) { } TrackRectangleResponse::~TrackRectangleResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackRectangleResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TrackRectangleResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TrackRectangleResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackRectangleResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrackRectangleResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void TrackRectangleResponse::SharedDtor(MessageLite& self) { + TrackRectangleResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* TrackRectangleResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TrackRectangleResponse(arena); +} +constexpr auto TrackRectangleResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TrackRectangleResponse), + alignof(TrackRectangleResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackRectangleResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackRectangleResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackRectangleResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackRectangleResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TrackRectangleResponse::ByteSizeLong, + &TrackRectangleResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackRectangleResponse, _impl_._cached_size_), + false, + }, + &TrackRectangleResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackRectangleResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackRectangleResponse::_table_ = { { @@ -11451,8 +14526,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackRectangleResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TrackRectangleResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TrackRectangleResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -11469,68 +14548,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackRectangleResponse::_table_ = { }}, }; -::uint8_t* TrackRectangleResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackRectangleResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackRectangleResponse) - return target; -} - -::size_t TrackRectangleResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackRectangleResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TrackRectangleResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackRectangleResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TrackRectangleResponse::_class_data_ = { - TrackRectangleResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TrackRectangleResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TrackRectangleResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TrackRectangleResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TrackRectangleResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TrackRectangleResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TrackRectangleResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackRectangleResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackRectangleResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TrackRectangleResponse::ByteSizeLong(const MessageLite& base) { + const TrackRectangleResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TrackRectangleResponse::ByteSizeLong() const { + const TrackRectangleResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackRectangleResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TrackRectangleResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackRectangleResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -11541,13 +14652,7 @@ void TrackRectangleResponse::CopyFrom(const TrackRectangleResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TrackRectangleResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* TrackRectangleResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TrackRectangleResponse::InternalSwap(TrackRectangleResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -11556,9 +14661,7 @@ void TrackRectangleResponse::InternalSwap(TrackRectangleResponse* PROTOBUF_RESTR } ::google::protobuf::Metadata TrackRectangleResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[55]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -11567,13 +14670,21 @@ class TrackStopRequest::_Internal { }; TrackStopRequest::TrackStopRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackStopRequest) } TrackStopRequest::TrackStopRequest( ::google::protobuf::Arena* arena, const TrackStopRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TrackStopRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -11582,6 +14693,68 @@ TrackStopRequest::TrackStopRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackStopRequest) } +inline void* TrackStopRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TrackStopRequest(arena); +} +constexpr auto TrackStopRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TrackStopRequest), + alignof(TrackStopRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackStopRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackStopRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackStopRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackStopRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &TrackStopRequest::ByteSizeLong, + &TrackStopRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackStopRequest, _impl_._cached_size_), + false, + }, + &TrackStopRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackStopRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> TrackStopRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TrackStopRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -11591,50 +14764,50 @@ TrackStopRequest::TrackStopRequest( ::google::protobuf::Metadata TrackStopRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[56]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class TrackStopResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const TrackStopResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& TrackStopResponse::_Internal::camera_result(const TrackStopResponse* msg) { - return *msg->_impl_.camera_result_; -} TrackStopResponse::TrackStopResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TrackStopResponse) } inline PROTOBUF_NDEBUG_INLINE TrackStopResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::TrackStopResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} TrackStopResponse::TrackStopResponse( ::google::protobuf::Arena* arena, const TrackStopResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE TrackStopResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TrackStopResponse) } @@ -11649,38 +14822,51 @@ inline void TrackStopResponse::SharedCtor(::_pb::Arena* arena) { } TrackStopResponse::~TrackStopResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.TrackStopResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TrackStopResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void TrackStopResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackStopResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TrackStopResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void TrackStopResponse::SharedDtor(MessageLite& self) { + TrackStopResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* TrackStopResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) TrackStopResponse(arena); +} +constexpr auto TrackStopResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(TrackStopResponse), + alignof(TrackStopResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull TrackStopResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_TrackStopResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &TrackStopResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &TrackStopResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &TrackStopResponse::ByteSizeLong, + &TrackStopResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(TrackStopResponse, _impl_._cached_size_), + false, + }, + &TrackStopResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* TrackStopResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackStopResponse::_table_ = { { @@ -11693,8 +14879,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackStopResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_TrackStopResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::TrackStopResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -11711,68 +14901,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TrackStopResponse::_table_ = { }}, }; -::uint8_t* TrackStopResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackStopResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackStopResponse) - return target; -} - -::size_t TrackStopResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackStopResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void TrackStopResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TrackStopResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData TrackStopResponse::_class_data_ = { - TrackStopResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* TrackStopResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void TrackStopResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* TrackStopResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const TrackStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* TrackStopResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const TrackStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TrackStopResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.TrackStopResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t TrackStopResponse::ByteSizeLong(const MessageLite& base) { + const TrackStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t TrackStopResponse::ByteSizeLong() const { + const TrackStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TrackStopResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void TrackStopResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TrackStopResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -11783,13 +15005,7 @@ void TrackStopResponse::CopyFrom(const TrackStopResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool TrackStopResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* TrackStopResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void TrackStopResponse::InternalSwap(TrackStopResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -11798,9 +15014,7 @@ void TrackStopResponse::InternalSwap(TrackStopResponse* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata TrackStopResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[57]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -11809,13 +15023,21 @@ class FocusInStartRequest::_Internal { }; FocusInStartRequest::FocusInStartRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusInStartRequest) } FocusInStartRequest::FocusInStartRequest( ::google::protobuf::Arena* arena, const FocusInStartRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FocusInStartRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -11824,6 +15046,68 @@ FocusInStartRequest::FocusInStartRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusInStartRequest) } +inline void* FocusInStartRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FocusInStartRequest(arena); +} +constexpr auto FocusInStartRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FocusInStartRequest), + alignof(FocusInStartRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusInStartRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusInStartRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusInStartRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusInStartRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &FocusInStartRequest::ByteSizeLong, + &FocusInStartRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusInStartRequest, _impl_._cached_size_), + false, + }, + &FocusInStartRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusInStartRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> FocusInStartRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusInStartRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -11833,50 +15117,50 @@ FocusInStartRequest::FocusInStartRequest( ::google::protobuf::Metadata FocusInStartRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[58]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusInStartResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const FocusInStartResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& FocusInStartResponse::_Internal::camera_result(const FocusInStartResponse* msg) { - return *msg->_impl_.camera_result_; -} FocusInStartResponse::FocusInStartResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusInStartResponse) } inline PROTOBUF_NDEBUG_INLINE FocusInStartResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::FocusInStartResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} FocusInStartResponse::FocusInStartResponse( ::google::protobuf::Arena* arena, const FocusInStartResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FocusInStartResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusInStartResponse) } @@ -11891,38 +15175,51 @@ inline void FocusInStartResponse::SharedCtor(::_pb::Arena* arena) { } FocusInStartResponse::~FocusInStartResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusInStartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FocusInStartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FocusInStartResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusInStartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FocusInStartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void FocusInStartResponse::SharedDtor(MessageLite& self) { + FocusInStartResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* FocusInStartResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FocusInStartResponse(arena); +} +constexpr auto FocusInStartResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FocusInStartResponse), + alignof(FocusInStartResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusInStartResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusInStartResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusInStartResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusInStartResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FocusInStartResponse::ByteSizeLong, + &FocusInStartResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusInStartResponse, _impl_._cached_size_), + false, + }, + &FocusInStartResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusInStartResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusInStartResponse::_table_ = { { @@ -11935,8 +15232,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusInStartResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_FocusInStartResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusInStartResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -11953,68 +15254,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusInStartResponse::_table_ = { }}, }; -::uint8_t* FocusInStartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusInStartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusInStartResponse) - return target; -} - -::size_t FocusInStartResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusInStartResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void FocusInStartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusInStartResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FocusInStartResponse::_class_data_ = { - FocusInStartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FocusInStartResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void FocusInStartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* FocusInStartResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const FocusInStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* FocusInStartResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const FocusInStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusInStartResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusInStartResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t FocusInStartResponse::ByteSizeLong(const MessageLite& base) { + const FocusInStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t FocusInStartResponse::ByteSizeLong() const { + const FocusInStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusInStartResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void FocusInStartResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusInStartResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -12025,13 +15358,7 @@ void FocusInStartResponse::CopyFrom(const FocusInStartResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FocusInStartResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* FocusInStartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void FocusInStartResponse::InternalSwap(FocusInStartResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -12040,9 +15367,7 @@ void FocusInStartResponse::InternalSwap(FocusInStartResponse* PROTOBUF_RESTRICT } ::google::protobuf::Metadata FocusInStartResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[59]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -12051,13 +15376,21 @@ class FocusOutStartRequest::_Internal { }; FocusOutStartRequest::FocusOutStartRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusOutStartRequest) } FocusOutStartRequest::FocusOutStartRequest( ::google::protobuf::Arena* arena, const FocusOutStartRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FocusOutStartRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -12066,6 +15399,68 @@ FocusOutStartRequest::FocusOutStartRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusOutStartRequest) } +inline void* FocusOutStartRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FocusOutStartRequest(arena); +} +constexpr auto FocusOutStartRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FocusOutStartRequest), + alignof(FocusOutStartRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusOutStartRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusOutStartRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusOutStartRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusOutStartRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &FocusOutStartRequest::ByteSizeLong, + &FocusOutStartRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusOutStartRequest, _impl_._cached_size_), + false, + }, + &FocusOutStartRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusOutStartRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> FocusOutStartRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusOutStartRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -12075,50 +15470,50 @@ FocusOutStartRequest::FocusOutStartRequest( ::google::protobuf::Metadata FocusOutStartRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[60]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusOutStartResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const FocusOutStartResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& FocusOutStartResponse::_Internal::camera_result(const FocusOutStartResponse* msg) { - return *msg->_impl_.camera_result_; -} FocusOutStartResponse::FocusOutStartResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusOutStartResponse) } inline PROTOBUF_NDEBUG_INLINE FocusOutStartResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::FocusOutStartResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} FocusOutStartResponse::FocusOutStartResponse( ::google::protobuf::Arena* arena, const FocusOutStartResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FocusOutStartResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusOutStartResponse) } @@ -12133,38 +15528,51 @@ inline void FocusOutStartResponse::SharedCtor(::_pb::Arena* arena) { } FocusOutStartResponse::~FocusOutStartResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusOutStartResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FocusOutStartResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FocusOutStartResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusOutStartResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FocusOutStartResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void FocusOutStartResponse::SharedDtor(MessageLite& self) { + FocusOutStartResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* FocusOutStartResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FocusOutStartResponse(arena); +} +constexpr auto FocusOutStartResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FocusOutStartResponse), + alignof(FocusOutStartResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusOutStartResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusOutStartResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusOutStartResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusOutStartResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FocusOutStartResponse::ByteSizeLong, + &FocusOutStartResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusOutStartResponse, _impl_._cached_size_), + false, + }, + &FocusOutStartResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusOutStartResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusOutStartResponse::_table_ = { { @@ -12177,8 +15585,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusOutStartResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_FocusOutStartResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusOutStartResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -12195,68 +15607,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusOutStartResponse::_table_ = { }}, }; -::uint8_t* FocusOutStartResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusOutStartResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusOutStartResponse) - return target; -} - -::size_t FocusOutStartResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusOutStartResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void FocusOutStartResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusOutStartResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FocusOutStartResponse::_class_data_ = { - FocusOutStartResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FocusOutStartResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void FocusOutStartResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* FocusOutStartResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const FocusOutStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* FocusOutStartResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const FocusOutStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusOutStartResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusOutStartResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t FocusOutStartResponse::ByteSizeLong(const MessageLite& base) { + const FocusOutStartResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t FocusOutStartResponse::ByteSizeLong() const { + const FocusOutStartResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusOutStartResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void FocusOutStartResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusOutStartResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -12267,13 +15711,7 @@ void FocusOutStartResponse::CopyFrom(const FocusOutStartResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FocusOutStartResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* FocusOutStartResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void FocusOutStartResponse::InternalSwap(FocusOutStartResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -12282,9 +15720,7 @@ void FocusOutStartResponse::InternalSwap(FocusOutStartResponse* PROTOBUF_RESTRIC } ::google::protobuf::Metadata FocusOutStartResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[61]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -12293,13 +15729,21 @@ class FocusStopRequest::_Internal { }; FocusStopRequest::FocusStopRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusStopRequest) } FocusStopRequest::FocusStopRequest( ::google::protobuf::Arena* arena, const FocusStopRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FocusStopRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -12308,6 +15752,68 @@ FocusStopRequest::FocusStopRequest( // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusStopRequest) } +inline void* FocusStopRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FocusStopRequest(arena); +} +constexpr auto FocusStopRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FocusStopRequest), + alignof(FocusStopRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusStopRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusStopRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusStopRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusStopRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &FocusStopRequest::ByteSizeLong, + &FocusStopRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusStopRequest, _impl_._cached_size_), + false, + }, + &FocusStopRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusStopRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> FocusStopRequest::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusStopRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; @@ -12317,50 +15823,50 @@ FocusStopRequest::FocusStopRequest( ::google::protobuf::Metadata FocusStopRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[62]); + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusStopResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const FocusStopResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& FocusStopResponse::_Internal::camera_result(const FocusStopResponse* msg) { - return *msg->_impl_.camera_result_; -} FocusStopResponse::FocusStopResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusStopResponse) } inline PROTOBUF_NDEBUG_INLINE FocusStopResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::FocusStopResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} FocusStopResponse::FocusStopResponse( ::google::protobuf::Arena* arena, const FocusStopResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FocusStopResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusStopResponse) } @@ -12375,38 +15881,51 @@ inline void FocusStopResponse::SharedCtor(::_pb::Arena* arena) { } FocusStopResponse::~FocusStopResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusStopResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FocusStopResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void FocusStopResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusStopResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FocusStopResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void FocusStopResponse::SharedDtor(MessageLite& self) { + FocusStopResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* FocusStopResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FocusStopResponse(arena); +} +constexpr auto FocusStopResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FocusStopResponse), + alignof(FocusStopResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusStopResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusStopResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusStopResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusStopResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FocusStopResponse::ByteSizeLong, + &FocusStopResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusStopResponse, _impl_._cached_size_), + false, + }, + &FocusStopResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusStopResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusStopResponse::_table_ = { { @@ -12419,8 +15938,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusStopResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_FocusStopResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusStopResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -12437,68 +15960,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusStopResponse::_table_ = { }}, }; -::uint8_t* FocusStopResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusStopResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusStopResponse) - return target; -} - -::size_t FocusStopResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusStopResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void FocusStopResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusStopResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FocusStopResponse::_class_data_ = { - FocusStopResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FocusStopResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void FocusStopResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* FocusStopResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const FocusStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* FocusStopResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const FocusStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusStopResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusStopResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t FocusStopResponse::ByteSizeLong(const MessageLite& base) { + const FocusStopResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t FocusStopResponse::ByteSizeLong() const { + const FocusStopResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusStopResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void FocusStopResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusStopResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -12509,13 +16064,7 @@ void FocusStopResponse::CopyFrom(const FocusStopResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FocusStopResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* FocusStopResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void FocusStopResponse::InternalSwap(FocusStopResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -12524,9 +16073,7 @@ void FocusStopResponse::InternalSwap(FocusStopResponse* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata FocusStopResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[63]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -12535,7 +16082,11 @@ class FocusRangeRequest::_Internal { }; FocusRangeRequest::FocusRangeRequest(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusRangeRequest) } @@ -12555,32 +16106,50 @@ inline void FocusRangeRequest::SharedCtor(::_pb::Arena* arena) { } FocusRangeRequest::~FocusRangeRequest() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusRangeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FocusRangeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + SharedDtor(*this); +} +inline void FocusRangeRequest::SharedDtor(MessageLite& self) { + FocusRangeRequest& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* FocusRangeRequest::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FocusRangeRequest(arena); +} +constexpr auto FocusRangeRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FocusRangeRequest), + alignof(FocusRangeRequest)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusRangeRequest::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusRangeRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusRangeRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusRangeRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FocusRangeRequest::ByteSizeLong, + &FocusRangeRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusRangeRequest, _impl_._cached_size_), + false, + }, + &FocusRangeRequest::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusRangeRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -PROTOBUF_NOINLINE void FocusRangeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusRangeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.range_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FocusRangeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FocusRangeRequest::_table_ = { { @@ -12593,8 +16162,12 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FocusRangeRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_FocusRangeRequest_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusRangeRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float range = 1; {::_pbi::TcParser::FastF32S1, @@ -12611,64 +16184,73 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FocusRangeRequest::_table_ = { }}, }; -::uint8_t* FocusRangeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusRangeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float range = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = this->_internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_range(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusRangeRequest) - return target; -} - -::size_t FocusRangeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusRangeRequest) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void FocusRangeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusRangeRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float range = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = this->_internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FocusRangeRequest::_class_data_ = { - FocusRangeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FocusRangeRequest::GetClassData() const { - return &_class_data_; + _impl_.range_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void FocusRangeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* FocusRangeRequest::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const FocusRangeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* FocusRangeRequest::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const FocusRangeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusRangeRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float range = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_range()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_range(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusRangeRequest) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t FocusRangeRequest::ByteSizeLong(const MessageLite& base) { + const FocusRangeRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t FocusRangeRequest::ByteSizeLong() const { + const FocusRangeRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusRangeRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // float range = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_range()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void FocusRangeRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusRangeRequest) @@ -12676,13 +16258,8 @@ void FocusRangeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::g ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_range = from._internal_range(); - ::uint32_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - _this->_internal_set_range(from._internal_range()); + if (::absl::bit_cast<::uint32_t>(from._internal_range()) != 0) { + _this->_impl_.range_ = from._impl_.range_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -12694,13 +16271,7 @@ void FocusRangeRequest::CopyFrom(const FocusRangeRequest& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FocusRangeRequest::IsInitialized() const { - return true; -} -::_pbi::CachedSize* FocusRangeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} void FocusRangeRequest::InternalSwap(FocusRangeRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -12708,50 +16279,50 @@ void FocusRangeRequest::InternalSwap(FocusRangeRequest* PROTOBUF_RESTRICT other) } ::google::protobuf::Metadata FocusRangeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[64]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FocusRangeResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::CameraResult& camera_result(const FocusRangeResponse* msg); - static void set_has_camera_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::CameraResult& FocusRangeResponse::_Internal::camera_result(const FocusRangeResponse* msg) { - return *msg->_impl_.camera_result_; -} FocusRangeResponse::FocusRangeResponse(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FocusRangeResponse) } inline PROTOBUF_NDEBUG_INLINE FocusRangeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::FocusRangeResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} FocusRangeResponse::FocusRangeResponse( ::google::protobuf::Arena* arena, const FocusRangeResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE FocusRangeResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.camera_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_) - : nullptr; + _impl_.camera_result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>( + arena, *from._impl_.camera_result_) + : nullptr; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FocusRangeResponse) } @@ -12766,38 +16337,51 @@ inline void FocusRangeResponse::SharedCtor(::_pb::Arena* arena) { } FocusRangeResponse::~FocusRangeResponse() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.FocusRangeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FocusRangeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.camera_result_; - _impl_.~Impl_(); + SharedDtor(*this); +} +inline void FocusRangeResponse::SharedDtor(MessageLite& self) { + FocusRangeResponse& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.camera_result_; + this_._impl_.~Impl_(); +} + +inline void* FocusRangeResponse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FocusRangeResponse(arena); +} +constexpr auto FocusRangeResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FocusRangeResponse), + alignof(FocusRangeResponse)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FocusRangeResponse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FocusRangeResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FocusRangeResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FocusRangeResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FocusRangeResponse::ByteSizeLong, + &FocusRangeResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FocusRangeResponse, _impl_._cached_size_), + false, + }, + &FocusRangeResponse::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FocusRangeResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -PROTOBUF_NOINLINE void FocusRangeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusRangeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.camera_result_ != nullptr); - _impl_.camera_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FocusRangeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusRangeResponse::_table_ = { { @@ -12810,8 +16394,12 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusRangeResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_FocusRangeResponse_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::FocusRangeResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // .mavsdk.rpc.camera.CameraResult camera_result = 1; {::_pbi::TcParser::FastMtS1, @@ -12828,68 +16416,100 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FocusRangeResponse::_table_ = { }}, }; -::uint8_t* FocusRangeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusRangeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::camera_result(this), - _Internal::camera_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusRangeResponse) - return target; -} - -::size_t FocusRangeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusRangeResponse) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void FocusRangeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FocusRangeResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.camera_result_); + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData FocusRangeResponse::_class_data_ = { - FocusRangeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* FocusRangeResponse::GetClassData() const { - return &_class_data_; + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void FocusRangeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* FocusRangeResponse::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const FocusRangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* FocusRangeResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const FocusRangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FocusRangeResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.camera_result_, this_._impl_.camera_result_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.FocusRangeResponse) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t FocusRangeResponse::ByteSizeLong(const MessageLite& base) { + const FocusRangeResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t FocusRangeResponse::ByteSizeLong() const { + const FocusRangeResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FocusRangeResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.camera_result_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void FocusRangeResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FocusRangeResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( - from._internal_camera_result()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.camera_result_ != nullptr); + if (_this->_impl_.camera_result_ == nullptr) { + _this->_impl_.camera_result_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::CameraResult>(arena, *from._impl_.camera_result_); + } else { + _this->_impl_.camera_result_->MergeFrom(*from._impl_.camera_result_); + } } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -12900,13 +16520,7 @@ void FocusRangeResponse::CopyFrom(const FocusRangeResponse& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool FocusRangeResponse::IsInitialized() const { - return true; -} -::_pbi::CachedSize* FocusRangeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} void FocusRangeResponse::InternalSwap(FocusRangeResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -12915,9 +16529,7 @@ void FocusRangeResponse::InternalSwap(FocusRangeResponse* PROTOBUF_RESTRICT othe } ::google::protobuf::Metadata FocusRangeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[65]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -12926,25 +16538,33 @@ class CameraResult::_Internal { }; CameraResult::CameraResult(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CameraResult) } inline PROTOBUF_NDEBUG_INLINE CameraResult::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::CameraResult& from_msg) : result_str_(arena, from.result_str_), _cached_size_{0} {} CameraResult::CameraResult( ::google::protobuf::Arena* arena, const CameraResult& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CameraResult* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.result_ = from._impl_.result_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CameraResult) @@ -12961,34 +16581,51 @@ inline void CameraResult::SharedCtor(::_pb::Arena* arena) { } CameraResult::~CameraResult() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CameraResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CameraResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.result_str_.Destroy(); - _impl_.~Impl_(); + SharedDtor(*this); +} +inline void CameraResult::SharedDtor(MessageLite& self) { + CameraResult& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.result_str_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* CameraResult::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CameraResult(arena); +} +constexpr auto CameraResult::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CameraResult), + alignof(CameraResult)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CameraResult::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CameraResult_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CameraResult::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CameraResult::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CameraResult::ByteSizeLong, + &CameraResult::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CameraResult, _impl_._cached_size_), + false, + }, + &CameraResult::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CameraResult::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -PROTOBUF_NOINLINE void CameraResult::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CameraResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_str_.ClearToEmpty(); - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CameraResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 49, 2> CameraResult::_table_ = { { @@ -13001,8 +16638,12 @@ const ::_pbi::TcParseTable<1, 2, 0, 49, 2> CameraResult::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_CameraResult_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CameraResult>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // string result_str = 2; {::_pbi::TcParser::FastUS1, @@ -13028,69 +16669,89 @@ const ::_pbi::TcParseTable<1, 2, 0, 49, 2> CameraResult::_table_ = { }}, }; -::uint8_t* CameraResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CameraResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .mavsdk.rpc.camera.CameraResult.Result result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - const std::string& _s = this->_internal_result_str(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.CameraResult.result_str"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CameraResult) - return target; -} - -::size_t CameraResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CameraResult) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void CameraResult::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CameraResult) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string result_str = 2; - if (!this->_internal_result_str().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_result_str()); - } - - // .mavsdk.rpc.camera.CameraResult.Result result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CameraResult::_class_data_ = { - CameraResult::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CameraResult::GetClassData() const { - return &_class_data_; + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void CameraResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* CameraResult::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const CameraResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* CameraResult::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const CameraResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CameraResult) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // .mavsdk.rpc.camera.CameraResult.Result result = 1; + if (this_._internal_result() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_result(), target); + } + + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + const std::string& _s = this_._internal_result_str(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.CameraResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CameraResult) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t CameraResult::ByteSizeLong(const MessageLite& base) { + const CameraResult& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t CameraResult::ByteSizeLong() const { + const CameraResult& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CameraResult) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string result_str = 2; + if (!this_._internal_result_str().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_result_str()); + } + // .mavsdk.rpc.camera.CameraResult.Result result = 1; + if (this_._internal_result() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_result()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void CameraResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CameraResult) @@ -13102,7 +16763,7 @@ void CameraResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google _this->_internal_set_result_str(from._internal_result_str()); } if (from._internal_result() != 0) { - _this->_internal_set_result(from._internal_result()); + _this->_impl_.result_ = from._impl_.result_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -13114,13 +16775,7 @@ void CameraResult::CopyFrom(const CameraResult& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CameraResult::IsInitialized() const { - return true; -} -::_pbi::CachedSize* CameraResult::AccessCachedSize() const { - return &_impl_._cached_size_; -} void CameraResult::InternalSwap(CameraResult* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -13131,9 +16786,7 @@ void CameraResult::InternalSwap(CameraResult* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata CameraResult::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[66]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -13142,7 +16795,11 @@ class Position::_Internal { }; Position::Position(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Position) } @@ -13167,34 +16824,50 @@ inline void Position::SharedCtor(::_pb::Arena* arena) { } Position::~Position() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Position) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Position::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + SharedDtor(*this); +} +inline void Position::SharedDtor(MessageLite& self) { + Position& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* Position::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Position(arena); +} +constexpr auto Position::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Position), + alignof(Position)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Position::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Position_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Position::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Position::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Position::ByteSizeLong, + &Position::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Position, _impl_._cached_size_), + false, + }, + &Position::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Position::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -PROTOBUF_NOINLINE void Position::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Position) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.latitude_deg_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.relative_altitude_m_) - - reinterpret_cast(&_impl_.latitude_deg_)) + sizeof(_impl_.relative_altitude_m_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Position::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Position::_table_ = { { @@ -13207,8 +16880,12 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Position::_table_ = { 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_Position_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Position>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float relative_altitude_m = 4; {::_pbi::TcParser::FastF32S1, @@ -13243,130 +16920,109 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Position::_table_ = { }}, }; -::uint8_t* Position::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Position) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // double latitude_deg = 1; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 1, this->_internal_latitude_deg(), target); - } - - // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 2, this->_internal_longitude_deg(), target); - } - - // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_absolute_altitude_m(), target); - } - - // float relative_altitude_m = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_relative_altitude_m(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Position) - return target; -} - -::size_t Position::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Position) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void Position::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Position) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // double latitude_deg = 1; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = this->_internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - total_size += 9; - } - - // double longitude_deg = 2; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = this->_internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - total_size += 9; - } - - // float absolute_altitude_m = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - total_size += 5; - } - - // float relative_altitude_m = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData Position::_class_data_ = { - Position::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Position::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.latitude_deg_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.relative_altitude_m_) - + reinterpret_cast(&_impl_.latitude_deg_)) + sizeof(_impl_.relative_altitude_m_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void Position::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Position::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Position& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Position::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Position& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Position) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // double latitude_deg = 1; + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 1, this_._internal_latitude_deg(), target); + } + + // double longitude_deg = 2; + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this_._internal_longitude_deg(), target); + } + + // float absolute_altitude_m = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_absolute_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_absolute_altitude_m(), target); + } + + // float relative_altitude_m = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_relative_altitude_m(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Position) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Position::ByteSizeLong(const MessageLite& base) { + const Position& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Position::ByteSizeLong() const { + const Position& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Position) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // double latitude_deg = 1; + if (::absl::bit_cast<::uint64_t>(this_._internal_latitude_deg()) != 0) { + total_size += 9; + } + // double longitude_deg = 2; + if (::absl::bit_cast<::uint64_t>(this_._internal_longitude_deg()) != 0) { + total_size += 9; + } + // float absolute_altitude_m = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_absolute_altitude_m()) != 0) { + total_size += 5; + } + // float relative_altitude_m = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_relative_altitude_m()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void Position::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Position) @@ -13374,37 +17030,17 @@ void Position::MergeImpl(::google::protobuf::Message& to_msg, const ::google::pr ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_latitude_deg = from._internal_latitude_deg(); - ::uint64_t raw_latitude_deg; - memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); - if (raw_latitude_deg != 0) { - _this->_internal_set_latitude_deg(from._internal_latitude_deg()); + if (::absl::bit_cast<::uint64_t>(from._internal_latitude_deg()) != 0) { + _this->_impl_.latitude_deg_ = from._impl_.latitude_deg_; } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_longitude_deg = from._internal_longitude_deg(); - ::uint64_t raw_longitude_deg; - memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); - if (raw_longitude_deg != 0) { - _this->_internal_set_longitude_deg(from._internal_longitude_deg()); + if (::absl::bit_cast<::uint64_t>(from._internal_longitude_deg()) != 0) { + _this->_impl_.longitude_deg_ = from._impl_.longitude_deg_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_absolute_altitude_m = from._internal_absolute_altitude_m(); - ::uint32_t raw_absolute_altitude_m; - memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); - if (raw_absolute_altitude_m != 0) { - _this->_internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); + if (::absl::bit_cast<::uint32_t>(from._internal_absolute_altitude_m()) != 0) { + _this->_impl_.absolute_altitude_m_ = from._impl_.absolute_altitude_m_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = from._internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); + if (::absl::bit_cast<::uint32_t>(from._internal_relative_altitude_m()) != 0) { + _this->_impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -13416,13 +17052,7 @@ void Position::CopyFrom(const Position& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Position::IsInitialized() const { - return true; -} -::_pbi::CachedSize* Position::AccessCachedSize() const { - return &_impl_._cached_size_; -} void Position::InternalSwap(Position* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -13435,9 +17065,7 @@ void Position::InternalSwap(Position* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata Position::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[67]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -13446,7 +17074,11 @@ class Quaternion::_Internal { }; Quaternion::Quaternion(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Quaternion) } @@ -13471,34 +17103,50 @@ inline void Quaternion::SharedCtor(::_pb::Arena* arena) { } Quaternion::~Quaternion() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Quaternion) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Quaternion::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); + SharedDtor(*this); +} +inline void Quaternion::SharedDtor(MessageLite& self) { + Quaternion& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* Quaternion::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Quaternion(arena); +} +constexpr auto Quaternion::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Quaternion), + alignof(Quaternion)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Quaternion::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Quaternion_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Quaternion::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Quaternion::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Quaternion::ByteSizeLong, + &Quaternion::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Quaternion, _impl_._cached_size_), + false, + }, + &Quaternion::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Quaternion::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -PROTOBUF_NOINLINE void Quaternion::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Quaternion) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.w_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.w_)) + sizeof(_impl_.z_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Quaternion::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Quaternion::_table_ = { { @@ -13511,8 +17159,12 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Quaternion::_table_ = { 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_Quaternion_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Quaternion>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // float z = 4; {::_pbi::TcParser::FastF32S1, @@ -13547,130 +17199,109 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> Quaternion::_table_ = { }}, }; -::uint8_t* Quaternion::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Quaternion) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float w = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_w = this->_internal_w(); - ::uint32_t raw_w; - memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); - if (raw_w != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_w(), target); - } - - // float x = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_x = this->_internal_x(); - ::uint32_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_x(), target); - } - - // float y = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_y = this->_internal_y(); - ::uint32_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_y(), target); - } - - // float z = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_z = this->_internal_z(); - ::uint32_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_z(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Quaternion) - return target; -} - -::size_t Quaternion::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Quaternion) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void Quaternion::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Quaternion) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float w = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_w = this->_internal_w(); - ::uint32_t raw_w; - memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); - if (raw_w != 0) { - total_size += 5; - } - - // float x = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_x = this->_internal_x(); - ::uint32_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - total_size += 5; - } - - // float y = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_y = this->_internal_y(); - ::uint32_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - total_size += 5; - } - - // float z = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_z = this->_internal_z(); - ::uint32_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData Quaternion::_class_data_ = { - Quaternion::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Quaternion::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.w_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.w_)) + sizeof(_impl_.z_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void Quaternion::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Quaternion::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Quaternion& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Quaternion::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Quaternion& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Quaternion) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float w = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_w()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_w(), target); + } + + // float x = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_x()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_x(), target); + } + + // float y = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_y()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_y(), target); + } + + // float z = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_z()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_z(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Quaternion) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Quaternion::ByteSizeLong(const MessageLite& base) { + const Quaternion& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Quaternion::ByteSizeLong() const { + const Quaternion& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Quaternion) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // float w = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_w()) != 0) { + total_size += 5; + } + // float x = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_x()) != 0) { + total_size += 5; + } + // float y = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_y()) != 0) { + total_size += 5; + } + // float z = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_z()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void Quaternion::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Quaternion) @@ -13678,37 +17309,17 @@ void Quaternion::MergeImpl(::google::protobuf::Message& to_msg, const ::google:: ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_w = from._internal_w(); - ::uint32_t raw_w; - memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); - if (raw_w != 0) { - _this->_internal_set_w(from._internal_w()); + if (::absl::bit_cast<::uint32_t>(from._internal_w()) != 0) { + _this->_impl_.w_ = from._impl_.w_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_x = from._internal_x(); - ::uint32_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - _this->_internal_set_x(from._internal_x()); + if (::absl::bit_cast<::uint32_t>(from._internal_x()) != 0) { + _this->_impl_.x_ = from._impl_.x_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_y = from._internal_y(); - ::uint32_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - _this->_internal_set_y(from._internal_y()); + if (::absl::bit_cast<::uint32_t>(from._internal_y()) != 0) { + _this->_impl_.y_ = from._impl_.y_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_z = from._internal_z(); - ::uint32_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - _this->_internal_set_z(from._internal_z()); + if (::absl::bit_cast<::uint32_t>(from._internal_z()) != 0) { + _this->_impl_.z_ = from._impl_.z_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -13720,13 +17331,7 @@ void Quaternion::CopyFrom(const Quaternion& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Quaternion::IsInitialized() const { - return true; -} -::_pbi::CachedSize* Quaternion::AccessCachedSize() const { - return &_impl_._cached_size_; -} void Quaternion::InternalSwap(Quaternion* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -13739,9 +17344,7 @@ void Quaternion::InternalSwap(Quaternion* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata Quaternion::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[68]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -13750,7 +17353,11 @@ class EulerAngle::_Internal { }; EulerAngle::EulerAngle(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.EulerAngle) } @@ -13775,34 +17382,50 @@ inline void EulerAngle::SharedCtor(::_pb::Arena* arena) { } EulerAngle::~EulerAngle() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.EulerAngle) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); + SharedDtor(*this); +} +inline void EulerAngle::SharedDtor(MessageLite& self) { + EulerAngle& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* EulerAngle::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EulerAngle(arena); +} +constexpr auto EulerAngle::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(EulerAngle), + alignof(EulerAngle)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull EulerAngle::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EulerAngle_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EulerAngle::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EulerAngle::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &EulerAngle::ByteSizeLong, + &EulerAngle::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_._cached_size_), + false, + }, + &EulerAngle::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* EulerAngle::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } -inline void EulerAngle::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void EulerAngle::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.EulerAngle) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.roll_deg_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.yaw_deg_) - - reinterpret_cast(&_impl_.roll_deg_)) + sizeof(_impl_.yaw_deg_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* EulerAngle::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> EulerAngle::_table_ = { { @@ -13815,8 +17438,12 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> EulerAngle::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_EulerAngle_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::EulerAngle>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // float roll_deg = 1; @@ -13846,108 +17473,98 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> EulerAngle::_table_ = { }}, }; -::uint8_t* EulerAngle::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.EulerAngle) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float roll_deg = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_roll_deg = this->_internal_roll_deg(); - ::uint32_t raw_roll_deg; - memcpy(&raw_roll_deg, &tmp_roll_deg, sizeof(tmp_roll_deg)); - if (raw_roll_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_roll_deg(), target); - } - - // float pitch_deg = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_pitch_deg = this->_internal_pitch_deg(); - ::uint32_t raw_pitch_deg; - memcpy(&raw_pitch_deg, &tmp_pitch_deg, sizeof(tmp_pitch_deg)); - if (raw_pitch_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_pitch_deg(), target); - } - - // float yaw_deg = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = this->_internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_yaw_deg(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.EulerAngle) - return target; -} - -::size_t EulerAngle::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.EulerAngle) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void EulerAngle::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.EulerAngle) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float roll_deg = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_roll_deg = this->_internal_roll_deg(); - ::uint32_t raw_roll_deg; - memcpy(&raw_roll_deg, &tmp_roll_deg, sizeof(tmp_roll_deg)); - if (raw_roll_deg != 0) { - total_size += 5; - } - - // float pitch_deg = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_pitch_deg = this->_internal_pitch_deg(); - ::uint32_t raw_pitch_deg; - memcpy(&raw_pitch_deg, &tmp_pitch_deg, sizeof(tmp_pitch_deg)); - if (raw_pitch_deg != 0) { - total_size += 5; - } - - // float yaw_deg = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = this->_internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData EulerAngle::_class_data_ = { - EulerAngle::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* EulerAngle::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.roll_deg_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.yaw_deg_) - + reinterpret_cast(&_impl_.roll_deg_)) + sizeof(_impl_.yaw_deg_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void EulerAngle::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* EulerAngle::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const EulerAngle& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* EulerAngle::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const EulerAngle& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.EulerAngle) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float roll_deg = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_roll_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_roll_deg(), target); + } + + // float pitch_deg = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_pitch_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_pitch_deg(), target); + } + + // float yaw_deg = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_yaw_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_yaw_deg(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.EulerAngle) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t EulerAngle::ByteSizeLong(const MessageLite& base) { + const EulerAngle& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t EulerAngle::ByteSizeLong() const { + const EulerAngle& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.EulerAngle) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // float roll_deg = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_roll_deg()) != 0) { + total_size += 5; + } + // float pitch_deg = 2; + if (::absl::bit_cast<::uint32_t>(this_._internal_pitch_deg()) != 0) { + total_size += 5; + } + // float yaw_deg = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_yaw_deg()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void EulerAngle::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.EulerAngle) @@ -13955,29 +17572,14 @@ void EulerAngle::MergeImpl(::google::protobuf::Message& to_msg, const ::google:: ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_roll_deg = from._internal_roll_deg(); - ::uint32_t raw_roll_deg; - memcpy(&raw_roll_deg, &tmp_roll_deg, sizeof(tmp_roll_deg)); - if (raw_roll_deg != 0) { - _this->_internal_set_roll_deg(from._internal_roll_deg()); + if (::absl::bit_cast<::uint32_t>(from._internal_roll_deg()) != 0) { + _this->_impl_.roll_deg_ = from._impl_.roll_deg_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_pitch_deg = from._internal_pitch_deg(); - ::uint32_t raw_pitch_deg; - memcpy(&raw_pitch_deg, &tmp_pitch_deg, sizeof(tmp_pitch_deg)); - if (raw_pitch_deg != 0) { - _this->_internal_set_pitch_deg(from._internal_pitch_deg()); + if (::absl::bit_cast<::uint32_t>(from._internal_pitch_deg()) != 0) { + _this->_impl_.pitch_deg_ = from._impl_.pitch_deg_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_yaw_deg = from._internal_yaw_deg(); - ::uint32_t raw_yaw_deg; - memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); - if (raw_yaw_deg != 0) { - _this->_internal_set_yaw_deg(from._internal_yaw_deg()); + if (::absl::bit_cast<::uint32_t>(from._internal_yaw_deg()) != 0) { + _this->_impl_.yaw_deg_ = from._impl_.yaw_deg_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -13989,13 +17591,7 @@ void EulerAngle::CopyFrom(const EulerAngle& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool EulerAngle::IsInitialized() const { - return true; -} -::_pbi::CachedSize* EulerAngle::AccessCachedSize() const { - return &_impl_._cached_size_; -} void EulerAngle::InternalSwap(EulerAngle* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -14008,48 +17604,30 @@ void EulerAngle::InternalSwap(EulerAngle* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata EulerAngle::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[69]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CaptureInfo::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::Position& position(const CaptureInfo* msg); - static void set_has_position(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::mavsdk::rpc::camera::Quaternion& attitude_quaternion(const CaptureInfo* msg); - static void set_has_attitude_quaternion(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::mavsdk::rpc::camera::EulerAngle& attitude_euler_angle(const CaptureInfo* msg); - static void set_has_attitude_euler_angle(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + 8 * PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_._has_bits_); }; -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) { - return *msg->_impl_.attitude_quaternion_; -} -const ::mavsdk::rpc::camera::EulerAngle& CaptureInfo::_Internal::attitude_euler_angle(const CaptureInfo* msg) { - return *msg->_impl_.attitude_euler_angle_; -} CaptureInfo::CaptureInfo(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CaptureInfo) } inline PROTOBUF_NDEBUG_INLINE CaptureInfo::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::CaptureInfo& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, file_url_(arena, from.file_url_) {} @@ -14057,98 +17635,101 @@ inline PROTOBUF_NDEBUG_INLINE CaptureInfo::Impl_::Impl_( CaptureInfo::CaptureInfo( ::google::protobuf::Arena* arena, const CaptureInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE CaptureInfo* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.position_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::Position>(arena, *from._impl_.position_) - : nullptr; - _impl_.attitude_quaternion_ = (cached_has_bits & 0x00000002u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::Quaternion>(arena, *from._impl_.attitude_quaternion_) - : nullptr; - _impl_.attitude_euler_angle_ = (cached_has_bits & 0x00000004u) - ? CreateMaybeMessage<::mavsdk::rpc::camera::EulerAngle>(arena, *from._impl_.attitude_euler_angle_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, time_utc_us_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, time_utc_us_), - offsetof(Impl_, index_) - - offsetof(Impl_, time_utc_us_) + - sizeof(Impl_::index_)); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CaptureInfo) -} -inline PROTOBUF_NDEBUG_INLINE CaptureInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - file_url_(arena) {} - -inline void CaptureInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, position_), - 0, - offsetof(Impl_, index_) - - offsetof(Impl_, position_) + - sizeof(Impl_::index_)); -} -CaptureInfo::~CaptureInfo() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CaptureInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CaptureInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.file_url_.Destroy(); - delete _impl_.position_; - delete _impl_.attitude_quaternion_; - delete _impl_.attitude_euler_angle_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void CaptureInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CaptureInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.file_url_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.position_ != nullptr); - _impl_.position_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.attitude_quaternion_ != nullptr); - _impl_.attitude_quaternion_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.attitude_euler_angle_ != nullptr); - _impl_.attitude_euler_angle_->Clear(); - } - } - ::memset(&_impl_.time_utc_us_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.index_) - - reinterpret_cast(&_impl_.time_utc_us_)) + sizeof(_impl_.index_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.position_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Position>( + arena, *from._impl_.position_) + : nullptr; + _impl_.attitude_quaternion_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Quaternion>( + arena, *from._impl_.attitude_quaternion_) + : nullptr; + _impl_.attitude_euler_angle_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::EulerAngle>( + arena, *from._impl_.attitude_euler_angle_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, time_utc_us_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, time_utc_us_), + offsetof(Impl_, index_) - + offsetof(Impl_, time_utc_us_) + + sizeof(Impl_::index_)); -const char* CaptureInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CaptureInfo) } +inline PROTOBUF_NDEBUG_INLINE CaptureInfo::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + file_url_(arena) {} - +inline void CaptureInfo::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, position_), + 0, + offsetof(Impl_, index_) - + offsetof(Impl_, position_) + + sizeof(Impl_::index_)); +} +CaptureInfo::~CaptureInfo() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.CaptureInfo) + SharedDtor(*this); +} +inline void CaptureInfo::SharedDtor(MessageLite& self) { + CaptureInfo& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.file_url_.Destroy(); + delete this_._impl_.position_; + delete this_._impl_.attitude_quaternion_; + delete this_._impl_.attitude_euler_angle_; + this_._impl_.~Impl_(); +} + +inline void* CaptureInfo::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) CaptureInfo(arena); +} +constexpr auto CaptureInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CaptureInfo), + alignof(CaptureInfo)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull CaptureInfo::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_CaptureInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CaptureInfo::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CaptureInfo::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CaptureInfo::ByteSizeLong, + &CaptureInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_._cached_size_), + false, + }, + &CaptureInfo::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* CaptureInfo::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<3, 7, 3, 46, 2> CaptureInfo::_table_ = { { @@ -14161,8 +17742,12 @@ const ::_pbi::TcParseTable<3, 7, 3, 46, 2> CaptureInfo::_table_ = { 7, // num_field_entries 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_CaptureInfo_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::CaptureInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // .mavsdk.rpc.camera.Position position = 1; @@ -14221,139 +17806,175 @@ const ::_pbi::TcParseTable<3, 7, 3, 46, 2> CaptureInfo::_table_ = { }}, }; -::uint8_t* CaptureInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CaptureInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.Position position = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::position(this), - _Internal::position(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, _Internal::attitude_quaternion(this), - _Internal::attitude_quaternion(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, _Internal::attitude_euler_angle(this), - _Internal::attitude_euler_angle(this).GetCachedSize(), target, stream); - } - - // uint64 time_utc_us = 4; - if (this->_internal_time_utc_us() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_time_utc_us(), target); - } - - // bool is_success = 5; - if (this->_internal_is_success() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this->_internal_is_success(), target); - } - - // int32 index = 6; - if (this->_internal_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<6>( - stream, this->_internal_index(), target); - } - - // string file_url = 7; - if (!this->_internal_file_url().empty()) { - const std::string& _s = this->_internal_file_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.CaptureInfo.file_url"); - target = stream->WriteStringMaybeAliased(7, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CaptureInfo) - return target; -} - -::size_t CaptureInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CaptureInfo) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void CaptureInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CaptureInfo) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string file_url = 7; - if (!this->_internal_file_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_file_url()); - } - + _impl_.file_url_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { - // .mavsdk.rpc.camera.Position position = 1; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.position_); + ABSL_DCHECK(_impl_.position_ != nullptr); + _impl_.position_->Clear(); } - - // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.attitude_quaternion_); + ABSL_DCHECK(_impl_.attitude_quaternion_ != nullptr); + _impl_.attitude_quaternion_->Clear(); } - - // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.attitude_euler_angle_); + ABSL_DCHECK(_impl_.attitude_euler_angle_ != nullptr); + _impl_.attitude_euler_angle_->Clear(); } - - } - // uint64 time_utc_us = 4; - if (this->_internal_time_utc_us() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_time_utc_us()); - } - - // bool is_success = 5; - if (this->_internal_is_success() != 0) { - total_size += 2; - } - - // int32 index = 6; - if (this->_internal_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_index()); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData CaptureInfo::_class_data_ = { - CaptureInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* CaptureInfo::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.time_utc_us_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.index_) - + reinterpret_cast(&_impl_.time_utc_us_)) + sizeof(_impl_.index_)); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void CaptureInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* CaptureInfo::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const CaptureInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* CaptureInfo::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const CaptureInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CaptureInfo) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.Position position = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.position_, this_._impl_.position_->GetCachedSize(), target, + stream); + } + + // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.attitude_quaternion_, this_._impl_.attitude_quaternion_->GetCachedSize(), target, + stream); + } + + // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.attitude_euler_angle_, this_._impl_.attitude_euler_angle_->GetCachedSize(), target, + stream); + } + + // uint64 time_utc_us = 4; + if (this_._internal_time_utc_us() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this_._internal_time_utc_us(), target); + } + + // bool is_success = 5; + if (this_._internal_is_success() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_is_success(), target); + } + + // int32 index = 6; + if (this_._internal_index() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<6>( + stream, this_._internal_index(), target); + } + + // string file_url = 7; + if (!this_._internal_file_url().empty()) { + const std::string& _s = this_._internal_file_url(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.CaptureInfo.file_url"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.CaptureInfo) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t CaptureInfo::ByteSizeLong(const MessageLite& base) { + const CaptureInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t CaptureInfo::ByteSizeLong() const { + const CaptureInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CaptureInfo) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string file_url = 7; + if (!this_._internal_file_url().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_file_url()); + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // .mavsdk.rpc.camera.Position position = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.position_); + } + // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attitude_quaternion_); + } + // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attitude_euler_angle_); + } + } + { + // uint64 time_utc_us = 4; + if (this_._internal_time_utc_us() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_time_utc_us()); + } + // bool is_success = 5; + if (this_._internal_is_success() != 0) { + total_size += 2; + } + // int32 index = 6; + if (this_._internal_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_index()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void CaptureInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CaptureInfo) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -14365,27 +17986,43 @@ void CaptureInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google: cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_position()->::mavsdk::rpc::camera::Position::MergeFrom( - from._internal_position()); + ABSL_DCHECK(from._impl_.position_ != nullptr); + if (_this->_impl_.position_ == nullptr) { + _this->_impl_.position_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Position>(arena, *from._impl_.position_); + } else { + _this->_impl_.position_->MergeFrom(*from._impl_.position_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_attitude_quaternion()->::mavsdk::rpc::camera::Quaternion::MergeFrom( - from._internal_attitude_quaternion()); + ABSL_DCHECK(from._impl_.attitude_quaternion_ != nullptr); + if (_this->_impl_.attitude_quaternion_ == nullptr) { + _this->_impl_.attitude_quaternion_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::Quaternion>(arena, *from._impl_.attitude_quaternion_); + } else { + _this->_impl_.attitude_quaternion_->MergeFrom(*from._impl_.attitude_quaternion_); + } } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_attitude_euler_angle()->::mavsdk::rpc::camera::EulerAngle::MergeFrom( - from._internal_attitude_euler_angle()); + ABSL_DCHECK(from._impl_.attitude_euler_angle_ != nullptr); + if (_this->_impl_.attitude_euler_angle_ == nullptr) { + _this->_impl_.attitude_euler_angle_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::EulerAngle>(arena, *from._impl_.attitude_euler_angle_); + } else { + _this->_impl_.attitude_euler_angle_->MergeFrom(*from._impl_.attitude_euler_angle_); + } } } if (from._internal_time_utc_us() != 0) { - _this->_internal_set_time_utc_us(from._internal_time_utc_us()); + _this->_impl_.time_utc_us_ = from._impl_.time_utc_us_; } if (from._internal_is_success() != 0) { - _this->_internal_set_is_success(from._internal_is_success()); + _this->_impl_.is_success_ = from._impl_.is_success_; } if (from._internal_index() != 0) { - _this->_internal_set_index(from._internal_index()); + _this->_impl_.index_ = from._impl_.index_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -14396,13 +18033,7 @@ void CaptureInfo::CopyFrom(const CaptureInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool CaptureInfo::IsInitialized() const { - return true; -} -::_pbi::CachedSize* CaptureInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} void CaptureInfo::InternalSwap(CaptureInfo* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -14419,9 +18050,7 @@ void CaptureInfo::InternalSwap(CaptureInfo* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata CaptureInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[70]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -14430,25 +18059,33 @@ class VideoStreamSettings::_Internal { }; VideoStreamSettings::VideoStreamSettings(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamSettings) } inline PROTOBUF_NDEBUG_INLINE VideoStreamSettings::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::VideoStreamSettings& from_msg) : uri_(arena, from.uri_), _cached_size_{0} {} VideoStreamSettings::VideoStreamSettings( ::google::protobuf::Arena* arena, const VideoStreamSettings& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE VideoStreamSettings* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, frame_rate_hz_), reinterpret_cast(&from._impl_) + @@ -14476,36 +18113,51 @@ inline void VideoStreamSettings::SharedCtor(::_pb::Arena* arena) { } VideoStreamSettings::~VideoStreamSettings() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.VideoStreamSettings) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void VideoStreamSettings::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.uri_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void VideoStreamSettings::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamSettings) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.uri_.ClearToEmpty(); - ::memset(&_impl_.frame_rate_hz_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.horizontal_fov_deg_) - - reinterpret_cast(&_impl_.frame_rate_hz_)) + sizeof(_impl_.horizontal_fov_deg_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void VideoStreamSettings::SharedDtor(MessageLite& self) { + VideoStreamSettings& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.uri_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* VideoStreamSettings::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) VideoStreamSettings(arena); +} +constexpr auto VideoStreamSettings::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(VideoStreamSettings), + alignof(VideoStreamSettings)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull VideoStreamSettings::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_VideoStreamSettings_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &VideoStreamSettings::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &VideoStreamSettings::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &VideoStreamSettings::ByteSizeLong, + &VideoStreamSettings::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_._cached_size_), + false, + }, + &VideoStreamSettings::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* VideoStreamSettings::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* VideoStreamSettings::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<3, 7, 0, 49, 2> VideoStreamSettings::_table_ = { { @@ -14518,8 +18170,12 @@ const ::_pbi::TcParseTable<3, 7, 0, 49, 2> VideoStreamSettings::_table_ = { 7, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_VideoStreamSettings_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::VideoStreamSettings>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // float frame_rate_hz = 1; @@ -14576,152 +18232,149 @@ const ::_pbi::TcParseTable<3, 7, 0, 49, 2> VideoStreamSettings::_table_ = { }}, }; -::uint8_t* VideoStreamSettings::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamSettings) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float frame_rate_hz = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_frame_rate_hz = this->_internal_frame_rate_hz(); - ::uint32_t raw_frame_rate_hz; - memcpy(&raw_frame_rate_hz, &tmp_frame_rate_hz, sizeof(tmp_frame_rate_hz)); - if (raw_frame_rate_hz != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_frame_rate_hz(), target); - } - - // uint32 horizontal_resolution_pix = 2; - if (this->_internal_horizontal_resolution_pix() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_horizontal_resolution_pix(), target); - } - - // uint32 vertical_resolution_pix = 3; - if (this->_internal_vertical_resolution_pix() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_vertical_resolution_pix(), target); - } - - // uint32 bit_rate_b_s = 4; - if (this->_internal_bit_rate_b_s() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this->_internal_bit_rate_b_s(), target); - } - - // uint32 rotation_deg = 5; - if (this->_internal_rotation_deg() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_rotation_deg(), target); - } - - // string uri = 6; - if (!this->_internal_uri().empty()) { - const std::string& _s = this->_internal_uri(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.VideoStreamSettings.uri"); - target = stream->WriteStringMaybeAliased(6, _s, target); - } - - // float horizontal_fov_deg = 7; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_horizontal_fov_deg = this->_internal_horizontal_fov_deg(); - ::uint32_t raw_horizontal_fov_deg; - memcpy(&raw_horizontal_fov_deg, &tmp_horizontal_fov_deg, sizeof(tmp_horizontal_fov_deg)); - if (raw_horizontal_fov_deg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 7, this->_internal_horizontal_fov_deg(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamSettings) - return target; -} - -::size_t VideoStreamSettings::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamSettings) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void VideoStreamSettings::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamSettings) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string uri = 6; - if (!this->_internal_uri().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_uri()); - } - - // float frame_rate_hz = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_frame_rate_hz = this->_internal_frame_rate_hz(); - ::uint32_t raw_frame_rate_hz; - memcpy(&raw_frame_rate_hz, &tmp_frame_rate_hz, sizeof(tmp_frame_rate_hz)); - if (raw_frame_rate_hz != 0) { - total_size += 5; - } - - // uint32 horizontal_resolution_pix = 2; - if (this->_internal_horizontal_resolution_pix() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_horizontal_resolution_pix()); - } - - // uint32 vertical_resolution_pix = 3; - if (this->_internal_vertical_resolution_pix() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_vertical_resolution_pix()); - } - - // uint32 bit_rate_b_s = 4; - if (this->_internal_bit_rate_b_s() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_bit_rate_b_s()); - } - - // uint32 rotation_deg = 5; - if (this->_internal_rotation_deg() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_rotation_deg()); - } - - // float horizontal_fov_deg = 7; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_horizontal_fov_deg = this->_internal_horizontal_fov_deg(); - ::uint32_t raw_horizontal_fov_deg; - memcpy(&raw_horizontal_fov_deg, &tmp_horizontal_fov_deg, sizeof(tmp_horizontal_fov_deg)); - if (raw_horizontal_fov_deg != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData VideoStreamSettings::_class_data_ = { - VideoStreamSettings::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* VideoStreamSettings::GetClassData() const { - return &_class_data_; + _impl_.uri_.ClearToEmpty(); + ::memset(&_impl_.frame_rate_hz_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.horizontal_fov_deg_) - + reinterpret_cast(&_impl_.frame_rate_hz_)) + sizeof(_impl_.horizontal_fov_deg_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void VideoStreamSettings::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* VideoStreamSettings::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const VideoStreamSettings& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* VideoStreamSettings::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const VideoStreamSettings& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamSettings) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // float frame_rate_hz = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_frame_rate_hz()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_frame_rate_hz(), target); + } + + // uint32 horizontal_resolution_pix = 2; + if (this_._internal_horizontal_resolution_pix() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_horizontal_resolution_pix(), target); + } + + // uint32 vertical_resolution_pix = 3; + if (this_._internal_vertical_resolution_pix() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this_._internal_vertical_resolution_pix(), target); + } + + // uint32 bit_rate_b_s = 4; + if (this_._internal_bit_rate_b_s() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 4, this_._internal_bit_rate_b_s(), target); + } + + // uint32 rotation_deg = 5; + if (this_._internal_rotation_deg() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 5, this_._internal_rotation_deg(), target); + } + + // string uri = 6; + if (!this_._internal_uri().empty()) { + const std::string& _s = this_._internal_uri(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.VideoStreamSettings.uri"); + target = stream->WriteStringMaybeAliased(6, _s, target); + } + + // float horizontal_fov_deg = 7; + if (::absl::bit_cast<::uint32_t>(this_._internal_horizontal_fov_deg()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 7, this_._internal_horizontal_fov_deg(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamSettings) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t VideoStreamSettings::ByteSizeLong(const MessageLite& base) { + const VideoStreamSettings& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t VideoStreamSettings::ByteSizeLong() const { + const VideoStreamSettings& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamSettings) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string uri = 6; + if (!this_._internal_uri().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_uri()); + } + // float frame_rate_hz = 1; + if (::absl::bit_cast<::uint32_t>(this_._internal_frame_rate_hz()) != 0) { + total_size += 5; + } + // uint32 horizontal_resolution_pix = 2; + if (this_._internal_horizontal_resolution_pix() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_horizontal_resolution_pix()); + } + // uint32 vertical_resolution_pix = 3; + if (this_._internal_vertical_resolution_pix() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_vertical_resolution_pix()); + } + // uint32 bit_rate_b_s = 4; + if (this_._internal_bit_rate_b_s() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_bit_rate_b_s()); + } + // uint32 rotation_deg = 5; + if (this_._internal_rotation_deg() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_rotation_deg()); + } + // float horizontal_fov_deg = 7; + if (::absl::bit_cast<::uint32_t>(this_._internal_horizontal_fov_deg()) != 0) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void VideoStreamSettings::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamSettings) @@ -14732,33 +18385,23 @@ void VideoStreamSettings::MergeImpl(::google::protobuf::Message& to_msg, const : if (!from._internal_uri().empty()) { _this->_internal_set_uri(from._internal_uri()); } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_frame_rate_hz = from._internal_frame_rate_hz(); - ::uint32_t raw_frame_rate_hz; - memcpy(&raw_frame_rate_hz, &tmp_frame_rate_hz, sizeof(tmp_frame_rate_hz)); - if (raw_frame_rate_hz != 0) { - _this->_internal_set_frame_rate_hz(from._internal_frame_rate_hz()); + if (::absl::bit_cast<::uint32_t>(from._internal_frame_rate_hz()) != 0) { + _this->_impl_.frame_rate_hz_ = from._impl_.frame_rate_hz_; } if (from._internal_horizontal_resolution_pix() != 0) { - _this->_internal_set_horizontal_resolution_pix(from._internal_horizontal_resolution_pix()); + _this->_impl_.horizontal_resolution_pix_ = from._impl_.horizontal_resolution_pix_; } if (from._internal_vertical_resolution_pix() != 0) { - _this->_internal_set_vertical_resolution_pix(from._internal_vertical_resolution_pix()); + _this->_impl_.vertical_resolution_pix_ = from._impl_.vertical_resolution_pix_; } if (from._internal_bit_rate_b_s() != 0) { - _this->_internal_set_bit_rate_b_s(from._internal_bit_rate_b_s()); + _this->_impl_.bit_rate_b_s_ = from._impl_.bit_rate_b_s_; } if (from._internal_rotation_deg() != 0) { - _this->_internal_set_rotation_deg(from._internal_rotation_deg()); + _this->_impl_.rotation_deg_ = from._impl_.rotation_deg_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_horizontal_fov_deg = from._internal_horizontal_fov_deg(); - ::uint32_t raw_horizontal_fov_deg; - memcpy(&raw_horizontal_fov_deg, &tmp_horizontal_fov_deg, sizeof(tmp_horizontal_fov_deg)); - if (raw_horizontal_fov_deg != 0) { - _this->_internal_set_horizontal_fov_deg(from._internal_horizontal_fov_deg()); + if (::absl::bit_cast<::uint32_t>(from._internal_horizontal_fov_deg()) != 0) { + _this->_impl_.horizontal_fov_deg_ = from._impl_.horizontal_fov_deg_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -14770,13 +18413,7 @@ void VideoStreamSettings::CopyFrom(const VideoStreamSettings& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool VideoStreamSettings::IsInitialized() const { - return true; -} -::_pbi::CachedSize* VideoStreamSettings::AccessCachedSize() const { - return &_impl_._cached_size_; -} void VideoStreamSettings::InternalSwap(VideoStreamSettings* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -14792,50 +18429,50 @@ void VideoStreamSettings::InternalSwap(VideoStreamSettings* PROTOBUF_RESTRICT ot } ::google::protobuf::Metadata VideoStreamSettings::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[71]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class VideoStreamInfo::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = + decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_._has_bits_); - static const ::mavsdk::rpc::camera::VideoStreamSettings& settings(const VideoStreamInfo* msg); - static void set_has_settings(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + 8 * PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_._has_bits_); }; -const ::mavsdk::rpc::camera::VideoStreamSettings& VideoStreamInfo::_Internal::settings(const VideoStreamInfo* msg) { - return *msg->_impl_.settings_; -} VideoStreamInfo::VideoStreamInfo(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamInfo) } inline PROTOBUF_NDEBUG_INLINE VideoStreamInfo::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::VideoStreamInfo& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} VideoStreamInfo::VideoStreamInfo( ::google::protobuf::Arena* arena, const VideoStreamInfo& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE VideoStreamInfo* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::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; + _impl_.settings_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::VideoStreamSettings>( + arena, *from._impl_.settings_) + : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, status_), reinterpret_cast(&from._impl_) + @@ -14862,41 +18499,51 @@ inline void VideoStreamInfo::SharedCtor(::_pb::Arena* arena) { } VideoStreamInfo::~VideoStreamInfo() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.VideoStreamInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void VideoStreamInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.settings_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void VideoStreamInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.settings_ != nullptr); - _impl_.settings_->Clear(); - } - ::memset(&_impl_.status_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.spectrum_) - - reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.spectrum_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* VideoStreamInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void VideoStreamInfo::SharedDtor(MessageLite& self) { + VideoStreamInfo& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + delete this_._impl_.settings_; + this_._impl_.~Impl_(); +} + +inline void* VideoStreamInfo::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) VideoStreamInfo(arena); +} +constexpr auto VideoStreamInfo::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(VideoStreamInfo), + alignof(VideoStreamInfo)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull VideoStreamInfo::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_VideoStreamInfo_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &VideoStreamInfo::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &VideoStreamInfo::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &VideoStreamInfo::ByteSizeLong, + &VideoStreamInfo::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_._cached_size_), + false, + }, + &VideoStreamInfo::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* VideoStreamInfo::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 1, 0, 2> VideoStreamInfo::_table_ = { { @@ -14909,8 +18556,12 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> VideoStreamInfo::_table_ = { 3, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_VideoStreamInfo_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::VideoStreamInfo>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; @@ -14940,100 +18591,136 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> VideoStreamInfo::_table_ = { }}, }; -::uint8_t* VideoStreamInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::settings(this), - _Internal::settings(this).GetCachedSize(), target, stream); - } - - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; - if (this->_internal_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_status(), target); - } - - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; - if (this->_internal_spectrum() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_spectrum(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamInfo) - return target; -} - -::size_t VideoStreamInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamInfo) - ::size_t total_size = 0; - +PROTOBUF_NOINLINE void VideoStreamInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamInfo) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.settings_); - } - - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; - if (this->_internal_status() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); - } - - // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; - if (this->_internal_spectrum() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_spectrum()); + ABSL_DCHECK(_impl_.settings_ != nullptr); + _impl_.settings_->Clear(); } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData VideoStreamInfo::_class_data_ = { - VideoStreamInfo::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* VideoStreamInfo::GetClassData() const { - return &_class_data_; + ::memset(&_impl_.status_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.spectrum_) - + reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.spectrum_)); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void VideoStreamInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* VideoStreamInfo::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const VideoStreamInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* VideoStreamInfo::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const VideoStreamInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamInfo) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.settings_, this_._impl_.settings_->GetCachedSize(), target, + stream); + } + + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; + if (this_._internal_status() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_status(), target); + } + + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; + if (this_._internal_spectrum() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_spectrum(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.VideoStreamInfo) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t VideoStreamInfo::ByteSizeLong(const MessageLite& base) { + const VideoStreamInfo& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t VideoStreamInfo::ByteSizeLong() const { + const VideoStreamInfo& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamInfo) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.settings_); + } + } + { + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; + if (this_._internal_status() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_status()); + } + // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; + if (this_._internal_spectrum() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_spectrum()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void VideoStreamInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamInfo) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_settings()->::mavsdk::rpc::camera::VideoStreamSettings::MergeFrom( - from._internal_settings()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.settings_ != nullptr); + if (_this->_impl_.settings_ == nullptr) { + _this->_impl_.settings_ = + ::google::protobuf::Message::CopyConstruct<::mavsdk::rpc::camera::VideoStreamSettings>(arena, *from._impl_.settings_); + } else { + _this->_impl_.settings_->MergeFrom(*from._impl_.settings_); + } } if (from._internal_status() != 0) { - _this->_internal_set_status(from._internal_status()); + _this->_impl_.status_ = from._impl_.status_; } if (from._internal_spectrum() != 0) { - _this->_internal_set_spectrum(from._internal_spectrum()); + _this->_impl_.spectrum_ = from._impl_.spectrum_; } + _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -15044,13 +18731,7 @@ void VideoStreamInfo::CopyFrom(const VideoStreamInfo& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool VideoStreamInfo::IsInitialized() const { - return true; -} -::_pbi::CachedSize* VideoStreamInfo::AccessCachedSize() const { - return &_impl_._cached_size_; -} void VideoStreamInfo::InternalSwap(VideoStreamInfo* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -15064,9 +18745,7 @@ void VideoStreamInfo::InternalSwap(VideoStreamInfo* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata VideoStreamInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[72]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -15075,25 +18754,33 @@ class Status::_Internal { }; Status::Status(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Status) } inline PROTOBUF_NDEBUG_INLINE Status::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::Status& from_msg) : media_folder_name_(arena, from.media_folder_name_), _cached_size_{0} {} Status::Status( ::google::protobuf::Arena* arena, const Status& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE Status* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, video_on_), reinterpret_cast(&from._impl_) + @@ -15121,36 +18808,51 @@ inline void Status::SharedCtor(::_pb::Arena* arena) { } Status::~Status() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Status) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Status::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.media_folder_name_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Status::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Status) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.media_folder_name_.ClearToEmpty(); - ::memset(&_impl_.video_on_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.storage_type_) - - reinterpret_cast(&_impl_.video_on_)) + sizeof(_impl_.storage_type_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + SharedDtor(*this); +} +inline void Status::SharedDtor(MessageLite& self) { + Status& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.media_folder_name_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* Status::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Status(arena); +} +constexpr auto Status::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Status), + alignof(Status)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Status::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Status_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Status::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Status::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Status::ByteSizeLong, + &Status::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Status, _impl_._cached_size_), + false, + }, + &Status::kDescriptorMethods, + &descriptor_table_camera_2fcamera_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Status::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -const char* Status::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<4, 10, 0, 58, 2> Status::_table_ = { { @@ -15163,8 +18865,12 @@ const ::_pbi::TcParseTable<4, 10, 0, 58, 2> Status::_table_ = { 10, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_Status_default_instance_._instance, + _class_data_.base(), + nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::mavsdk::rpc::camera::Status>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bool video_on = 1; @@ -15237,214 +18943,188 @@ const ::_pbi::TcParseTable<4, 10, 0, 58, 2> Status::_table_ = { (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, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Status) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool video_on = 1; - if (this->_internal_video_on() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_video_on(), target); - } - - // bool photo_interval_on = 2; - if (this->_internal_photo_interval_on() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_photo_interval_on(), target); - } - - // float used_storage_mib = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_used_storage_mib = this->_internal_used_storage_mib(); - ::uint32_t raw_used_storage_mib; - memcpy(&raw_used_storage_mib, &tmp_used_storage_mib, sizeof(tmp_used_storage_mib)); - if (raw_used_storage_mib != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 3, this->_internal_used_storage_mib(), target); - } - - // float available_storage_mib = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_available_storage_mib = this->_internal_available_storage_mib(); - ::uint32_t raw_available_storage_mib; - memcpy(&raw_available_storage_mib, &tmp_available_storage_mib, sizeof(tmp_available_storage_mib)); - if (raw_available_storage_mib != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 4, this->_internal_available_storage_mib(), target); - } - - // float total_storage_mib = 5; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_total_storage_mib = this->_internal_total_storage_mib(); - ::uint32_t raw_total_storage_mib; - memcpy(&raw_total_storage_mib, &tmp_total_storage_mib, sizeof(tmp_total_storage_mib)); - if (raw_total_storage_mib != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 5, this->_internal_total_storage_mib(), target); - } - - // float recording_time_s = 6; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_recording_time_s = this->_internal_recording_time_s(); - ::uint32_t raw_recording_time_s; - memcpy(&raw_recording_time_s, &tmp_recording_time_s, sizeof(tmp_recording_time_s)); - if (raw_recording_time_s != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 6, this->_internal_recording_time_s(), target); - } - - // string media_folder_name = 7; - if (!this->_internal_media_folder_name().empty()) { - const std::string& _s = this->_internal_media_folder_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Status.media_folder_name"); - target = stream->WriteStringMaybeAliased(7, _s, target); - } - - // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; - if (this->_internal_storage_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 8, this->_internal_storage_status(), target); - } - - // uint32 storage_id = 9; - if (this->_internal_storage_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this->_internal_storage_id(), target); - } - - // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; - if (this->_internal_storage_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 10, this->_internal_storage_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Status) - return target; -} - -::size_t Status::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Status) - ::size_t total_size = 0; + {{ + "\30\0\0\0\0\0\0\21\0\0\0\0\0\0\0\0" + "mavsdk.rpc.camera.Status" + "media_folder_name" + }}, +}; +PROTOBUF_NOINLINE void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Status) + ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string media_folder_name = 7; - if (!this->_internal_media_folder_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_media_folder_name()); - } - - // bool video_on = 1; - if (this->_internal_video_on() != 0) { - total_size += 2; - } - - // bool photo_interval_on = 2; - if (this->_internal_photo_interval_on() != 0) { - total_size += 2; - } - - // float used_storage_mib = 3; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_used_storage_mib = this->_internal_used_storage_mib(); - ::uint32_t raw_used_storage_mib; - memcpy(&raw_used_storage_mib, &tmp_used_storage_mib, sizeof(tmp_used_storage_mib)); - if (raw_used_storage_mib != 0) { - total_size += 5; - } - - // float available_storage_mib = 4; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_available_storage_mib = this->_internal_available_storage_mib(); - ::uint32_t raw_available_storage_mib; - memcpy(&raw_available_storage_mib, &tmp_available_storage_mib, sizeof(tmp_available_storage_mib)); - if (raw_available_storage_mib != 0) { - total_size += 5; - } - - // float total_storage_mib = 5; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_total_storage_mib = this->_internal_total_storage_mib(); - ::uint32_t raw_total_storage_mib; - memcpy(&raw_total_storage_mib, &tmp_total_storage_mib, sizeof(tmp_total_storage_mib)); - if (raw_total_storage_mib != 0) { - total_size += 5; - } - - // float recording_time_s = 6; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_recording_time_s = this->_internal_recording_time_s(); - ::uint32_t raw_recording_time_s; - memcpy(&raw_recording_time_s, &tmp_recording_time_s, sizeof(tmp_recording_time_s)); - if (raw_recording_time_s != 0) { - total_size += 5; - } - - // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; - if (this->_internal_storage_status() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_storage_status()); - } - - // uint32 storage_id = 9; - if (this->_internal_storage_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_storage_id()); - } - - // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; - if (this->_internal_storage_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_storage_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData Status::_class_data_ = { - Status::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* Status::GetClassData() const { - return &_class_data_; + _impl_.media_folder_name_.ClearToEmpty(); + ::memset(&_impl_.video_on_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.storage_type_) - + reinterpret_cast(&_impl_.video_on_)) + sizeof(_impl_.storage_type_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -void Status::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Status::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Status& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Status::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Status& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Status) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bool video_on = 1; + if (this_._internal_video_on() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this_._internal_video_on(), target); + } + + // bool photo_interval_on = 2; + if (this_._internal_photo_interval_on() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_photo_interval_on(), target); + } + + // float used_storage_mib = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_used_storage_mib()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_used_storage_mib(), target); + } + + // float available_storage_mib = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_available_storage_mib()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_available_storage_mib(), target); + } + + // float total_storage_mib = 5; + if (::absl::bit_cast<::uint32_t>(this_._internal_total_storage_mib()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 5, this_._internal_total_storage_mib(), target); + } + + // float recording_time_s = 6; + if (::absl::bit_cast<::uint32_t>(this_._internal_recording_time_s()) != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 6, this_._internal_recording_time_s(), target); + } + + // string media_folder_name = 7; + if (!this_._internal_media_folder_name().empty()) { + const std::string& _s = this_._internal_media_folder_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Status.media_folder_name"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } + + // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; + if (this_._internal_storage_status() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 8, this_._internal_storage_status(), target); + } + + // uint32 storage_id = 9; + if (this_._internal_storage_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 9, this_._internal_storage_id(), target); + } + + // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; + if (this_._internal_storage_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 10, this_._internal_storage_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.camera.Status) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Status::ByteSizeLong(const MessageLite& base) { + const Status& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Status::ByteSizeLong() const { + const Status& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Status) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string media_folder_name = 7; + if (!this_._internal_media_folder_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_media_folder_name()); + } + // bool video_on = 1; + if (this_._internal_video_on() != 0) { + total_size += 2; + } + // bool photo_interval_on = 2; + if (this_._internal_photo_interval_on() != 0) { + total_size += 2; + } + // float used_storage_mib = 3; + if (::absl::bit_cast<::uint32_t>(this_._internal_used_storage_mib()) != 0) { + total_size += 5; + } + // float available_storage_mib = 4; + if (::absl::bit_cast<::uint32_t>(this_._internal_available_storage_mib()) != 0) { + total_size += 5; + } + // float total_storage_mib = 5; + if (::absl::bit_cast<::uint32_t>(this_._internal_total_storage_mib()) != 0) { + total_size += 5; + } + // float recording_time_s = 6; + if (::absl::bit_cast<::uint32_t>(this_._internal_recording_time_s()) != 0) { + total_size += 5; + } + // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; + if (this_._internal_storage_status() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_storage_status()); + } + // uint32 storage_id = 9; + if (this_._internal_storage_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_storage_id()); + } + // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; + if (this_._internal_storage_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_storage_type()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void Status::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Status) @@ -15456,51 +19136,31 @@ void Status::MergeImpl(::google::protobuf::Message& to_msg, const ::google::prot _this->_internal_set_media_folder_name(from._internal_media_folder_name()); } if (from._internal_video_on() != 0) { - _this->_internal_set_video_on(from._internal_video_on()); + _this->_impl_.video_on_ = from._impl_.video_on_; } if (from._internal_photo_interval_on() != 0) { - _this->_internal_set_photo_interval_on(from._internal_photo_interval_on()); + _this->_impl_.photo_interval_on_ = from._impl_.photo_interval_on_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_used_storage_mib = from._internal_used_storage_mib(); - ::uint32_t raw_used_storage_mib; - memcpy(&raw_used_storage_mib, &tmp_used_storage_mib, sizeof(tmp_used_storage_mib)); - if (raw_used_storage_mib != 0) { - _this->_internal_set_used_storage_mib(from._internal_used_storage_mib()); + if (::absl::bit_cast<::uint32_t>(from._internal_used_storage_mib()) != 0) { + _this->_impl_.used_storage_mib_ = from._impl_.used_storage_mib_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_available_storage_mib = from._internal_available_storage_mib(); - ::uint32_t raw_available_storage_mib; - memcpy(&raw_available_storage_mib, &tmp_available_storage_mib, sizeof(tmp_available_storage_mib)); - if (raw_available_storage_mib != 0) { - _this->_internal_set_available_storage_mib(from._internal_available_storage_mib()); + if (::absl::bit_cast<::uint32_t>(from._internal_available_storage_mib()) != 0) { + _this->_impl_.available_storage_mib_ = from._impl_.available_storage_mib_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_total_storage_mib = from._internal_total_storage_mib(); - ::uint32_t raw_total_storage_mib; - memcpy(&raw_total_storage_mib, &tmp_total_storage_mib, sizeof(tmp_total_storage_mib)); - if (raw_total_storage_mib != 0) { - _this->_internal_set_total_storage_mib(from._internal_total_storage_mib()); + if (::absl::bit_cast<::uint32_t>(from._internal_total_storage_mib()) != 0) { + _this->_impl_.total_storage_mib_ = from._impl_.total_storage_mib_; } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_recording_time_s = from._internal_recording_time_s(); - ::uint32_t raw_recording_time_s; - memcpy(&raw_recording_time_s, &tmp_recording_time_s, sizeof(tmp_recording_time_s)); - if (raw_recording_time_s != 0) { - _this->_internal_set_recording_time_s(from._internal_recording_time_s()); + if (::absl::bit_cast<::uint32_t>(from._internal_recording_time_s()) != 0) { + _this->_impl_.recording_time_s_ = from._impl_.recording_time_s_; } if (from._internal_storage_status() != 0) { - _this->_internal_set_storage_status(from._internal_storage_status()); + _this->_impl_.storage_status_ = from._impl_.storage_status_; } if (from._internal_storage_id() != 0) { - _this->_internal_set_storage_id(from._internal_storage_id()); + _this->_impl_.storage_id_ = from._impl_.storage_id_; } if (from._internal_storage_type() != 0) { - _this->_internal_set_storage_type(from._internal_storage_type()); + _this->_impl_.storage_type_ = from._impl_.storage_type_; } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -15512,13 +19172,7 @@ void Status::CopyFrom(const Status& from) { MergeFrom(from); } -PROTOBUF_NOINLINE bool Status::IsInitialized() const { - return true; -} -::_pbi::CachedSize* Status::AccessCachedSize() const { - return &_impl_._cached_size_; -} void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); @@ -15534,9 +19188,7 @@ void Status::InternalSwap(Status* PROTOBUF_RESTRICT other) { } ::google::protobuf::Metadata Status::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, - file_level_metadata_camera_2fcamera_2eproto[73]); + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -15545,13 +19197,17 @@ class Option::_Internal { }; Option::Option(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Option) } inline PROTOBUF_NDEBUG_INLINE Option::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) + const Impl_& from, const ::mavsdk::rpc::camera::Option& from_msg) : option_id_(arena, from.option_id_), option_description_(arena, from.option_description_), _cached_size_{0} {} @@ -15559,12 +19215,16 @@ inline PROTOBUF_NDEBUG_INLINE Option::Impl_::Impl_( Option::Option( ::google::protobuf::Arena* arena, const Option& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE Option* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.Option) } @@ -15580,35 +19240,52 @@ inline void Option::SharedCtor(::_pb::Arena* arena) { } Option::~Option() { // @@protoc_insertion_point(destructor:mavsdk.rpc.camera.Option) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Option::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.option_id_.Destroy(); - _impl_.option_description_.Destroy(); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void Option::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Option) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.option_id_.ClearToEmpty(); - _impl_.option_description_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Option::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; + SharedDtor(*this); +} +inline void Option::SharedDtor(MessageLite& self) { + Option& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.option_id_.Destroy(); + this_._impl_.option_description_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* Option::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Option(arena); +} +constexpr auto Option::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Option), + alignof(Option)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Option::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Option_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Option::MergeImpl, + ::google::protobuf::Message::GetNewImpl