diff --git a/proto b/proto index 517fef5a3a..4b3ff32ee9 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 517fef5a3a673e9b50f65a56dff350c6af515564 +Subproject commit 4b3ff32ee9e07782772504b3ab319234be7dd3b5 diff --git a/src/mavsdk/plugins/mission_raw/include/plugins/mission_raw/mission_raw.h b/src/mavsdk/plugins/mission_raw/include/plugins/mission_raw/mission_raw.h index 8a61bbc109..4269c9ab2c 100644 --- a/src/mavsdk/plugins/mission_raw/include/plugins/mission_raw/mission_raw.h +++ b/src/mavsdk/plugins/mission_raw/include/plugins/mission_raw/mission_raw.h @@ -269,6 +269,48 @@ class MissionRaw : public PluginBase { */ std::pair> download_mission() const; + /** + * @brief Callback type for download_geofence_async. + */ + using DownloadGeofenceCallback = std::function)>; + + /** + * @brief Download a list of raw geofence items from the system (asynchronous). + * + * This function is non-blocking. See 'download_geofence' for the blocking counterpart. + */ + void download_geofence_async(const DownloadGeofenceCallback callback); + + /** + * @brief Download a list of raw geofence items from the system (asynchronous). + * + * This function is blocking. See 'download_geofence_async' for the non-blocking counterpart. + * + * @return Result of request. + */ + std::pair> download_geofence() const; + + /** + * @brief Callback type for download_rallypoints_async. + */ + using DownloadRallypointsCallback = std::function)>; + + /** + * @brief Download a list of raw rallypoint items from the system (asynchronous). + * + * This function is non-blocking. See 'download_rallypoints' for the blocking counterpart. + */ + void download_rallypoints_async(const DownloadRallypointsCallback callback); + + /** + * @brief Download a list of raw rallypoint items from the system (asynchronous). + * + * This function is blocking. See 'download_rallypoints_async' for the non-blocking counterpart. + * + * @return Result of request. + */ + std::pair> download_rallypoints() const; + /** * @brief Cancel an ongoing mission download. * diff --git a/src/mavsdk/plugins/mission_raw/mission_raw.cpp b/src/mavsdk/plugins/mission_raw/mission_raw.cpp index b014cf0408..87d420fe6a 100644 --- a/src/mavsdk/plugins/mission_raw/mission_raw.cpp +++ b/src/mavsdk/plugins/mission_raw/mission_raw.cpp @@ -74,6 +74,28 @@ MissionRaw::download_mission() const return _impl->download_mission(); } +void MissionRaw::download_geofence_async(const DownloadGeofenceCallback callback) +{ + _impl->download_geofence_async(callback); +} + +std::pair> +MissionRaw::download_geofence() const +{ + return _impl->download_geofence(); +} + +void MissionRaw::download_rallypoints_async(const DownloadRallypointsCallback callback) +{ + _impl->download_rallypoints_async(callback); +} + +std::pair> +MissionRaw::download_rallypoints() const +{ + return _impl->download_rallypoints(); +} + MissionRaw::Result MissionRaw::cancel_mission_download() const { return _impl->cancel_mission_download(); diff --git a/src/mavsdk/plugins/mission_raw/mission_raw_impl.cpp b/src/mavsdk/plugins/mission_raw/mission_raw_impl.cpp index 9a85326025..7aedd9ad6d 100644 --- a/src/mavsdk/plugins/mission_raw/mission_raw_impl.cpp +++ b/src/mavsdk/plugins/mission_raw/mission_raw_impl.cpp @@ -242,6 +242,32 @@ MissionRawImpl::download_mission() return fut.get(); } +std::pair> +MissionRawImpl::download_geofence() +{ + auto prom = std::promise>>(); + auto fut = prom.get_future(); + + download_geofence_async( + [&prom](MissionRaw::Result result, std::vector geofence) { + prom.set_value(std::make_pair<>(result, geofence)); + }); + return fut.get(); +} + +std::pair> +MissionRawImpl::download_rallypoints() +{ + auto prom = std::promise>>(); + auto fut = prom.get_future(); + + download_rallypoints_async( + [&prom](MissionRaw::Result result, std::vector rallypoints) { + prom.set_value(std::make_pair<>(result, rallypoints)); + }); + return fut.get(); +} + void MissionRawImpl::download_mission_async(const MissionRaw::DownloadMissionCallback& callback) { auto work_item = _last_download.lock(); @@ -269,6 +295,61 @@ void MissionRawImpl::download_mission_async(const MissionRaw::DownloadMissionCal }); } +void MissionRawImpl::download_geofence_async(const MissionRaw::DownloadGeofenceCallback& callback) +{ + auto work_item = _last_download.lock(); + if (work_item && !work_item->is_done()) { + _system_impl->call_user_callback([callback]() { + if (callback) { + std::vector empty_items; + callback(MissionRaw::Result::Busy, empty_items); + } + }); + return; + } + + _last_download = _system_impl->mission_transfer_client().download_items_async( + MAV_MISSION_TYPE_FENCE, + _system_impl->get_system_id(), + [this, callback]( + MavlinkMissionTransferClient::Result result, + std::vector items) { + auto converted_result = convert_result(result); + auto converted_items = convert_items(items); + _system_impl->call_user_callback([callback, converted_result, converted_items]() { + callback(converted_result, converted_items); + }); + }); +} + +void MissionRawImpl::download_rallypoints_async( + const MissionRaw::DownloadRallypointsCallback& callback) +{ + auto work_item = _last_download.lock(); + if (work_item && !work_item->is_done()) { + _system_impl->call_user_callback([callback]() { + if (callback) { + std::vector empty_items; + callback(MissionRaw::Result::Busy, empty_items); + } + }); + return; + } + + _last_download = _system_impl->mission_transfer_client().download_items_async( + MAV_MISSION_TYPE_RALLY, + _system_impl->get_system_id(), + [this, callback]( + MavlinkMissionTransferClient::Result result, + std::vector items) { + auto converted_result = convert_result(result); + auto converted_items = convert_items(items); + _system_impl->call_user_callback([callback, converted_result, converted_items]() { + callback(converted_result, converted_items); + }); + }); +} + MissionRaw::Result MissionRawImpl::cancel_mission_download() { auto ptr = _last_download.lock(); diff --git a/src/mavsdk/plugins/mission_raw/mission_raw_impl.h b/src/mavsdk/plugins/mission_raw/mission_raw_impl.h index aa0728f891..a3893ca9e1 100644 --- a/src/mavsdk/plugins/mission_raw/mission_raw_impl.h +++ b/src/mavsdk/plugins/mission_raw/mission_raw_impl.h @@ -23,7 +23,11 @@ class MissionRawImpl : public PluginImplBase { void disable() override; std::pair> download_mission(); + std::pair> download_geofence(); + std::pair> download_rallypoints(); void download_mission_async(const MissionRaw::DownloadMissionCallback& callback); + void download_geofence_async(const MissionRaw::DownloadMissionCallback& callback); + void download_rallypoints_async(const MissionRaw::DownloadMissionCallback& callback); MissionRaw::Result cancel_mission_download(); MissionRaw::Result upload_mission(std::vector mission_items); diff --git a/src/mavsdk_server/src/generated/mission_raw/mission_raw.grpc.pb.cc b/src/mavsdk_server/src/generated/mission_raw/mission_raw.grpc.pb.cc index 546da01702..0b60d9d5fb 100644 --- a/src/mavsdk_server/src/generated/mission_raw/mission_raw.grpc.pb.cc +++ b/src/mavsdk_server/src/generated/mission_raw/mission_raw.grpc.pb.cc @@ -29,6 +29,8 @@ static const char* MissionRawService_method_names[] = { "/mavsdk.rpc.mission_raw.MissionRawService/UploadRallyPoints", "/mavsdk.rpc.mission_raw.MissionRawService/CancelMissionUpload", "/mavsdk.rpc.mission_raw.MissionRawService/DownloadMission", + "/mavsdk.rpc.mission_raw.MissionRawService/DownloadGeofence", + "/mavsdk.rpc.mission_raw.MissionRawService/DownloadRallypoints", "/mavsdk.rpc.mission_raw.MissionRawService/CancelMissionDownload", "/mavsdk.rpc.mission_raw.MissionRawService/StartMission", "/mavsdk.rpc.mission_raw.MissionRawService/PauseMission", @@ -52,15 +54,17 @@ MissionRawService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& , rpcmethod_UploadRallyPoints_(MissionRawService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_CancelMissionUpload_(MissionRawService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_DownloadMission_(MissionRawService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CancelMissionDownload_(MissionRawService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_StartMission_(MissionRawService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PauseMission_(MissionRawService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ClearMission_(MissionRawService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetCurrentMissionItem_(MissionRawService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SubscribeMissionProgress_(MissionRawService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_SubscribeMissionChanged_(MissionRawService_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_ImportQgroundcontrolMission_(MissionRawService_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ImportQgroundcontrolMissionFromString_(MissionRawService_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DownloadGeofence_(MissionRawService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DownloadRallypoints_(MissionRawService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CancelMissionDownload_(MissionRawService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_StartMission_(MissionRawService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PauseMission_(MissionRawService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ClearMission_(MissionRawService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetCurrentMissionItem_(MissionRawService_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SubscribeMissionProgress_(MissionRawService_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_SubscribeMissionChanged_(MissionRawService_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_ImportQgroundcontrolMission_(MissionRawService_method_names[14], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ImportQgroundcontrolMissionFromString_(MissionRawService_method_names[15], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status MissionRawService::Stub::UploadMission(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::UploadMissionRequest& request, ::mavsdk::rpc::mission_raw::UploadMissionResponse* response) { @@ -178,6 +182,52 @@ ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadMissionRe return result; } +::grpc::Status MissionRawService::Stub::DownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DownloadGeofence_, context, request, response); +} + +void MissionRawService::Stub::async::DownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DownloadGeofence_, context, request, response, std::move(f)); +} + +void MissionRawService::Stub::async::DownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DownloadGeofence_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>* MissionRawService::Stub::PrepareAsyncDownloadGeofenceRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse, ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DownloadGeofence_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>* MissionRawService::Stub::AsyncDownloadGeofenceRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDownloadGeofenceRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status MissionRawService::Stub::DownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DownloadRallypoints_, context, request, response); +} + +void MissionRawService::Stub::async::DownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DownloadRallypoints_, context, request, response, std::move(f)); +} + +void MissionRawService::Stub::async::DownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DownloadRallypoints_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>* MissionRawService::Stub::PrepareAsyncDownloadRallypointsRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse, ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DownloadRallypoints_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>* MissionRawService::Stub::AsyncDownloadRallypointsRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDownloadRallypointsRaw(context, request, cq); + result->StartCall(); + return result; +} + ::grpc::Status MissionRawService::Stub::CancelMissionDownload(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest& request, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CancelMissionDownload_, context, request, response); } @@ -425,6 +475,26 @@ MissionRawService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MissionRawService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MissionRawService::Service, ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MissionRawService::Service* service, + ::grpc::ServerContext* ctx, + const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* req, + ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* resp) { + return service->DownloadGeofence(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MissionRawService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MissionRawService::Service, ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MissionRawService::Service* service, + ::grpc::ServerContext* ctx, + const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* req, + ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* resp) { + return service->DownloadRallypoints(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MissionRawService_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MissionRawService::Service, ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MissionRawService::Service* service, ::grpc::ServerContext* ctx, @@ -433,7 +503,7 @@ MissionRawService::Service::Service() { return service->CancelMissionDownload(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MissionRawService_method_names[6], + MissionRawService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MissionRawService::Service, ::mavsdk::rpc::mission_raw::StartMissionRequest, ::mavsdk::rpc::mission_raw::StartMissionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MissionRawService::Service* service, @@ -443,7 +513,7 @@ MissionRawService::Service::Service() { return service->StartMission(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MissionRawService_method_names[7], + MissionRawService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MissionRawService::Service, ::mavsdk::rpc::mission_raw::PauseMissionRequest, ::mavsdk::rpc::mission_raw::PauseMissionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MissionRawService::Service* service, @@ -453,7 +523,7 @@ MissionRawService::Service::Service() { return service->PauseMission(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MissionRawService_method_names[8], + MissionRawService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MissionRawService::Service, ::mavsdk::rpc::mission_raw::ClearMissionRequest, ::mavsdk::rpc::mission_raw::ClearMissionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MissionRawService::Service* service, @@ -463,7 +533,7 @@ MissionRawService::Service::Service() { return service->ClearMission(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MissionRawService_method_names[9], + MissionRawService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MissionRawService::Service, ::mavsdk::rpc::mission_raw::SetCurrentMissionItemRequest, ::mavsdk::rpc::mission_raw::SetCurrentMissionItemResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MissionRawService::Service* service, @@ -473,7 +543,7 @@ MissionRawService::Service::Service() { return service->SetCurrentMissionItem(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MissionRawService_method_names[10], + MissionRawService_method_names[12], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< MissionRawService::Service, ::mavsdk::rpc::mission_raw::SubscribeMissionProgressRequest, ::mavsdk::rpc::mission_raw::MissionProgressResponse>( [](MissionRawService::Service* service, @@ -483,7 +553,7 @@ MissionRawService::Service::Service() { return service->SubscribeMissionProgress(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MissionRawService_method_names[11], + MissionRawService_method_names[13], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< MissionRawService::Service, ::mavsdk::rpc::mission_raw::SubscribeMissionChangedRequest, ::mavsdk::rpc::mission_raw::MissionChangedResponse>( [](MissionRawService::Service* service, @@ -493,7 +563,7 @@ MissionRawService::Service::Service() { return service->SubscribeMissionChanged(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MissionRawService_method_names[12], + MissionRawService_method_names[14], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MissionRawService::Service, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionRequest, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MissionRawService::Service* service, @@ -503,7 +573,7 @@ MissionRawService::Service::Service() { return service->ImportQgroundcontrolMission(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MissionRawService_method_names[13], + MissionRawService_method_names[15], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MissionRawService::Service, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringRequest, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](MissionRawService::Service* service, @@ -552,6 +622,20 @@ ::grpc::Status MissionRawService::Service::DownloadMission(::grpc::ServerContext return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status MissionRawService::Service::DownloadGeofence(::grpc::ServerContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MissionRawService::Service::DownloadRallypoints(::grpc::ServerContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status MissionRawService::Service::CancelMissionDownload(::grpc::ServerContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest* request, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse* response) { (void) context; (void) request; diff --git a/src/mavsdk_server/src/generated/mission_raw/mission_raw.grpc.pb.h b/src/mavsdk_server/src/generated/mission_raw/mission_raw.grpc.pb.h index 76deb5116b..81bea770e7 100644 --- a/src/mavsdk_server/src/generated/mission_raw/mission_raw.grpc.pb.h +++ b/src/mavsdk_server/src/generated/mission_raw/mission_raw.grpc.pb.h @@ -87,6 +87,24 @@ class MissionRawService final { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadMissionResponse>>(PrepareAsyncDownloadMissionRaw(context, request, cq)); } // + // Download a list of raw geofence items from the system (asynchronous). + virtual ::grpc::Status DownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>> AsyncDownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>>(AsyncDownloadGeofenceRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>> PrepareAsyncDownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>>(PrepareAsyncDownloadGeofenceRaw(context, request, cq)); + } + // + // Download a list of raw rallypoint items from the system (asynchronous). + virtual ::grpc::Status DownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>> AsyncDownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>>(AsyncDownloadRallypointsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>> PrepareAsyncDownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>>(PrepareAsyncDownloadRallypointsRaw(context, request, cq)); + } + // // Cancel an ongoing mission download. virtual ::grpc::Status CancelMissionDownload(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest& request, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>> AsyncCancelMissionDownload(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest& request, ::grpc::CompletionQueue* cq) { @@ -225,6 +243,14 @@ class MissionRawService final { virtual void DownloadMission(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadMissionRequest* request, ::mavsdk::rpc::mission_raw::DownloadMissionResponse* response, std::function) = 0; virtual void DownloadMission(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadMissionRequest* request, ::mavsdk::rpc::mission_raw::DownloadMissionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // + // Download a list of raw geofence items from the system (asynchronous). + virtual void DownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response, std::function) = 0; + virtual void DownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // + // Download a list of raw rallypoint items from the system (asynchronous). + virtual void DownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response, std::function) = 0; + virtual void DownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // // Cancel an ongoing mission download. virtual void CancelMissionDownload(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest* request, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse* response, std::function) = 0; virtual void CancelMissionDownload(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest* request, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; @@ -300,6 +326,10 @@ class MissionRawService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::CancelMissionUploadResponse>* PrepareAsyncCancelMissionUploadRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionUploadRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadMissionResponse>* AsyncDownloadMissionRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadMissionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadMissionResponse>* PrepareAsyncDownloadMissionRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadMissionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>* AsyncDownloadGeofenceRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>* PrepareAsyncDownloadGeofenceRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>* AsyncDownloadRallypointsRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>* PrepareAsyncDownloadRallypointsRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>* AsyncCancelMissionDownloadRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>* PrepareAsyncCancelMissionDownloadRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::mission_raw::StartMissionResponse>* AsyncStartMissionRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::StartMissionRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -359,6 +389,20 @@ class MissionRawService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadMissionResponse>> PrepareAsyncDownloadMission(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadMissionRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadMissionResponse>>(PrepareAsyncDownloadMissionRaw(context, request, cq)); } + ::grpc::Status DownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>> AsyncDownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>>(AsyncDownloadGeofenceRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>> PrepareAsyncDownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>>(PrepareAsyncDownloadGeofenceRaw(context, request, cq)); + } + ::grpc::Status DownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>> AsyncDownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>>(AsyncDownloadRallypointsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>> PrepareAsyncDownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>>(PrepareAsyncDownloadRallypointsRaw(context, request, cq)); + } ::grpc::Status CancelMissionDownload(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest& request, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>> AsyncCancelMissionDownload(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>>(AsyncCancelMissionDownloadRaw(context, request, cq)); @@ -439,6 +483,10 @@ class MissionRawService final { void CancelMissionUpload(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionUploadRequest* request, ::mavsdk::rpc::mission_raw::CancelMissionUploadResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void DownloadMission(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadMissionRequest* request, ::mavsdk::rpc::mission_raw::DownloadMissionResponse* response, std::function) override; void DownloadMission(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadMissionRequest* request, ::mavsdk::rpc::mission_raw::DownloadMissionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void DownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response, std::function) override; + void DownloadGeofence(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void DownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response, std::function) override; + void DownloadRallypoints(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void CancelMissionDownload(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest* request, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse* response, std::function) override; void CancelMissionDownload(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest* request, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void StartMission(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::StartMissionRequest* request, ::mavsdk::rpc::mission_raw::StartMissionResponse* response, std::function) override; @@ -476,6 +524,10 @@ class MissionRawService final { ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::CancelMissionUploadResponse>* PrepareAsyncCancelMissionUploadRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionUploadRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadMissionResponse>* AsyncDownloadMissionRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadMissionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadMissionResponse>* PrepareAsyncDownloadMissionRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadMissionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>* AsyncDownloadGeofenceRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>* PrepareAsyncDownloadGeofenceRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>* AsyncDownloadRallypointsRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>* PrepareAsyncDownloadRallypointsRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>* AsyncCancelMissionDownloadRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>* PrepareAsyncCancelMissionDownloadRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::mission_raw::StartMissionResponse>* AsyncStartMissionRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::mission_raw::StartMissionRequest& request, ::grpc::CompletionQueue* cq) override; @@ -501,6 +553,8 @@ class MissionRawService final { const ::grpc::internal::RpcMethod rpcmethod_UploadRallyPoints_; const ::grpc::internal::RpcMethod rpcmethod_CancelMissionUpload_; const ::grpc::internal::RpcMethod rpcmethod_DownloadMission_; + const ::grpc::internal::RpcMethod rpcmethod_DownloadGeofence_; + const ::grpc::internal::RpcMethod rpcmethod_DownloadRallypoints_; const ::grpc::internal::RpcMethod rpcmethod_CancelMissionDownload_; const ::grpc::internal::RpcMethod rpcmethod_StartMission_; const ::grpc::internal::RpcMethod rpcmethod_PauseMission_; @@ -536,6 +590,12 @@ class MissionRawService final { // Download a list of raw mission items from the system (asynchronous). virtual ::grpc::Status DownloadMission(::grpc::ServerContext* context, const ::mavsdk::rpc::mission_raw::DownloadMissionRequest* request, ::mavsdk::rpc::mission_raw::DownloadMissionResponse* response); // + // Download a list of raw geofence items from the system (asynchronous). + virtual ::grpc::Status DownloadGeofence(::grpc::ServerContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response); + // + // Download a list of raw rallypoint items from the system (asynchronous). + virtual ::grpc::Status DownloadRallypoints(::grpc::ServerContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response); + // // Cancel an ongoing mission download. virtual ::grpc::Status CancelMissionDownload(::grpc::ServerContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest* request, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse* response); // @@ -691,12 +751,52 @@ class MissionRawService final { } }; template + class WithAsyncMethod_DownloadGeofence : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DownloadGeofence() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_DownloadGeofence() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DownloadGeofence(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDownloadGeofence(::grpc::ServerContext* context, ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DownloadRallypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DownloadRallypoints() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_DownloadRallypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DownloadRallypoints(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDownloadRallypoints(::grpc::ServerContext* context, ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_CancelMissionDownload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_CancelMissionDownload() { - ::grpc::Service::MarkMethodAsync(5); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_CancelMissionDownload() override { BaseClassMustBeDerivedFromService(this); @@ -707,7 +807,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCancelMissionDownload(::grpc::ServerContext* context, ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -716,7 +816,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_StartMission() { - ::grpc::Service::MarkMethodAsync(6); + ::grpc::Service::MarkMethodAsync(8); } ~WithAsyncMethod_StartMission() override { BaseClassMustBeDerivedFromService(this); @@ -727,7 +827,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStartMission(::grpc::ServerContext* context, ::mavsdk::rpc::mission_raw::StartMissionRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::mission_raw::StartMissionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -736,7 +836,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_PauseMission() { - ::grpc::Service::MarkMethodAsync(7); + ::grpc::Service::MarkMethodAsync(9); } ~WithAsyncMethod_PauseMission() override { BaseClassMustBeDerivedFromService(this); @@ -747,7 +847,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPauseMission(::grpc::ServerContext* context, ::mavsdk::rpc::mission_raw::PauseMissionRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::mission_raw::PauseMissionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -756,7 +856,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ClearMission() { - ::grpc::Service::MarkMethodAsync(8); + ::grpc::Service::MarkMethodAsync(10); } ~WithAsyncMethod_ClearMission() override { BaseClassMustBeDerivedFromService(this); @@ -767,7 +867,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestClearMission(::grpc::ServerContext* context, ::mavsdk::rpc::mission_raw::ClearMissionRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::mission_raw::ClearMissionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -776,7 +876,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SetCurrentMissionItem() { - ::grpc::Service::MarkMethodAsync(9); + ::grpc::Service::MarkMethodAsync(11); } ~WithAsyncMethod_SetCurrentMissionItem() override { BaseClassMustBeDerivedFromService(this); @@ -787,7 +887,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetCurrentMissionItem(::grpc::ServerContext* context, ::mavsdk::rpc::mission_raw::SetCurrentMissionItemRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::mission_raw::SetCurrentMissionItemResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -796,7 +896,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SubscribeMissionProgress() { - ::grpc::Service::MarkMethodAsync(10); + ::grpc::Service::MarkMethodAsync(12); } ~WithAsyncMethod_SubscribeMissionProgress() override { BaseClassMustBeDerivedFromService(this); @@ -807,7 +907,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSubscribeMissionProgress(::grpc::ServerContext* context, ::mavsdk::rpc::mission_raw::SubscribeMissionProgressRequest* request, ::grpc::ServerAsyncWriter< ::mavsdk::rpc::mission_raw::MissionProgressResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(10, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(12, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -816,7 +916,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SubscribeMissionChanged() { - ::grpc::Service::MarkMethodAsync(11); + ::grpc::Service::MarkMethodAsync(13); } ~WithAsyncMethod_SubscribeMissionChanged() override { BaseClassMustBeDerivedFromService(this); @@ -827,7 +927,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSubscribeMissionChanged(::grpc::ServerContext* context, ::mavsdk::rpc::mission_raw::SubscribeMissionChangedRequest* request, ::grpc::ServerAsyncWriter< ::mavsdk::rpc::mission_raw::MissionChangedResponse>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(11, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(13, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -836,7 +936,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ImportQgroundcontrolMission() { - ::grpc::Service::MarkMethodAsync(12); + ::grpc::Service::MarkMethodAsync(14); } ~WithAsyncMethod_ImportQgroundcontrolMission() override { BaseClassMustBeDerivedFromService(this); @@ -847,7 +947,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestImportQgroundcontrolMission(::grpc::ServerContext* context, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -856,7 +956,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ImportQgroundcontrolMissionFromString() { - ::grpc::Service::MarkMethodAsync(13); + ::grpc::Service::MarkMethodAsync(15); } ~WithAsyncMethod_ImportQgroundcontrolMissionFromString() override { BaseClassMustBeDerivedFromService(this); @@ -867,10 +967,10 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestImportQgroundcontrolMissionFromString(::grpc::ServerContext* context, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_UploadMission > > > > > > > > > > > > > AsyncService; + typedef WithAsyncMethod_UploadMission > > > > > > > > > > > > > > > AsyncService; template class WithCallbackMethod_UploadMission : public BaseClass { private: @@ -1007,18 +1107,72 @@ class MissionRawService final { ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadMissionRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadMissionResponse* /*response*/) { return nullptr; } }; template + class WithCallbackMethod_DownloadGeofence : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DownloadGeofence() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* request, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* response) { return this->DownloadGeofence(context, request, response); }));} + void SetMessageAllocatorFor_DownloadGeofence( + ::grpc::MessageAllocator< ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DownloadGeofence() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DownloadGeofence(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DownloadGeofence( + ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DownloadRallypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DownloadRallypoints() { + ::grpc::Service::MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* request, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* response) { return this->DownloadRallypoints(context, request, response); }));} + void SetMessageAllocatorFor_DownloadRallypoints( + ::grpc::MessageAllocator< ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DownloadRallypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DownloadRallypoints(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DownloadRallypoints( + ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* /*response*/) { return nullptr; } + }; + template class WithCallbackMethod_CancelMissionDownload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_CancelMissionDownload() { - ::grpc::Service::MarkMethodCallback(5, + ::grpc::Service::MarkMethodCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest* request, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse* response) { return this->CancelMissionDownload(context, request, response); }));} void SetMessageAllocatorFor_CancelMissionDownload( ::grpc::MessageAllocator< ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1039,13 +1193,13 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_StartMission() { - ::grpc::Service::MarkMethodCallback(6, + ::grpc::Service::MarkMethodCallback(8, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::StartMissionRequest, ::mavsdk::rpc::mission_raw::StartMissionResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::mission_raw::StartMissionRequest* request, ::mavsdk::rpc::mission_raw::StartMissionResponse* response) { return this->StartMission(context, request, response); }));} void SetMessageAllocatorFor_StartMission( ::grpc::MessageAllocator< ::mavsdk::rpc::mission_raw::StartMissionRequest, ::mavsdk::rpc::mission_raw::StartMissionResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::StartMissionRequest, ::mavsdk::rpc::mission_raw::StartMissionResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1066,13 +1220,13 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_PauseMission() { - ::grpc::Service::MarkMethodCallback(7, + ::grpc::Service::MarkMethodCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::PauseMissionRequest, ::mavsdk::rpc::mission_raw::PauseMissionResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::mission_raw::PauseMissionRequest* request, ::mavsdk::rpc::mission_raw::PauseMissionResponse* response) { return this->PauseMission(context, request, response); }));} void SetMessageAllocatorFor_PauseMission( ::grpc::MessageAllocator< ::mavsdk::rpc::mission_raw::PauseMissionRequest, ::mavsdk::rpc::mission_raw::PauseMissionResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::PauseMissionRequest, ::mavsdk::rpc::mission_raw::PauseMissionResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1093,13 +1247,13 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_ClearMission() { - ::grpc::Service::MarkMethodCallback(8, + ::grpc::Service::MarkMethodCallback(10, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::ClearMissionRequest, ::mavsdk::rpc::mission_raw::ClearMissionResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::mission_raw::ClearMissionRequest* request, ::mavsdk::rpc::mission_raw::ClearMissionResponse* response) { return this->ClearMission(context, request, response); }));} void SetMessageAllocatorFor_ClearMission( ::grpc::MessageAllocator< ::mavsdk::rpc::mission_raw::ClearMissionRequest, ::mavsdk::rpc::mission_raw::ClearMissionResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::ClearMissionRequest, ::mavsdk::rpc::mission_raw::ClearMissionResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1120,13 +1274,13 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SetCurrentMissionItem() { - ::grpc::Service::MarkMethodCallback(9, + ::grpc::Service::MarkMethodCallback(11, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::SetCurrentMissionItemRequest, ::mavsdk::rpc::mission_raw::SetCurrentMissionItemResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::mission_raw::SetCurrentMissionItemRequest* request, ::mavsdk::rpc::mission_raw::SetCurrentMissionItemResponse* response) { return this->SetCurrentMissionItem(context, request, response); }));} void SetMessageAllocatorFor_SetCurrentMissionItem( ::grpc::MessageAllocator< ::mavsdk::rpc::mission_raw::SetCurrentMissionItemRequest, ::mavsdk::rpc::mission_raw::SetCurrentMissionItemResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::SetCurrentMissionItemRequest, ::mavsdk::rpc::mission_raw::SetCurrentMissionItemResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1147,7 +1301,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SubscribeMissionProgress() { - ::grpc::Service::MarkMethodCallback(10, + ::grpc::Service::MarkMethodCallback(12, new ::grpc::internal::CallbackServerStreamingHandler< ::mavsdk::rpc::mission_raw::SubscribeMissionProgressRequest, ::mavsdk::rpc::mission_raw::MissionProgressResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::mission_raw::SubscribeMissionProgressRequest* request) { return this->SubscribeMissionProgress(context, request); })); @@ -1169,7 +1323,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SubscribeMissionChanged() { - ::grpc::Service::MarkMethodCallback(11, + ::grpc::Service::MarkMethodCallback(13, new ::grpc::internal::CallbackServerStreamingHandler< ::mavsdk::rpc::mission_raw::SubscribeMissionChangedRequest, ::mavsdk::rpc::mission_raw::MissionChangedResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::mission_raw::SubscribeMissionChangedRequest* request) { return this->SubscribeMissionChanged(context, request); })); @@ -1191,13 +1345,13 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_ImportQgroundcontrolMission() { - ::grpc::Service::MarkMethodCallback(12, + ::grpc::Service::MarkMethodCallback(14, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionRequest, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionRequest* request, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionResponse* response) { return this->ImportQgroundcontrolMission(context, request, response); }));} void SetMessageAllocatorFor_ImportQgroundcontrolMission( ::grpc::MessageAllocator< ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionRequest, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionRequest, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1218,13 +1372,13 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_ImportQgroundcontrolMissionFromString() { - ::grpc::Service::MarkMethodCallback(13, + ::grpc::Service::MarkMethodCallback(15, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringRequest, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringRequest* request, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringResponse* response) { return this->ImportQgroundcontrolMissionFromString(context, request, response); }));} void SetMessageAllocatorFor_ImportQgroundcontrolMissionFromString( ::grpc::MessageAllocator< ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringRequest, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(15); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringRequest, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1239,7 +1393,7 @@ class MissionRawService final { virtual ::grpc::ServerUnaryReactor* ImportQgroundcontrolMissionFromString( ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringRequest* /*request*/, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_UploadMission > > > > > > > > > > > > > CallbackService; + typedef WithCallbackMethod_UploadMission > > > > > > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_UploadMission : public BaseClass { @@ -1327,12 +1481,46 @@ class MissionRawService final { } }; template + class WithGenericMethod_DownloadGeofence : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DownloadGeofence() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_DownloadGeofence() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DownloadGeofence(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DownloadRallypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DownloadRallypoints() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_DownloadRallypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DownloadRallypoints(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_CancelMissionDownload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_CancelMissionDownload() { - ::grpc::Service::MarkMethodGeneric(5); + ::grpc::Service::MarkMethodGeneric(7); } ~WithGenericMethod_CancelMissionDownload() override { BaseClassMustBeDerivedFromService(this); @@ -1349,7 +1537,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_StartMission() { - ::grpc::Service::MarkMethodGeneric(6); + ::grpc::Service::MarkMethodGeneric(8); } ~WithGenericMethod_StartMission() override { BaseClassMustBeDerivedFromService(this); @@ -1366,7 +1554,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_PauseMission() { - ::grpc::Service::MarkMethodGeneric(7); + ::grpc::Service::MarkMethodGeneric(9); } ~WithGenericMethod_PauseMission() override { BaseClassMustBeDerivedFromService(this); @@ -1383,7 +1571,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ClearMission() { - ::grpc::Service::MarkMethodGeneric(8); + ::grpc::Service::MarkMethodGeneric(10); } ~WithGenericMethod_ClearMission() override { BaseClassMustBeDerivedFromService(this); @@ -1400,7 +1588,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SetCurrentMissionItem() { - ::grpc::Service::MarkMethodGeneric(9); + ::grpc::Service::MarkMethodGeneric(11); } ~WithGenericMethod_SetCurrentMissionItem() override { BaseClassMustBeDerivedFromService(this); @@ -1417,7 +1605,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SubscribeMissionProgress() { - ::grpc::Service::MarkMethodGeneric(10); + ::grpc::Service::MarkMethodGeneric(12); } ~WithGenericMethod_SubscribeMissionProgress() override { BaseClassMustBeDerivedFromService(this); @@ -1434,7 +1622,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SubscribeMissionChanged() { - ::grpc::Service::MarkMethodGeneric(11); + ::grpc::Service::MarkMethodGeneric(13); } ~WithGenericMethod_SubscribeMissionChanged() override { BaseClassMustBeDerivedFromService(this); @@ -1451,7 +1639,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ImportQgroundcontrolMission() { - ::grpc::Service::MarkMethodGeneric(12); + ::grpc::Service::MarkMethodGeneric(14); } ~WithGenericMethod_ImportQgroundcontrolMission() override { BaseClassMustBeDerivedFromService(this); @@ -1468,7 +1656,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ImportQgroundcontrolMissionFromString() { - ::grpc::Service::MarkMethodGeneric(13); + ::grpc::Service::MarkMethodGeneric(15); } ~WithGenericMethod_ImportQgroundcontrolMissionFromString() override { BaseClassMustBeDerivedFromService(this); @@ -1580,12 +1768,52 @@ class MissionRawService final { } }; template + class WithRawMethod_DownloadGeofence : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DownloadGeofence() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_DownloadGeofence() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DownloadGeofence(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDownloadGeofence(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DownloadRallypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DownloadRallypoints() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_DownloadRallypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DownloadRallypoints(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDownloadRallypoints(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_CancelMissionDownload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_CancelMissionDownload() { - ::grpc::Service::MarkMethodRaw(5); + ::grpc::Service::MarkMethodRaw(7); } ~WithRawMethod_CancelMissionDownload() override { BaseClassMustBeDerivedFromService(this); @@ -1596,7 +1824,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCancelMissionDownload(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1605,7 +1833,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_StartMission() { - ::grpc::Service::MarkMethodRaw(6); + ::grpc::Service::MarkMethodRaw(8); } ~WithRawMethod_StartMission() override { BaseClassMustBeDerivedFromService(this); @@ -1616,7 +1844,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestStartMission(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1625,7 +1853,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_PauseMission() { - ::grpc::Service::MarkMethodRaw(7); + ::grpc::Service::MarkMethodRaw(9); } ~WithRawMethod_PauseMission() override { BaseClassMustBeDerivedFromService(this); @@ -1636,7 +1864,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPauseMission(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1645,7 +1873,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ClearMission() { - ::grpc::Service::MarkMethodRaw(8); + ::grpc::Service::MarkMethodRaw(10); } ~WithRawMethod_ClearMission() override { BaseClassMustBeDerivedFromService(this); @@ -1656,7 +1884,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestClearMission(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1665,7 +1893,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SetCurrentMissionItem() { - ::grpc::Service::MarkMethodRaw(9); + ::grpc::Service::MarkMethodRaw(11); } ~WithRawMethod_SetCurrentMissionItem() override { BaseClassMustBeDerivedFromService(this); @@ -1676,7 +1904,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetCurrentMissionItem(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1685,7 +1913,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SubscribeMissionProgress() { - ::grpc::Service::MarkMethodRaw(10); + ::grpc::Service::MarkMethodRaw(12); } ~WithRawMethod_SubscribeMissionProgress() override { BaseClassMustBeDerivedFromService(this); @@ -1696,7 +1924,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSubscribeMissionProgress(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(10, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(12, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -1705,7 +1933,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SubscribeMissionChanged() { - ::grpc::Service::MarkMethodRaw(11); + ::grpc::Service::MarkMethodRaw(13); } ~WithRawMethod_SubscribeMissionChanged() override { BaseClassMustBeDerivedFromService(this); @@ -1716,7 +1944,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSubscribeMissionChanged(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(11, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(13, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -1725,7 +1953,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ImportQgroundcontrolMission() { - ::grpc::Service::MarkMethodRaw(12); + ::grpc::Service::MarkMethodRaw(14); } ~WithRawMethod_ImportQgroundcontrolMission() override { BaseClassMustBeDerivedFromService(this); @@ -1736,7 +1964,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestImportQgroundcontrolMission(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1745,7 +1973,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ImportQgroundcontrolMissionFromString() { - ::grpc::Service::MarkMethodRaw(13); + ::grpc::Service::MarkMethodRaw(15); } ~WithRawMethod_ImportQgroundcontrolMissionFromString() override { BaseClassMustBeDerivedFromService(this); @@ -1756,7 +1984,7 @@ class MissionRawService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestImportQgroundcontrolMissionFromString(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1870,12 +2098,56 @@ class MissionRawService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_DownloadGeofence : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DownloadGeofence() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DownloadGeofence(context, request, response); })); + } + ~WithRawCallbackMethod_DownloadGeofence() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DownloadGeofence(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DownloadGeofence( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DownloadRallypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DownloadRallypoints() { + ::grpc::Service::MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DownloadRallypoints(context, request, response); })); + } + ~WithRawCallbackMethod_DownloadRallypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DownloadRallypoints(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DownloadRallypoints( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithRawCallbackMethod_CancelMissionDownload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_CancelMissionDownload() { - ::grpc::Service::MarkMethodRawCallback(5, + ::grpc::Service::MarkMethodRawCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CancelMissionDownload(context, request, response); })); @@ -1897,7 +2169,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_StartMission() { - ::grpc::Service::MarkMethodRawCallback(6, + ::grpc::Service::MarkMethodRawCallback(8, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->StartMission(context, request, response); })); @@ -1919,7 +2191,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_PauseMission() { - ::grpc::Service::MarkMethodRawCallback(7, + ::grpc::Service::MarkMethodRawCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PauseMission(context, request, response); })); @@ -1941,7 +2213,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_ClearMission() { - ::grpc::Service::MarkMethodRawCallback(8, + ::grpc::Service::MarkMethodRawCallback(10, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ClearMission(context, request, response); })); @@ -1963,7 +2235,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SetCurrentMissionItem() { - ::grpc::Service::MarkMethodRawCallback(9, + ::grpc::Service::MarkMethodRawCallback(11, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetCurrentMissionItem(context, request, response); })); @@ -1985,7 +2257,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SubscribeMissionProgress() { - ::grpc::Service::MarkMethodRawCallback(10, + ::grpc::Service::MarkMethodRawCallback(12, new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->SubscribeMissionProgress(context, request); })); @@ -2007,7 +2279,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SubscribeMissionChanged() { - ::grpc::Service::MarkMethodRawCallback(11, + ::grpc::Service::MarkMethodRawCallback(13, new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->SubscribeMissionChanged(context, request); })); @@ -2029,7 +2301,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_ImportQgroundcontrolMission() { - ::grpc::Service::MarkMethodRawCallback(12, + ::grpc::Service::MarkMethodRawCallback(14, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ImportQgroundcontrolMission(context, request, response); })); @@ -2051,7 +2323,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_ImportQgroundcontrolMissionFromString() { - ::grpc::Service::MarkMethodRawCallback(13, + ::grpc::Service::MarkMethodRawCallback(15, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ImportQgroundcontrolMissionFromString(context, request, response); })); @@ -2203,12 +2475,66 @@ class MissionRawService final { virtual ::grpc::Status StreamedDownloadMission(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::mission_raw::DownloadMissionRequest,::mavsdk::rpc::mission_raw::DownloadMissionResponse>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_DownloadGeofence : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DownloadGeofence() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>* streamer) { + return this->StreamedDownloadGeofence(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DownloadGeofence() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DownloadGeofence(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadGeofenceResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDownloadGeofence(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::mission_raw::DownloadGeofenceRequest,::mavsdk::rpc::mission_raw::DownloadGeofenceResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DownloadRallypoints : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DownloadRallypoints() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< + ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>* streamer) { + return this->StreamedDownloadRallypoints(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DownloadRallypoints() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DownloadRallypoints(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest* /*request*/, ::mavsdk::rpc::mission_raw::DownloadRallypointsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDownloadRallypoints(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::mission_raw::DownloadRallypointsRequest,::mavsdk::rpc::mission_raw::DownloadRallypointsResponse>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_CancelMissionDownload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_CancelMissionDownload() { - ::grpc::Service::MarkMethodStreamed(5, + ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest, ::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse>( [this](::grpc::ServerContext* context, @@ -2235,7 +2561,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_StartMission() { - ::grpc::Service::MarkMethodStreamed(6, + ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::mission_raw::StartMissionRequest, ::mavsdk::rpc::mission_raw::StartMissionResponse>( [this](::grpc::ServerContext* context, @@ -2262,7 +2588,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_PauseMission() { - ::grpc::Service::MarkMethodStreamed(7, + ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::mission_raw::PauseMissionRequest, ::mavsdk::rpc::mission_raw::PauseMissionResponse>( [this](::grpc::ServerContext* context, @@ -2289,7 +2615,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ClearMission() { - ::grpc::Service::MarkMethodStreamed(8, + ::grpc::Service::MarkMethodStreamed(10, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::mission_raw::ClearMissionRequest, ::mavsdk::rpc::mission_raw::ClearMissionResponse>( [this](::grpc::ServerContext* context, @@ -2316,7 +2642,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SetCurrentMissionItem() { - ::grpc::Service::MarkMethodStreamed(9, + ::grpc::Service::MarkMethodStreamed(11, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::mission_raw::SetCurrentMissionItemRequest, ::mavsdk::rpc::mission_raw::SetCurrentMissionItemResponse>( [this](::grpc::ServerContext* context, @@ -2343,7 +2669,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ImportQgroundcontrolMission() { - ::grpc::Service::MarkMethodStreamed(12, + ::grpc::Service::MarkMethodStreamed(14, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionRequest, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionResponse>( [this](::grpc::ServerContext* context, @@ -2370,7 +2696,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ImportQgroundcontrolMissionFromString() { - ::grpc::Service::MarkMethodStreamed(13, + ::grpc::Service::MarkMethodStreamed(15, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringRequest, ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringResponse>( [this](::grpc::ServerContext* context, @@ -2391,14 +2717,14 @@ class MissionRawService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedImportQgroundcontrolMissionFromString(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringRequest,::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_UploadMission > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_UploadMission > > > > > > > > > > > > > StreamedUnaryService; template class WithSplitStreamingMethod_SubscribeMissionProgress : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithSplitStreamingMethod_SubscribeMissionProgress() { - ::grpc::Service::MarkMethodStreamed(10, + ::grpc::Service::MarkMethodStreamed(12, new ::grpc::internal::SplitServerStreamingHandler< ::mavsdk::rpc::mission_raw::SubscribeMissionProgressRequest, ::mavsdk::rpc::mission_raw::MissionProgressResponse>( [this](::grpc::ServerContext* context, @@ -2425,7 +2751,7 @@ class MissionRawService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithSplitStreamingMethod_SubscribeMissionChanged() { - ::grpc::Service::MarkMethodStreamed(11, + ::grpc::Service::MarkMethodStreamed(13, new ::grpc::internal::SplitServerStreamingHandler< ::mavsdk::rpc::mission_raw::SubscribeMissionChangedRequest, ::mavsdk::rpc::mission_raw::MissionChangedResponse>( [this](::grpc::ServerContext* context, @@ -2447,7 +2773,7 @@ class MissionRawService final { virtual ::grpc::Status StreamedSubscribeMissionChanged(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::mavsdk::rpc::mission_raw::SubscribeMissionChangedRequest,::mavsdk::rpc::mission_raw::MissionChangedResponse>* server_split_streamer) = 0; }; typedef WithSplitStreamingMethod_SubscribeMissionProgress > SplitStreamedService; - typedef WithStreamedUnaryMethod_UploadMission > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_UploadMission > > > > > > > > > > > > > > > StreamedService; }; } // namespace mission_raw diff --git a/src/mavsdk_server/src/generated/mission_raw/mission_raw.pb.cc b/src/mavsdk_server/src/generated/mission_raw/mission_raw.pb.cc index f0e588e3ed..e28169f4bd 100644 --- a/src/mavsdk_server/src/generated/mission_raw/mission_raw.pb.cc +++ b/src/mavsdk_server/src/generated/mission_raw/mission_raw.pb.cc @@ -225,6 +225,18 @@ struct ImportQgroundcontrolMissionFromStringRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImportQgroundcontrolMissionFromStringRequestDefaultTypeInternal _ImportQgroundcontrolMissionFromStringRequest_default_instance_; template +PROTOBUF_CONSTEXPR DownloadRallypointsRequest::DownloadRallypointsRequest(::_pbi::ConstantInitialized) {} +struct DownloadRallypointsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DownloadRallypointsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DownloadRallypointsRequestDefaultTypeInternal() {} + union { + DownloadRallypointsRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DownloadRallypointsRequestDefaultTypeInternal _DownloadRallypointsRequest_default_instance_; + template PROTOBUF_CONSTEXPR DownloadMissionRequest::DownloadMissionRequest(::_pbi::ConstantInitialized) {} struct DownloadMissionRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR DownloadMissionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -237,6 +249,18 @@ struct DownloadMissionRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DownloadMissionRequestDefaultTypeInternal _DownloadMissionRequest_default_instance_; template +PROTOBUF_CONSTEXPR DownloadGeofenceRequest::DownloadGeofenceRequest(::_pbi::ConstantInitialized) {} +struct DownloadGeofenceRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DownloadGeofenceRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DownloadGeofenceRequestDefaultTypeInternal() {} + union { + DownloadGeofenceRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DownloadGeofenceRequestDefaultTypeInternal _DownloadGeofenceRequest_default_instance_; + template PROTOBUF_CONSTEXPR ClearMissionRequest::ClearMissionRequest(::_pbi::ConstantInitialized) {} struct ClearMissionRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR ClearMissionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -484,6 +508,26 @@ struct MissionImportDataDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MissionImportDataDefaultTypeInternal _MissionImportData_default_instance_; +inline constexpr DownloadRallypointsResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + rallypoint_items_{}, + mission_raw_result_{nullptr} {} + +template +PROTOBUF_CONSTEXPR DownloadRallypointsResponse::DownloadRallypointsResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct DownloadRallypointsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DownloadRallypointsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DownloadRallypointsResponseDefaultTypeInternal() {} + union { + DownloadRallypointsResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DownloadRallypointsResponseDefaultTypeInternal _DownloadRallypointsResponse_default_instance_; + inline constexpr DownloadMissionResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -504,6 +548,26 @@ struct DownloadMissionResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DownloadMissionResponseDefaultTypeInternal _DownloadMissionResponse_default_instance_; +inline constexpr DownloadGeofenceResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + geofence_items_{}, + mission_raw_result_{nullptr} {} + +template +PROTOBUF_CONSTEXPR DownloadGeofenceResponse::DownloadGeofenceResponse(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct DownloadGeofenceResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DownloadGeofenceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DownloadGeofenceResponseDefaultTypeInternal() {} + union { + DownloadGeofenceResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DownloadGeofenceResponseDefaultTypeInternal _DownloadGeofenceResponse_default_instance_; + inline constexpr ClearMissionResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -603,7 +667,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT } // namespace mission_raw } // namespace rpc } // namespace mavsdk -static ::_pb::Metadata file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[32]; +static ::_pb::Metadata file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[36]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_mission_5fraw_2fmission_5fraw_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_mission_5fraw_2fmission_5fraw_2eproto = nullptr; @@ -705,6 +769,46 @@ const ::uint32_t TableStruct_mission_5fraw_2fmission_5fraw_2eproto::offsets[] PR 0, ~0u, ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::mission_raw::DownloadGeofenceRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::mission_raw::DownloadGeofenceResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::mission_raw::DownloadGeofenceResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::mission_raw::DownloadGeofenceResponse, _impl_.mission_raw_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::mission_raw::DownloadGeofenceResponse, _impl_.geofence_items_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::mission_raw::DownloadRallypointsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::mission_raw::DownloadRallypointsResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::mission_raw::DownloadRallypointsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::mission_raw::DownloadRallypointsResponse, _impl_.mission_raw_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::mission_raw::DownloadRallypointsResponse, _impl_.rallypoint_items_), + 0, + ~0u, + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -938,28 +1042,32 @@ static const ::_pbi::MigrationSchema {65, 74, -1, sizeof(::mavsdk::rpc::mission_raw::CancelMissionUploadResponse)}, {75, -1, -1, sizeof(::mavsdk::rpc::mission_raw::DownloadMissionRequest)}, {83, 93, -1, sizeof(::mavsdk::rpc::mission_raw::DownloadMissionResponse)}, - {95, -1, -1, sizeof(::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest)}, - {103, 112, -1, sizeof(::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse)}, - {113, -1, -1, sizeof(::mavsdk::rpc::mission_raw::StartMissionRequest)}, - {121, 130, -1, sizeof(::mavsdk::rpc::mission_raw::StartMissionResponse)}, - {131, -1, -1, sizeof(::mavsdk::rpc::mission_raw::PauseMissionRequest)}, - {139, 148, -1, sizeof(::mavsdk::rpc::mission_raw::PauseMissionResponse)}, - {149, -1, -1, sizeof(::mavsdk::rpc::mission_raw::ClearMissionRequest)}, - {157, 166, -1, sizeof(::mavsdk::rpc::mission_raw::ClearMissionResponse)}, - {167, -1, -1, sizeof(::mavsdk::rpc::mission_raw::SetCurrentMissionItemRequest)}, - {176, 185, -1, sizeof(::mavsdk::rpc::mission_raw::SetCurrentMissionItemResponse)}, - {186, -1, -1, sizeof(::mavsdk::rpc::mission_raw::SubscribeMissionProgressRequest)}, - {194, 203, -1, sizeof(::mavsdk::rpc::mission_raw::MissionProgressResponse)}, - {204, -1, -1, sizeof(::mavsdk::rpc::mission_raw::SubscribeMissionChangedRequest)}, - {212, -1, -1, sizeof(::mavsdk::rpc::mission_raw::MissionChangedResponse)}, - {221, -1, -1, sizeof(::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionRequest)}, - {230, 240, -1, sizeof(::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionResponse)}, - {242, -1, -1, sizeof(::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringRequest)}, - {251, 261, -1, sizeof(::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringResponse)}, - {263, -1, -1, sizeof(::mavsdk::rpc::mission_raw::MissionProgress)}, - {273, -1, -1, sizeof(::mavsdk::rpc::mission_raw::MissionItem)}, - {294, -1, -1, sizeof(::mavsdk::rpc::mission_raw::MissionImportData)}, - {305, -1, -1, sizeof(::mavsdk::rpc::mission_raw::MissionRawResult)}, + {95, -1, -1, sizeof(::mavsdk::rpc::mission_raw::DownloadGeofenceRequest)}, + {103, 113, -1, sizeof(::mavsdk::rpc::mission_raw::DownloadGeofenceResponse)}, + {115, -1, -1, sizeof(::mavsdk::rpc::mission_raw::DownloadRallypointsRequest)}, + {123, 133, -1, sizeof(::mavsdk::rpc::mission_raw::DownloadRallypointsResponse)}, + {135, -1, -1, sizeof(::mavsdk::rpc::mission_raw::CancelMissionDownloadRequest)}, + {143, 152, -1, sizeof(::mavsdk::rpc::mission_raw::CancelMissionDownloadResponse)}, + {153, -1, -1, sizeof(::mavsdk::rpc::mission_raw::StartMissionRequest)}, + {161, 170, -1, sizeof(::mavsdk::rpc::mission_raw::StartMissionResponse)}, + {171, -1, -1, sizeof(::mavsdk::rpc::mission_raw::PauseMissionRequest)}, + {179, 188, -1, sizeof(::mavsdk::rpc::mission_raw::PauseMissionResponse)}, + {189, -1, -1, sizeof(::mavsdk::rpc::mission_raw::ClearMissionRequest)}, + {197, 206, -1, sizeof(::mavsdk::rpc::mission_raw::ClearMissionResponse)}, + {207, -1, -1, sizeof(::mavsdk::rpc::mission_raw::SetCurrentMissionItemRequest)}, + {216, 225, -1, sizeof(::mavsdk::rpc::mission_raw::SetCurrentMissionItemResponse)}, + {226, -1, -1, sizeof(::mavsdk::rpc::mission_raw::SubscribeMissionProgressRequest)}, + {234, 243, -1, sizeof(::mavsdk::rpc::mission_raw::MissionProgressResponse)}, + {244, -1, -1, sizeof(::mavsdk::rpc::mission_raw::SubscribeMissionChangedRequest)}, + {252, -1, -1, sizeof(::mavsdk::rpc::mission_raw::MissionChangedResponse)}, + {261, -1, -1, sizeof(::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionRequest)}, + {270, 280, -1, sizeof(::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionResponse)}, + {282, -1, -1, sizeof(::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringRequest)}, + {291, 301, -1, sizeof(::mavsdk::rpc::mission_raw::ImportQgroundcontrolMissionFromStringResponse)}, + {303, -1, -1, sizeof(::mavsdk::rpc::mission_raw::MissionProgress)}, + {313, -1, -1, sizeof(::mavsdk::rpc::mission_raw::MissionItem)}, + {334, -1, -1, sizeof(::mavsdk::rpc::mission_raw::MissionImportData)}, + {345, -1, -1, sizeof(::mavsdk::rpc::mission_raw::MissionRawResult)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -973,6 +1081,10 @@ static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::mission_raw::_CancelMissionUploadResponse_default_instance_._instance, &::mavsdk::rpc::mission_raw::_DownloadMissionRequest_default_instance_._instance, &::mavsdk::rpc::mission_raw::_DownloadMissionResponse_default_instance_._instance, + &::mavsdk::rpc::mission_raw::_DownloadGeofenceRequest_default_instance_._instance, + &::mavsdk::rpc::mission_raw::_DownloadGeofenceResponse_default_instance_._instance, + &::mavsdk::rpc::mission_raw::_DownloadRallypointsRequest_default_instance_._instance, + &::mavsdk::rpc::mission_raw::_DownloadRallypointsResponse_default_instance_._instance, &::mavsdk::rpc::mission_raw::_CancelMissionDownloadRequest_default_instance_._instance, &::mavsdk::rpc::mission_raw::_CancelMissionDownloadResponse_default_instance_._instance, &::mavsdk::rpc::mission_raw::_StartMissionRequest_default_instance_._instance, @@ -1020,116 +1132,132 @@ const char descriptor_table_protodef_mission_5fraw_2fmission_5fraw_2eproto[] PRO "nResponse\022D\n\022mission_raw_result\030\001 \001(\0132(." "mavsdk.rpc.mission_raw.MissionRawResult\022" ":\n\rmission_items\030\002 \003(\0132#.mavsdk.rpc.miss" - "ion_raw.MissionItem\"\036\n\034CancelMissionDown" - "loadRequest\"e\n\035CancelMissionDownloadResp" - "onse\022D\n\022mission_raw_result\030\001 \001(\0132(.mavsd" - "k.rpc.mission_raw.MissionRawResult\"\025\n\023St" - "artMissionRequest\"\\\n\024StartMissionRespons" - "e\022D\n\022mission_raw_result\030\001 \001(\0132(.mavsdk.r" - "pc.mission_raw.MissionRawResult\"\025\n\023Pause" - "MissionRequest\"\\\n\024PauseMissionResponse\022D" - "\n\022mission_raw_result\030\001 \001(\0132(.mavsdk.rpc." - "mission_raw.MissionRawResult\"\025\n\023ClearMis" - "sionRequest\"\\\n\024ClearMissionResponse\022D\n\022m" + "ion_raw.MissionItem\"\031\n\027DownloadGeofenceR" + "equest\"\235\001\n\030DownloadGeofenceResponse\022D\n\022m" "ission_raw_result\030\001 \001(\0132(.mavsdk.rpc.mis" - "sion_raw.MissionRawResult\"-\n\034SetCurrentM" - "issionItemRequest\022\r\n\005index\030\001 \001(\005\"e\n\035SetC" - "urrentMissionItemResponse\022D\n\022mission_raw" - "_result\030\001 \001(\0132(.mavsdk.rpc.mission_raw.M" - "issionRawResult\"!\n\037SubscribeMissionProgr" - "essRequest\"\\\n\027MissionProgressResponse\022A\n" - "\020mission_progress\030\001 \001(\0132\'.mavsdk.rpc.mis" - "sion_raw.MissionProgress\" \n\036SubscribeMis" - "sionChangedRequest\"1\n\026MissionChangedResp" - "onse\022\027\n\017mission_changed\030\001 \001(\010\";\n\"ImportQ" - "groundcontrolMissionRequest\022\025\n\rqgc_plan_" - "path\030\001 \001(\t\"\263\001\n#ImportQgroundcontrolMissi" - "onResponse\022D\n\022mission_raw_result\030\001 \001(\0132(" - ".mavsdk.rpc.mission_raw.MissionRawResult" - "\022F\n\023mission_import_data\030\002 \001(\0132).mavsdk.r" - "pc.mission_raw.MissionImportData\"@\n,Impo" - "rtQgroundcontrolMissionFromStringRequest" - "\022\020\n\010qgc_plan\030\001 \001(\t\"\275\001\n-ImportQgroundcont" - "rolMissionFromStringResponse\022D\n\022mission_" + "sion_raw.MissionRawResult\022;\n\016geofence_it" + "ems\030\002 \003(\0132#.mavsdk.rpc.mission_raw.Missi" + "onItem\"\034\n\032DownloadRallypointsRequest\"\242\001\n" + "\033DownloadRallypointsResponse\022D\n\022mission_" "raw_result\030\001 \001(\0132(.mavsdk.rpc.mission_ra" - "w.MissionRawResult\022F\n\023mission_import_dat" - "a\030\002 \001(\0132).mavsdk.rpc.mission_raw.Mission" - "ImportData\"1\n\017MissionProgress\022\017\n\007current" - "\030\001 \001(\005\022\r\n\005total\030\002 \001(\005\"\330\001\n\013MissionItem\022\013\n" - "\003seq\030\001 \001(\r\022\r\n\005frame\030\002 \001(\r\022\017\n\007command\030\003 \001" - "(\r\022\017\n\007current\030\004 \001(\r\022\024\n\014autocontinue\030\005 \001(" - "\r\022\016\n\006param1\030\006 \001(\002\022\016\n\006param2\030\007 \001(\002\022\016\n\006par" - "am3\030\010 \001(\002\022\016\n\006param4\030\t \001(\002\022\t\n\001x\030\n \001(\005\022\t\n\001" - "y\030\013 \001(\005\022\t\n\001z\030\014 \001(\002\022\024\n\014mission_type\030\r \001(\r" - "\"\306\001\n\021MissionImportData\022:\n\rmission_items\030" - "\001 \003(\0132#.mavsdk.rpc.mission_raw.MissionIt" - "em\022;\n\016geofence_items\030\002 \003(\0132#.mavsdk.rpc." - "mission_raw.MissionItem\0228\n\013rally_items\030\003" + "w.MissionRawResult\022=\n\020rallypoint_items\030\002" " \003(\0132#.mavsdk.rpc.mission_raw.MissionIte" - "m\"\376\004\n\020MissionRawResult\022\?\n\006result\030\001 \001(\0162/" + "m\"\036\n\034CancelMissionDownloadRequest\"e\n\035Can" + "celMissionDownloadResponse\022D\n\022mission_ra" + "w_result\030\001 \001(\0132(.mavsdk.rpc.mission_raw." + "MissionRawResult\"\025\n\023StartMissionRequest\"" + "\\\n\024StartMissionResponse\022D\n\022mission_raw_r" + "esult\030\001 \001(\0132(.mavsdk.rpc.mission_raw.Mis" + "sionRawResult\"\025\n\023PauseMissionRequest\"\\\n\024" + "PauseMissionResponse\022D\n\022mission_raw_resu" + "lt\030\001 \001(\0132(.mavsdk.rpc.mission_raw.Missio" + "nRawResult\"\025\n\023ClearMissionRequest\"\\\n\024Cle" + "arMissionResponse\022D\n\022mission_raw_result\030" + "\001 \001(\0132(.mavsdk.rpc.mission_raw.MissionRa" + "wResult\"-\n\034SetCurrentMissionItemRequest\022" + "\r\n\005index\030\001 \001(\005\"e\n\035SetCurrentMissionItemR" + "esponse\022D\n\022mission_raw_result\030\001 \001(\0132(.ma" + "vsdk.rpc.mission_raw.MissionRawResult\"!\n" + "\037SubscribeMissionProgressRequest\"\\\n\027Miss" + "ionProgressResponse\022A\n\020mission_progress\030" + "\001 \001(\0132\'.mavsdk.rpc.mission_raw.MissionPr" + "ogress\" \n\036SubscribeMissionChangedRequest" + "\"1\n\026MissionChangedResponse\022\027\n\017mission_ch" + "anged\030\001 \001(\010\";\n\"ImportQgroundcontrolMissi" + "onRequest\022\025\n\rqgc_plan_path\030\001 \001(\t\"\263\001\n#Imp" + "ortQgroundcontrolMissionResponse\022D\n\022miss" + "ion_raw_result\030\001 \001(\0132(.mavsdk.rpc.missio" + "n_raw.MissionRawResult\022F\n\023mission_import" + "_data\030\002 \001(\0132).mavsdk.rpc.mission_raw.Mis" + "sionImportData\"@\n,ImportQgroundcontrolMi" + "ssionFromStringRequest\022\020\n\010qgc_plan\030\001 \001(\t" + "\"\275\001\n-ImportQgroundcontrolMissionFromStri" + "ngResponse\022D\n\022mission_raw_result\030\001 \001(\0132(" ".mavsdk.rpc.mission_raw.MissionRawResult" - ".Result\022\022\n\nresult_str\030\002 \001(\t\"\224\004\n\006Result\022\022" - "\n\016RESULT_UNKNOWN\020\000\022\022\n\016RESULT_SUCCESS\020\001\022\020" - "\n\014RESULT_ERROR\020\002\022!\n\035RESULT_TOO_MANY_MISS" - "ION_ITEMS\020\003\022\017\n\013RESULT_BUSY\020\004\022\022\n\016RESULT_T" - "IMEOUT\020\005\022\033\n\027RESULT_INVALID_ARGUMENT\020\006\022\026\n" - "\022RESULT_UNSUPPORTED\020\007\022\037\n\033RESULT_NO_MISSI" - "ON_AVAILABLE\020\010\022\035\n\031RESULT_TRANSFER_CANCEL" - "LED\020\t\022\"\n\036RESULT_FAILED_TO_OPEN_QGC_PLAN\020" - "\n\022#\n\037RESULT_FAILED_TO_PARSE_QGC_PLAN\020\013\022\024" - "\n\020RESULT_NO_SYSTEM\020\014\022\021\n\rRESULT_DENIED\020\r\022" - "&\n\"RESULT_MISSION_TYPE_NOT_CONSISTENT\020\016\022" - "\033\n\027RESULT_INVALID_SEQUENCE\020\017\022\032\n\026RESULT_C" - "URRENT_INVALID\020\020\022\031\n\025RESULT_PROTOCOL_ERRO" - "R\020\021\022%\n!RESULT_INT_MESSAGES_NOT_SUPPORTED" - "\020\0222\277\016\n\021MissionRawService\022n\n\rUploadMissio" - "n\022,.mavsdk.rpc.mission_raw.UploadMission" - "Request\032-.mavsdk.rpc.mission_raw.UploadM" - "issionResponse\"\000\022q\n\016UploadGeofence\022-.mav" - "sdk.rpc.mission_raw.UploadGeofenceReques" - "t\032..mavsdk.rpc.mission_raw.UploadGeofenc" - "eResponse\"\000\022z\n\021UploadRallyPoints\0220.mavsd" - "k.rpc.mission_raw.UploadRallyPointsReque" - "st\0321.mavsdk.rpc.mission_raw.UploadRallyP" - "ointsResponse\"\000\022\204\001\n\023CancelMissionUpload\022" - "2.mavsdk.rpc.mission_raw.CancelMissionUp" - "loadRequest\0323.mavsdk.rpc.mission_raw.Can" - "celMissionUploadResponse\"\004\200\265\030\001\022t\n\017Downlo" - "adMission\022..mavsdk.rpc.mission_raw.Downl" - "oadMissionRequest\032/.mavsdk.rpc.mission_r" - "aw.DownloadMissionResponse\"\000\022\212\001\n\025CancelM" - "issionDownload\0224.mavsdk.rpc.mission_raw." - "CancelMissionDownloadRequest\0325.mavsdk.rp" - "c.mission_raw.CancelMissionDownloadRespo" - "nse\"\004\200\265\030\001\022k\n\014StartMission\022+.mavsdk.rpc.m" - "ission_raw.StartMissionRequest\032,.mavsdk." - "rpc.mission_raw.StartMissionResponse\"\000\022k" - "\n\014PauseMission\022+.mavsdk.rpc.mission_raw." - "PauseMissionRequest\032,.mavsdk.rpc.mission" - "_raw.PauseMissionResponse\"\000\022k\n\014ClearMiss" - "ion\022+.mavsdk.rpc.mission_raw.ClearMissio" - "nRequest\032,.mavsdk.rpc.mission_raw.ClearM" - "issionResponse\"\000\022\206\001\n\025SetCurrentMissionIt" - "em\0224.mavsdk.rpc.mission_raw.SetCurrentMi" - "ssionItemRequest\0325.mavsdk.rpc.mission_ra" - "w.SetCurrentMissionItemResponse\"\000\022\210\001\n\030Su" - "bscribeMissionProgress\0227.mavsdk.rpc.miss" - "ion_raw.SubscribeMissionProgressRequest\032" - "/.mavsdk.rpc.mission_raw.MissionProgress" - "Response\"\0000\001\022\211\001\n\027SubscribeMissionChanged" - "\0226.mavsdk.rpc.mission_raw.SubscribeMissi" - "onChangedRequest\032..mavsdk.rpc.mission_ra" - "w.MissionChangedResponse\"\004\200\265\030\0000\001\022\234\001\n\033Imp" - "ortQgroundcontrolMission\022:.mavsdk.rpc.mi" - "ssion_raw.ImportQgroundcontrolMissionReq" - "uest\032;.mavsdk.rpc.mission_raw.ImportQgro" - "undcontrolMissionResponse\"\004\200\265\030\001\022\272\001\n%Impo" - "rtQgroundcontrolMissionFromString\022D.mavs" - "dk.rpc.mission_raw.ImportQgroundcontrolM" - "issionFromStringRequest\032E.mavsdk.rpc.mis" - "sion_raw.ImportQgroundcontrolMissionFrom" - "StringResponse\"\004\200\265\030\001B(\n\025io.mavsdk.missio" - "n_rawB\017MissionRawProtob\006proto3" + "\022F\n\023mission_import_data\030\002 \001(\0132).mavsdk.r" + "pc.mission_raw.MissionImportData\"1\n\017Miss" + "ionProgress\022\017\n\007current\030\001 \001(\005\022\r\n\005total\030\002 " + "\001(\005\"\330\001\n\013MissionItem\022\013\n\003seq\030\001 \001(\r\022\r\n\005fram" + "e\030\002 \001(\r\022\017\n\007command\030\003 \001(\r\022\017\n\007current\030\004 \001(" + "\r\022\024\n\014autocontinue\030\005 \001(\r\022\016\n\006param1\030\006 \001(\002\022" + "\016\n\006param2\030\007 \001(\002\022\016\n\006param3\030\010 \001(\002\022\016\n\006param" + "4\030\t \001(\002\022\t\n\001x\030\n \001(\005\022\t\n\001y\030\013 \001(\005\022\t\n\001z\030\014 \001(\002" + "\022\024\n\014mission_type\030\r \001(\r\"\306\001\n\021MissionImport" + "Data\022:\n\rmission_items\030\001 \003(\0132#.mavsdk.rpc" + ".mission_raw.MissionItem\022;\n\016geofence_ite" + "ms\030\002 \003(\0132#.mavsdk.rpc.mission_raw.Missio" + "nItem\0228\n\013rally_items\030\003 \003(\0132#.mavsdk.rpc." + "mission_raw.MissionItem\"\376\004\n\020MissionRawRe" + "sult\022\?\n\006result\030\001 \001(\0162/.mavsdk.rpc.missio" + "n_raw.MissionRawResult.Result\022\022\n\nresult_" + "str\030\002 \001(\t\"\224\004\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000" + "\022\022\n\016RESULT_SUCCESS\020\001\022\020\n\014RESULT_ERROR\020\002\022!" + "\n\035RESULT_TOO_MANY_MISSION_ITEMS\020\003\022\017\n\013RES" + "ULT_BUSY\020\004\022\022\n\016RESULT_TIMEOUT\020\005\022\033\n\027RESULT" + "_INVALID_ARGUMENT\020\006\022\026\n\022RESULT_UNSUPPORTE" + "D\020\007\022\037\n\033RESULT_NO_MISSION_AVAILABLE\020\010\022\035\n\031" + "RESULT_TRANSFER_CANCELLED\020\t\022\"\n\036RESULT_FA" + "ILED_TO_OPEN_QGC_PLAN\020\n\022#\n\037RESULT_FAILED" + "_TO_PARSE_QGC_PLAN\020\013\022\024\n\020RESULT_NO_SYSTEM" + "\020\014\022\021\n\rRESULT_DENIED\020\r\022&\n\"RESULT_MISSION_" + "TYPE_NOT_CONSISTENT\020\016\022\033\n\027RESULT_INVALID_" + "SEQUENCE\020\017\022\032\n\026RESULT_CURRENT_INVALID\020\020\022\031" + "\n\025RESULT_PROTOCOL_ERROR\020\021\022%\n!RESULT_INT_" + "MESSAGES_NOT_SUPPORTED\020\0222\273\020\n\021MissionRawS" + "ervice\022n\n\rUploadMission\022,.mavsdk.rpc.mis" + "sion_raw.UploadMissionRequest\032-.mavsdk.r" + "pc.mission_raw.UploadMissionResponse\"\000\022q" + "\n\016UploadGeofence\022-.mavsdk.rpc.mission_ra" + "w.UploadGeofenceRequest\032..mavsdk.rpc.mis" + "sion_raw.UploadGeofenceResponse\"\000\022z\n\021Upl" + "oadRallyPoints\0220.mavsdk.rpc.mission_raw." + "UploadRallyPointsRequest\0321.mavsdk.rpc.mi" + "ssion_raw.UploadRallyPointsResponse\"\000\022\204\001" + "\n\023CancelMissionUpload\0222.mavsdk.rpc.missi" + "on_raw.CancelMissionUploadRequest\0323.mavs" + "dk.rpc.mission_raw.CancelMissionUploadRe" + "sponse\"\004\200\265\030\001\022t\n\017DownloadMission\022..mavsdk" + ".rpc.mission_raw.DownloadMissionRequest\032" + "/.mavsdk.rpc.mission_raw.DownloadMission" + "Response\"\000\022w\n\020DownloadGeofence\022/.mavsdk." + "rpc.mission_raw.DownloadGeofenceRequest\032" + "0.mavsdk.rpc.mission_raw.DownloadGeofenc" + "eResponse\"\000\022\200\001\n\023DownloadRallypoints\0222.ma" + "vsdk.rpc.mission_raw.DownloadRallypoints" + "Request\0323.mavsdk.rpc.mission_raw.Downloa" + "dRallypointsResponse\"\000\022\212\001\n\025CancelMission" + "Download\0224.mavsdk.rpc.mission_raw.Cancel" + "MissionDownloadRequest\0325.mavsdk.rpc.miss" + "ion_raw.CancelMissionDownloadResponse\"\004\200" + "\265\030\001\022k\n\014StartMission\022+.mavsdk.rpc.mission" + "_raw.StartMissionRequest\032,.mavsdk.rpc.mi" + "ssion_raw.StartMissionResponse\"\000\022k\n\014Paus" + "eMission\022+.mavsdk.rpc.mission_raw.PauseM" + "issionRequest\032,.mavsdk.rpc.mission_raw.P" + "auseMissionResponse\"\000\022k\n\014ClearMission\022+." + "mavsdk.rpc.mission_raw.ClearMissionReque" + "st\032,.mavsdk.rpc.mission_raw.ClearMission" + "Response\"\000\022\206\001\n\025SetCurrentMissionItem\0224.m" + "avsdk.rpc.mission_raw.SetCurrentMissionI" + "temRequest\0325.mavsdk.rpc.mission_raw.SetC" + "urrentMissionItemResponse\"\000\022\210\001\n\030Subscrib" + "eMissionProgress\0227.mavsdk.rpc.mission_ra" + "w.SubscribeMissionProgressRequest\032/.mavs" + "dk.rpc.mission_raw.MissionProgressRespon" + "se\"\0000\001\022\211\001\n\027SubscribeMissionChanged\0226.mav" + "sdk.rpc.mission_raw.SubscribeMissionChan" + "gedRequest\032..mavsdk.rpc.mission_raw.Miss" + "ionChangedResponse\"\004\200\265\030\0000\001\022\234\001\n\033ImportQgr" + "oundcontrolMission\022:.mavsdk.rpc.mission_" + "raw.ImportQgroundcontrolMissionRequest\032;" + ".mavsdk.rpc.mission_raw.ImportQgroundcon" + "trolMissionResponse\"\004\200\265\030\001\022\272\001\n%ImportQgro" + "undcontrolMissionFromString\022D.mavsdk.rpc" + ".mission_raw.ImportQgroundcontrolMission" + "FromStringRequest\032E.mavsdk.rpc.mission_r" + "aw.ImportQgroundcontrolMissionFromString" + "Response\"\004\200\265\030\001B(\n\025io.mavsdk.mission_rawB" + "\017MissionRawProtob\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_deps[1] = { @@ -1139,13 +1267,13 @@ static ::absl::once_flag descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_ const ::_pbi::DescriptorTable descriptor_table_mission_5fraw_2fmission_5fraw_2eproto = { false, false, - 5310, + 5944, descriptor_table_protodef_mission_5fraw_2fmission_5fraw_2eproto, "mission_raw/mission_raw.proto", &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_deps, 1, - 32, + 36, schemas, file_default_instances, TableStruct_mission_5fraw_2fmission_5fraw_2eproto::offsets, @@ -2290,10 +2418,504 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> UploadRallyPointsResponse::_table_ = { }}, }; -::uint8_t* UploadRallyPointsResponse::_InternalSerialize( +::uint8_t* UploadRallyPointsResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.mission_raw.UploadRallyPointsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, _Internal::mission_raw_result(this), + _Internal::mission_raw_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.mission_raw.UploadRallyPointsResponse) + return target; +} + +::size_t UploadRallyPointsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.mission_raw.UploadRallyPointsResponse) + ::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.mission_raw.MissionRawResult mission_raw_result = 1; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.mission_raw_result_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData UploadRallyPointsResponse::_class_data_ = { + UploadRallyPointsResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* UploadRallyPointsResponse::GetClassData() const { + return &_class_data_; +} + +void UploadRallyPointsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.mission_raw.UploadRallyPointsResponse) + 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_mission_raw_result()->::mavsdk::rpc::mission_raw::MissionRawResult::MergeFrom( + from._internal_mission_raw_result()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void UploadRallyPointsResponse::CopyFrom(const UploadRallyPointsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.mission_raw.UploadRallyPointsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool UploadRallyPointsResponse::IsInitialized() const { + return true; +} + +::_pbi::CachedSize* UploadRallyPointsResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void UploadRallyPointsResponse::InternalSwap(UploadRallyPointsResponse* PROTOBUF_RESTRICT other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.mission_raw_result_, other->_impl_.mission_raw_result_); +} + +::google::protobuf::Metadata UploadRallyPointsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[5]); +} +// =================================================================== + +class CancelMissionUploadRequest::_Internal { + public: +}; + +CancelMissionUploadRequest::CancelMissionUploadRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.CancelMissionUploadRequest) +} +CancelMissionUploadRequest::CancelMissionUploadRequest( + ::google::protobuf::Arena* arena, + const CancelMissionUploadRequest& from) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + CancelMissionUploadRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.CancelMissionUploadRequest) +} + + + + + + + + + +::google::protobuf::Metadata CancelMissionUploadRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[6]); +} +// =================================================================== + +class CancelMissionUploadResponse::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CancelMissionUploadResponse, _impl_._has_bits_); + static const ::mavsdk::rpc::mission_raw::MissionRawResult& mission_raw_result(const CancelMissionUploadResponse* msg); + static void set_has_mission_raw_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::mavsdk::rpc::mission_raw::MissionRawResult& CancelMissionUploadResponse::_Internal::mission_raw_result(const CancelMissionUploadResponse* msg) { + return *msg->_impl_.mission_raw_result_; +} +CancelMissionUploadResponse::CancelMissionUploadResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) +} +inline PROTOBUF_NDEBUG_INLINE CancelMissionUploadResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +CancelMissionUploadResponse::CancelMissionUploadResponse( + ::google::protobuf::Arena* arena, + const CancelMissionUploadResponse& from) + : ::google::protobuf::Message(arena) { + CancelMissionUploadResponse* 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_.mission_raw_result_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::mavsdk::rpc::mission_raw::MissionRawResult>(arena, *from._impl_.mission_raw_result_) + : nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) +} +inline PROTOBUF_NDEBUG_INLINE CancelMissionUploadResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} + +inline void CancelMissionUploadResponse::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.mission_raw_result_ = {}; +} +CancelMissionUploadResponse::~CancelMissionUploadResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void CancelMissionUploadResponse::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.mission_raw_result_; + _impl_.~Impl_(); +} + +PROTOBUF_NOINLINE void CancelMissionUploadResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) + PROTOBUF_TSAN_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_.mission_raw_result_ != nullptr); + _impl_.mission_raw_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* CancelMissionUploadResponse::_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> CancelMissionUploadResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CancelMissionUploadResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_CancelMissionUploadResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CancelMissionUploadResponse, _impl_.mission_raw_result_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; + {PROTOBUF_FIELD_OFFSET(CancelMissionUploadResponse, _impl_.mission_raw_result_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::mission_raw::MissionRawResult>()}, + }}, {{ + }}, +}; + +::uint8_t* CancelMissionUploadResponse::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, _Internal::mission_raw_result(this), + _Internal::mission_raw_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.mission_raw.CancelMissionUploadResponse) + return target; +} + +::size_t CancelMissionUploadResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) + ::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.mission_raw.MissionRawResult mission_raw_result = 1; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.mission_raw_result_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData CancelMissionUploadResponse::_class_data_ = { + CancelMissionUploadResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* CancelMissionUploadResponse::GetClassData() const { + return &_class_data_; +} + +void CancelMissionUploadResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) + 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_mission_raw_result()->::mavsdk::rpc::mission_raw::MissionRawResult::MergeFrom( + from._internal_mission_raw_result()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void CancelMissionUploadResponse::CopyFrom(const CancelMissionUploadResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool CancelMissionUploadResponse::IsInitialized() const { + return true; +} + +::_pbi::CachedSize* CancelMissionUploadResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +void CancelMissionUploadResponse::InternalSwap(CancelMissionUploadResponse* PROTOBUF_RESTRICT other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.mission_raw_result_, other->_impl_.mission_raw_result_); +} + +::google::protobuf::Metadata CancelMissionUploadResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[7]); +} +// =================================================================== + +class DownloadMissionRequest::_Internal { + public: +}; + +DownloadMissionRequest::DownloadMissionRequest(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.DownloadMissionRequest) +} +DownloadMissionRequest::DownloadMissionRequest( + ::google::protobuf::Arena* arena, + const DownloadMissionRequest& from) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + DownloadMissionRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.DownloadMissionRequest) +} + + + + + + + + + +::google::protobuf::Metadata DownloadMissionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[8]); +} +// =================================================================== + +class DownloadMissionResponse::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DownloadMissionResponse, _impl_._has_bits_); + static const ::mavsdk::rpc::mission_raw::MissionRawResult& mission_raw_result(const DownloadMissionResponse* msg); + static void set_has_mission_raw_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::mavsdk::rpc::mission_raw::MissionRawResult& DownloadMissionResponse::_Internal::mission_raw_result(const DownloadMissionResponse* msg) { + return *msg->_impl_.mission_raw_result_; +} +DownloadMissionResponse::DownloadMissionResponse(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.DownloadMissionResponse) +} +inline PROTOBUF_NDEBUG_INLINE DownloadMissionResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + mission_items_{visibility, arena, from.mission_items_} {} + +DownloadMissionResponse::DownloadMissionResponse( + ::google::protobuf::Arena* arena, + const DownloadMissionResponse& from) + : ::google::protobuf::Message(arena) { + DownloadMissionResponse* 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_.mission_raw_result_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::mavsdk::rpc::mission_raw::MissionRawResult>(arena, *from._impl_.mission_raw_result_) + : nullptr; + + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.DownloadMissionResponse) +} +inline PROTOBUF_NDEBUG_INLINE DownloadMissionResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + mission_items_{visibility, arena} {} + +inline void DownloadMissionResponse::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.mission_raw_result_ = {}; +} +DownloadMissionResponse::~DownloadMissionResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.mission_raw.DownloadMissionResponse) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void DownloadMissionResponse::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.mission_raw_result_; + _impl_.~Impl_(); +} + +PROTOBUF_NOINLINE void DownloadMissionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.mission_raw.DownloadMissionResponse) + PROTOBUF_TSAN_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_.mission_items_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.mission_raw_result_ != nullptr); + _impl_.mission_raw_result_->Clear(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* DownloadMissionResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> DownloadMissionResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DownloadMissionResponse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_DownloadMissionResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .mavsdk.rpc.mission_raw.MissionItem mission_items = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 1, PROTOBUF_FIELD_OFFSET(DownloadMissionResponse, _impl_.mission_items_)}}, + // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(DownloadMissionResponse, _impl_.mission_raw_result_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; + {PROTOBUF_FIELD_OFFSET(DownloadMissionResponse, _impl_.mission_raw_result_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .mavsdk.rpc.mission_raw.MissionItem mission_items = 2; + {PROTOBUF_FIELD_OFFSET(DownloadMissionResponse, _impl_.mission_items_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::mavsdk::rpc::mission_raw::MissionRawResult>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::mission_raw::MissionItem>()}, + }}, {{ + }}, +}; + +::uint8_t* DownloadMissionResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.mission_raw.UploadRallyPointsResponse) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.mission_raw.DownloadMissionResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; @@ -2305,23 +2927,37 @@ ::uint8_t* UploadRallyPointsResponse::_InternalSerialize( _Internal::mission_raw_result(this).GetCachedSize(), target, stream); } + // repeated .mavsdk.rpc.mission_raw.MissionItem mission_items = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_mission_items_size()); i < n; i++) { + const auto& repfield = this->_internal_mission_items().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.mission_raw.UploadRallyPointsResponse) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.mission_raw.DownloadMissionResponse) return target; } -::size_t UploadRallyPointsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.mission_raw.UploadRallyPointsResponse) +::size_t DownloadMissionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.mission_raw.DownloadMissionResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .mavsdk.rpc.mission_raw.MissionItem mission_items = 2; + total_size += 1UL * this->_internal_mission_items_size(); + for (const auto& msg : this->_internal_mission_items()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { @@ -2332,22 +2968,24 @@ ::size_t UploadRallyPointsResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData UploadRallyPointsResponse::_class_data_ = { - UploadRallyPointsResponse::MergeImpl, +const ::google::protobuf::Message::ClassData DownloadMissionResponse::_class_data_ = { + DownloadMissionResponse::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; -const ::google::protobuf::Message::ClassData* UploadRallyPointsResponse::GetClassData() const { +const ::google::protobuf::Message::ClassData* DownloadMissionResponse::GetClassData() const { return &_class_data_; } -void UploadRallyPointsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.mission_raw.UploadRallyPointsResponse) +void DownloadMissionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.mission_raw.DownloadMissionResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_internal_mutable_mission_items()->MergeFrom( + from._internal_mission_items()); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_mission_raw_result()->::mavsdk::rpc::mission_raw::MissionRawResult::MergeFrom( from._internal_mission_raw_result()); @@ -2355,52 +2993,53 @@ void UploadRallyPointsResponse::MergeImpl(::google::protobuf::Message& to_msg, c _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void UploadRallyPointsResponse::CopyFrom(const UploadRallyPointsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.mission_raw.UploadRallyPointsResponse) +void DownloadMissionResponse::CopyFrom(const DownloadMissionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.mission_raw.DownloadMissionResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool UploadRallyPointsResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool DownloadMissionResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* UploadRallyPointsResponse::AccessCachedSize() const { +::_pbi::CachedSize* DownloadMissionResponse::AccessCachedSize() const { return &_impl_._cached_size_; } -void UploadRallyPointsResponse::InternalSwap(UploadRallyPointsResponse* PROTOBUF_RESTRICT other) { +void DownloadMissionResponse::InternalSwap(DownloadMissionResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.mission_items_.InternalSwap(&other->_impl_.mission_items_); swap(_impl_.mission_raw_result_, other->_impl_.mission_raw_result_); } -::google::protobuf::Metadata UploadRallyPointsResponse::GetMetadata() const { +::google::protobuf::Metadata DownloadMissionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[5]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[9]); } // =================================================================== -class CancelMissionUploadRequest::_Internal { +class DownloadGeofenceRequest::_Internal { public: }; -CancelMissionUploadRequest::CancelMissionUploadRequest(::google::protobuf::Arena* arena) +DownloadGeofenceRequest::DownloadGeofenceRequest(::google::protobuf::Arena* arena) : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.CancelMissionUploadRequest) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.DownloadGeofenceRequest) } -CancelMissionUploadRequest::CancelMissionUploadRequest( +DownloadGeofenceRequest::DownloadGeofenceRequest( ::google::protobuf::Arena* arena, - const CancelMissionUploadRequest& from) + const DownloadGeofenceRequest& from) : ::google::protobuf::internal::ZeroFieldsBase(arena) { - CancelMissionUploadRequest* const _this = this; + DownloadGeofenceRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.CancelMissionUploadRequest) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.DownloadGeofenceRequest) } @@ -2411,43 +3050,44 @@ CancelMissionUploadRequest::CancelMissionUploadRequest( -::google::protobuf::Metadata CancelMissionUploadRequest::GetMetadata() const { +::google::protobuf::Metadata DownloadGeofenceRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[6]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[10]); } // =================================================================== -class CancelMissionUploadResponse::_Internal { +class DownloadGeofenceResponse::_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(CancelMissionUploadResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::mission_raw::MissionRawResult& mission_raw_result(const CancelMissionUploadResponse* msg); + 8 * PROTOBUF_FIELD_OFFSET(DownloadGeofenceResponse, _impl_._has_bits_); + static const ::mavsdk::rpc::mission_raw::MissionRawResult& mission_raw_result(const DownloadGeofenceResponse* msg); static void set_has_mission_raw_result(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -const ::mavsdk::rpc::mission_raw::MissionRawResult& CancelMissionUploadResponse::_Internal::mission_raw_result(const CancelMissionUploadResponse* msg) { +const ::mavsdk::rpc::mission_raw::MissionRawResult& DownloadGeofenceResponse::_Internal::mission_raw_result(const DownloadGeofenceResponse* msg) { return *msg->_impl_.mission_raw_result_; } -CancelMissionUploadResponse::CancelMissionUploadResponse(::google::protobuf::Arena* arena) +DownloadGeofenceResponse::DownloadGeofenceResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.DownloadGeofenceResponse) } -inline PROTOBUF_NDEBUG_INLINE CancelMissionUploadResponse::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE DownloadGeofenceResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) : _has_bits_{from._has_bits_}, - _cached_size_{0} {} + _cached_size_{0}, + geofence_items_{visibility, arena, from.geofence_items_} {} -CancelMissionUploadResponse::CancelMissionUploadResponse( +DownloadGeofenceResponse::DownloadGeofenceResponse( ::google::protobuf::Arena* arena, - const CancelMissionUploadResponse& from) + const DownloadGeofenceResponse& from) : ::google::protobuf::Message(arena) { - CancelMissionUploadResponse* const _this = this; + DownloadGeofenceResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); @@ -2457,35 +3097,37 @@ CancelMissionUploadResponse::CancelMissionUploadResponse( ? CreateMaybeMessage<::mavsdk::rpc::mission_raw::MissionRawResult>(arena, *from._impl_.mission_raw_result_) : nullptr; - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.DownloadGeofenceResponse) } -inline PROTOBUF_NDEBUG_INLINE CancelMissionUploadResponse::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE DownloadGeofenceResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) - : _cached_size_{0} {} + : _cached_size_{0}, + geofence_items_{visibility, arena} {} -inline void CancelMissionUploadResponse::SharedCtor(::_pb::Arena* arena) { +inline void DownloadGeofenceResponse::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.mission_raw_result_ = {}; } -CancelMissionUploadResponse::~CancelMissionUploadResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) +DownloadGeofenceResponse::~DownloadGeofenceResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.mission_raw.DownloadGeofenceResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } -inline void CancelMissionUploadResponse::SharedDtor() { +inline void DownloadGeofenceResponse::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); delete _impl_.mission_raw_result_; _impl_.~Impl_(); } -PROTOBUF_NOINLINE void CancelMissionUploadResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) +PROTOBUF_NOINLINE void DownloadGeofenceResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.mission_raw.DownloadGeofenceResponse) PROTOBUF_TSAN_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_.geofence_items_.Clear(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.mission_raw_result_ != nullptr); @@ -2495,7 +3137,7 @@ PROTOBUF_NOINLINE void CancelMissionUploadResponse::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* CancelMissionUploadResponse::_InternalParse( +const char* DownloadGeofenceResponse::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; @@ -2503,39 +3145,46 @@ const char* CancelMissionUploadResponse::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> CancelMissionUploadResponse::_table_ = { +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> DownloadGeofenceResponse::_table_ = { { - PROTOBUF_FIELD_OFFSET(CancelMissionUploadResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(DownloadGeofenceResponse, _impl_._has_bits_), 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask + 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap + 4294967292, // skipmap offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries + 2, // num_field_entries + 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_CancelMissionUploadResponse_default_instance_._instance, + &_DownloadGeofenceResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ + // repeated .mavsdk.rpc.mission_raw.MissionItem geofence_items = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 1, PROTOBUF_FIELD_OFFSET(DownloadGeofenceResponse, _impl_.geofence_items_)}}, // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CancelMissionUploadResponse, _impl_.mission_raw_result_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(DownloadGeofenceResponse, _impl_.mission_raw_result_)}}, }}, {{ 65535, 65535 }}, {{ // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; - {PROTOBUF_FIELD_OFFSET(CancelMissionUploadResponse, _impl_.mission_raw_result_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(DownloadGeofenceResponse, _impl_.mission_raw_result_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .mavsdk.rpc.mission_raw.MissionItem geofence_items = 2; + {PROTOBUF_FIELD_OFFSET(DownloadGeofenceResponse, _impl_.geofence_items_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::mavsdk::rpc::mission_raw::MissionRawResult>()}, + {::_pbi::TcParser::GetTable<::mavsdk::rpc::mission_raw::MissionItem>()}, }}, {{ }}, }; -::uint8_t* CancelMissionUploadResponse::_InternalSerialize( +::uint8_t* DownloadGeofenceResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.mission_raw.DownloadGeofenceResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; @@ -2547,23 +3196,37 @@ ::uint8_t* CancelMissionUploadResponse::_InternalSerialize( _Internal::mission_raw_result(this).GetCachedSize(), target, stream); } + // repeated .mavsdk.rpc.mission_raw.MissionItem geofence_items = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_geofence_items_size()); i < n; i++) { + const auto& repfield = this->_internal_geofence_items().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.mission_raw.CancelMissionUploadResponse) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.mission_raw.DownloadGeofenceResponse) return target; } -::size_t CancelMissionUploadResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) +::size_t DownloadGeofenceResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.mission_raw.DownloadGeofenceResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .mavsdk.rpc.mission_raw.MissionItem geofence_items = 2; + total_size += 1UL * this->_internal_geofence_items_size(); + for (const auto& msg : this->_internal_geofence_items()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { @@ -2574,22 +3237,24 @@ ::size_t CancelMissionUploadResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData CancelMissionUploadResponse::_class_data_ = { - CancelMissionUploadResponse::MergeImpl, +const ::google::protobuf::Message::ClassData DownloadGeofenceResponse::_class_data_ = { + DownloadGeofenceResponse::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; -const ::google::protobuf::Message::ClassData* CancelMissionUploadResponse::GetClassData() const { +const ::google::protobuf::Message::ClassData* DownloadGeofenceResponse::GetClassData() const { return &_class_data_; } -void CancelMissionUploadResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) +void DownloadGeofenceResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.mission_raw.DownloadGeofenceResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_internal_mutable_geofence_items()->MergeFrom( + from._internal_geofence_items()); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_mission_raw_result()->::mavsdk::rpc::mission_raw::MissionRawResult::MergeFrom( from._internal_mission_raw_result()); @@ -2597,52 +3262,53 @@ void CancelMissionUploadResponse::MergeImpl(::google::protobuf::Message& to_msg, _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void CancelMissionUploadResponse::CopyFrom(const CancelMissionUploadResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.mission_raw.CancelMissionUploadResponse) +void DownloadGeofenceResponse::CopyFrom(const DownloadGeofenceResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.mission_raw.DownloadGeofenceResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool CancelMissionUploadResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool DownloadGeofenceResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* CancelMissionUploadResponse::AccessCachedSize() const { +::_pbi::CachedSize* DownloadGeofenceResponse::AccessCachedSize() const { return &_impl_._cached_size_; } -void CancelMissionUploadResponse::InternalSwap(CancelMissionUploadResponse* PROTOBUF_RESTRICT other) { +void DownloadGeofenceResponse::InternalSwap(DownloadGeofenceResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.geofence_items_.InternalSwap(&other->_impl_.geofence_items_); swap(_impl_.mission_raw_result_, other->_impl_.mission_raw_result_); } -::google::protobuf::Metadata CancelMissionUploadResponse::GetMetadata() const { +::google::protobuf::Metadata DownloadGeofenceResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[7]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[11]); } // =================================================================== -class DownloadMissionRequest::_Internal { +class DownloadRallypointsRequest::_Internal { public: }; -DownloadMissionRequest::DownloadMissionRequest(::google::protobuf::Arena* arena) +DownloadRallypointsRequest::DownloadRallypointsRequest(::google::protobuf::Arena* arena) : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.DownloadMissionRequest) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.DownloadRallypointsRequest) } -DownloadMissionRequest::DownloadMissionRequest( +DownloadRallypointsRequest::DownloadRallypointsRequest( ::google::protobuf::Arena* arena, - const DownloadMissionRequest& from) + const DownloadRallypointsRequest& from) : ::google::protobuf::internal::ZeroFieldsBase(arena) { - DownloadMissionRequest* const _this = this; + DownloadRallypointsRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.DownloadMissionRequest) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.DownloadRallypointsRequest) } @@ -2653,44 +3319,44 @@ DownloadMissionRequest::DownloadMissionRequest( -::google::protobuf::Metadata DownloadMissionRequest::GetMetadata() const { +::google::protobuf::Metadata DownloadRallypointsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[8]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[12]); } // =================================================================== -class DownloadMissionResponse::_Internal { +class DownloadRallypointsResponse::_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(DownloadMissionResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::mission_raw::MissionRawResult& mission_raw_result(const DownloadMissionResponse* msg); + 8 * PROTOBUF_FIELD_OFFSET(DownloadRallypointsResponse, _impl_._has_bits_); + static const ::mavsdk::rpc::mission_raw::MissionRawResult& mission_raw_result(const DownloadRallypointsResponse* msg); static void set_has_mission_raw_result(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -const ::mavsdk::rpc::mission_raw::MissionRawResult& DownloadMissionResponse::_Internal::mission_raw_result(const DownloadMissionResponse* msg) { +const ::mavsdk::rpc::mission_raw::MissionRawResult& DownloadRallypointsResponse::_Internal::mission_raw_result(const DownloadRallypointsResponse* msg) { return *msg->_impl_.mission_raw_result_; } -DownloadMissionResponse::DownloadMissionResponse(::google::protobuf::Arena* arena) +DownloadRallypointsResponse::DownloadRallypointsResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.DownloadMissionResponse) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.mission_raw.DownloadRallypointsResponse) } -inline PROTOBUF_NDEBUG_INLINE DownloadMissionResponse::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE DownloadRallypointsResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) : _has_bits_{from._has_bits_}, _cached_size_{0}, - mission_items_{visibility, arena, from.mission_items_} {} + rallypoint_items_{visibility, arena, from.rallypoint_items_} {} -DownloadMissionResponse::DownloadMissionResponse( +DownloadRallypointsResponse::DownloadRallypointsResponse( ::google::protobuf::Arena* arena, - const DownloadMissionResponse& from) + const DownloadRallypointsResponse& from) : ::google::protobuf::Message(arena) { - DownloadMissionResponse* const _this = this; + DownloadRallypointsResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); @@ -2700,37 +3366,37 @@ DownloadMissionResponse::DownloadMissionResponse( ? CreateMaybeMessage<::mavsdk::rpc::mission_raw::MissionRawResult>(arena, *from._impl_.mission_raw_result_) : nullptr; - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.DownloadMissionResponse) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.mission_raw.DownloadRallypointsResponse) } -inline PROTOBUF_NDEBUG_INLINE DownloadMissionResponse::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE DownloadRallypointsResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : _cached_size_{0}, - mission_items_{visibility, arena} {} + rallypoint_items_{visibility, arena} {} -inline void DownloadMissionResponse::SharedCtor(::_pb::Arena* arena) { +inline void DownloadRallypointsResponse::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.mission_raw_result_ = {}; } -DownloadMissionResponse::~DownloadMissionResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.mission_raw.DownloadMissionResponse) +DownloadRallypointsResponse::~DownloadRallypointsResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.mission_raw.DownloadRallypointsResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } -inline void DownloadMissionResponse::SharedDtor() { +inline void DownloadRallypointsResponse::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); delete _impl_.mission_raw_result_; _impl_.~Impl_(); } -PROTOBUF_NOINLINE void DownloadMissionResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.mission_raw.DownloadMissionResponse) +PROTOBUF_NOINLINE void DownloadRallypointsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.mission_raw.DownloadRallypointsResponse) PROTOBUF_TSAN_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_.mission_items_.Clear(); + _impl_.rallypoint_items_.Clear(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { ABSL_DCHECK(_impl_.mission_raw_result_ != nullptr); @@ -2740,7 +3406,7 @@ PROTOBUF_NOINLINE void DownloadMissionResponse::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* DownloadMissionResponse::_InternalParse( +const char* DownloadRallypointsResponse::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; @@ -2748,9 +3414,9 @@ const char* DownloadMissionResponse::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> DownloadMissionResponse::_table_ = { +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> DownloadRallypointsResponse::_table_ = { { - PROTOBUF_FIELD_OFFSET(DownloadMissionResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(DownloadRallypointsResponse, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -2759,23 +3425,23 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> DownloadMissionResponse::_table_ = { 2, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_DownloadMissionResponse_default_instance_._instance, + &_DownloadRallypointsResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ - // repeated .mavsdk.rpc.mission_raw.MissionItem mission_items = 2; + // repeated .mavsdk.rpc.mission_raw.MissionItem rallypoint_items = 2; {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(DownloadMissionResponse, _impl_.mission_items_)}}, + {18, 63, 1, PROTOBUF_FIELD_OFFSET(DownloadRallypointsResponse, _impl_.rallypoint_items_)}}, // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(DownloadMissionResponse, _impl_.mission_raw_result_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(DownloadRallypointsResponse, _impl_.mission_raw_result_)}}, }}, {{ 65535, 65535 }}, {{ // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; - {PROTOBUF_FIELD_OFFSET(DownloadMissionResponse, _impl_.mission_raw_result_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(DownloadRallypointsResponse, _impl_.mission_raw_result_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .mavsdk.rpc.mission_raw.MissionItem mission_items = 2; - {PROTOBUF_FIELD_OFFSET(DownloadMissionResponse, _impl_.mission_items_), -1, 1, + // repeated .mavsdk.rpc.mission_raw.MissionItem rallypoint_items = 2; + {PROTOBUF_FIELD_OFFSET(DownloadRallypointsResponse, _impl_.rallypoint_items_), -1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::mavsdk::rpc::mission_raw::MissionRawResult>()}, @@ -2784,10 +3450,10 @@ const ::_pbi::TcParseTable<1, 2, 2, 0, 2> DownloadMissionResponse::_table_ = { }}, }; -::uint8_t* DownloadMissionResponse::_InternalSerialize( +::uint8_t* DownloadRallypointsResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.mission_raw.DownloadMissionResponse) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.mission_raw.DownloadRallypointsResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; @@ -2799,10 +3465,10 @@ ::uint8_t* DownloadMissionResponse::_InternalSerialize( _Internal::mission_raw_result(this).GetCachedSize(), target, stream); } - // repeated .mavsdk.rpc.mission_raw.MissionItem mission_items = 2; + // repeated .mavsdk.rpc.mission_raw.MissionItem rallypoint_items = 2; for (unsigned i = 0, - n = static_cast(this->_internal_mission_items_size()); i < n; i++) { - const auto& repfield = this->_internal_mission_items().Get(i); + n = static_cast(this->_internal_rallypoint_items_size()); i < n; i++) { + const auto& repfield = this->_internal_rallypoint_items().Get(i); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } @@ -2812,21 +3478,21 @@ ::uint8_t* DownloadMissionResponse::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.mission_raw.DownloadMissionResponse) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.mission_raw.DownloadRallypointsResponse) return target; } -::size_t DownloadMissionResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.mission_raw.DownloadMissionResponse) +::size_t DownloadRallypointsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.mission_raw.DownloadRallypointsResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .mavsdk.rpc.mission_raw.MissionItem mission_items = 2; - total_size += 1UL * this->_internal_mission_items_size(); - for (const auto& msg : this->_internal_mission_items()) { + // repeated .mavsdk.rpc.mission_raw.MissionItem rallypoint_items = 2; + total_size += 1UL * this->_internal_rallypoint_items_size(); + for (const auto& msg : this->_internal_rallypoint_items()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } @@ -2840,24 +3506,24 @@ ::size_t DownloadMissionResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData DownloadMissionResponse::_class_data_ = { - DownloadMissionResponse::MergeImpl, +const ::google::protobuf::Message::ClassData DownloadRallypointsResponse::_class_data_ = { + DownloadRallypointsResponse::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; -const ::google::protobuf::Message::ClassData* DownloadMissionResponse::GetClassData() const { +const ::google::protobuf::Message::ClassData* DownloadRallypointsResponse::GetClassData() const { return &_class_data_; } -void DownloadMissionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.mission_raw.DownloadMissionResponse) +void DownloadRallypointsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.mission_raw.DownloadRallypointsResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_mission_items()->MergeFrom( - from._internal_mission_items()); + _this->_internal_mutable_rallypoint_items()->MergeFrom( + from._internal_rallypoint_items()); if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { _this->_internal_mutable_mission_raw_result()->::mavsdk::rpc::mission_raw::MissionRawResult::MergeFrom( from._internal_mission_raw_result()); @@ -2865,32 +3531,32 @@ void DownloadMissionResponse::MergeImpl(::google::protobuf::Message& to_msg, con _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void DownloadMissionResponse::CopyFrom(const DownloadMissionResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.mission_raw.DownloadMissionResponse) +void DownloadRallypointsResponse::CopyFrom(const DownloadRallypointsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.mission_raw.DownloadRallypointsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool DownloadMissionResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool DownloadRallypointsResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* DownloadMissionResponse::AccessCachedSize() const { +::_pbi::CachedSize* DownloadRallypointsResponse::AccessCachedSize() const { return &_impl_._cached_size_; } -void DownloadMissionResponse::InternalSwap(DownloadMissionResponse* PROTOBUF_RESTRICT other) { +void DownloadRallypointsResponse::InternalSwap(DownloadRallypointsResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.mission_items_.InternalSwap(&other->_impl_.mission_items_); + _impl_.rallypoint_items_.InternalSwap(&other->_impl_.rallypoint_items_); swap(_impl_.mission_raw_result_, other->_impl_.mission_raw_result_); } -::google::protobuf::Metadata DownloadMissionResponse::GetMetadata() const { +::google::protobuf::Metadata DownloadRallypointsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[9]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[13]); } // =================================================================== @@ -2925,7 +3591,7 @@ CancelMissionDownloadRequest::CancelMissionDownloadRequest( ::google::protobuf::Metadata CancelMissionDownloadRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[10]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[14]); } // =================================================================== @@ -3132,7 +3798,7 @@ void CancelMissionDownloadResponse::InternalSwap(CancelMissionDownloadResponse* ::google::protobuf::Metadata CancelMissionDownloadResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[11]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[15]); } // =================================================================== @@ -3167,7 +3833,7 @@ StartMissionRequest::StartMissionRequest( ::google::protobuf::Metadata StartMissionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[12]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[16]); } // =================================================================== @@ -3374,7 +4040,7 @@ void StartMissionResponse::InternalSwap(StartMissionResponse* PROTOBUF_RESTRICT ::google::protobuf::Metadata StartMissionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[13]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[17]); } // =================================================================== @@ -3409,7 +4075,7 @@ PauseMissionRequest::PauseMissionRequest( ::google::protobuf::Metadata PauseMissionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[14]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[18]); } // =================================================================== @@ -3616,7 +4282,7 @@ void PauseMissionResponse::InternalSwap(PauseMissionResponse* PROTOBUF_RESTRICT ::google::protobuf::Metadata PauseMissionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[15]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[19]); } // =================================================================== @@ -3651,7 +4317,7 @@ ClearMissionRequest::ClearMissionRequest( ::google::protobuf::Metadata ClearMissionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[16]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[20]); } // =================================================================== @@ -3858,7 +4524,7 @@ void ClearMissionResponse::InternalSwap(ClearMissionResponse* PROTOBUF_RESTRICT ::google::protobuf::Metadata ClearMissionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[17]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[21]); } // =================================================================== @@ -4028,7 +4694,7 @@ void SetCurrentMissionItemRequest::InternalSwap(SetCurrentMissionItemRequest* PR ::google::protobuf::Metadata SetCurrentMissionItemRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[18]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[22]); } // =================================================================== @@ -4235,7 +4901,7 @@ void SetCurrentMissionItemResponse::InternalSwap(SetCurrentMissionItemResponse* ::google::protobuf::Metadata SetCurrentMissionItemResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[19]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[23]); } // =================================================================== @@ -4270,7 +4936,7 @@ SubscribeMissionProgressRequest::SubscribeMissionProgressRequest( ::google::protobuf::Metadata SubscribeMissionProgressRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[20]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[24]); } // =================================================================== @@ -4477,7 +5143,7 @@ void MissionProgressResponse::InternalSwap(MissionProgressResponse* PROTOBUF_RES ::google::protobuf::Metadata MissionProgressResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[21]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[25]); } // =================================================================== @@ -4512,7 +5178,7 @@ SubscribeMissionChangedRequest::SubscribeMissionChangedRequest( ::google::protobuf::Metadata SubscribeMissionChangedRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[22]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[26]); } // =================================================================== @@ -4681,7 +5347,7 @@ void MissionChangedResponse::InternalSwap(MissionChangedResponse* PROTOBUF_RESTR ::google::protobuf::Metadata MissionChangedResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[23]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[27]); } // =================================================================== @@ -4871,7 +5537,7 @@ void ImportQgroundcontrolMissionRequest::InternalSwap(ImportQgroundcontrolMissio ::google::protobuf::Metadata ImportQgroundcontrolMissionRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[24]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[28]); } // =================================================================== @@ -5134,7 +5800,7 @@ void ImportQgroundcontrolMissionResponse::InternalSwap(ImportQgroundcontrolMissi ::google::protobuf::Metadata ImportQgroundcontrolMissionResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[25]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[29]); } // =================================================================== @@ -5324,7 +5990,7 @@ void ImportQgroundcontrolMissionFromStringRequest::InternalSwap(ImportQgroundcon ::google::protobuf::Metadata ImportQgroundcontrolMissionFromStringRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[26]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[30]); } // =================================================================== @@ -5587,7 +6253,7 @@ void ImportQgroundcontrolMissionFromStringResponse::InternalSwap(ImportQgroundco ::google::protobuf::Metadata ImportQgroundcontrolMissionFromStringResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[27]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[31]); } // =================================================================== @@ -5791,7 +6457,7 @@ void MissionProgress::InternalSwap(MissionProgress* PROTOBUF_RESTRICT other) { ::google::protobuf::Metadata MissionProgress::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[28]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[32]); } // =================================================================== @@ -6310,7 +6976,7 @@ void MissionItem::InternalSwap(MissionItem* PROTOBUF_RESTRICT other) { ::google::protobuf::Metadata MissionItem::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[29]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[33]); } // =================================================================== @@ -6548,7 +7214,7 @@ void MissionImportData::InternalSwap(MissionImportData* PROTOBUF_RESTRICT other) ::google::protobuf::Metadata MissionImportData::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[30]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[34]); } // =================================================================== @@ -6764,7 +7430,7 @@ void MissionRawResult::InternalSwap(MissionRawResult* PROTOBUF_RESTRICT other) { ::google::protobuf::Metadata MissionRawResult::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_getter, &descriptor_table_mission_5fraw_2fmission_5fraw_2eproto_once, - file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[31]); + file_level_metadata_mission_5fraw_2fmission_5fraw_2eproto[35]); } // @@protoc_insertion_point(namespace_scope) } // namespace mission_raw diff --git a/src/mavsdk_server/src/generated/mission_raw/mission_raw.pb.h b/src/mavsdk_server/src/generated/mission_raw/mission_raw.pb.h index 16475f93b8..6dbc687809 100644 --- a/src/mavsdk_server/src/generated/mission_raw/mission_raw.pb.h +++ b/src/mavsdk_server/src/generated/mission_raw/mission_raw.pb.h @@ -79,12 +79,24 @@ extern ClearMissionRequestDefaultTypeInternal _ClearMissionRequest_default_insta class ClearMissionResponse; struct ClearMissionResponseDefaultTypeInternal; extern ClearMissionResponseDefaultTypeInternal _ClearMissionResponse_default_instance_; +class DownloadGeofenceRequest; +struct DownloadGeofenceRequestDefaultTypeInternal; +extern DownloadGeofenceRequestDefaultTypeInternal _DownloadGeofenceRequest_default_instance_; +class DownloadGeofenceResponse; +struct DownloadGeofenceResponseDefaultTypeInternal; +extern DownloadGeofenceResponseDefaultTypeInternal _DownloadGeofenceResponse_default_instance_; class DownloadMissionRequest; struct DownloadMissionRequestDefaultTypeInternal; extern DownloadMissionRequestDefaultTypeInternal _DownloadMissionRequest_default_instance_; class DownloadMissionResponse; struct DownloadMissionResponseDefaultTypeInternal; extern DownloadMissionResponseDefaultTypeInternal _DownloadMissionResponse_default_instance_; +class DownloadRallypointsRequest; +struct DownloadRallypointsRequestDefaultTypeInternal; +extern DownloadRallypointsRequestDefaultTypeInternal _DownloadRallypointsRequest_default_instance_; +class DownloadRallypointsResponse; +struct DownloadRallypointsResponseDefaultTypeInternal; +extern DownloadRallypointsResponseDefaultTypeInternal _DownloadRallypointsResponse_default_instance_; class ImportQgroundcontrolMissionFromStringRequest; struct ImportQgroundcontrolMissionFromStringRequestDefaultTypeInternal; extern ImportQgroundcontrolMissionFromStringRequestDefaultTypeInternal _ImportQgroundcontrolMissionFromStringRequest_default_instance_; @@ -282,7 +294,7 @@ class SubscribeMissionProgressRequest final : &_SubscribeMissionProgressRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 24; friend void swap(SubscribeMissionProgressRequest& a, SubscribeMissionProgressRequest& b) { a.Swap(&b); @@ -418,7 +430,7 @@ class SubscribeMissionChangedRequest final : &_SubscribeMissionChangedRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 26; friend void swap(SubscribeMissionChangedRequest& a, SubscribeMissionChangedRequest& b) { a.Swap(&b); @@ -554,7 +566,7 @@ class StartMissionRequest final : &_StartMissionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 16; friend void swap(StartMissionRequest& a, StartMissionRequest& b) { a.Swap(&b); @@ -691,7 +703,7 @@ class SetCurrentMissionItemRequest final : &_SetCurrentMissionItemRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 22; friend void swap(SetCurrentMissionItemRequest& a, SetCurrentMissionItemRequest& b) { a.Swap(&b); @@ -865,7 +877,7 @@ class PauseMissionRequest final : &_PauseMissionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 18; friend void swap(PauseMissionRequest& a, PauseMissionRequest& b) { a.Swap(&b); @@ -1002,7 +1014,7 @@ class MissionRawResult final : &_MissionRawResult_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 35; friend void swap(MissionRawResult& a, MissionRawResult& b) { a.Swap(&b); @@ -1232,7 +1244,7 @@ class MissionProgress final : &_MissionProgress_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 32; friend void swap(MissionProgress& a, MissionProgress& b) { a.Swap(&b); @@ -1419,7 +1431,7 @@ class MissionItem final : &_MissionItem_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 33; friend void swap(MissionItem& a, MissionItem& b) { a.Swap(&b); @@ -1738,7 +1750,7 @@ class MissionChangedResponse final : &_MissionChangedResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 27; friend void swap(MissionChangedResponse& a, MissionChangedResponse& b) { a.Swap(&b); @@ -1913,7 +1925,7 @@ class ImportQgroundcontrolMissionRequest final : &_ImportQgroundcontrolMissionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 28; friend void swap(ImportQgroundcontrolMissionRequest& a, ImportQgroundcontrolMissionRequest& b) { a.Swap(&b); @@ -2094,7 +2106,7 @@ class ImportQgroundcontrolMissionFromStringRequest final : &_ImportQgroundcontrolMissionFromStringRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 30; friend void swap(ImportQgroundcontrolMissionFromStringRequest& a, ImportQgroundcontrolMissionFromStringRequest& b) { a.Swap(&b); @@ -2216,6 +2228,142 @@ class ImportQgroundcontrolMissionFromStringRequest final : friend struct ::TableStruct_mission_5fraw_2fmission_5fraw_2eproto; };// ------------------------------------------------------------------- +class DownloadRallypointsRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.mission_raw.DownloadRallypointsRequest) */ { + public: + inline DownloadRallypointsRequest() : DownloadRallypointsRequest(nullptr) {} + template + explicit PROTOBUF_CONSTEXPR DownloadRallypointsRequest(::google::protobuf::internal::ConstantInitialized); + + inline DownloadRallypointsRequest(const DownloadRallypointsRequest& from) + : DownloadRallypointsRequest(nullptr, from) {} + DownloadRallypointsRequest(DownloadRallypointsRequest&& from) noexcept + : DownloadRallypointsRequest() { + *this = ::std::move(from); + } + + inline DownloadRallypointsRequest& operator=(const DownloadRallypointsRequest& from) { + CopyFrom(from); + return *this; + } + inline DownloadRallypointsRequest& operator=(DownloadRallypointsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DownloadRallypointsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DownloadRallypointsRequest* internal_default_instance() { + return reinterpret_cast( + &_DownloadRallypointsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(DownloadRallypointsRequest& a, DownloadRallypointsRequest& b) { + a.Swap(&b); + } + inline void Swap(DownloadRallypointsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DownloadRallypointsRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DownloadRallypointsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DownloadRallypointsRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DownloadRallypointsRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "mavsdk.rpc.mission_raw.DownloadRallypointsRequest"; + } + protected: + explicit DownloadRallypointsRequest(::google::protobuf::Arena* arena); + DownloadRallypointsRequest(::google::protobuf::Arena* arena, const DownloadRallypointsRequest& from); + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.mission_raw.DownloadRallypointsRequest) + private: + class _Internal; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_mission_5fraw_2fmission_5fraw_2eproto; +};// ------------------------------------------------------------------- + class DownloadMissionRequest final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.mission_raw.DownloadMissionRequest) */ { public: @@ -2352,6 +2500,142 @@ class DownloadMissionRequest final : friend struct ::TableStruct_mission_5fraw_2fmission_5fraw_2eproto; };// ------------------------------------------------------------------- +class DownloadGeofenceRequest final : + public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.mission_raw.DownloadGeofenceRequest) */ { + public: + inline DownloadGeofenceRequest() : DownloadGeofenceRequest(nullptr) {} + template + explicit PROTOBUF_CONSTEXPR DownloadGeofenceRequest(::google::protobuf::internal::ConstantInitialized); + + inline DownloadGeofenceRequest(const DownloadGeofenceRequest& from) + : DownloadGeofenceRequest(nullptr, from) {} + DownloadGeofenceRequest(DownloadGeofenceRequest&& from) noexcept + : DownloadGeofenceRequest() { + *this = ::std::move(from); + } + + inline DownloadGeofenceRequest& operator=(const DownloadGeofenceRequest& from) { + CopyFrom(from); + return *this; + } + inline DownloadGeofenceRequest& operator=(DownloadGeofenceRequest&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DownloadGeofenceRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DownloadGeofenceRequest* internal_default_instance() { + return reinterpret_cast( + &_DownloadGeofenceRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(DownloadGeofenceRequest& a, DownloadGeofenceRequest& b) { + a.Swap(&b); + } + inline void Swap(DownloadGeofenceRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DownloadGeofenceRequest* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DownloadGeofenceRequest* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DownloadGeofenceRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DownloadGeofenceRequest& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + public: + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "mavsdk.rpc.mission_raw.DownloadGeofenceRequest"; + } + protected: + explicit DownloadGeofenceRequest(::google::protobuf::Arena* arena); + DownloadGeofenceRequest(::google::protobuf::Arena* arena, const DownloadGeofenceRequest& from); + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.mission_raw.DownloadGeofenceRequest) + private: + class _Internal; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_mission_5fraw_2fmission_5fraw_2eproto; +};// ------------------------------------------------------------------- + class ClearMissionRequest final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.mission_raw.ClearMissionRequest) */ { public: @@ -2410,7 +2694,7 @@ class ClearMissionRequest final : &_ClearMissionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 20; friend void swap(ClearMissionRequest& a, ClearMissionRequest& b) { a.Swap(&b); @@ -2682,7 +2966,7 @@ class CancelMissionDownloadRequest final : &_CancelMissionDownloadRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 14; friend void swap(CancelMissionDownloadRequest& a, CancelMissionDownloadRequest& b) { a.Swap(&b); @@ -3911,7 +4195,7 @@ class StartMissionResponse final : &_StartMissionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 17; friend void swap(StartMissionResponse& a, StartMissionResponse& b) { a.Swap(&b); @@ -4092,7 +4376,7 @@ class SetCurrentMissionItemResponse final : &_SetCurrentMissionItemResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 23; friend void swap(SetCurrentMissionItemResponse& a, SetCurrentMissionItemResponse& b) { a.Swap(&b); @@ -4273,7 +4557,7 @@ class PauseMissionResponse final : &_PauseMissionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 19; friend void swap(PauseMissionResponse& a, PauseMissionResponse& b) { a.Swap(&b); @@ -4454,7 +4738,7 @@ class MissionProgressResponse final : &_MissionProgressResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 25; friend void swap(MissionProgressResponse& a, MissionProgressResponse& b) { a.Swap(&b); @@ -4635,7 +4919,7 @@ class MissionImportData final : &_MissionImportData_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 34; friend void swap(MissionImportData& a, MissionImportData& b) { a.Swap(&b); @@ -4799,8 +5083,209 @@ class MissionImportData final : friend struct ::TableStruct_mission_5fraw_2fmission_5fraw_2eproto; };// ------------------------------------------------------------------- -class DownloadMissionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.mission_raw.DownloadMissionResponse) */ { +class DownloadRallypointsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.mission_raw.DownloadRallypointsResponse) */ { + public: + inline DownloadRallypointsResponse() : DownloadRallypointsResponse(nullptr) {} + ~DownloadRallypointsResponse() override; + template + explicit PROTOBUF_CONSTEXPR DownloadRallypointsResponse(::google::protobuf::internal::ConstantInitialized); + + inline DownloadRallypointsResponse(const DownloadRallypointsResponse& from) + : DownloadRallypointsResponse(nullptr, from) {} + DownloadRallypointsResponse(DownloadRallypointsResponse&& from) noexcept + : DownloadRallypointsResponse() { + *this = ::std::move(from); + } + + inline DownloadRallypointsResponse& operator=(const DownloadRallypointsResponse& from) { + CopyFrom(from); + return *this; + } + inline DownloadRallypointsResponse& operator=(DownloadRallypointsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DownloadRallypointsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DownloadRallypointsResponse* internal_default_instance() { + return reinterpret_cast( + &_DownloadRallypointsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(DownloadRallypointsResponse& a, DownloadRallypointsResponse& b) { + a.Swap(&b); + } + inline void Swap(DownloadRallypointsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DownloadRallypointsResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DownloadRallypointsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const DownloadRallypointsResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const DownloadRallypointsResponse& from) { + DownloadRallypointsResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(DownloadRallypointsResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "mavsdk.rpc.mission_raw.DownloadRallypointsResponse"; + } + protected: + explicit DownloadRallypointsResponse(::google::protobuf::Arena* arena); + DownloadRallypointsResponse(::google::protobuf::Arena* arena, const DownloadRallypointsResponse& from); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRallypointItemsFieldNumber = 2, + kMissionRawResultFieldNumber = 1, + }; + // repeated .mavsdk.rpc.mission_raw.MissionItem rallypoint_items = 2; + int rallypoint_items_size() const; + private: + int _internal_rallypoint_items_size() const; + + public: + void clear_rallypoint_items() ; + ::mavsdk::rpc::mission_raw::MissionItem* mutable_rallypoint_items(int index); + ::google::protobuf::RepeatedPtrField< ::mavsdk::rpc::mission_raw::MissionItem >* + mutable_rallypoint_items(); + private: + const ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>& _internal_rallypoint_items() const; + ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>* _internal_mutable_rallypoint_items(); + public: + const ::mavsdk::rpc::mission_raw::MissionItem& rallypoint_items(int index) const; + ::mavsdk::rpc::mission_raw::MissionItem* add_rallypoint_items(); + const ::google::protobuf::RepeatedPtrField< ::mavsdk::rpc::mission_raw::MissionItem >& + rallypoint_items() const; + // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; + bool has_mission_raw_result() const; + void clear_mission_raw_result() ; + const ::mavsdk::rpc::mission_raw::MissionRawResult& mission_raw_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::mission_raw::MissionRawResult* release_mission_raw_result(); + ::mavsdk::rpc::mission_raw::MissionRawResult* mutable_mission_raw_result(); + void set_allocated_mission_raw_result(::mavsdk::rpc::mission_raw::MissionRawResult* value); + void unsafe_arena_set_allocated_mission_raw_result(::mavsdk::rpc::mission_raw::MissionRawResult* value); + ::mavsdk::rpc::mission_raw::MissionRawResult* unsafe_arena_release_mission_raw_result(); + + private: + const ::mavsdk::rpc::mission_raw::MissionRawResult& _internal_mission_raw_result() const; + ::mavsdk::rpc::mission_raw::MissionRawResult* _internal_mutable_mission_raw_result(); + + public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.mission_raw.DownloadRallypointsResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 2, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::mavsdk::rpc::mission_raw::MissionItem > rallypoint_items_; + ::mavsdk::rpc::mission_raw::MissionRawResult* mission_raw_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_mission_5fraw_2fmission_5fraw_2eproto; +};// ------------------------------------------------------------------- + +class DownloadMissionResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.mission_raw.DownloadMissionResponse) */ { public: inline DownloadMissionResponse() : DownloadMissionResponse(nullptr) {} ~DownloadMissionResponse() override; @@ -4943,15 +5428,216 @@ class DownloadMissionResponse final : void clear_mission_items() ; ::mavsdk::rpc::mission_raw::MissionItem* mutable_mission_items(int index); ::google::protobuf::RepeatedPtrField< ::mavsdk::rpc::mission_raw::MissionItem >* - mutable_mission_items(); + mutable_mission_items(); + private: + const ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>& _internal_mission_items() const; + ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>* _internal_mutable_mission_items(); + public: + const ::mavsdk::rpc::mission_raw::MissionItem& mission_items(int index) const; + ::mavsdk::rpc::mission_raw::MissionItem* add_mission_items(); + const ::google::protobuf::RepeatedPtrField< ::mavsdk::rpc::mission_raw::MissionItem >& + mission_items() const; + // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; + bool has_mission_raw_result() const; + void clear_mission_raw_result() ; + const ::mavsdk::rpc::mission_raw::MissionRawResult& mission_raw_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::mission_raw::MissionRawResult* release_mission_raw_result(); + ::mavsdk::rpc::mission_raw::MissionRawResult* mutable_mission_raw_result(); + void set_allocated_mission_raw_result(::mavsdk::rpc::mission_raw::MissionRawResult* value); + void unsafe_arena_set_allocated_mission_raw_result(::mavsdk::rpc::mission_raw::MissionRawResult* value); + ::mavsdk::rpc::mission_raw::MissionRawResult* unsafe_arena_release_mission_raw_result(); + + private: + const ::mavsdk::rpc::mission_raw::MissionRawResult& _internal_mission_raw_result() const; + ::mavsdk::rpc::mission_raw::MissionRawResult* _internal_mutable_mission_raw_result(); + + public: + // @@protoc_insertion_point(class_scope:mavsdk.rpc.mission_raw.DownloadMissionResponse) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 2, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::mavsdk::rpc::mission_raw::MissionItem > mission_items_; + ::mavsdk::rpc::mission_raw::MissionRawResult* mission_raw_result_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_mission_5fraw_2fmission_5fraw_2eproto; +};// ------------------------------------------------------------------- + +class DownloadGeofenceResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.mission_raw.DownloadGeofenceResponse) */ { + public: + inline DownloadGeofenceResponse() : DownloadGeofenceResponse(nullptr) {} + ~DownloadGeofenceResponse() override; + template + explicit PROTOBUF_CONSTEXPR DownloadGeofenceResponse(::google::protobuf::internal::ConstantInitialized); + + inline DownloadGeofenceResponse(const DownloadGeofenceResponse& from) + : DownloadGeofenceResponse(nullptr, from) {} + DownloadGeofenceResponse(DownloadGeofenceResponse&& from) noexcept + : DownloadGeofenceResponse() { + *this = ::std::move(from); + } + + inline DownloadGeofenceResponse& operator=(const DownloadGeofenceResponse& from) { + CopyFrom(from); + return *this; + } + inline DownloadGeofenceResponse& operator=(DownloadGeofenceResponse&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DownloadGeofenceResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DownloadGeofenceResponse* internal_default_instance() { + return reinterpret_cast( + &_DownloadGeofenceResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(DownloadGeofenceResponse& a, DownloadGeofenceResponse& b) { + a.Swap(&b); + } + inline void Swap(DownloadGeofenceResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && + GetArena() == other->GetArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DownloadGeofenceResponse* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DownloadGeofenceResponse* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const DownloadGeofenceResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const DownloadGeofenceResponse& from) { + DownloadGeofenceResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(DownloadGeofenceResponse* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "mavsdk.rpc.mission_raw.DownloadGeofenceResponse"; + } + protected: + explicit DownloadGeofenceResponse(::google::protobuf::Arena* arena); + DownloadGeofenceResponse(::google::protobuf::Arena* arena, const DownloadGeofenceResponse& from); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kGeofenceItemsFieldNumber = 2, + kMissionRawResultFieldNumber = 1, + }; + // repeated .mavsdk.rpc.mission_raw.MissionItem geofence_items = 2; + int geofence_items_size() const; + private: + int _internal_geofence_items_size() const; + + public: + void clear_geofence_items() ; + ::mavsdk::rpc::mission_raw::MissionItem* mutable_geofence_items(int index); + ::google::protobuf::RepeatedPtrField< ::mavsdk::rpc::mission_raw::MissionItem >* + mutable_geofence_items(); private: - const ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>& _internal_mission_items() const; - ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>* _internal_mutable_mission_items(); + const ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>& _internal_geofence_items() const; + ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>* _internal_mutable_geofence_items(); public: - const ::mavsdk::rpc::mission_raw::MissionItem& mission_items(int index) const; - ::mavsdk::rpc::mission_raw::MissionItem* add_mission_items(); + const ::mavsdk::rpc::mission_raw::MissionItem& geofence_items(int index) const; + ::mavsdk::rpc::mission_raw::MissionItem* add_geofence_items(); const ::google::protobuf::RepeatedPtrField< ::mavsdk::rpc::mission_raw::MissionItem >& - mission_items() const; + geofence_items() const; // .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; bool has_mission_raw_result() const; void clear_mission_raw_result() ; @@ -4967,7 +5653,7 @@ class DownloadMissionResponse final : ::mavsdk::rpc::mission_raw::MissionRawResult* _internal_mutable_mission_raw_result(); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.mission_raw.DownloadMissionResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.mission_raw.DownloadGeofenceResponse) private: class _Internal; @@ -4992,7 +5678,7 @@ class DownloadMissionResponse final : ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::mavsdk::rpc::mission_raw::MissionItem > mission_items_; + ::google::protobuf::RepeatedPtrField< ::mavsdk::rpc::mission_raw::MissionItem > geofence_items_; ::mavsdk::rpc::mission_raw::MissionRawResult* mission_raw_result_; PROTOBUF_TSAN_DECLARE_MEMBER }; @@ -5059,7 +5745,7 @@ class ClearMissionResponse final : &_ClearMissionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 21; friend void swap(ClearMissionResponse& a, ClearMissionResponse& b) { a.Swap(&b); @@ -5421,7 +6107,7 @@ class CancelMissionDownloadResponse final : &_CancelMissionDownloadResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 15; friend void swap(CancelMissionDownloadResponse& a, CancelMissionDownloadResponse& b) { a.Swap(&b); @@ -5602,7 +6288,7 @@ class ImportQgroundcontrolMissionResponse final : &_ImportQgroundcontrolMissionResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 29; friend void swap(ImportQgroundcontrolMissionResponse& a, ImportQgroundcontrolMissionResponse& b) { a.Swap(&b); @@ -5800,7 +6486,7 @@ class ImportQgroundcontrolMissionFromStringResponse final : &_ImportQgroundcontrolMissionFromStringResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 31; friend void swap(ImportQgroundcontrolMissionFromStringResponse& a, ImportQgroundcontrolMissionFromStringResponse& b) { a.Swap(&b); @@ -6669,6 +7355,312 @@ DownloadMissionResponse::_internal_mutable_mission_items() { // ------------------------------------------------------------------- +// DownloadGeofenceRequest + +// ------------------------------------------------------------------- + +// DownloadGeofenceResponse + +// .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; +inline bool DownloadGeofenceResponse::has_mission_raw_result() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.mission_raw_result_ != nullptr); + return value; +} +inline void DownloadGeofenceResponse::clear_mission_raw_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.mission_raw_result_ != nullptr) _impl_.mission_raw_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::mission_raw::MissionRawResult& DownloadGeofenceResponse::_internal_mission_raw_result() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::mavsdk::rpc::mission_raw::MissionRawResult* p = _impl_.mission_raw_result_; + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::mission_raw::_MissionRawResult_default_instance_); +} +inline const ::mavsdk::rpc::mission_raw::MissionRawResult& DownloadGeofenceResponse::mission_raw_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:mavsdk.rpc.mission_raw.DownloadGeofenceResponse.mission_raw_result) + return _internal_mission_raw_result(); +} +inline void DownloadGeofenceResponse::unsafe_arena_set_allocated_mission_raw_result(::mavsdk::rpc::mission_raw::MissionRawResult* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mission_raw_result_); + } + _impl_.mission_raw_result_ = reinterpret_cast<::mavsdk::rpc::mission_raw::MissionRawResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.mission_raw.DownloadGeofenceResponse.mission_raw_result) +} +inline ::mavsdk::rpc::mission_raw::MissionRawResult* DownloadGeofenceResponse::release_mission_raw_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::mission_raw::MissionRawResult* released = _impl_.mission_raw_result_; + _impl_.mission_raw_result_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::mavsdk::rpc::mission_raw::MissionRawResult* DownloadGeofenceResponse::unsafe_arena_release_mission_raw_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:mavsdk.rpc.mission_raw.DownloadGeofenceResponse.mission_raw_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::mission_raw::MissionRawResult* temp = _impl_.mission_raw_result_; + _impl_.mission_raw_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::mission_raw::MissionRawResult* DownloadGeofenceResponse::_internal_mutable_mission_raw_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.mission_raw_result_ == nullptr) { + auto* p = CreateMaybeMessage<::mavsdk::rpc::mission_raw::MissionRawResult>(GetArena()); + _impl_.mission_raw_result_ = reinterpret_cast<::mavsdk::rpc::mission_raw::MissionRawResult*>(p); + } + return _impl_.mission_raw_result_; +} +inline ::mavsdk::rpc::mission_raw::MissionRawResult* DownloadGeofenceResponse::mutable_mission_raw_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::mavsdk::rpc::mission_raw::MissionRawResult* _msg = _internal_mutable_mission_raw_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.mission_raw.DownloadGeofenceResponse.mission_raw_result) + return _msg; +} +inline void DownloadGeofenceResponse::set_allocated_mission_raw_result(::mavsdk::rpc::mission_raw::MissionRawResult* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::mavsdk::rpc::mission_raw::MissionRawResult*>(_impl_.mission_raw_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::mission_raw::MissionRawResult*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.mission_raw_result_ = reinterpret_cast<::mavsdk::rpc::mission_raw::MissionRawResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.mission_raw.DownloadGeofenceResponse.mission_raw_result) +} + +// repeated .mavsdk.rpc.mission_raw.MissionItem geofence_items = 2; +inline int DownloadGeofenceResponse::_internal_geofence_items_size() const { + return _internal_geofence_items().size(); +} +inline int DownloadGeofenceResponse::geofence_items_size() const { + return _internal_geofence_items_size(); +} +inline void DownloadGeofenceResponse::clear_geofence_items() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.geofence_items_.Clear(); +} +inline ::mavsdk::rpc::mission_raw::MissionItem* DownloadGeofenceResponse::mutable_geofence_items(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.mission_raw.DownloadGeofenceResponse.geofence_items) + return _internal_mutable_geofence_items()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>* DownloadGeofenceResponse::mutable_geofence_items() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:mavsdk.rpc.mission_raw.DownloadGeofenceResponse.geofence_items) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_geofence_items(); +} +inline const ::mavsdk::rpc::mission_raw::MissionItem& DownloadGeofenceResponse::geofence_items(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:mavsdk.rpc.mission_raw.DownloadGeofenceResponse.geofence_items) + return _internal_geofence_items().Get(index); +} +inline ::mavsdk::rpc::mission_raw::MissionItem* DownloadGeofenceResponse::add_geofence_items() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::mavsdk::rpc::mission_raw::MissionItem* _add = _internal_mutable_geofence_items()->Add(); + // @@protoc_insertion_point(field_add:mavsdk.rpc.mission_raw.DownloadGeofenceResponse.geofence_items) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>& DownloadGeofenceResponse::geofence_items() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:mavsdk.rpc.mission_raw.DownloadGeofenceResponse.geofence_items) + return _internal_geofence_items(); +} +inline const ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>& +DownloadGeofenceResponse::_internal_geofence_items() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.geofence_items_; +} +inline ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>* +DownloadGeofenceResponse::_internal_mutable_geofence_items() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.geofence_items_; +} + +// ------------------------------------------------------------------- + +// DownloadRallypointsRequest + +// ------------------------------------------------------------------- + +// DownloadRallypointsResponse + +// .mavsdk.rpc.mission_raw.MissionRawResult mission_raw_result = 1; +inline bool DownloadRallypointsResponse::has_mission_raw_result() const { + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.mission_raw_result_ != nullptr); + return value; +} +inline void DownloadRallypointsResponse::clear_mission_raw_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (_impl_.mission_raw_result_ != nullptr) _impl_.mission_raw_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; +} +inline const ::mavsdk::rpc::mission_raw::MissionRawResult& DownloadRallypointsResponse::_internal_mission_raw_result() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + const ::mavsdk::rpc::mission_raw::MissionRawResult* p = _impl_.mission_raw_result_; + return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::mission_raw::_MissionRawResult_default_instance_); +} +inline const ::mavsdk::rpc::mission_raw::MissionRawResult& DownloadRallypointsResponse::mission_raw_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:mavsdk.rpc.mission_raw.DownloadRallypointsResponse.mission_raw_result) + return _internal_mission_raw_result(); +} +inline void DownloadRallypointsResponse::unsafe_arena_set_allocated_mission_raw_result(::mavsdk::rpc::mission_raw::MissionRawResult* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.mission_raw_result_); + } + _impl_.mission_raw_result_ = reinterpret_cast<::mavsdk::rpc::mission_raw::MissionRawResult*>(value); + if (value != nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.mission_raw.DownloadRallypointsResponse.mission_raw_result) +} +inline ::mavsdk::rpc::mission_raw::MissionRawResult* DownloadRallypointsResponse::release_mission_raw_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::mission_raw::MissionRawResult* released = _impl_.mission_raw_result_; + _impl_.mission_raw_result_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return released; +} +inline ::mavsdk::rpc::mission_raw::MissionRawResult* DownloadRallypointsResponse::unsafe_arena_release_mission_raw_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:mavsdk.rpc.mission_raw.DownloadRallypointsResponse.mission_raw_result) + + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::mission_raw::MissionRawResult* temp = _impl_.mission_raw_result_; + _impl_.mission_raw_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::mission_raw::MissionRawResult* DownloadRallypointsResponse::_internal_mutable_mission_raw_result() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.mission_raw_result_ == nullptr) { + auto* p = CreateMaybeMessage<::mavsdk::rpc::mission_raw::MissionRawResult>(GetArena()); + _impl_.mission_raw_result_ = reinterpret_cast<::mavsdk::rpc::mission_raw::MissionRawResult*>(p); + } + return _impl_.mission_raw_result_; +} +inline ::mavsdk::rpc::mission_raw::MissionRawResult* DownloadRallypointsResponse::mutable_mission_raw_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::mavsdk::rpc::mission_raw::MissionRawResult* _msg = _internal_mutable_mission_raw_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.mission_raw.DownloadRallypointsResponse.mission_raw_result) + return _msg; +} +inline void DownloadRallypointsResponse::set_allocated_mission_raw_result(::mavsdk::rpc::mission_raw::MissionRawResult* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (message_arena == nullptr) { + delete reinterpret_cast<::mavsdk::rpc::mission_raw::MissionRawResult*>(_impl_.mission_raw_result_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::mission_raw::MissionRawResult*>(value)->GetArena(); + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000001u; + } else { + _impl_._has_bits_[0] &= ~0x00000001u; + } + + _impl_.mission_raw_result_ = reinterpret_cast<::mavsdk::rpc::mission_raw::MissionRawResult*>(value); + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.mission_raw.DownloadRallypointsResponse.mission_raw_result) +} + +// repeated .mavsdk.rpc.mission_raw.MissionItem rallypoint_items = 2; +inline int DownloadRallypointsResponse::_internal_rallypoint_items_size() const { + return _internal_rallypoint_items().size(); +} +inline int DownloadRallypointsResponse::rallypoint_items_size() const { + return _internal_rallypoint_items_size(); +} +inline void DownloadRallypointsResponse::clear_rallypoint_items() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.rallypoint_items_.Clear(); +} +inline ::mavsdk::rpc::mission_raw::MissionItem* DownloadRallypointsResponse::mutable_rallypoint_items(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.mission_raw.DownloadRallypointsResponse.rallypoint_items) + return _internal_mutable_rallypoint_items()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>* DownloadRallypointsResponse::mutable_rallypoint_items() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:mavsdk.rpc.mission_raw.DownloadRallypointsResponse.rallypoint_items) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_rallypoint_items(); +} +inline const ::mavsdk::rpc::mission_raw::MissionItem& DownloadRallypointsResponse::rallypoint_items(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:mavsdk.rpc.mission_raw.DownloadRallypointsResponse.rallypoint_items) + return _internal_rallypoint_items().Get(index); +} +inline ::mavsdk::rpc::mission_raw::MissionItem* DownloadRallypointsResponse::add_rallypoint_items() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::mavsdk::rpc::mission_raw::MissionItem* _add = _internal_mutable_rallypoint_items()->Add(); + // @@protoc_insertion_point(field_add:mavsdk.rpc.mission_raw.DownloadRallypointsResponse.rallypoint_items) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>& DownloadRallypointsResponse::rallypoint_items() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:mavsdk.rpc.mission_raw.DownloadRallypointsResponse.rallypoint_items) + return _internal_rallypoint_items(); +} +inline const ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>& +DownloadRallypointsResponse::_internal_rallypoint_items() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.rallypoint_items_; +} +inline ::google::protobuf::RepeatedPtrField<::mavsdk::rpc::mission_raw::MissionItem>* +DownloadRallypointsResponse::_internal_mutable_rallypoint_items() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.rallypoint_items_; +} + +// ------------------------------------------------------------------- + // CancelMissionDownloadRequest // ------------------------------------------------------------------- diff --git a/src/mavsdk_server/src/plugins/mission_raw/mission_raw_service_impl.h b/src/mavsdk_server/src/plugins/mission_raw/mission_raw_service_impl.h index d66427f3a1..2206149a3f 100644 --- a/src/mavsdk_server/src/plugins/mission_raw/mission_raw_service_impl.h +++ b/src/mavsdk_server/src/plugins/mission_raw/mission_raw_service_impl.h @@ -426,6 +426,62 @@ class MissionRawServiceImpl final : public rpc::mission_raw::MissionRawService:: return grpc::Status::OK; } + grpc::Status DownloadGeofence( + grpc::ServerContext* /* context */, + const rpc::mission_raw::DownloadGeofenceRequest* /* request */, + rpc::mission_raw::DownloadGeofenceResponse* response) override + { + if (_lazy_plugin.maybe_plugin() == nullptr) { + if (response != nullptr) { + auto result = mavsdk::MissionRaw::Result::NoSystem; + fillResponseWithResult(response, result); + } + + return grpc::Status::OK; + } + + auto result = _lazy_plugin.maybe_plugin()->download_geofence(); + + if (response != nullptr) { + fillResponseWithResult(response, result.first); + + for (auto elem : result.second) { + auto* ptr = response->add_geofence_items(); + ptr->CopyFrom(*translateToRpcMissionItem(elem).release()); + } + } + + return grpc::Status::OK; + } + + grpc::Status DownloadRallypoints( + grpc::ServerContext* /* context */, + const rpc::mission_raw::DownloadRallypointsRequest* /* request */, + rpc::mission_raw::DownloadRallypointsResponse* response) override + { + if (_lazy_plugin.maybe_plugin() == nullptr) { + if (response != nullptr) { + auto result = mavsdk::MissionRaw::Result::NoSystem; + fillResponseWithResult(response, result); + } + + return grpc::Status::OK; + } + + auto result = _lazy_plugin.maybe_plugin()->download_rallypoints(); + + if (response != nullptr) { + fillResponseWithResult(response, result.first); + + for (auto elem : result.second) { + auto* ptr = response->add_rallypoint_items(); + ptr->CopyFrom(*translateToRpcMissionItem(elem).release()); + } + } + + return grpc::Status::OK; + } + grpc::Status CancelMissionDownload( grpc::ServerContext* /* context */, const rpc::mission_raw::CancelMissionDownloadRequest* /* request */,