From 77fdb0b679c445b35edc656e32fdd38e81285a24 Mon Sep 17 00:00:00 2001 From: David Jablonski Date: Wed, 14 Jun 2023 09:11:49 +0200 Subject: [PATCH] param_server: implemented change_param_? functions --- .../autopilot_server/autopilot_server.cpp | 4 +- proto | 2 +- src/mavsdk/core/mavlink_parameter_server.cpp | 65 + src/mavsdk/core/mavlink_parameter_server.h | 5 + .../plugins/param_server/param_server.h | 33 + .../plugins/param_server/param_server.cpp | 15 + .../param_server/param_server_impl.cpp | 48 + .../plugins/param_server/param_server_impl.h | 6 + .../param_server/param_server.grpc.pb.cc | 144 +- .../param_server/param_server.grpc.pb.h | 605 +++- .../generated/param_server/param_server.pb.cc | 2399 ++++++++++--- .../generated/param_server/param_server.pb.h | 3068 ++++++++++++----- .../param_server/param_server_service_impl.h | 93 + 13 files changed, 5164 insertions(+), 1323 deletions(-) diff --git a/examples/autopilot_server/autopilot_server.cpp b/examples/autopilot_server/autopilot_server.cpp index 77b31bfab6..0e69d5be8e 100644 --- a/examples/autopilot_server/autopilot_server.cpp +++ b/examples/autopilot_server/autopilot_server.cpp @@ -3,7 +3,6 @@ #include #include -#include #include #include #include @@ -83,7 +82,8 @@ int main(int argc, char** argv) paramServer.provide_param_int("SYS_HITL", 0); paramServer.provide_param_int("MIS_TAKEOFF_ALT", 0); // Add a custom param - paramServer.provide_param_int("my_param", 1); + paramServer.provide_param_int("MY_PARAM", 1); + paramServer.change_param_int("MY_PARAM", 2); // Allow the vehicle to change modes, takeoff and arm actionServer.set_allowable_flight_modes({true, true, true}); diff --git a/proto b/proto index 6b0cc8f1fa..8a62fffc89 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 6b0cc8f1fa27d74fbd183e66aa754e22eb0ef008 +Subproject commit 8a62fffc8970d3e277127b276d12cfc83bc02d59 diff --git a/src/mavsdk/core/mavlink_parameter_server.cpp b/src/mavsdk/core/mavlink_parameter_server.cpp index 550e8ea3f3..8f3835bd40 100644 --- a/src/mavsdk/core/mavlink_parameter_server.cpp +++ b/src/mavsdk/core/mavlink_parameter_server.cpp @@ -179,6 +179,71 @@ MavlinkParameterServer::retrieve_server_param_int(const std::string& name) return retrieve_server_param(name); } +MavlinkParameterServer::Result +MavlinkParameterServer::change_server_param(const std::string& name, const ParamValue& param_value) +{ + if (name.size() > PARAM_ID_LEN) { + LogErr() << "Error: param name too long"; + return Result::ParamNameTooLong; + } + const auto param_opt = _param_cache.param_by_id(name, true); + if (!param_opt.has_value()) { + return Result::NotFound; + } + // This parameter exists, check its type + const auto& param = param_opt.value(); + if (!param.value.is_same_type(param_value)) { + return Result::WrongType; + } + + if (param_value.is()) { + const auto s = param_value.get(); + if (s.size() > sizeof(mavlink_param_ext_set_t::param_value)) { + LogErr() << "Error: param value too long"; + return Result::ParamValueTooLong; + } + } + std::lock_guard lock(_all_params_mutex); + // then, to not change the public api behaviour, try updating its value. + switch (_param_cache.update_existing_param(name, param_value)) { + case MavlinkParameterCache::UpdateExistingParamResult::Ok: + return Result::Success; + case MavlinkParameterCache::UpdateExistingParamResult::MissingParam: + return Result::ParamNotFound; + case MavlinkParameterCache::UpdateExistingParamResult::WrongType: + return Result::WrongType; + default: + LogErr() << "Unknown update_existing_param result"; + assert(false); + } + + return Result::Unknown; +} + +MavlinkParameterServer::Result +MavlinkParameterServer::change_server_param_float(const std::string& name, float value) +{ + ParamValue param_value; + param_value.set(value); + return change_server_param(name, param_value); +} + +MavlinkParameterServer::Result +MavlinkParameterServer::change_server_param_int(const std::string& name, int32_t value) +{ + ParamValue param_value; + param_value.set(value); + return change_server_param(name, param_value); +} + +MavlinkParameterServer::Result MavlinkParameterServer::change_server_param_custom( + const std::string& name, const std::string& value) +{ + ParamValue param_value; + param_value.set(value); + return change_server_param(name, param_value); +} + void MavlinkParameterServer::process_param_set_internally( const std::string& param_id, const ParamValue& value_to_set, bool extended) { diff --git a/src/mavsdk/core/mavlink_parameter_server.h b/src/mavsdk/core/mavlink_parameter_server.h index d2a8ca0111..72eb746200 100644 --- a/src/mavsdk/core/mavlink_parameter_server.h +++ b/src/mavsdk/core/mavlink_parameter_server.h @@ -55,6 +55,11 @@ class MavlinkParameterServer : public MavlinkParameterSubscription { std::pair retrieve_server_param_int(const std::string& name); std::pair retrieve_server_param_custom(const std::string& name); + Result change_server_param(const std::string& name, const ParamValue& param_value); + Result change_server_param_float(const std::string& name, float value); + Result change_server_param_int(const std::string& name, int32_t value); + Result change_server_param_custom(const std::string& name, const std::string& value); + void do_work(); friend std::ostream& operator<<(std::ostream&, const Result&); diff --git a/src/mavsdk/plugins/param_server/include/plugins/param_server/param_server.h b/src/mavsdk/plugins/param_server/include/plugins/param_server/param_server.h index 7fe235cb03..c5ca554251 100644 --- a/src/mavsdk/plugins/param_server/include/plugins/param_server/param_server.h +++ b/src/mavsdk/plugins/param_server/include/plugins/param_server/param_server.h @@ -186,6 +186,17 @@ class ParamServer : public ServerPluginBase { */ Result provide_param_int(std::string name, int32_t value) const; + /** + * @brief Change an int parameter internally. + * + * If the type is wrong, the result will be `WRONG_TYPE`. + * + * This function is blocking. + * + * @return Result of request. + */ + Result change_param_int(std::string name, int32_t value) const; + /** * @brief Retrieve a float parameter. * @@ -208,6 +219,17 @@ class ParamServer : public ServerPluginBase { */ Result provide_param_float(std::string name, float value) const; + /** + * @brief Change a float parameter internally. + * + * If the type is wrong, the result will be `WRONG_TYPE`. + * + * This function is blocking. + * + * @return Result of request. + */ + Result change_param_float(std::string name, float value) const; + /** * @brief Retrieve a custom parameter. * @@ -230,6 +252,17 @@ class ParamServer : public ServerPluginBase { */ Result provide_param_custom(std::string name, std::string value) const; + /** + * @brief Change a custom parameter internally. + * + * If the type is wrong, the result will be `WRONG_TYPE`. + * + * This function is blocking. + * + * @return Result of request. + */ + Result change_param_custom(std::string name, std::string value) const; + /** * @brief Retrieve all parameters. * diff --git a/src/mavsdk/plugins/param_server/param_server.cpp b/src/mavsdk/plugins/param_server/param_server.cpp index 7f51c2f3c8..a2ae16612d 100644 --- a/src/mavsdk/plugins/param_server/param_server.cpp +++ b/src/mavsdk/plugins/param_server/param_server.cpp @@ -31,6 +31,11 @@ ParamServer::Result ParamServer::provide_param_int(std::string name, int32_t val return _impl->provide_param_int(name, value); } +ParamServer::Result ParamServer::change_param_int(std::string name, int32_t value) const +{ + return _impl->change_param_int(name, value); +} + std::pair ParamServer::retrieve_param_float(std::string name) const { return _impl->retrieve_param_float(name); @@ -41,6 +46,11 @@ ParamServer::Result ParamServer::provide_param_float(std::string name, float val return _impl->provide_param_float(name, value); } +ParamServer::Result ParamServer::change_param_float(std::string name, float value) const +{ + return _impl->change_param_float(name, value); +} + std::pair ParamServer::retrieve_param_custom(std::string name) const { @@ -52,6 +62,11 @@ ParamServer::Result ParamServer::provide_param_custom(std::string name, std::str return _impl->provide_param_custom(name, value); } +ParamServer::Result ParamServer::change_param_custom(std::string name, std::string value) const +{ + return _impl->change_param_custom(name, value); +} + ParamServer::AllParams ParamServer::retrieve_all_params() const { return _impl->retrieve_all_params(); diff --git a/src/mavsdk/plugins/param_server/param_server_impl.cpp b/src/mavsdk/plugins/param_server/param_server_impl.cpp index efad251b0d..5aca558193 100644 --- a/src/mavsdk/plugins/param_server/param_server_impl.cpp +++ b/src/mavsdk/plugins/param_server/param_server_impl.cpp @@ -39,6 +39,22 @@ ParamServer::Result ParamServerImpl::provide_param_int(std::string name, int32_t return ParamServer::Result::Success; } +ParamServer::Result ParamServerImpl::change_param_int(std::string name, int32_t value) +{ + if (name.size() > 16) { + return ParamServer::Result::ParamNameTooLong; + } + + const auto result = + _server_component_impl->mavlink_parameter_server().change_server_param_int(name, value); + + if (result == MavlinkParameterServer::Result::Success) { + return ParamServer::Result::Success; + } else { + return ParamServer::Result::NotFound; + } +} + std::pair ParamServerImpl::retrieve_param_float(std::string name) const { const auto result = @@ -60,6 +76,22 @@ ParamServer::Result ParamServerImpl::provide_param_float(std::string name, float return ParamServer::Result::Success; } +ParamServer::Result ParamServerImpl::change_param_float(std::string name, float value) +{ + if (name.size() > 16) { + return ParamServer::Result::ParamNameTooLong; + } + + const auto result = + _server_component_impl->mavlink_parameter_server().change_server_param_float(name, value); + + if (result == MavlinkParameterServer::Result::Success) { + return ParamServer::Result::Success; + } else { + return ParamServer::Result::NotFound; + } +} + std::pair ParamServerImpl::retrieve_param_custom(std::string name) const { @@ -83,6 +115,22 @@ ParamServerImpl::provide_param_custom(std::string name, const std::string& value return ParamServer::Result::Success; } +ParamServer::Result ParamServerImpl::change_param_custom(std::string name, const std::string& value) +{ + if (name.size() > 16) { + return ParamServer::Result::ParamNameTooLong; + } + + const auto result = + _server_component_impl->mavlink_parameter_server().change_server_param_custom(name, value); + + if (result == MavlinkParameterServer::Result::Success) { + return ParamServer::Result::Success; + } else { + return ParamServer::Result::NotFound; + } +} + ParamServer::AllParams ParamServerImpl::retrieve_all_params() const { auto tmp = _server_component_impl->mavlink_parameter_server().retrieve_all_server_params(); diff --git a/src/mavsdk/plugins/param_server/param_server_impl.h b/src/mavsdk/plugins/param_server/param_server_impl.h index c5a7e491bb..c90d2a051d 100644 --- a/src/mavsdk/plugins/param_server/param_server_impl.h +++ b/src/mavsdk/plugins/param_server/param_server_impl.h @@ -18,14 +18,20 @@ class ParamServerImpl : public ServerPluginImplBase { ParamServer::Result provide_param_int(std::string name, int32_t value); + ParamServer::Result change_param_int(std::string name, int32_t value); + std::pair retrieve_param_float(std::string name) const; ParamServer::Result provide_param_float(std::string name, float value); + ParamServer::Result change_param_float(std::string name, float value); + std::pair retrieve_param_custom(std::string name) const; ParamServer::Result provide_param_custom(std::string name, const std::string& value); + ParamServer::Result change_param_custom(std::string name, const std::string& value); + ParamServer::AllParams retrieve_all_params() const; static ParamServer::Result diff --git a/src/mavsdk_server/src/generated/param_server/param_server.grpc.pb.cc b/src/mavsdk_server/src/generated/param_server/param_server.grpc.pb.cc index 678d16cbd0..6c03aba234 100644 --- a/src/mavsdk_server/src/generated/param_server/param_server.grpc.pb.cc +++ b/src/mavsdk_server/src/generated/param_server/param_server.grpc.pb.cc @@ -26,10 +26,13 @@ namespace param_server { static const char* ParamServerService_method_names[] = { "/mavsdk.rpc.param_server.ParamServerService/RetrieveParamInt", "/mavsdk.rpc.param_server.ParamServerService/ProvideParamInt", + "/mavsdk.rpc.param_server.ParamServerService/ChangeParamInt", "/mavsdk.rpc.param_server.ParamServerService/RetrieveParamFloat", "/mavsdk.rpc.param_server.ParamServerService/ProvideParamFloat", + "/mavsdk.rpc.param_server.ParamServerService/ChangeParamFloat", "/mavsdk.rpc.param_server.ParamServerService/RetrieveParamCustom", "/mavsdk.rpc.param_server.ParamServerService/ProvideParamCustom", + "/mavsdk.rpc.param_server.ParamServerService/ChangeParamCustom", "/mavsdk.rpc.param_server.ParamServerService/RetrieveAllParams", }; @@ -42,11 +45,14 @@ std::unique_ptr< ParamServerService::Stub> ParamServerService::NewStub(const std ParamServerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) : channel_(channel), rpcmethod_RetrieveParamInt_(ParamServerService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_ProvideParamInt_(ParamServerService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RetrieveParamFloat_(ParamServerService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ProvideParamFloat_(ParamServerService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RetrieveParamCustom_(ParamServerService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ProvideParamCustom_(ParamServerService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RetrieveAllParams_(ParamServerService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ChangeParamInt_(ParamServerService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RetrieveParamFloat_(ParamServerService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ProvideParamFloat_(ParamServerService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ChangeParamFloat_(ParamServerService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RetrieveParamCustom_(ParamServerService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ProvideParamCustom_(ParamServerService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ChangeParamCustom_(ParamServerService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RetrieveAllParams_(ParamServerService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status ParamServerService::Stub::RetrieveParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamIntRequest& request, ::mavsdk::rpc::param_server::RetrieveParamIntResponse* response) { @@ -95,6 +101,29 @@ ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamIntR return result; } +::grpc::Status ParamServerService::Stub::ChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::param_server::ChangeParamIntRequest, ::mavsdk::rpc::param_server::ChangeParamIntResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ChangeParamInt_, context, request, response); +} + +void ParamServerService::Stub::async::ChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::mavsdk::rpc::param_server::ChangeParamIntRequest, ::mavsdk::rpc::param_server::ChangeParamIntResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ChangeParamInt_, context, request, response, std::move(f)); +} + +void ParamServerService::Stub::async::ChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ChangeParamInt_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamIntResponse>* ParamServerService::Stub::PrepareAsyncChangeParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::mavsdk::rpc::param_server::ChangeParamIntResponse, ::mavsdk::rpc::param_server::ChangeParamIntRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ChangeParamInt_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamIntResponse>* ParamServerService::Stub::AsyncChangeParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncChangeParamIntRaw(context, request, cq); + result->StartCall(); + return result; +} + ::grpc::Status ParamServerService::Stub::RetrieveParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamFloatRequest& request, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::param_server::RetrieveParamFloatRequest, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RetrieveParamFloat_, context, request, response); } @@ -141,6 +170,29 @@ ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamFloa return result; } +::grpc::Status ParamServerService::Stub::ChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::param_server::ChangeParamFloatRequest, ::mavsdk::rpc::param_server::ChangeParamFloatResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ChangeParamFloat_, context, request, response); +} + +void ParamServerService::Stub::async::ChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::mavsdk::rpc::param_server::ChangeParamFloatRequest, ::mavsdk::rpc::param_server::ChangeParamFloatResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ChangeParamFloat_, context, request, response, std::move(f)); +} + +void ParamServerService::Stub::async::ChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ChangeParamFloat_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>* ParamServerService::Stub::PrepareAsyncChangeParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::mavsdk::rpc::param_server::ChangeParamFloatResponse, ::mavsdk::rpc::param_server::ChangeParamFloatRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ChangeParamFloat_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>* ParamServerService::Stub::AsyncChangeParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncChangeParamFloatRaw(context, request, cq); + result->StartCall(); + return result; +} + ::grpc::Status ParamServerService::Stub::RetrieveParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamCustomRequest& request, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::param_server::RetrieveParamCustomRequest, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RetrieveParamCustom_, context, request, response); } @@ -187,6 +239,29 @@ ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamCust return result; } +::grpc::Status ParamServerService::Stub::ChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::param_server::ChangeParamCustomRequest, ::mavsdk::rpc::param_server::ChangeParamCustomResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ChangeParamCustom_, context, request, response); +} + +void ParamServerService::Stub::async::ChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::mavsdk::rpc::param_server::ChangeParamCustomRequest, ::mavsdk::rpc::param_server::ChangeParamCustomResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ChangeParamCustom_, context, request, response, std::move(f)); +} + +void ParamServerService::Stub::async::ChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ChangeParamCustom_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>* ParamServerService::Stub::PrepareAsyncChangeParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::mavsdk::rpc::param_server::ChangeParamCustomResponse, ::mavsdk::rpc::param_server::ChangeParamCustomRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ChangeParamCustom_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>* ParamServerService::Stub::AsyncChangeParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncChangeParamCustomRaw(context, request, cq); + result->StartCall(); + return result; +} + ::grpc::Status ParamServerService::Stub::RetrieveAllParams(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest& request, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::param_server::RetrieveAllParamsRequest, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RetrieveAllParams_, context, request, response); } @@ -234,6 +309,16 @@ ParamServerService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ParamServerService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ParamServerService::Service, ::mavsdk::rpc::param_server::ChangeParamIntRequest, ::mavsdk::rpc::param_server::ChangeParamIntResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ParamServerService::Service* service, + ::grpc::ServerContext* ctx, + const ::mavsdk::rpc::param_server::ChangeParamIntRequest* req, + ::mavsdk::rpc::param_server::ChangeParamIntResponse* resp) { + return service->ChangeParamInt(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ParamServerService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ParamServerService::Service, ::mavsdk::rpc::param_server::RetrieveParamFloatRequest, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ParamServerService::Service* service, ::grpc::ServerContext* ctx, @@ -242,7 +327,7 @@ ParamServerService::Service::Service() { return service->RetrieveParamFloat(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - ParamServerService_method_names[3], + ParamServerService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ParamServerService::Service, ::mavsdk::rpc::param_server::ProvideParamFloatRequest, ::mavsdk::rpc::param_server::ProvideParamFloatResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ParamServerService::Service* service, @@ -252,7 +337,17 @@ ParamServerService::Service::Service() { return service->ProvideParamFloat(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - ParamServerService_method_names[4], + ParamServerService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ParamServerService::Service, ::mavsdk::rpc::param_server::ChangeParamFloatRequest, ::mavsdk::rpc::param_server::ChangeParamFloatResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ParamServerService::Service* service, + ::grpc::ServerContext* ctx, + const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* req, + ::mavsdk::rpc::param_server::ChangeParamFloatResponse* resp) { + return service->ChangeParamFloat(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ParamServerService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ParamServerService::Service, ::mavsdk::rpc::param_server::RetrieveParamCustomRequest, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ParamServerService::Service* service, @@ -262,7 +357,7 @@ ParamServerService::Service::Service() { return service->RetrieveParamCustom(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - ParamServerService_method_names[5], + ParamServerService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ParamServerService::Service, ::mavsdk::rpc::param_server::ProvideParamCustomRequest, ::mavsdk::rpc::param_server::ProvideParamCustomResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ParamServerService::Service* service, @@ -272,7 +367,17 @@ ParamServerService::Service::Service() { return service->ProvideParamCustom(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - ParamServerService_method_names[6], + ParamServerService_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ParamServerService::Service, ::mavsdk::rpc::param_server::ChangeParamCustomRequest, ::mavsdk::rpc::param_server::ChangeParamCustomResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ParamServerService::Service* service, + ::grpc::ServerContext* ctx, + const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* req, + ::mavsdk::rpc::param_server::ChangeParamCustomResponse* resp) { + return service->ChangeParamCustom(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ParamServerService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ParamServerService::Service, ::mavsdk::rpc::param_server::RetrieveAllParamsRequest, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ParamServerService::Service* service, @@ -300,6 +405,13 @@ ::grpc::Status ParamServerService::Service::ProvideParamInt(::grpc::ServerContex return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status ParamServerService::Service::ChangeParamInt(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status ParamServerService::Service::RetrieveParamFloat(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::RetrieveParamFloatRequest* request, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse* response) { (void) context; (void) request; @@ -314,6 +426,13 @@ ::grpc::Status ParamServerService::Service::ProvideParamFloat(::grpc::ServerCont return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status ParamServerService::Service::ChangeParamFloat(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status ParamServerService::Service::RetrieveParamCustom(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::RetrieveParamCustomRequest* request, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse* response) { (void) context; (void) request; @@ -328,6 +447,13 @@ ::grpc::Status ParamServerService::Service::ProvideParamCustom(::grpc::ServerCon return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status ParamServerService::Service::ChangeParamCustom(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status ParamServerService::Service::RetrieveAllParams(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest* request, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse* response) { (void) context; (void) request; diff --git a/src/mavsdk_server/src/generated/param_server/param_server.grpc.pb.h b/src/mavsdk_server/src/generated/param_server/param_server.grpc.pb.h index 08da3203b6..0c14fe62c8 100644 --- a/src/mavsdk_server/src/generated/param_server/param_server.grpc.pb.h +++ b/src/mavsdk_server/src/generated/param_server/param_server.grpc.pb.h @@ -61,6 +61,17 @@ class ParamServerService final { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ProvideParamIntResponse>>(PrepareAsyncProvideParamIntRaw(context, request, cq)); } // + // Change an int parameter internally. + // + // If the type is wrong, the result will be `WRONG_TYPE`. + virtual ::grpc::Status ChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamIntResponse>> AsyncChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamIntResponse>>(AsyncChangeParamIntRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamIntResponse>> PrepareAsyncChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamIntResponse>>(PrepareAsyncChangeParamIntRaw(context, request, cq)); + } + // // Retrieve a float parameter. // // If the type is wrong, the result will be `WRONG_TYPE`. @@ -83,6 +94,17 @@ class ParamServerService final { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ProvideParamFloatResponse>>(PrepareAsyncProvideParamFloatRaw(context, request, cq)); } // + // Change a float parameter internally. + // + // If the type is wrong, the result will be `WRONG_TYPE`. + virtual ::grpc::Status ChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>> AsyncChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>>(AsyncChangeParamFloatRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>> PrepareAsyncChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>>(PrepareAsyncChangeParamFloatRaw(context, request, cq)); + } + // // Retrieve a custom parameter. // // If the type is wrong, the result will be `WRONG_TYPE`. @@ -105,6 +127,17 @@ class ParamServerService final { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ProvideParamCustomResponse>>(PrepareAsyncProvideParamCustomRaw(context, request, cq)); } // + // Change a custom parameter internally. + // + // If the type is wrong, the result will be `WRONG_TYPE`. + virtual ::grpc::Status ChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>> AsyncChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>>(AsyncChangeParamCustomRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>> PrepareAsyncChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>>(PrepareAsyncChangeParamCustomRaw(context, request, cq)); + } + // // Retrieve all parameters. virtual ::grpc::Status RetrieveAllParams(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest& request, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>> AsyncRetrieveAllParams(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest& request, ::grpc::CompletionQueue* cq) { @@ -129,6 +162,12 @@ class ParamServerService final { virtual void ProvideParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamIntRequest* request, ::mavsdk::rpc::param_server::ProvideParamIntResponse* response, std::function) = 0; virtual void ProvideParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamIntRequest* request, ::mavsdk::rpc::param_server::ProvideParamIntResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // + // Change an int parameter internally. + // + // If the type is wrong, the result will be `WRONG_TYPE`. + virtual void ChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response, std::function) = 0; + virtual void ChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // // Retrieve a float parameter. // // If the type is wrong, the result will be `WRONG_TYPE`. @@ -141,6 +180,12 @@ class ParamServerService final { virtual void ProvideParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest* request, ::mavsdk::rpc::param_server::ProvideParamFloatResponse* response, std::function) = 0; virtual void ProvideParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest* request, ::mavsdk::rpc::param_server::ProvideParamFloatResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // + // Change a float parameter internally. + // + // If the type is wrong, the result will be `WRONG_TYPE`. + virtual void ChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response, std::function) = 0; + virtual void ChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // // Retrieve a custom parameter. // // If the type is wrong, the result will be `WRONG_TYPE`. @@ -153,6 +198,12 @@ class ParamServerService final { virtual void ProvideParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest* request, ::mavsdk::rpc::param_server::ProvideParamCustomResponse* response, std::function) = 0; virtual void ProvideParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest* request, ::mavsdk::rpc::param_server::ProvideParamCustomResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // + // Change a custom parameter internally. + // + // If the type is wrong, the result will be `WRONG_TYPE`. + virtual void ChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response, std::function) = 0; + virtual void ChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // // Retrieve all parameters. virtual void RetrieveAllParams(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest* request, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse* response, std::function) = 0; virtual void RetrieveAllParams(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest* request, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; @@ -165,14 +216,20 @@ class ParamServerService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::RetrieveParamIntResponse>* PrepareAsyncRetrieveParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamIntRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ProvideParamIntResponse>* AsyncProvideParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamIntRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ProvideParamIntResponse>* PrepareAsyncProvideParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamIntRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamIntResponse>* AsyncChangeParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamIntResponse>* PrepareAsyncChangeParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::RetrieveParamFloatResponse>* AsyncRetrieveParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamFloatRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::RetrieveParamFloatResponse>* PrepareAsyncRetrieveParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamFloatRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ProvideParamFloatResponse>* AsyncProvideParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ProvideParamFloatResponse>* PrepareAsyncProvideParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>* AsyncChangeParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>* PrepareAsyncChangeParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::RetrieveParamCustomResponse>* AsyncRetrieveParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamCustomRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::RetrieveParamCustomResponse>* PrepareAsyncRetrieveParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamCustomRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ProvideParamCustomResponse>* AsyncProvideParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ProvideParamCustomResponse>* PrepareAsyncProvideParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>* AsyncChangeParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>* PrepareAsyncChangeParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>* AsyncRetrieveAllParamsRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>* PrepareAsyncRetrieveAllParamsRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest& request, ::grpc::CompletionQueue* cq) = 0; }; @@ -193,6 +250,13 @@ class ParamServerService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamIntResponse>> PrepareAsyncProvideParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamIntRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamIntResponse>>(PrepareAsyncProvideParamIntRaw(context, request, cq)); } + ::grpc::Status ChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamIntResponse>> AsyncChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamIntResponse>>(AsyncChangeParamIntRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamIntResponse>> PrepareAsyncChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamIntResponse>>(PrepareAsyncChangeParamIntRaw(context, request, cq)); + } ::grpc::Status RetrieveParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamFloatRequest& request, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveParamFloatResponse>> AsyncRetrieveParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamFloatRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveParamFloatResponse>>(AsyncRetrieveParamFloatRaw(context, request, cq)); @@ -207,6 +271,13 @@ class ParamServerService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamFloatResponse>> PrepareAsyncProvideParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamFloatResponse>>(PrepareAsyncProvideParamFloatRaw(context, request, cq)); } + ::grpc::Status ChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>> AsyncChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>>(AsyncChangeParamFloatRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>> PrepareAsyncChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>>(PrepareAsyncChangeParamFloatRaw(context, request, cq)); + } ::grpc::Status RetrieveParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamCustomRequest& request, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveParamCustomResponse>> AsyncRetrieveParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamCustomRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveParamCustomResponse>>(AsyncRetrieveParamCustomRaw(context, request, cq)); @@ -221,6 +292,13 @@ class ParamServerService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamCustomResponse>> PrepareAsyncProvideParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamCustomResponse>>(PrepareAsyncProvideParamCustomRaw(context, request, cq)); } + ::grpc::Status ChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>> AsyncChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>>(AsyncChangeParamCustomRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>> PrepareAsyncChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>>(PrepareAsyncChangeParamCustomRaw(context, request, cq)); + } ::grpc::Status RetrieveAllParams(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest& request, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>> AsyncRetrieveAllParams(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>>(AsyncRetrieveAllParamsRaw(context, request, cq)); @@ -235,14 +313,20 @@ class ParamServerService final { void RetrieveParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamIntRequest* request, ::mavsdk::rpc::param_server::RetrieveParamIntResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void ProvideParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamIntRequest* request, ::mavsdk::rpc::param_server::ProvideParamIntResponse* response, std::function) override; void ProvideParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamIntRequest* request, ::mavsdk::rpc::param_server::ProvideParamIntResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response, std::function) override; + void ChangeParamInt(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void RetrieveParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamFloatRequest* request, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse* response, std::function) override; void RetrieveParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamFloatRequest* request, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void ProvideParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest* request, ::mavsdk::rpc::param_server::ProvideParamFloatResponse* response, std::function) override; void ProvideParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest* request, ::mavsdk::rpc::param_server::ProvideParamFloatResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response, std::function) override; + void ChangeParamFloat(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void RetrieveParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamCustomRequest* request, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse* response, std::function) override; void RetrieveParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamCustomRequest* request, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void ProvideParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest* request, ::mavsdk::rpc::param_server::ProvideParamCustomResponse* response, std::function) override; void ProvideParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest* request, ::mavsdk::rpc::param_server::ProvideParamCustomResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response, std::function) override; + void ChangeParamCustom(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void RetrieveAllParams(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest* request, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse* response, std::function) override; void RetrieveAllParams(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest* request, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: @@ -260,22 +344,31 @@ class ParamServerService final { ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveParamIntResponse>* PrepareAsyncRetrieveParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamIntRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamIntResponse>* AsyncProvideParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamIntRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamIntResponse>* PrepareAsyncProvideParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamIntRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamIntResponse>* AsyncChangeParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamIntResponse>* PrepareAsyncChangeParamIntRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveParamFloatResponse>* AsyncRetrieveParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamFloatRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveParamFloatResponse>* PrepareAsyncRetrieveParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamFloatRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamFloatResponse>* AsyncProvideParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamFloatResponse>* PrepareAsyncProvideParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>* AsyncChangeParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>* PrepareAsyncChangeParamFloatRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveParamCustomResponse>* AsyncRetrieveParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamCustomRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveParamCustomResponse>* PrepareAsyncRetrieveParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveParamCustomRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamCustomResponse>* AsyncProvideParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ProvideParamCustomResponse>* PrepareAsyncProvideParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>* AsyncChangeParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>* PrepareAsyncChangeParamCustomRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>* AsyncRetrieveAllParamsRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>* PrepareAsyncRetrieveAllParamsRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_RetrieveParamInt_; const ::grpc::internal::RpcMethod rpcmethod_ProvideParamInt_; + const ::grpc::internal::RpcMethod rpcmethod_ChangeParamInt_; const ::grpc::internal::RpcMethod rpcmethod_RetrieveParamFloat_; const ::grpc::internal::RpcMethod rpcmethod_ProvideParamFloat_; + const ::grpc::internal::RpcMethod rpcmethod_ChangeParamFloat_; const ::grpc::internal::RpcMethod rpcmethod_RetrieveParamCustom_; const ::grpc::internal::RpcMethod rpcmethod_ProvideParamCustom_; + const ::grpc::internal::RpcMethod rpcmethod_ChangeParamCustom_; const ::grpc::internal::RpcMethod rpcmethod_RetrieveAllParams_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -295,6 +388,11 @@ class ParamServerService final { // If the type is wrong, the result will be `WRONG_TYPE`. virtual ::grpc::Status ProvideParamInt(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::ProvideParamIntRequest* request, ::mavsdk::rpc::param_server::ProvideParamIntResponse* response); // + // Change an int parameter internally. + // + // If the type is wrong, the result will be `WRONG_TYPE`. + virtual ::grpc::Status ChangeParamInt(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response); + // // Retrieve a float parameter. // // If the type is wrong, the result will be `WRONG_TYPE`. @@ -305,6 +403,11 @@ class ParamServerService final { // If the type is wrong, the result will be `WRONG_TYPE`. virtual ::grpc::Status ProvideParamFloat(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest* request, ::mavsdk::rpc::param_server::ProvideParamFloatResponse* response); // + // Change a float parameter internally. + // + // If the type is wrong, the result will be `WRONG_TYPE`. + virtual ::grpc::Status ChangeParamFloat(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response); + // // Retrieve a custom parameter. // // If the type is wrong, the result will be `WRONG_TYPE`. @@ -315,6 +418,11 @@ class ParamServerService final { // If the type is wrong, the result will be `WRONG_TYPE`. virtual ::grpc::Status ProvideParamCustom(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest* request, ::mavsdk::rpc::param_server::ProvideParamCustomResponse* response); // + // Change a custom parameter internally. + // + // If the type is wrong, the result will be `WRONG_TYPE`. + virtual ::grpc::Status ChangeParamCustom(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response); + // // Retrieve all parameters. virtual ::grpc::Status RetrieveAllParams(::grpc::ServerContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest* request, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse* response); }; @@ -359,12 +467,32 @@ class ParamServerService final { } }; template + class WithAsyncMethod_ChangeParamInt : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ChangeParamInt() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_ChangeParamInt() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamInt(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamIntResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestChangeParamInt(::grpc::ServerContext* context, ::mavsdk::rpc::param_server::ChangeParamIntRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::param_server::ChangeParamIntResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_RetrieveParamFloat : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_RetrieveParamFloat() { - ::grpc::Service::MarkMethodAsync(2); + ::grpc::Service::MarkMethodAsync(3); } ~WithAsyncMethod_RetrieveParamFloat() override { BaseClassMustBeDerivedFromService(this); @@ -375,7 +503,7 @@ class ParamServerService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRetrieveParamFloat(::grpc::ServerContext* context, ::mavsdk::rpc::param_server::RetrieveParamFloatRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::param_server::RetrieveParamFloatResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -384,7 +512,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ProvideParamFloat() { - ::grpc::Service::MarkMethodAsync(3); + ::grpc::Service::MarkMethodAsync(4); } ~WithAsyncMethod_ProvideParamFloat() override { BaseClassMustBeDerivedFromService(this); @@ -395,7 +523,27 @@ class ParamServerService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestProvideParamFloat(::grpc::ServerContext* context, ::mavsdk::rpc::param_server::ProvideParamFloatRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::param_server::ProvideParamFloatResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ChangeParamFloat : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ChangeParamFloat() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_ChangeParamFloat() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamFloat(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestChangeParamFloat(::grpc::ServerContext* context, ::mavsdk::rpc::param_server::ChangeParamFloatRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::param_server::ChangeParamFloatResponse>* 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 @@ -404,7 +552,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_RetrieveParamCustom() { - ::grpc::Service::MarkMethodAsync(4); + ::grpc::Service::MarkMethodAsync(6); } ~WithAsyncMethod_RetrieveParamCustom() override { BaseClassMustBeDerivedFromService(this); @@ -415,7 +563,7 @@ class ParamServerService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRetrieveParamCustom(::grpc::ServerContext* context, ::mavsdk::rpc::param_server::RetrieveParamCustomRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::param_server::RetrieveParamCustomResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -424,7 +572,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_ProvideParamCustom() { - ::grpc::Service::MarkMethodAsync(5); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_ProvideParamCustom() override { BaseClassMustBeDerivedFromService(this); @@ -435,7 +583,27 @@ class ParamServerService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestProvideParamCustom(::grpc::ServerContext* context, ::mavsdk::rpc::param_server::ProvideParamCustomRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::param_server::ProvideParamCustomResponse>* 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 + class WithAsyncMethod_ChangeParamCustom : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ChangeParamCustom() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_ChangeParamCustom() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamCustom(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestChangeParamCustom(::grpc::ServerContext* context, ::mavsdk::rpc::param_server::ChangeParamCustomRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::param_server::ChangeParamCustomResponse>* 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); } }; template @@ -444,7 +612,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_RetrieveAllParams() { - ::grpc::Service::MarkMethodAsync(6); + ::grpc::Service::MarkMethodAsync(9); } ~WithAsyncMethod_RetrieveAllParams() override { BaseClassMustBeDerivedFromService(this); @@ -455,10 +623,10 @@ class ParamServerService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRetrieveAllParams(::grpc::ServerContext* context, ::mavsdk::rpc::param_server::RetrieveAllParamsRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>* 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(9, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_RetrieveParamInt > > > > > > AsyncService; + typedef WithAsyncMethod_RetrieveParamInt > > > > > > > > > AsyncService; template class WithCallbackMethod_RetrieveParamInt : public BaseClass { private: @@ -514,18 +682,45 @@ class ParamServerService final { ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::param_server::ProvideParamIntRequest* /*request*/, ::mavsdk::rpc::param_server::ProvideParamIntResponse* /*response*/) { return nullptr; } }; template + class WithCallbackMethod_ChangeParamInt : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ChangeParamInt() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::ChangeParamIntRequest, ::mavsdk::rpc::param_server::ChangeParamIntResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* request, ::mavsdk::rpc::param_server::ChangeParamIntResponse* response) { return this->ChangeParamInt(context, request, response); }));} + void SetMessageAllocatorFor_ChangeParamInt( + ::grpc::MessageAllocator< ::mavsdk::rpc::param_server::ChangeParamIntRequest, ::mavsdk::rpc::param_server::ChangeParamIntResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::ChangeParamIntRequest, ::mavsdk::rpc::param_server::ChangeParamIntResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ChangeParamInt() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamInt(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamIntResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ChangeParamInt( + ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamIntResponse* /*response*/) { return nullptr; } + }; + template class WithCallbackMethod_RetrieveParamFloat : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_RetrieveParamFloat() { - ::grpc::Service::MarkMethodCallback(2, + ::grpc::Service::MarkMethodCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::RetrieveParamFloatRequest, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::param_server::RetrieveParamFloatRequest* request, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse* response) { return this->RetrieveParamFloat(context, request, response); }));} void SetMessageAllocatorFor_RetrieveParamFloat( ::grpc::MessageAllocator< ::mavsdk::rpc::param_server::RetrieveParamFloatRequest, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::RetrieveParamFloatRequest, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -546,13 +741,13 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_ProvideParamFloat() { - ::grpc::Service::MarkMethodCallback(3, + ::grpc::Service::MarkMethodCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::ProvideParamFloatRequest, ::mavsdk::rpc::param_server::ProvideParamFloatResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest* request, ::mavsdk::rpc::param_server::ProvideParamFloatResponse* response) { return this->ProvideParamFloat(context, request, response); }));} void SetMessageAllocatorFor_ProvideParamFloat( ::grpc::MessageAllocator< ::mavsdk::rpc::param_server::ProvideParamFloatRequest, ::mavsdk::rpc::param_server::ProvideParamFloatResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::ProvideParamFloatRequest, ::mavsdk::rpc::param_server::ProvideParamFloatResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -568,18 +763,45 @@ class ParamServerService final { ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::param_server::ProvideParamFloatRequest* /*request*/, ::mavsdk::rpc::param_server::ProvideParamFloatResponse* /*response*/) { return nullptr; } }; template + class WithCallbackMethod_ChangeParamFloat : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ChangeParamFloat() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::ChangeParamFloatRequest, ::mavsdk::rpc::param_server::ChangeParamFloatResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* request, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* response) { return this->ChangeParamFloat(context, request, response); }));} + void SetMessageAllocatorFor_ChangeParamFloat( + ::grpc::MessageAllocator< ::mavsdk::rpc::param_server::ChangeParamFloatRequest, ::mavsdk::rpc::param_server::ChangeParamFloatResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::ChangeParamFloatRequest, ::mavsdk::rpc::param_server::ChangeParamFloatResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ChangeParamFloat() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamFloat(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ChangeParamFloat( + ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* /*response*/) { return nullptr; } + }; + template class WithCallbackMethod_RetrieveParamCustom : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_RetrieveParamCustom() { - ::grpc::Service::MarkMethodCallback(4, + ::grpc::Service::MarkMethodCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::RetrieveParamCustomRequest, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::param_server::RetrieveParamCustomRequest* request, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse* response) { return this->RetrieveParamCustom(context, request, response); }));} void SetMessageAllocatorFor_RetrieveParamCustom( ::grpc::MessageAllocator< ::mavsdk::rpc::param_server::RetrieveParamCustomRequest, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::RetrieveParamCustomRequest, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -600,13 +822,13 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_ProvideParamCustom() { - ::grpc::Service::MarkMethodCallback(5, + ::grpc::Service::MarkMethodCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::ProvideParamCustomRequest, ::mavsdk::rpc::param_server::ProvideParamCustomResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest* request, ::mavsdk::rpc::param_server::ProvideParamCustomResponse* response) { return this->ProvideParamCustom(context, request, response); }));} void SetMessageAllocatorFor_ProvideParamCustom( ::grpc::MessageAllocator< ::mavsdk::rpc::param_server::ProvideParamCustomRequest, ::mavsdk::rpc::param_server::ProvideParamCustomResponse>* 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::param_server::ProvideParamCustomRequest, ::mavsdk::rpc::param_server::ProvideParamCustomResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -622,18 +844,45 @@ class ParamServerService final { ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::param_server::ProvideParamCustomRequest* /*request*/, ::mavsdk::rpc::param_server::ProvideParamCustomResponse* /*response*/) { return nullptr; } }; template + class WithCallbackMethod_ChangeParamCustom : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ChangeParamCustom() { + ::grpc::Service::MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::ChangeParamCustomRequest, ::mavsdk::rpc::param_server::ChangeParamCustomResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* request, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* response) { return this->ChangeParamCustom(context, request, response); }));} + void SetMessageAllocatorFor_ChangeParamCustom( + ::grpc::MessageAllocator< ::mavsdk::rpc::param_server::ChangeParamCustomRequest, ::mavsdk::rpc::param_server::ChangeParamCustomResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::ChangeParamCustomRequest, ::mavsdk::rpc::param_server::ChangeParamCustomResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ChangeParamCustom() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamCustom(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ChangeParamCustom( + ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* /*response*/) { return nullptr; } + }; + template class WithCallbackMethod_RetrieveAllParams : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_RetrieveAllParams() { - ::grpc::Service::MarkMethodCallback(6, + ::grpc::Service::MarkMethodCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::RetrieveAllParamsRequest, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest* request, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse* response) { return this->RetrieveAllParams(context, request, response); }));} void SetMessageAllocatorFor_RetrieveAllParams( ::grpc::MessageAllocator< ::mavsdk::rpc::param_server::RetrieveAllParamsRequest, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::param_server::RetrieveAllParamsRequest, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -648,7 +897,7 @@ class ParamServerService final { virtual ::grpc::ServerUnaryReactor* RetrieveAllParams( ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::param_server::RetrieveAllParamsRequest* /*request*/, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_RetrieveParamInt > > > > > > CallbackService; + typedef WithCallbackMethod_RetrieveParamInt > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_RetrieveParamInt : public BaseClass { @@ -685,12 +934,29 @@ class ParamServerService final { } }; template + class WithGenericMethod_ChangeParamInt : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ChangeParamInt() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_ChangeParamInt() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamInt(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamIntResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_RetrieveParamFloat : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_RetrieveParamFloat() { - ::grpc::Service::MarkMethodGeneric(2); + ::grpc::Service::MarkMethodGeneric(3); } ~WithGenericMethod_RetrieveParamFloat() override { BaseClassMustBeDerivedFromService(this); @@ -707,7 +973,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ProvideParamFloat() { - ::grpc::Service::MarkMethodGeneric(3); + ::grpc::Service::MarkMethodGeneric(4); } ~WithGenericMethod_ProvideParamFloat() override { BaseClassMustBeDerivedFromService(this); @@ -719,12 +985,29 @@ class ParamServerService final { } }; template + class WithGenericMethod_ChangeParamFloat : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ChangeParamFloat() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_ChangeParamFloat() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamFloat(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_RetrieveParamCustom : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_RetrieveParamCustom() { - ::grpc::Service::MarkMethodGeneric(4); + ::grpc::Service::MarkMethodGeneric(6); } ~WithGenericMethod_RetrieveParamCustom() override { BaseClassMustBeDerivedFromService(this); @@ -741,7 +1024,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_ProvideParamCustom() { - ::grpc::Service::MarkMethodGeneric(5); + ::grpc::Service::MarkMethodGeneric(7); } ~WithGenericMethod_ProvideParamCustom() override { BaseClassMustBeDerivedFromService(this); @@ -753,12 +1036,29 @@ class ParamServerService final { } }; template + class WithGenericMethod_ChangeParamCustom : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ChangeParamCustom() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_ChangeParamCustom() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamCustom(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_RetrieveAllParams : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_RetrieveAllParams() { - ::grpc::Service::MarkMethodGeneric(6); + ::grpc::Service::MarkMethodGeneric(9); } ~WithGenericMethod_RetrieveAllParams() override { BaseClassMustBeDerivedFromService(this); @@ -810,12 +1110,32 @@ class ParamServerService final { } }; template + class WithRawMethod_ChangeParamInt : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ChangeParamInt() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_ChangeParamInt() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamInt(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamIntResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestChangeParamInt(::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(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_RetrieveParamFloat : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_RetrieveParamFloat() { - ::grpc::Service::MarkMethodRaw(2); + ::grpc::Service::MarkMethodRaw(3); } ~WithRawMethod_RetrieveParamFloat() override { BaseClassMustBeDerivedFromService(this); @@ -826,7 +1146,7 @@ class ParamServerService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRetrieveParamFloat(::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(2, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -835,7 +1155,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ProvideParamFloat() { - ::grpc::Service::MarkMethodRaw(3); + ::grpc::Service::MarkMethodRaw(4); } ~WithRawMethod_ProvideParamFloat() override { BaseClassMustBeDerivedFromService(this); @@ -846,7 +1166,27 @@ class ParamServerService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestProvideParamFloat(::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(3, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ChangeParamFloat : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ChangeParamFloat() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_ChangeParamFloat() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamFloat(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestChangeParamFloat(::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 @@ -855,7 +1195,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_RetrieveParamCustom() { - ::grpc::Service::MarkMethodRaw(4); + ::grpc::Service::MarkMethodRaw(6); } ~WithRawMethod_RetrieveParamCustom() override { BaseClassMustBeDerivedFromService(this); @@ -866,7 +1206,7 @@ class ParamServerService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRetrieveParamCustom(::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(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -875,7 +1215,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_ProvideParamCustom() { - ::grpc::Service::MarkMethodRaw(5); + ::grpc::Service::MarkMethodRaw(7); } ~WithRawMethod_ProvideParamCustom() override { BaseClassMustBeDerivedFromService(this); @@ -886,7 +1226,27 @@ class ParamServerService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestProvideParamCustom(::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 + class WithRawMethod_ChangeParamCustom : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ChangeParamCustom() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_ChangeParamCustom() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamCustom(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestChangeParamCustom(::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); } }; template @@ -895,7 +1255,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_RetrieveAllParams() { - ::grpc::Service::MarkMethodRaw(6); + ::grpc::Service::MarkMethodRaw(9); } ~WithRawMethod_RetrieveAllParams() override { BaseClassMustBeDerivedFromService(this); @@ -906,7 +1266,7 @@ class ParamServerService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestRetrieveAllParams(::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(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -954,12 +1314,34 @@ class ParamServerService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_ChangeParamInt : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ChangeParamInt() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ChangeParamInt(context, request, response); })); + } + ~WithRawCallbackMethod_ChangeParamInt() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamInt(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamIntResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ChangeParamInt( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithRawCallbackMethod_RetrieveParamFloat : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_RetrieveParamFloat() { - ::grpc::Service::MarkMethodRawCallback(2, + ::grpc::Service::MarkMethodRawCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->RetrieveParamFloat(context, request, response); })); @@ -981,7 +1363,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_ProvideParamFloat() { - ::grpc::Service::MarkMethodRawCallback(3, + ::grpc::Service::MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ProvideParamFloat(context, request, response); })); @@ -998,12 +1380,34 @@ class ParamServerService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_ChangeParamFloat : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ChangeParamFloat() { + ::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->ChangeParamFloat(context, request, response); })); + } + ~WithRawCallbackMethod_ChangeParamFloat() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamFloat(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ChangeParamFloat( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithRawCallbackMethod_RetrieveParamCustom : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_RetrieveParamCustom() { - ::grpc::Service::MarkMethodRawCallback(4, + ::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->RetrieveParamCustom(context, request, response); })); @@ -1025,7 +1429,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_ProvideParamCustom() { - ::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->ProvideParamCustom(context, request, response); })); @@ -1042,12 +1446,34 @@ class ParamServerService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_ChangeParamCustom : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ChangeParamCustom() { + ::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->ChangeParamCustom(context, request, response); })); + } + ~WithRawCallbackMethod_ChangeParamCustom() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ChangeParamCustom(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ChangeParamCustom( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithRawCallbackMethod_RetrieveAllParams : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_RetrieveAllParams() { - ::grpc::Service::MarkMethodRawCallback(6, + ::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->RetrieveAllParams(context, request, response); })); @@ -1118,12 +1544,39 @@ class ParamServerService final { virtual ::grpc::Status StreamedProvideParamInt(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::param_server::ProvideParamIntRequest,::mavsdk::rpc::param_server::ProvideParamIntResponse>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_ChangeParamInt : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ChangeParamInt() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::mavsdk::rpc::param_server::ChangeParamIntRequest, ::mavsdk::rpc::param_server::ChangeParamIntResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::mavsdk::rpc::param_server::ChangeParamIntRequest, ::mavsdk::rpc::param_server::ChangeParamIntResponse>* streamer) { + return this->StreamedChangeParamInt(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ChangeParamInt() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ChangeParamInt(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamIntRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamIntResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedChangeParamInt(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::param_server::ChangeParamIntRequest,::mavsdk::rpc::param_server::ChangeParamIntResponse>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_RetrieveParamFloat : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_RetrieveParamFloat() { - ::grpc::Service::MarkMethodStreamed(2, + ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::param_server::RetrieveParamFloatRequest, ::mavsdk::rpc::param_server::RetrieveParamFloatResponse>( [this](::grpc::ServerContext* context, @@ -1150,7 +1603,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ProvideParamFloat() { - ::grpc::Service::MarkMethodStreamed(3, + ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::param_server::ProvideParamFloatRequest, ::mavsdk::rpc::param_server::ProvideParamFloatResponse>( [this](::grpc::ServerContext* context, @@ -1172,12 +1625,39 @@ class ParamServerService final { virtual ::grpc::Status StreamedProvideParamFloat(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::param_server::ProvideParamFloatRequest,::mavsdk::rpc::param_server::ProvideParamFloatResponse>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_ChangeParamFloat : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ChangeParamFloat() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::mavsdk::rpc::param_server::ChangeParamFloatRequest, ::mavsdk::rpc::param_server::ChangeParamFloatResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::mavsdk::rpc::param_server::ChangeParamFloatRequest, ::mavsdk::rpc::param_server::ChangeParamFloatResponse>* streamer) { + return this->StreamedChangeParamFloat(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ChangeParamFloat() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ChangeParamFloat(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamFloatRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamFloatResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedChangeParamFloat(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::param_server::ChangeParamFloatRequest,::mavsdk::rpc::param_server::ChangeParamFloatResponse>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_RetrieveParamCustom : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_RetrieveParamCustom() { - ::grpc::Service::MarkMethodStreamed(4, + ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::param_server::RetrieveParamCustomRequest, ::mavsdk::rpc::param_server::RetrieveParamCustomResponse>( [this](::grpc::ServerContext* context, @@ -1204,7 +1684,7 @@ class ParamServerService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_ProvideParamCustom() { - ::grpc::Service::MarkMethodStreamed(5, + ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::param_server::ProvideParamCustomRequest, ::mavsdk::rpc::param_server::ProvideParamCustomResponse>( [this](::grpc::ServerContext* context, @@ -1226,12 +1706,39 @@ class ParamServerService final { virtual ::grpc::Status StreamedProvideParamCustom(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::param_server::ProvideParamCustomRequest,::mavsdk::rpc::param_server::ProvideParamCustomResponse>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_ChangeParamCustom : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ChangeParamCustom() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< + ::mavsdk::rpc::param_server::ChangeParamCustomRequest, ::mavsdk::rpc::param_server::ChangeParamCustomResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::mavsdk::rpc::param_server::ChangeParamCustomRequest, ::mavsdk::rpc::param_server::ChangeParamCustomResponse>* streamer) { + return this->StreamedChangeParamCustom(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ChangeParamCustom() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ChangeParamCustom(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::param_server::ChangeParamCustomRequest* /*request*/, ::mavsdk::rpc::param_server::ChangeParamCustomResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedChangeParamCustom(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::param_server::ChangeParamCustomRequest,::mavsdk::rpc::param_server::ChangeParamCustomResponse>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_RetrieveAllParams : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_RetrieveAllParams() { - ::grpc::Service::MarkMethodStreamed(6, + ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::param_server::RetrieveAllParamsRequest, ::mavsdk::rpc::param_server::RetrieveAllParamsResponse>( [this](::grpc::ServerContext* context, @@ -1252,9 +1759,9 @@ class ParamServerService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedRetrieveAllParams(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::param_server::RetrieveAllParamsRequest,::mavsdk::rpc::param_server::RetrieveAllParamsResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_RetrieveParamInt > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_RetrieveParamInt > > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_RetrieveParamInt > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_RetrieveParamInt > > > > > > > > > StreamedService; }; } // namespace param_server diff --git a/src/mavsdk_server/src/generated/param_server/param_server.pb.cc b/src/mavsdk_server/src/generated/param_server/param_server.pb.cc index 2065f27df6..9459f261d4 100644 --- a/src/mavsdk_server/src/generated/param_server/param_server.pb.cc +++ b/src/mavsdk_server/src/generated/param_server/param_server.pb.cc @@ -73,6 +73,31 @@ struct ProvideParamIntResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProvideParamIntResponseDefaultTypeInternal _ProvideParamIntResponse_default_instance_; +PROTOBUF_CONSTEXPR ChangeParamIntRequest::ChangeParamIntRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , value_(0){} +struct ChangeParamIntRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeParamIntRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeParamIntRequestDefaultTypeInternal() {} + union { + ChangeParamIntRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeParamIntRequestDefaultTypeInternal _ChangeParamIntRequest_default_instance_; +PROTOBUF_CONSTEXPR ChangeParamIntResponse::ChangeParamIntResponse( + ::_pbi::ConstantInitialized) + : param_server_result_(nullptr){} +struct ChangeParamIntResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeParamIntResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeParamIntResponseDefaultTypeInternal() {} + union { + ChangeParamIntResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeParamIntResponseDefaultTypeInternal _ChangeParamIntResponse_default_instance_; PROTOBUF_CONSTEXPR RetrieveParamFloatRequest::RetrieveParamFloatRequest( ::_pbi::ConstantInitialized) : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} @@ -123,6 +148,31 @@ struct ProvideParamFloatResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProvideParamFloatResponseDefaultTypeInternal _ProvideParamFloatResponse_default_instance_; +PROTOBUF_CONSTEXPR ChangeParamFloatRequest::ChangeParamFloatRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , value_(0){} +struct ChangeParamFloatRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeParamFloatRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeParamFloatRequestDefaultTypeInternal() {} + union { + ChangeParamFloatRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeParamFloatRequestDefaultTypeInternal _ChangeParamFloatRequest_default_instance_; +PROTOBUF_CONSTEXPR ChangeParamFloatResponse::ChangeParamFloatResponse( + ::_pbi::ConstantInitialized) + : param_server_result_(nullptr){} +struct ChangeParamFloatResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeParamFloatResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeParamFloatResponseDefaultTypeInternal() {} + union { + ChangeParamFloatResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeParamFloatResponseDefaultTypeInternal _ChangeParamFloatResponse_default_instance_; PROTOBUF_CONSTEXPR RetrieveParamCustomRequest::RetrieveParamCustomRequest( ::_pbi::ConstantInitialized) : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} @@ -173,6 +223,31 @@ struct ProvideParamCustomResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProvideParamCustomResponseDefaultTypeInternal _ProvideParamCustomResponse_default_instance_; +PROTOBUF_CONSTEXPR ChangeParamCustomRequest::ChangeParamCustomRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , value_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct ChangeParamCustomRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeParamCustomRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeParamCustomRequestDefaultTypeInternal() {} + union { + ChangeParamCustomRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeParamCustomRequestDefaultTypeInternal _ChangeParamCustomRequest_default_instance_; +PROTOBUF_CONSTEXPR ChangeParamCustomResponse::ChangeParamCustomResponse( + ::_pbi::ConstantInitialized) + : param_server_result_(nullptr){} +struct ChangeParamCustomResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeParamCustomResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeParamCustomResponseDefaultTypeInternal() {} + union { + ChangeParamCustomResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeParamCustomResponseDefaultTypeInternal _ChangeParamCustomResponse_default_instance_; PROTOBUF_CONSTEXPR RetrieveAllParamsRequest::RetrieveAllParamsRequest( ::_pbi::ConstantInitialized){} struct RetrieveAllParamsRequestDefaultTypeInternal { @@ -266,7 +341,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace param_server } // namespace rpc } // namespace mavsdk -static ::_pb::Metadata file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[19]; +static ::_pb::Metadata file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[25]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_param_5fserver_2fparam_5fserver_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_param_5fserver_2fparam_5fserver_2eproto = nullptr; @@ -302,6 +377,21 @@ const uint32_t TableStruct_param_5fserver_2fparam_5fserver_2eproto::offsets[] PR ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ProvideParamIntResponse, param_server_result_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamIntRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamIntRequest, name_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamIntRequest, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamIntResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamIntResponse, param_server_result_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::RetrieveParamFloatRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -332,6 +422,21 @@ const uint32_t TableStruct_param_5fserver_2fparam_5fserver_2eproto::offsets[] PR ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ProvideParamFloatResponse, param_server_result_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamFloatRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamFloatRequest, name_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamFloatRequest, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamFloatResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamFloatResponse, param_server_result_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::RetrieveParamCustomRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -362,6 +467,21 @@ const uint32_t TableStruct_param_5fserver_2fparam_5fserver_2eproto::offsets[] PR ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ProvideParamCustomResponse, param_server_result_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamCustomRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamCustomRequest, name_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamCustomRequest, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamCustomResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::ChangeParamCustomResponse, param_server_result_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::param_server::RetrieveAllParamsRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -421,21 +541,27 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 7, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveParamIntResponse)}, { 15, -1, -1, sizeof(::mavsdk::rpc::param_server::ProvideParamIntRequest)}, { 23, -1, -1, sizeof(::mavsdk::rpc::param_server::ProvideParamIntResponse)}, - { 30, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveParamFloatRequest)}, - { 37, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveParamFloatResponse)}, - { 45, -1, -1, sizeof(::mavsdk::rpc::param_server::ProvideParamFloatRequest)}, - { 53, -1, -1, sizeof(::mavsdk::rpc::param_server::ProvideParamFloatResponse)}, - { 60, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveParamCustomRequest)}, - { 67, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveParamCustomResponse)}, - { 75, -1, -1, sizeof(::mavsdk::rpc::param_server::ProvideParamCustomRequest)}, - { 83, -1, -1, sizeof(::mavsdk::rpc::param_server::ProvideParamCustomResponse)}, - { 90, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveAllParamsRequest)}, - { 96, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveAllParamsResponse)}, - { 103, -1, -1, sizeof(::mavsdk::rpc::param_server::IntParam)}, - { 111, -1, -1, sizeof(::mavsdk::rpc::param_server::FloatParam)}, - { 119, -1, -1, sizeof(::mavsdk::rpc::param_server::CustomParam)}, - { 127, -1, -1, sizeof(::mavsdk::rpc::param_server::AllParams)}, - { 136, -1, -1, sizeof(::mavsdk::rpc::param_server::ParamServerResult)}, + { 30, -1, -1, sizeof(::mavsdk::rpc::param_server::ChangeParamIntRequest)}, + { 38, -1, -1, sizeof(::mavsdk::rpc::param_server::ChangeParamIntResponse)}, + { 45, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveParamFloatRequest)}, + { 52, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveParamFloatResponse)}, + { 60, -1, -1, sizeof(::mavsdk::rpc::param_server::ProvideParamFloatRequest)}, + { 68, -1, -1, sizeof(::mavsdk::rpc::param_server::ProvideParamFloatResponse)}, + { 75, -1, -1, sizeof(::mavsdk::rpc::param_server::ChangeParamFloatRequest)}, + { 83, -1, -1, sizeof(::mavsdk::rpc::param_server::ChangeParamFloatResponse)}, + { 90, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveParamCustomRequest)}, + { 97, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveParamCustomResponse)}, + { 105, -1, -1, sizeof(::mavsdk::rpc::param_server::ProvideParamCustomRequest)}, + { 113, -1, -1, sizeof(::mavsdk::rpc::param_server::ProvideParamCustomResponse)}, + { 120, -1, -1, sizeof(::mavsdk::rpc::param_server::ChangeParamCustomRequest)}, + { 128, -1, -1, sizeof(::mavsdk::rpc::param_server::ChangeParamCustomResponse)}, + { 135, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveAllParamsRequest)}, + { 141, -1, -1, sizeof(::mavsdk::rpc::param_server::RetrieveAllParamsResponse)}, + { 148, -1, -1, sizeof(::mavsdk::rpc::param_server::IntParam)}, + { 156, -1, -1, sizeof(::mavsdk::rpc::param_server::FloatParam)}, + { 164, -1, -1, sizeof(::mavsdk::rpc::param_server::CustomParam)}, + { 172, -1, -1, sizeof(::mavsdk::rpc::param_server::AllParams)}, + { 181, -1, -1, sizeof(::mavsdk::rpc::param_server::ParamServerResult)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -443,14 +569,20 @@ static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::param_server::_RetrieveParamIntResponse_default_instance_._instance, &::mavsdk::rpc::param_server::_ProvideParamIntRequest_default_instance_._instance, &::mavsdk::rpc::param_server::_ProvideParamIntResponse_default_instance_._instance, + &::mavsdk::rpc::param_server::_ChangeParamIntRequest_default_instance_._instance, + &::mavsdk::rpc::param_server::_ChangeParamIntResponse_default_instance_._instance, &::mavsdk::rpc::param_server::_RetrieveParamFloatRequest_default_instance_._instance, &::mavsdk::rpc::param_server::_RetrieveParamFloatResponse_default_instance_._instance, &::mavsdk::rpc::param_server::_ProvideParamFloatRequest_default_instance_._instance, &::mavsdk::rpc::param_server::_ProvideParamFloatResponse_default_instance_._instance, + &::mavsdk::rpc::param_server::_ChangeParamFloatRequest_default_instance_._instance, + &::mavsdk::rpc::param_server::_ChangeParamFloatResponse_default_instance_._instance, &::mavsdk::rpc::param_server::_RetrieveParamCustomRequest_default_instance_._instance, &::mavsdk::rpc::param_server::_RetrieveParamCustomResponse_default_instance_._instance, &::mavsdk::rpc::param_server::_ProvideParamCustomRequest_default_instance_._instance, &::mavsdk::rpc::param_server::_ProvideParamCustomResponse_default_instance_._instance, + &::mavsdk::rpc::param_server::_ChangeParamCustomRequest_default_instance_._instance, + &::mavsdk::rpc::param_server::_ChangeParamCustomResponse_default_instance_._instance, &::mavsdk::rpc::param_server::_RetrieveAllParamsRequest_default_instance_._instance, &::mavsdk::rpc::param_server::_RetrieveAllParamsResponse_default_instance_._instance, &::mavsdk::rpc::param_server::_IntParam_default_instance_._instance, @@ -470,75 +602,96 @@ const char descriptor_table_protodef_param_5fserver_2fparam_5fserver_2eproto[] P "\026ProvideParamIntRequest\022\014\n\004name\030\001 \001(\t\022\r\n" "\005value\030\002 \001(\005\"b\n\027ProvideParamIntResponse\022" "G\n\023param_server_result\030\001 \001(\0132*.mavsdk.rp" - "c.param_server.ParamServerResult\")\n\031Retr" - "ieveParamFloatRequest\022\014\n\004name\030\001 \001(\t\"t\n\032R" - "etrieveParamFloatResponse\022G\n\023param_serve" - "r_result\030\001 \001(\0132*.mavsdk.rpc.param_server" - ".ParamServerResult\022\r\n\005value\030\002 \001(\002\"7\n\030Pro" - "videParamFloatRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005v" - "alue\030\002 \001(\002\"d\n\031ProvideParamFloatResponse\022" - "G\n\023param_server_result\030\001 \001(\0132*.mavsdk.rp" - "c.param_server.ParamServerResult\"*\n\032Retr" - "ieveParamCustomRequest\022\014\n\004name\030\001 \001(\t\"u\n\033" - "RetrieveParamCustomResponse\022G\n\023param_ser" - "ver_result\030\001 \001(\0132*.mavsdk.rpc.param_serv" - "er.ParamServerResult\022\r\n\005value\030\002 \001(\t\"8\n\031P" - "rovideParamCustomRequest\022\014\n\004name\030\001 \001(\t\022\r" - "\n\005value\030\002 \001(\t\"e\n\032ProvideParamCustomRespo" - "nse\022G\n\023param_server_result\030\001 \001(\0132*.mavsd" - "k.rpc.param_server.ParamServerResult\"\032\n\030" - "RetrieveAllParamsRequest\"O\n\031RetrieveAllP" - "aramsResponse\0222\n\006params\030\001 \001(\0132\".mavsdk.r" - "pc.param_server.AllParams\"\'\n\010IntParam\022\014\n" - "\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\005\")\n\nFloatParam" - "\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\002\"*\n\013CustomP" - "aram\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\272\001\n\tAl" - "lParams\0225\n\nint_params\030\001 \003(\0132!.mavsdk.rpc" - ".param_server.IntParam\0229\n\014float_params\030\002" - " \003(\0132#.mavsdk.rpc.param_server.FloatPara" - "m\022;\n\rcustom_params\030\003 \003(\0132$.mavsdk.rpc.pa" - "ram_server.CustomParam\"\241\002\n\021ParamServerRe" - "sult\022A\n\006result\030\001 \001(\01621.mavsdk.rpc.param_" - "server.ParamServerResult.Result\022\022\n\nresul" - "t_str\030\002 \001(\t\"\264\001\n\006Result\022\022\n\016RESULT_UNKNOWN" - "\020\000\022\022\n\016RESULT_SUCCESS\020\001\022\024\n\020RESULT_NOT_FOU" - "ND\020\002\022\025\n\021RESULT_WRONG_TYPE\020\003\022\036\n\032RESULT_PA" - "RAM_NAME_TOO_LONG\020\004\022\024\n\020RESULT_NO_SYSTEM\020" - "\005\022\037\n\033RESULT_PARAM_VALUE_TOO_LONG\020\0062\252\007\n\022P" - "aramServerService\022}\n\020RetrieveParamInt\0220." - "mavsdk.rpc.param_server.RetrieveParamInt" - "Request\0321.mavsdk.rpc.param_server.Retrie" - "veParamIntResponse\"\004\200\265\030\001\022z\n\017ProvideParam" - "Int\022/.mavsdk.rpc.param_server.ProvidePar" - "amIntRequest\0320.mavsdk.rpc.param_server.P" - "rovideParamIntResponse\"\004\200\265\030\001\022\203\001\n\022Retriev" - "eParamFloat\0222.mavsdk.rpc.param_server.Re" - "trieveParamFloatRequest\0323.mavsdk.rpc.par" - "am_server.RetrieveParamFloatResponse\"\004\200\265" - "\030\001\022\200\001\n\021ProvideParamFloat\0221.mavsdk.rpc.pa" - "ram_server.ProvideParamFloatRequest\0322.ma" - "vsdk.rpc.param_server.ProvideParamFloatR" - "esponse\"\004\200\265\030\001\022\206\001\n\023RetrieveParamCustom\0223." - "mavsdk.rpc.param_server.RetrieveParamCus" - "tomRequest\0324.mavsdk.rpc.param_server.Ret" - "rieveParamCustomResponse\"\004\200\265\030\001\022\203\001\n\022Provi" - "deParamCustom\0222.mavsdk.rpc.param_server." - "ProvideParamCustomRequest\0323.mavsdk.rpc.p" - "aram_server.ProvideParamCustomResponse\"\004" - "\200\265\030\001\022\200\001\n\021RetrieveAllParams\0221.mavsdk.rpc." - "param_server.RetrieveAllParamsRequest\0322." - "mavsdk.rpc.param_server.RetrieveAllParam" - "sResponse\"\004\200\265\030\001B*\n\026io.mavsdk.param_serve" - "rB\020ParamServerProtob\006proto3" + "c.param_server.ParamServerResult\"4\n\025Chan" + "geParamIntRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005value" + "\030\002 \001(\005\"a\n\026ChangeParamIntResponse\022G\n\023para" + "m_server_result\030\001 \001(\0132*.mavsdk.rpc.param" + "_server.ParamServerResult\")\n\031RetrievePar" + "amFloatRequest\022\014\n\004name\030\001 \001(\t\"t\n\032Retrieve" + "ParamFloatResponse\022G\n\023param_server_resul" + "t\030\001 \001(\0132*.mavsdk.rpc.param_server.ParamS" + "erverResult\022\r\n\005value\030\002 \001(\002\"7\n\030ProvidePar" + "amFloatRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\002\"d\n\031ProvideParamFloatResponse\022G\n\023para" + "m_server_result\030\001 \001(\0132*.mavsdk.rpc.param" + "_server.ParamServerResult\"6\n\027ChangeParam" + "FloatRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(" + "\002\"c\n\030ChangeParamFloatResponse\022G\n\023param_s" + "erver_result\030\001 \001(\0132*.mavsdk.rpc.param_se" + "rver.ParamServerResult\"*\n\032RetrieveParamC" + "ustomRequest\022\014\n\004name\030\001 \001(\t\"u\n\033RetrievePa" + "ramCustomResponse\022G\n\023param_server_result" + "\030\001 \001(\0132*.mavsdk.rpc.param_server.ParamSe" + "rverResult\022\r\n\005value\030\002 \001(\t\"8\n\031ProvidePara" + "mCustomRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\t\"e\n\032ProvideParamCustomResponse\022G\n\023par" + "am_server_result\030\001 \001(\0132*.mavsdk.rpc.para" + "m_server.ParamServerResult\"7\n\030ChangePara" + "mCustomRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\t\"d\n\031ChangeParamCustomResponse\022G\n\023para" + "m_server_result\030\001 \001(\0132*.mavsdk.rpc.param" + "_server.ParamServerResult\"\032\n\030RetrieveAll" + "ParamsRequest\"O\n\031RetrieveAllParamsRespon" + "se\0222\n\006params\030\001 \001(\0132\".mavsdk.rpc.param_se" + "rver.AllParams\"\'\n\010IntParam\022\014\n\004name\030\001 \001(\t" + "\022\r\n\005value\030\002 \001(\005\")\n\nFloatParam\022\014\n\004name\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\002\"*\n\013CustomParam\022\014\n\004nam" + "e\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\272\001\n\tAllParams\0225\n\n" + "int_params\030\001 \003(\0132!.mavsdk.rpc.param_serv" + "er.IntParam\0229\n\014float_params\030\002 \003(\0132#.mavs" + "dk.rpc.param_server.FloatParam\022;\n\rcustom" + "_params\030\003 \003(\0132$.mavsdk.rpc.param_server." + "CustomParam\"\241\002\n\021ParamServerResult\022A\n\006res" + "ult\030\001 \001(\01621.mavsdk.rpc.param_server.Para" + "mServerResult.Result\022\022\n\nresult_str\030\002 \001(\t" + "\"\264\001\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000\022\022\n\016RESUL" + "T_SUCCESS\020\001\022\024\n\020RESULT_NOT_FOUND\020\002\022\025\n\021RES" + "ULT_WRONG_TYPE\020\003\022\036\n\032RESULT_PARAM_NAME_TO" + "O_LONG\020\004\022\024\n\020RESULT_NO_SYSTEM\020\005\022\037\n\033RESULT" + "_PARAM_VALUE_TOO_LONG\020\0062\245\n\n\022ParamServerS" + "ervice\022}\n\020RetrieveParamInt\0220.mavsdk.rpc." + "param_server.RetrieveParamIntRequest\0321.m" + "avsdk.rpc.param_server.RetrieveParamIntR" + "esponse\"\004\200\265\030\001\022z\n\017ProvideParamInt\022/.mavsd" + "k.rpc.param_server.ProvideParamIntReques" + "t\0320.mavsdk.rpc.param_server.ProvideParam" + "IntResponse\"\004\200\265\030\001\022w\n\016ChangeParamInt\022..ma" + "vsdk.rpc.param_server.ChangeParamIntRequ" + "est\032/.mavsdk.rpc.param_server.ChangePara" + "mIntResponse\"\004\200\265\030\001\022\203\001\n\022RetrieveParamFloa" + "t\0222.mavsdk.rpc.param_server.RetrievePara" + "mFloatRequest\0323.mavsdk.rpc.param_server." + "RetrieveParamFloatResponse\"\004\200\265\030\001\022\200\001\n\021Pro" + "videParamFloat\0221.mavsdk.rpc.param_server" + ".ProvideParamFloatRequest\0322.mavsdk.rpc.p" + "aram_server.ProvideParamFloatResponse\"\004\200" + "\265\030\001\022}\n\020ChangeParamFloat\0220.mavsdk.rpc.par" + "am_server.ChangeParamFloatRequest\0321.mavs" + "dk.rpc.param_server.ChangeParamFloatResp" + "onse\"\004\200\265\030\001\022\206\001\n\023RetrieveParamCustom\0223.mav" + "sdk.rpc.param_server.RetrieveParamCustom" + "Request\0324.mavsdk.rpc.param_server.Retrie" + "veParamCustomResponse\"\004\200\265\030\001\022\203\001\n\022ProvideP" + "aramCustom\0222.mavsdk.rpc.param_server.Pro" + "videParamCustomRequest\0323.mavsdk.rpc.para" + "m_server.ProvideParamCustomResponse\"\004\200\265\030" + "\001\022\200\001\n\021ChangeParamCustom\0221.mavsdk.rpc.par" + "am_server.ChangeParamCustomRequest\0322.mav" + "sdk.rpc.param_server.ChangeParamCustomRe" + "sponse\"\004\200\265\030\001\022\200\001\n\021RetrieveAllParams\0221.mav" + "sdk.rpc.param_server.RetrieveAllParamsRe" + "quest\0322.mavsdk.rpc.param_server.Retrieve" + "AllParamsResponse\"\004\200\265\030\001B*\n\026io.mavsdk.par" + "am_serverB\020ParamServerProtob\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_param_5fserver_2fparam_5fserver_2eproto_deps[1] = { &::descriptor_table_mavsdk_5foptions_2eproto, }; static ::_pbi::once_flag descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_param_5fserver_2fparam_5fserver_2eproto = { - false, false, 2747, descriptor_table_protodef_param_5fserver_2fparam_5fserver_2eproto, + false, false, 3595, descriptor_table_protodef_param_5fserver_2fparam_5fserver_2eproto, "param_server/param_server.proto", - &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, descriptor_table_param_5fserver_2fparam_5fserver_2eproto_deps, 1, 19, + &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, descriptor_table_param_5fserver_2fparam_5fserver_2eproto_deps, 1, 25, schemas, file_default_instances, TableStruct_param_5fserver_2fparam_5fserver_2eproto::offsets, file_level_metadata_param_5fserver_2fparam_5fserver_2eproto, file_level_enum_descriptors_param_5fserver_2fparam_5fserver_2eproto, file_level_service_descriptors_param_5fserver_2fparam_5fserver_2eproto, @@ -1408,17 +1561,17 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ProvideParamIntResponse::GetMetadata() const { // =================================================================== -class RetrieveParamFloatRequest::_Internal { +class ChangeParamIntRequest::_Internal { public: }; -RetrieveParamFloatRequest::RetrieveParamFloatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ChangeParamIntRequest::ChangeParamIntRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.RetrieveParamFloatRequest) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ChangeParamIntRequest) } -RetrieveParamFloatRequest::RetrieveParamFloatRequest(const RetrieveParamFloatRequest& from) +ChangeParamIntRequest::ChangeParamIntRequest(const ChangeParamIntRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); name_.InitDefault(); @@ -1429,18 +1582,20 @@ RetrieveParamFloatRequest::RetrieveParamFloatRequest(const RetrieveParamFloatReq name_.Set(from._internal_name(), GetArenaForAllocation()); } - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.RetrieveParamFloatRequest) + value_ = from.value_; + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ChangeParamIntRequest) } -inline void RetrieveParamFloatRequest::SharedCtor() { +inline void ChangeParamIntRequest::SharedCtor() { name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +value_ = 0; } -RetrieveParamFloatRequest::~RetrieveParamFloatRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.RetrieveParamFloatRequest) +ChangeParamIntRequest::~ChangeParamIntRequest() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ChangeParamIntRequest) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -1448,26 +1603,27 @@ RetrieveParamFloatRequest::~RetrieveParamFloatRequest() { SharedDtor(); } -inline void RetrieveParamFloatRequest::SharedDtor() { +inline void ChangeParamIntRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.Destroy(); } -void RetrieveParamFloatRequest::SetCachedSize(int size) const { +void ChangeParamIntRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -void RetrieveParamFloatRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.RetrieveParamFloatRequest) +void ChangeParamIntRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ChangeParamIntRequest) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; name_.ClearToEmpty(); + value_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RetrieveParamFloatRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ChangeParamIntRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1479,7 +1635,15 @@ const char* RetrieveParamFloatRequest::_InternalParse(const char* ptr, ::_pbi::P auto str = _internal_mutable_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.RetrieveParamFloatRequest.name")); + CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.ChangeParamIntRequest.name")); + } else + goto handle_unusual; + continue; + // int32 value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); } else goto handle_unusual; continue; @@ -1506,9 +1670,9 @@ const char* RetrieveParamFloatRequest::_InternalParse(const char* ptr, ::_pbi::P #undef CHK_ } -uint8_t* RetrieveParamFloatRequest::_InternalSerialize( +uint8_t* ChangeParamIntRequest::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.RetrieveParamFloatRequest) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ChangeParamIntRequest) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1517,21 +1681,27 @@ uint8_t* RetrieveParamFloatRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.param_server.RetrieveParamFloatRequest.name"); + "mavsdk.rpc.param_server.ChangeParamIntRequest.name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_name(), target); } + // int32 value = 2; + if (this->_internal_value() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_value(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.RetrieveParamFloatRequest) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ChangeParamIntRequest) return target; } -size_t RetrieveParamFloatRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.RetrieveParamFloatRequest) +size_t ChangeParamIntRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ChangeParamIntRequest) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -1545,24 +1715,29 @@ size_t RetrieveParamFloatRequest::ByteSizeLong() const { this->_internal_name()); } + // int32 value = 2; + if (this->_internal_value() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_value()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetrieveParamFloatRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeParamIntRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - RetrieveParamFloatRequest::MergeImpl + ChangeParamIntRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetrieveParamFloatRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeParamIntRequest::GetClassData() const { return &_class_data_; } -void RetrieveParamFloatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ChangeParamIntRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void RetrieveParamFloatRequest::MergeFrom(const RetrieveParamFloatRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.RetrieveParamFloatRequest) +void ChangeParamIntRequest::MergeFrom(const ChangeParamIntRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ChangeParamIntRequest) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1570,21 +1745,24 @@ void RetrieveParamFloatRequest::MergeFrom(const RetrieveParamFloatRequest& from) if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } + if (from._internal_value() != 0) { + _internal_set_value(from._internal_value()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RetrieveParamFloatRequest::CopyFrom(const RetrieveParamFloatRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.RetrieveParamFloatRequest) +void ChangeParamIntRequest::CopyFrom(const ChangeParamIntRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ChangeParamIntRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool RetrieveParamFloatRequest::IsInitialized() const { +bool ChangeParamIntRequest::IsInitialized() const { return true; } -void RetrieveParamFloatRequest::InternalSwap(RetrieveParamFloatRequest* other) { +void ChangeParamIntRequest::InternalSwap(ChangeParamIntRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -1593,9 +1771,10 @@ void RetrieveParamFloatRequest::InternalSwap(RetrieveParamFloatRequest* other) { &name_, lhs_arena, &other->name_, rhs_arena ); + swap(value_, other->value_); } -::PROTOBUF_NAMESPACE_ID::Metadata RetrieveParamFloatRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ChangeParamIntRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[4]); @@ -1603,22 +1782,22 @@ ::PROTOBUF_NAMESPACE_ID::Metadata RetrieveParamFloatRequest::GetMetadata() const // =================================================================== -class RetrieveParamFloatResponse::_Internal { +class ChangeParamIntResponse::_Internal { public: - static const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result(const RetrieveParamFloatResponse* msg); + static const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result(const ChangeParamIntResponse* msg); }; const ::mavsdk::rpc::param_server::ParamServerResult& -RetrieveParamFloatResponse::_Internal::param_server_result(const RetrieveParamFloatResponse* msg) { +ChangeParamIntResponse::_Internal::param_server_result(const ChangeParamIntResponse* msg) { return *msg->param_server_result_; } -RetrieveParamFloatResponse::RetrieveParamFloatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ChangeParamIntResponse::ChangeParamIntResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ChangeParamIntResponse) } -RetrieveParamFloatResponse::RetrieveParamFloatResponse(const RetrieveParamFloatResponse& from) +ChangeParamIntResponse::ChangeParamIntResponse(const ChangeParamIntResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_param_server_result()) { @@ -1626,19 +1805,15 @@ RetrieveParamFloatResponse::RetrieveParamFloatResponse(const RetrieveParamFloatR } else { param_server_result_ = nullptr; } - value_ = from.value_; - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ChangeParamIntResponse) } -inline void RetrieveParamFloatResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(¶m_server_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&value_) - - reinterpret_cast(¶m_server_result_)) + sizeof(value_)); +inline void ChangeParamIntResponse::SharedCtor() { +param_server_result_ = nullptr; } -RetrieveParamFloatResponse::~RetrieveParamFloatResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.RetrieveParamFloatResponse) +ChangeParamIntResponse::~ChangeParamIntResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ChangeParamIntResponse) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -1646,17 +1821,17 @@ RetrieveParamFloatResponse::~RetrieveParamFloatResponse() { SharedDtor(); } -inline void RetrieveParamFloatResponse::SharedDtor() { +inline void ChangeParamIntResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete param_server_result_; } -void RetrieveParamFloatResponse::SetCachedSize(int size) const { +void ChangeParamIntResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -void RetrieveParamFloatResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.RetrieveParamFloatResponse) +void ChangeParamIntResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ChangeParamIntResponse) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1665,11 +1840,10 @@ void RetrieveParamFloatResponse::Clear() { delete param_server_result_; } param_server_result_ = nullptr; - value_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RetrieveParamFloatResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ChangeParamIntResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1683,14 +1857,6 @@ const char* RetrieveParamFloatResponse::_InternalParse(const char* ptr, ::_pbi:: } else goto handle_unusual; continue; - // float value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; default: goto handle_unusual; } // switch @@ -1714,9 +1880,9 @@ const char* RetrieveParamFloatResponse::_InternalParse(const char* ptr, ::_pbi:: #undef CHK_ } -uint8_t* RetrieveParamFloatResponse::_InternalSerialize( +uint8_t* ChangeParamIntResponse::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ChangeParamIntResponse) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1727,26 +1893,16 @@ uint8_t* RetrieveParamFloatResponse::_InternalSerialize( _Internal::param_server_result(this).GetCachedSize(), target, stream); } - // float value = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); - float tmp_value = this->_internal_value(); - uint32_t raw_value; - memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); - if (raw_value != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_value(), target); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ChangeParamIntResponse) return target; } -size_t RetrieveParamFloatResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.RetrieveParamFloatResponse) +size_t ChangeParamIntResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ChangeParamIntResponse) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -1760,33 +1916,24 @@ size_t RetrieveParamFloatResponse::ByteSizeLong() const { *param_server_result_); } - // float value = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); - float tmp_value = this->_internal_value(); - uint32_t raw_value; - memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); - if (raw_value != 0) { - total_size += 1 + 4; - } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetrieveParamFloatResponse::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeParamIntResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - RetrieveParamFloatResponse::MergeImpl + ChangeParamIntResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetrieveParamFloatResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeParamIntResponse::GetClassData() const { return &_class_data_; } -void RetrieveParamFloatResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ChangeParamIntResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void RetrieveParamFloatResponse::MergeFrom(const RetrieveParamFloatResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.RetrieveParamFloatResponse) +void ChangeParamIntResponse::MergeFrom(const ChangeParamIntResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ChangeParamIntResponse) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1794,39 +1941,27 @@ void RetrieveParamFloatResponse::MergeFrom(const RetrieveParamFloatResponse& fro if (from._internal_has_param_server_result()) { _internal_mutable_param_server_result()->::mavsdk::rpc::param_server::ParamServerResult::MergeFrom(from._internal_param_server_result()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); - float tmp_value = from._internal_value(); - uint32_t raw_value; - memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); - if (raw_value != 0) { - _internal_set_value(from._internal_value()); - } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RetrieveParamFloatResponse::CopyFrom(const RetrieveParamFloatResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.RetrieveParamFloatResponse) +void ChangeParamIntResponse::CopyFrom(const ChangeParamIntResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ChangeParamIntResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool RetrieveParamFloatResponse::IsInitialized() const { +bool ChangeParamIntResponse::IsInitialized() const { return true; } -void RetrieveParamFloatResponse::InternalSwap(RetrieveParamFloatResponse* other) { +void ChangeParamIntResponse::InternalSwap(ChangeParamIntResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(RetrieveParamFloatResponse, value_) - + sizeof(RetrieveParamFloatResponse::value_) - - PROTOBUF_FIELD_OFFSET(RetrieveParamFloatResponse, param_server_result_)>( - reinterpret_cast(¶m_server_result_), - reinterpret_cast(&other->param_server_result_)); + swap(param_server_result_, other->param_server_result_); } -::PROTOBUF_NAMESPACE_ID::Metadata RetrieveParamFloatResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ChangeParamIntResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[5]); @@ -1834,17 +1969,17 @@ ::PROTOBUF_NAMESPACE_ID::Metadata RetrieveParamFloatResponse::GetMetadata() cons // =================================================================== -class ProvideParamFloatRequest::_Internal { +class RetrieveParamFloatRequest::_Internal { public: }; -ProvideParamFloatRequest::ProvideParamFloatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +RetrieveParamFloatRequest::RetrieveParamFloatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ProvideParamFloatRequest) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.RetrieveParamFloatRequest) } -ProvideParamFloatRequest::ProvideParamFloatRequest(const ProvideParamFloatRequest& from) +RetrieveParamFloatRequest::RetrieveParamFloatRequest(const RetrieveParamFloatRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); name_.InitDefault(); @@ -1855,20 +1990,18 @@ ProvideParamFloatRequest::ProvideParamFloatRequest(const ProvideParamFloatReques name_.Set(from._internal_name(), GetArenaForAllocation()); } - value_ = from.value_; - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ProvideParamFloatRequest) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.RetrieveParamFloatRequest) } -inline void ProvideParamFloatRequest::SharedCtor() { +inline void RetrieveParamFloatRequest::SharedCtor() { name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -value_ = 0; } -ProvideParamFloatRequest::~ProvideParamFloatRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ProvideParamFloatRequest) +RetrieveParamFloatRequest::~RetrieveParamFloatRequest() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.RetrieveParamFloatRequest) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -1876,27 +2009,26 @@ ProvideParamFloatRequest::~ProvideParamFloatRequest() { SharedDtor(); } -inline void ProvideParamFloatRequest::SharedDtor() { +inline void RetrieveParamFloatRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.Destroy(); } -void ProvideParamFloatRequest::SetCachedSize(int size) const { +void RetrieveParamFloatRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -void ProvideParamFloatRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ProvideParamFloatRequest) +void RetrieveParamFloatRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.RetrieveParamFloatRequest) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; name_.ClearToEmpty(); - value_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ProvideParamFloatRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* RetrieveParamFloatRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -1908,15 +2040,7 @@ const char* ProvideParamFloatRequest::_InternalParse(const char* ptr, ::_pbi::Pa auto str = _internal_mutable_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.ProvideParamFloatRequest.name")); - } else - goto handle_unusual; - continue; - // float value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); + CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.RetrieveParamFloatRequest.name")); } else goto handle_unusual; continue; @@ -1943,9 +2067,9 @@ const char* ProvideParamFloatRequest::_InternalParse(const char* ptr, ::_pbi::Pa #undef CHK_ } -uint8_t* ProvideParamFloatRequest::_InternalSerialize( +uint8_t* RetrieveParamFloatRequest::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ProvideParamFloatRequest) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.RetrieveParamFloatRequest) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -1954,11 +2078,216 @@ uint8_t* ProvideParamFloatRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.param_server.ProvideParamFloatRequest.name"); + "mavsdk.rpc.param_server.RetrieveParamFloatRequest.name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_name(), target); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.RetrieveParamFloatRequest) + return target; +} + +size_t RetrieveParamFloatRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.RetrieveParamFloatRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetrieveParamFloatRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RetrieveParamFloatRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetrieveParamFloatRequest::GetClassData() const { return &_class_data_; } + +void RetrieveParamFloatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void RetrieveParamFloatRequest::MergeFrom(const RetrieveParamFloatRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.RetrieveParamFloatRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RetrieveParamFloatRequest::CopyFrom(const RetrieveParamFloatRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.RetrieveParamFloatRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RetrieveParamFloatRequest::IsInitialized() const { + return true; +} + +void RetrieveParamFloatRequest::InternalSwap(RetrieveParamFloatRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RetrieveParamFloatRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[6]); +} + +// =================================================================== + +class RetrieveParamFloatResponse::_Internal { + public: + static const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result(const RetrieveParamFloatResponse* msg); +}; + +const ::mavsdk::rpc::param_server::ParamServerResult& +RetrieveParamFloatResponse::_Internal::param_server_result(const RetrieveParamFloatResponse* msg) { + return *msg->param_server_result_; +} +RetrieveParamFloatResponse::RetrieveParamFloatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.RetrieveParamFloatResponse) +} +RetrieveParamFloatResponse::RetrieveParamFloatResponse(const RetrieveParamFloatResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_param_server_result()) { + param_server_result_ = new ::mavsdk::rpc::param_server::ParamServerResult(*from.param_server_result_); + } else { + param_server_result_ = nullptr; + } + value_ = from.value_; + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.RetrieveParamFloatResponse) +} + +inline void RetrieveParamFloatResponse::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(¶m_server_result_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&value_) - + reinterpret_cast(¶m_server_result_)) + sizeof(value_)); +} + +RetrieveParamFloatResponse::~RetrieveParamFloatResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RetrieveParamFloatResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete param_server_result_; +} + +void RetrieveParamFloatResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RetrieveParamFloatResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { + delete param_server_result_; + } + param_server_result_ = nullptr; + value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RetrieveParamFloatResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_param_server_result(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // float value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* RetrieveParamFloatResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; + if (this->_internal_has_param_server_result()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::param_server_result(this), + _Internal::param_server_result(this).GetCachedSize(), target, stream); + } + // float value = 2; static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); float tmp_value = this->_internal_value(); @@ -1973,12 +2302,1063 @@ uint8_t* ProvideParamFloatRequest::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ProvideParamFloatRequest) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + return target; +} + +size_t RetrieveParamFloatResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + 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.param_server.ParamServerResult param_server_result = 1; + if (this->_internal_has_param_server_result()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *param_server_result_); + } + + // float value = 2; + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + float tmp_value = this->_internal_value(); + uint32_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + total_size += 1 + 4; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetrieveParamFloatResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RetrieveParamFloatResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetrieveParamFloatResponse::GetClassData() const { return &_class_data_; } + +void RetrieveParamFloatResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void RetrieveParamFloatResponse::MergeFrom(const RetrieveParamFloatResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_param_server_result()) { + _internal_mutable_param_server_result()->::mavsdk::rpc::param_server::ParamServerResult::MergeFrom(from._internal_param_server_result()); + } + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + float tmp_value = from._internal_value(); + uint32_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + _internal_set_value(from._internal_value()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void RetrieveParamFloatResponse::CopyFrom(const RetrieveParamFloatResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RetrieveParamFloatResponse::IsInitialized() const { + return true; +} + +void RetrieveParamFloatResponse::InternalSwap(RetrieveParamFloatResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RetrieveParamFloatResponse, value_) + + sizeof(RetrieveParamFloatResponse::value_) + - PROTOBUF_FIELD_OFFSET(RetrieveParamFloatResponse, param_server_result_)>( + reinterpret_cast(¶m_server_result_), + reinterpret_cast(&other->param_server_result_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RetrieveParamFloatResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[7]); +} + +// =================================================================== + +class ProvideParamFloatRequest::_Internal { + public: +}; + +ProvideParamFloatRequest::ProvideParamFloatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ProvideParamFloatRequest) +} +ProvideParamFloatRequest::ProvideParamFloatRequest(const ProvideParamFloatRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + name_.Set(from._internal_name(), + GetArenaForAllocation()); + } + value_ = from.value_; + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ProvideParamFloatRequest) +} + +inline void ProvideParamFloatRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +value_ = 0; +} + +ProvideParamFloatRequest::~ProvideParamFloatRequest() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ProvideParamFloatRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ProvideParamFloatRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void ProvideParamFloatRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ProvideParamFloatRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ProvideParamFloatRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ProvideParamFloatRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.ProvideParamFloatRequest.name")); + } else + goto handle_unusual; + continue; + // float value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ProvideParamFloatRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ProvideParamFloatRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.param_server.ProvideParamFloatRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // float value = 2; + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + float tmp_value = this->_internal_value(); + uint32_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ProvideParamFloatRequest) + return target; +} + +size_t ProvideParamFloatRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ProvideParamFloatRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // float value = 2; + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + float tmp_value = this->_internal_value(); + uint32_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + total_size += 1 + 4; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProvideParamFloatRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ProvideParamFloatRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProvideParamFloatRequest::GetClassData() const { return &_class_data_; } + +void ProvideParamFloatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ProvideParamFloatRequest::MergeFrom(const ProvideParamFloatRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ProvideParamFloatRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); + } + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + float tmp_value = from._internal_value(); + uint32_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + _internal_set_value(from._internal_value()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ProvideParamFloatRequest::CopyFrom(const ProvideParamFloatRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ProvideParamFloatRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProvideParamFloatRequest::IsInitialized() const { + return true; +} + +void ProvideParamFloatRequest::InternalSwap(ProvideParamFloatRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(value_, other->value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ProvideParamFloatRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[8]); +} + +// =================================================================== + +class ProvideParamFloatResponse::_Internal { + public: + static const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result(const ProvideParamFloatResponse* msg); +}; + +const ::mavsdk::rpc::param_server::ParamServerResult& +ProvideParamFloatResponse::_Internal::param_server_result(const ProvideParamFloatResponse* msg) { + return *msg->param_server_result_; +} +ProvideParamFloatResponse::ProvideParamFloatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ProvideParamFloatResponse) +} +ProvideParamFloatResponse::ProvideParamFloatResponse(const ProvideParamFloatResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_param_server_result()) { + param_server_result_ = new ::mavsdk::rpc::param_server::ParamServerResult(*from.param_server_result_); + } else { + param_server_result_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ProvideParamFloatResponse) +} + +inline void ProvideParamFloatResponse::SharedCtor() { +param_server_result_ = nullptr; +} + +ProvideParamFloatResponse::~ProvideParamFloatResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ProvideParamFloatResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ProvideParamFloatResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete param_server_result_; +} + +void ProvideParamFloatResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ProvideParamFloatResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ProvideParamFloatResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { + delete param_server_result_; + } + param_server_result_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ProvideParamFloatResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_param_server_result(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ProvideParamFloatResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ProvideParamFloatResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; + if (this->_internal_has_param_server_result()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::param_server_result(this), + _Internal::param_server_result(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ProvideParamFloatResponse) + return target; +} + +size_t ProvideParamFloatResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ProvideParamFloatResponse) + 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.param_server.ParamServerResult param_server_result = 1; + if (this->_internal_has_param_server_result()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *param_server_result_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProvideParamFloatResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ProvideParamFloatResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProvideParamFloatResponse::GetClassData() const { return &_class_data_; } + +void ProvideParamFloatResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ProvideParamFloatResponse::MergeFrom(const ProvideParamFloatResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ProvideParamFloatResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_param_server_result()) { + _internal_mutable_param_server_result()->::mavsdk::rpc::param_server::ParamServerResult::MergeFrom(from._internal_param_server_result()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ProvideParamFloatResponse::CopyFrom(const ProvideParamFloatResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ProvideParamFloatResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProvideParamFloatResponse::IsInitialized() const { + return true; +} + +void ProvideParamFloatResponse::InternalSwap(ProvideParamFloatResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(param_server_result_, other->param_server_result_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ProvideParamFloatResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[9]); +} + +// =================================================================== + +class ChangeParamFloatRequest::_Internal { + public: +}; + +ChangeParamFloatRequest::ChangeParamFloatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ChangeParamFloatRequest) +} +ChangeParamFloatRequest::ChangeParamFloatRequest(const ChangeParamFloatRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + name_.Set(from._internal_name(), + GetArenaForAllocation()); + } + value_ = from.value_; + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ChangeParamFloatRequest) +} + +inline void ChangeParamFloatRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +value_ = 0; +} + +ChangeParamFloatRequest::~ChangeParamFloatRequest() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ChangeParamFloatRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ChangeParamFloatRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void ChangeParamFloatRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ChangeParamFloatRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ChangeParamFloatRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + value_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChangeParamFloatRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.ChangeParamFloatRequest.name")); + } else + goto handle_unusual; + continue; + // float value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { + value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ChangeParamFloatRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ChangeParamFloatRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.param_server.ChangeParamFloatRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // float value = 2; + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + float tmp_value = this->_internal_value(); + uint32_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ChangeParamFloatRequest) + return target; +} + +size_t ChangeParamFloatRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ChangeParamFloatRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // float value = 2; + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + float tmp_value = this->_internal_value(); + uint32_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + total_size += 1 + 4; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeParamFloatRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ChangeParamFloatRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeParamFloatRequest::GetClassData() const { return &_class_data_; } + +void ChangeParamFloatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ChangeParamFloatRequest::MergeFrom(const ChangeParamFloatRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ChangeParamFloatRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); + } + static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + float tmp_value = from._internal_value(); + uint32_t raw_value; + memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); + if (raw_value != 0) { + _internal_set_value(from._internal_value()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ChangeParamFloatRequest::CopyFrom(const ChangeParamFloatRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ChangeParamFloatRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChangeParamFloatRequest::IsInitialized() const { + return true; +} + +void ChangeParamFloatRequest::InternalSwap(ChangeParamFloatRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(value_, other->value_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ChangeParamFloatRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[10]); +} + +// =================================================================== + +class ChangeParamFloatResponse::_Internal { + public: + static const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result(const ChangeParamFloatResponse* msg); +}; + +const ::mavsdk::rpc::param_server::ParamServerResult& +ChangeParamFloatResponse::_Internal::param_server_result(const ChangeParamFloatResponse* msg) { + return *msg->param_server_result_; +} +ChangeParamFloatResponse::ChangeParamFloatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ChangeParamFloatResponse) +} +ChangeParamFloatResponse::ChangeParamFloatResponse(const ChangeParamFloatResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_param_server_result()) { + param_server_result_ = new ::mavsdk::rpc::param_server::ParamServerResult(*from.param_server_result_); + } else { + param_server_result_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ChangeParamFloatResponse) +} + +inline void ChangeParamFloatResponse::SharedCtor() { +param_server_result_ = nullptr; +} + +ChangeParamFloatResponse::~ChangeParamFloatResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ChangeParamFloatResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ChangeParamFloatResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete param_server_result_; +} + +void ChangeParamFloatResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ChangeParamFloatResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ChangeParamFloatResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { + delete param_server_result_; + } + param_server_result_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChangeParamFloatResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_param_server_result(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ChangeParamFloatResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ChangeParamFloatResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; + if (this->_internal_has_param_server_result()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::param_server_result(this), + _Internal::param_server_result(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ChangeParamFloatResponse) + return target; +} + +size_t ChangeParamFloatResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ChangeParamFloatResponse) + 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.param_server.ParamServerResult param_server_result = 1; + if (this->_internal_has_param_server_result()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *param_server_result_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeParamFloatResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ChangeParamFloatResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeParamFloatResponse::GetClassData() const { return &_class_data_; } + +void ChangeParamFloatResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ChangeParamFloatResponse::MergeFrom(const ChangeParamFloatResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ChangeParamFloatResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_param_server_result()) { + _internal_mutable_param_server_result()->::mavsdk::rpc::param_server::ParamServerResult::MergeFrom(from._internal_param_server_result()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ChangeParamFloatResponse::CopyFrom(const ChangeParamFloatResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ChangeParamFloatResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChangeParamFloatResponse::IsInitialized() const { + return true; +} + +void ChangeParamFloatResponse::InternalSwap(ChangeParamFloatResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(param_server_result_, other->param_server_result_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ChangeParamFloatResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[11]); +} + +// =================================================================== + +class RetrieveParamCustomRequest::_Internal { + public: +}; + +RetrieveParamCustomRequest::RetrieveParamCustomRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.RetrieveParamCustomRequest) +} +RetrieveParamCustomRequest::RetrieveParamCustomRequest(const RetrieveParamCustomRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + name_.Set(from._internal_name(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.RetrieveParamCustomRequest) +} + +inline void RetrieveParamCustomRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +RetrieveParamCustomRequest::~RetrieveParamCustomRequest() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.RetrieveParamCustomRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void RetrieveParamCustomRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); +} + +void RetrieveParamCustomRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void RetrieveParamCustomRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.RetrieveParamCustomRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* RetrieveParamCustomRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.RetrieveParamCustomRequest.name")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* RetrieveParamCustomRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.RetrieveParamCustomRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.param_server.RetrieveParamCustomRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.RetrieveParamCustomRequest) return target; } -size_t ProvideParamFloatRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ProvideParamFloatRequest) +size_t RetrieveParamCustomRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.RetrieveParamCustomRequest) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -1992,33 +3372,24 @@ size_t ProvideParamFloatRequest::ByteSizeLong() const { this->_internal_name()); } - // float value = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); - float tmp_value = this->_internal_value(); - uint32_t raw_value; - memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); - if (raw_value != 0) { - total_size += 1 + 4; - } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProvideParamFloatRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetrieveParamCustomRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - ProvideParamFloatRequest::MergeImpl + RetrieveParamCustomRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProvideParamFloatRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetrieveParamCustomRequest::GetClassData() const { return &_class_data_; } -void ProvideParamFloatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void RetrieveParamCustomRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void ProvideParamFloatRequest::MergeFrom(const ProvideParamFloatRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ProvideParamFloatRequest) +void RetrieveParamCustomRequest::MergeFrom(const RetrieveParamCustomRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.RetrieveParamCustomRequest) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2026,28 +3397,21 @@ void ProvideParamFloatRequest::MergeFrom(const ProvideParamFloatRequest& from) { if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); - float tmp_value = from._internal_value(); - uint32_t raw_value; - memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); - if (raw_value != 0) { - _internal_set_value(from._internal_value()); - } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ProvideParamFloatRequest::CopyFrom(const ProvideParamFloatRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ProvideParamFloatRequest) +void RetrieveParamCustomRequest::CopyFrom(const RetrieveParamCustomRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.RetrieveParamCustomRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool ProvideParamFloatRequest::IsInitialized() const { +bool RetrieveParamCustomRequest::IsInitialized() const { return true; } -void ProvideParamFloatRequest::InternalSwap(ProvideParamFloatRequest* other) { +void RetrieveParamCustomRequest::InternalSwap(RetrieveParamCustomRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -2056,49 +3420,60 @@ void ProvideParamFloatRequest::InternalSwap(ProvideParamFloatRequest* other) { &name_, lhs_arena, &other->name_, rhs_arena ); - swap(value_, other->value_); } -::PROTOBUF_NAMESPACE_ID::Metadata ProvideParamFloatRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RetrieveParamCustomRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[6]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[12]); } // =================================================================== -class ProvideParamFloatResponse::_Internal { +class RetrieveParamCustomResponse::_Internal { public: - static const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result(const ProvideParamFloatResponse* msg); + static const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result(const RetrieveParamCustomResponse* msg); }; const ::mavsdk::rpc::param_server::ParamServerResult& -ProvideParamFloatResponse::_Internal::param_server_result(const ProvideParamFloatResponse* msg) { +RetrieveParamCustomResponse::_Internal::param_server_result(const RetrieveParamCustomResponse* msg) { return *msg->param_server_result_; } -ProvideParamFloatResponse::ProvideParamFloatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, +RetrieveParamCustomResponse::RetrieveParamCustomResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ProvideParamFloatResponse) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.RetrieveParamCustomResponse) } -ProvideParamFloatResponse::ProvideParamFloatResponse(const ProvideParamFloatResponse& from) +RetrieveParamCustomResponse::RetrieveParamCustomResponse(const RetrieveParamCustomResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + value_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + value_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_value().empty()) { + value_.Set(from._internal_value(), + GetArenaForAllocation()); + } if (from._internal_has_param_server_result()) { param_server_result_ = new ::mavsdk::rpc::param_server::ParamServerResult(*from.param_server_result_); } else { param_server_result_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ProvideParamFloatResponse) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.RetrieveParamCustomResponse) } -inline void ProvideParamFloatResponse::SharedCtor() { +inline void RetrieveParamCustomResponse::SharedCtor() { +value_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + value_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING param_server_result_ = nullptr; } -ProvideParamFloatResponse::~ProvideParamFloatResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ProvideParamFloatResponse) +RetrieveParamCustomResponse::~RetrieveParamCustomResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.RetrieveParamCustomResponse) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -2106,21 +3481,23 @@ ProvideParamFloatResponse::~ProvideParamFloatResponse() { SharedDtor(); } -inline void ProvideParamFloatResponse::SharedDtor() { +inline void RetrieveParamCustomResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + value_.Destroy(); if (this != internal_default_instance()) delete param_server_result_; } -void ProvideParamFloatResponse::SetCachedSize(int size) const { +void RetrieveParamCustomResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -void ProvideParamFloatResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ProvideParamFloatResponse) +void RetrieveParamCustomResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.RetrieveParamCustomResponse) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + value_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { delete param_server_result_; } @@ -2128,7 +3505,7 @@ void ProvideParamFloatResponse::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ProvideParamFloatResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* RetrieveParamCustomResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -2142,6 +3519,16 @@ const char* ProvideParamFloatResponse::_InternalParse(const char* ptr, ::_pbi::P } else goto handle_unusual; continue; + // string value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.RetrieveParamCustomResponse.value")); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2165,9 +3552,9 @@ const char* ProvideParamFloatResponse::_InternalParse(const char* ptr, ::_pbi::P #undef CHK_ } -uint8_t* ProvideParamFloatResponse::_InternalSerialize( +uint8_t* RetrieveParamCustomResponse::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ProvideParamFloatResponse) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.RetrieveParamCustomResponse) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2178,22 +3565,39 @@ uint8_t* ProvideParamFloatResponse::_InternalSerialize( _Internal::param_server_result(this).GetCachedSize(), target, stream); } + // string value = 2; + if (!this->_internal_value().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_value().data(), static_cast(this->_internal_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.param_server.RetrieveParamCustomResponse.value"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_value(), target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ProvideParamFloatResponse) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.RetrieveParamCustomResponse) return target; } -size_t ProvideParamFloatResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ProvideParamFloatResponse) +size_t RetrieveParamCustomResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.RetrieveParamCustomResponse) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // string value = 2; + if (!this->_internal_value().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_value()); + } + // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; if (this->_internal_has_param_server_result()) { total_size += 1 + @@ -2204,67 +3608,76 @@ size_t ProvideParamFloatResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProvideParamFloatResponse::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetrieveParamCustomResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - ProvideParamFloatResponse::MergeImpl + RetrieveParamCustomResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProvideParamFloatResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetrieveParamCustomResponse::GetClassData() const { return &_class_data_; } -void ProvideParamFloatResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void RetrieveParamCustomResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void ProvideParamFloatResponse::MergeFrom(const ProvideParamFloatResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ProvideParamFloatResponse) +void RetrieveParamCustomResponse::MergeFrom(const RetrieveParamCustomResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.RetrieveParamCustomResponse) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; + if (!from._internal_value().empty()) { + _internal_set_value(from._internal_value()); + } if (from._internal_has_param_server_result()) { _internal_mutable_param_server_result()->::mavsdk::rpc::param_server::ParamServerResult::MergeFrom(from._internal_param_server_result()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ProvideParamFloatResponse::CopyFrom(const ProvideParamFloatResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ProvideParamFloatResponse) +void RetrieveParamCustomResponse::CopyFrom(const RetrieveParamCustomResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.RetrieveParamCustomResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool ProvideParamFloatResponse::IsInitialized() const { +bool RetrieveParamCustomResponse::IsInitialized() const { return true; } -void ProvideParamFloatResponse::InternalSwap(ProvideParamFloatResponse* other) { +void RetrieveParamCustomResponse::InternalSwap(RetrieveParamCustomResponse* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &value_, lhs_arena, + &other->value_, rhs_arena + ); swap(param_server_result_, other->param_server_result_); } -::PROTOBUF_NAMESPACE_ID::Metadata ProvideParamFloatResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RetrieveParamCustomResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[7]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[13]); } // =================================================================== -class RetrieveParamCustomRequest::_Internal { +class ProvideParamCustomRequest::_Internal { public: }; -RetrieveParamCustomRequest::RetrieveParamCustomRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ProvideParamCustomRequest::ProvideParamCustomRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.RetrieveParamCustomRequest) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ProvideParamCustomRequest) } -RetrieveParamCustomRequest::RetrieveParamCustomRequest(const RetrieveParamCustomRequest& from) +ProvideParamCustomRequest::ProvideParamCustomRequest(const ProvideParamCustomRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); name_.InitDefault(); @@ -2275,18 +3688,30 @@ RetrieveParamCustomRequest::RetrieveParamCustomRequest(const RetrieveParamCustom name_.Set(from._internal_name(), GetArenaForAllocation()); } - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.RetrieveParamCustomRequest) + value_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + value_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_value().empty()) { + value_.Set(from._internal_value(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ProvideParamCustomRequest) } -inline void RetrieveParamCustomRequest::SharedCtor() { +inline void ProvideParamCustomRequest::SharedCtor() { name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +value_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + value_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -RetrieveParamCustomRequest::~RetrieveParamCustomRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.RetrieveParamCustomRequest) +ProvideParamCustomRequest::~ProvideParamCustomRequest() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ProvideParamCustomRequest) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -2294,26 +3719,28 @@ RetrieveParamCustomRequest::~RetrieveParamCustomRequest() { SharedDtor(); } -inline void RetrieveParamCustomRequest::SharedDtor() { +inline void ProvideParamCustomRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.Destroy(); + value_.Destroy(); } -void RetrieveParamCustomRequest::SetCachedSize(int size) const { +void ProvideParamCustomRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -void RetrieveParamCustomRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.RetrieveParamCustomRequest) +void ProvideParamCustomRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ProvideParamCustomRequest) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; name_.ClearToEmpty(); + value_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RetrieveParamCustomRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ProvideParamCustomRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -2325,7 +3752,17 @@ const char* RetrieveParamCustomRequest::_InternalParse(const char* ptr, ::_pbi:: auto str = _internal_mutable_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.RetrieveParamCustomRequest.name")); + CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.ProvideParamCustomRequest.name")); + } else + goto handle_unusual; + continue; + // string value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.ProvideParamCustomRequest.value")); } else goto handle_unusual; continue; @@ -2352,9 +3789,9 @@ const char* RetrieveParamCustomRequest::_InternalParse(const char* ptr, ::_pbi:: #undef CHK_ } -uint8_t* RetrieveParamCustomRequest::_InternalSerialize( +uint8_t* ProvideParamCustomRequest::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.RetrieveParamCustomRequest) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ProvideParamCustomRequest) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2363,21 +3800,31 @@ uint8_t* RetrieveParamCustomRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.param_server.RetrieveParamCustomRequest.name"); + "mavsdk.rpc.param_server.ProvideParamCustomRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // string value = 2; + if (!this->_internal_value().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_value().data(), static_cast(this->_internal_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "mavsdk.rpc.param_server.ProvideParamCustomRequest.value"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); + 2, this->_internal_value(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.RetrieveParamCustomRequest) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ProvideParamCustomRequest) return target; } -size_t RetrieveParamCustomRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.RetrieveParamCustomRequest) +size_t ProvideParamCustomRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ProvideParamCustomRequest) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -2391,24 +3838,31 @@ size_t RetrieveParamCustomRequest::ByteSizeLong() const { this->_internal_name()); } + // string value = 2; + if (!this->_internal_value().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_value()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetrieveParamCustomRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProvideParamCustomRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - RetrieveParamCustomRequest::MergeImpl + ProvideParamCustomRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetrieveParamCustomRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProvideParamCustomRequest::GetClassData() const { return &_class_data_; } -void RetrieveParamCustomRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ProvideParamCustomRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void RetrieveParamCustomRequest::MergeFrom(const RetrieveParamCustomRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.RetrieveParamCustomRequest) +void ProvideParamCustomRequest::MergeFrom(const ProvideParamCustomRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ProvideParamCustomRequest) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2416,21 +3870,24 @@ void RetrieveParamCustomRequest::MergeFrom(const RetrieveParamCustomRequest& fro if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } + if (!from._internal_value().empty()) { + _internal_set_value(from._internal_value()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RetrieveParamCustomRequest::CopyFrom(const RetrieveParamCustomRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.RetrieveParamCustomRequest) +void ProvideParamCustomRequest::CopyFrom(const ProvideParamCustomRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ProvideParamCustomRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool RetrieveParamCustomRequest::IsInitialized() const { +bool ProvideParamCustomRequest::IsInitialized() const { return true; } -void RetrieveParamCustomRequest::InternalSwap(RetrieveParamCustomRequest* other) { +void ProvideParamCustomRequest::InternalSwap(ProvideParamCustomRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -2439,60 +3896,52 @@ void RetrieveParamCustomRequest::InternalSwap(RetrieveParamCustomRequest* other) &name_, lhs_arena, &other->name_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &value_, lhs_arena, + &other->value_, rhs_arena + ); } -::PROTOBUF_NAMESPACE_ID::Metadata RetrieveParamCustomRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ProvideParamCustomRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[8]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[14]); } // =================================================================== -class RetrieveParamCustomResponse::_Internal { +class ProvideParamCustomResponse::_Internal { public: - static const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result(const RetrieveParamCustomResponse* msg); + static const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result(const ProvideParamCustomResponse* msg); }; const ::mavsdk::rpc::param_server::ParamServerResult& -RetrieveParamCustomResponse::_Internal::param_server_result(const RetrieveParamCustomResponse* msg) { +ProvideParamCustomResponse::_Internal::param_server_result(const ProvideParamCustomResponse* msg) { return *msg->param_server_result_; } -RetrieveParamCustomResponse::RetrieveParamCustomResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ProvideParamCustomResponse::ProvideParamCustomResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.RetrieveParamCustomResponse) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ProvideParamCustomResponse) } -RetrieveParamCustomResponse::RetrieveParamCustomResponse(const RetrieveParamCustomResponse& from) +ProvideParamCustomResponse::ProvideParamCustomResponse(const ProvideParamCustomResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_value().empty()) { - value_.Set(from._internal_value(), - GetArenaForAllocation()); - } if (from._internal_has_param_server_result()) { param_server_result_ = new ::mavsdk::rpc::param_server::ParamServerResult(*from.param_server_result_); } else { param_server_result_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.RetrieveParamCustomResponse) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ProvideParamCustomResponse) } -inline void RetrieveParamCustomResponse::SharedCtor() { -value_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - value_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void ProvideParamCustomResponse::SharedCtor() { param_server_result_ = nullptr; } -RetrieveParamCustomResponse::~RetrieveParamCustomResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.RetrieveParamCustomResponse) +ProvideParamCustomResponse::~ProvideParamCustomResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ProvideParamCustomResponse) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -2500,23 +3949,21 @@ RetrieveParamCustomResponse::~RetrieveParamCustomResponse() { SharedDtor(); } -inline void RetrieveParamCustomResponse::SharedDtor() { +inline void ProvideParamCustomResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - value_.Destroy(); if (this != internal_default_instance()) delete param_server_result_; } -void RetrieveParamCustomResponse::SetCachedSize(int size) const { +void ProvideParamCustomResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -void RetrieveParamCustomResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.RetrieveParamCustomResponse) +void ProvideParamCustomResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ProvideParamCustomResponse) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - value_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { delete param_server_result_; } @@ -2524,7 +3971,7 @@ void RetrieveParamCustomResponse::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RetrieveParamCustomResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ProvideParamCustomResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -2538,16 +3985,6 @@ const char* RetrieveParamCustomResponse::_InternalParse(const char* ptr, ::_pbi: } else goto handle_unusual; continue; - // string value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_value(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.RetrieveParamCustomResponse.value")); - } else - goto handle_unusual; - continue; default: goto handle_unusual; } // switch @@ -2571,9 +4008,9 @@ const char* RetrieveParamCustomResponse::_InternalParse(const char* ptr, ::_pbi: #undef CHK_ } -uint8_t* RetrieveParamCustomResponse::_InternalSerialize( +uint8_t* ProvideParamCustomResponse::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.RetrieveParamCustomResponse) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ProvideParamCustomResponse) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2584,39 +4021,22 @@ uint8_t* RetrieveParamCustomResponse::_InternalSerialize( _Internal::param_server_result(this).GetCachedSize(), target, stream); } - // string value = 2; - if (!this->_internal_value().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_value().data(), static_cast(this->_internal_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.param_server.RetrieveParamCustomResponse.value"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_value(), target); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.RetrieveParamCustomResponse) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ProvideParamCustomResponse) return target; } -size_t RetrieveParamCustomResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.RetrieveParamCustomResponse) +size_t ProvideParamCustomResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ProvideParamCustomResponse) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string value = 2; - if (!this->_internal_value().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_value()); - } - // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; if (this->_internal_has_param_server_result()) { total_size += 1 + @@ -2627,76 +4047,67 @@ size_t RetrieveParamCustomResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RetrieveParamCustomResponse::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProvideParamCustomResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - RetrieveParamCustomResponse::MergeImpl + ProvideParamCustomResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetrieveParamCustomResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProvideParamCustomResponse::GetClassData() const { return &_class_data_; } -void RetrieveParamCustomResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ProvideParamCustomResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void RetrieveParamCustomResponse::MergeFrom(const RetrieveParamCustomResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.RetrieveParamCustomResponse) +void ProvideParamCustomResponse::MergeFrom(const ProvideParamCustomResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ProvideParamCustomResponse) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_value().empty()) { - _internal_set_value(from._internal_value()); - } if (from._internal_has_param_server_result()) { _internal_mutable_param_server_result()->::mavsdk::rpc::param_server::ParamServerResult::MergeFrom(from._internal_param_server_result()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RetrieveParamCustomResponse::CopyFrom(const RetrieveParamCustomResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.RetrieveParamCustomResponse) +void ProvideParamCustomResponse::CopyFrom(const ProvideParamCustomResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ProvideParamCustomResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool RetrieveParamCustomResponse::IsInitialized() const { +bool ProvideParamCustomResponse::IsInitialized() const { return true; } -void RetrieveParamCustomResponse::InternalSwap(RetrieveParamCustomResponse* other) { +void ProvideParamCustomResponse::InternalSwap(ProvideParamCustomResponse* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &value_, lhs_arena, - &other->value_, rhs_arena - ); swap(param_server_result_, other->param_server_result_); } -::PROTOBUF_NAMESPACE_ID::Metadata RetrieveParamCustomResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ProvideParamCustomResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[9]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[15]); } // =================================================================== -class ProvideParamCustomRequest::_Internal { +class ChangeParamCustomRequest::_Internal { public: }; -ProvideParamCustomRequest::ProvideParamCustomRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ChangeParamCustomRequest::ChangeParamCustomRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ProvideParamCustomRequest) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ChangeParamCustomRequest) } -ProvideParamCustomRequest::ProvideParamCustomRequest(const ProvideParamCustomRequest& from) +ChangeParamCustomRequest::ChangeParamCustomRequest(const ChangeParamCustomRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); name_.InitDefault(); @@ -2715,10 +4126,10 @@ ProvideParamCustomRequest::ProvideParamCustomRequest(const ProvideParamCustomReq value_.Set(from._internal_value(), GetArenaForAllocation()); } - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ProvideParamCustomRequest) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ChangeParamCustomRequest) } -inline void ProvideParamCustomRequest::SharedCtor() { +inline void ChangeParamCustomRequest::SharedCtor() { name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set("", GetArenaForAllocation()); @@ -2729,8 +4140,8 @@ value_.InitDefault(); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -ProvideParamCustomRequest::~ProvideParamCustomRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ProvideParamCustomRequest) +ChangeParamCustomRequest::~ChangeParamCustomRequest() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ChangeParamCustomRequest) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -2738,18 +4149,18 @@ ProvideParamCustomRequest::~ProvideParamCustomRequest() { SharedDtor(); } -inline void ProvideParamCustomRequest::SharedDtor() { +inline void ChangeParamCustomRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.Destroy(); value_.Destroy(); } -void ProvideParamCustomRequest::SetCachedSize(int size) const { +void ChangeParamCustomRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -void ProvideParamCustomRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ProvideParamCustomRequest) +void ChangeParamCustomRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ChangeParamCustomRequest) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2759,7 +4170,7 @@ void ProvideParamCustomRequest::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ProvideParamCustomRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ChangeParamCustomRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -2771,7 +4182,7 @@ const char* ProvideParamCustomRequest::_InternalParse(const char* ptr, ::_pbi::P auto str = _internal_mutable_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.ProvideParamCustomRequest.name")); + CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.ChangeParamCustomRequest.name")); } else goto handle_unusual; continue; @@ -2781,7 +4192,7 @@ const char* ProvideParamCustomRequest::_InternalParse(const char* ptr, ::_pbi::P auto str = _internal_mutable_value(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.ProvideParamCustomRequest.value")); + CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.param_server.ChangeParamCustomRequest.value")); } else goto handle_unusual; continue; @@ -2808,9 +4219,9 @@ const char* ProvideParamCustomRequest::_InternalParse(const char* ptr, ::_pbi::P #undef CHK_ } -uint8_t* ProvideParamCustomRequest::_InternalSerialize( +uint8_t* ChangeParamCustomRequest::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ProvideParamCustomRequest) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ChangeParamCustomRequest) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2819,7 +4230,7 @@ uint8_t* ProvideParamCustomRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.param_server.ProvideParamCustomRequest.name"); + "mavsdk.rpc.param_server.ChangeParamCustomRequest.name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_name(), target); } @@ -2829,7 +4240,7 @@ uint8_t* ProvideParamCustomRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_value().data(), static_cast(this->_internal_value().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.param_server.ProvideParamCustomRequest.value"); + "mavsdk.rpc.param_server.ChangeParamCustomRequest.value"); target = stream->WriteStringMaybeAliased( 2, this->_internal_value(), target); } @@ -2838,12 +4249,12 @@ uint8_t* ProvideParamCustomRequest::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ProvideParamCustomRequest) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ChangeParamCustomRequest) return target; } -size_t ProvideParamCustomRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ProvideParamCustomRequest) +size_t ChangeParamCustomRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ChangeParamCustomRequest) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -2867,21 +4278,21 @@ size_t ProvideParamCustomRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProvideParamCustomRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeParamCustomRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - ProvideParamCustomRequest::MergeImpl + ChangeParamCustomRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProvideParamCustomRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeParamCustomRequest::GetClassData() const { return &_class_data_; } -void ProvideParamCustomRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ChangeParamCustomRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void ProvideParamCustomRequest::MergeFrom(const ProvideParamCustomRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ProvideParamCustomRequest) +void ChangeParamCustomRequest::MergeFrom(const ChangeParamCustomRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ChangeParamCustomRequest) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2895,18 +4306,18 @@ void ProvideParamCustomRequest::MergeFrom(const ProvideParamCustomRequest& from) _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ProvideParamCustomRequest::CopyFrom(const ProvideParamCustomRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ProvideParamCustomRequest) +void ChangeParamCustomRequest::CopyFrom(const ChangeParamCustomRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ChangeParamCustomRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool ProvideParamCustomRequest::IsInitialized() const { +bool ChangeParamCustomRequest::IsInitialized() const { return true; } -void ProvideParamCustomRequest::InternalSwap(ProvideParamCustomRequest* other) { +void ChangeParamCustomRequest::InternalSwap(ChangeParamCustomRequest* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -2921,30 +4332,30 @@ void ProvideParamCustomRequest::InternalSwap(ProvideParamCustomRequest* other) { ); } -::PROTOBUF_NAMESPACE_ID::Metadata ProvideParamCustomRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ChangeParamCustomRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[10]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[16]); } // =================================================================== -class ProvideParamCustomResponse::_Internal { +class ChangeParamCustomResponse::_Internal { public: - static const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result(const ProvideParamCustomResponse* msg); + static const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result(const ChangeParamCustomResponse* msg); }; const ::mavsdk::rpc::param_server::ParamServerResult& -ProvideParamCustomResponse::_Internal::param_server_result(const ProvideParamCustomResponse* msg) { +ChangeParamCustomResponse::_Internal::param_server_result(const ChangeParamCustomResponse* msg) { return *msg->param_server_result_; } -ProvideParamCustomResponse::ProvideParamCustomResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ChangeParamCustomResponse::ChangeParamCustomResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ProvideParamCustomResponse) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.param_server.ChangeParamCustomResponse) } -ProvideParamCustomResponse::ProvideParamCustomResponse(const ProvideParamCustomResponse& from) +ChangeParamCustomResponse::ChangeParamCustomResponse(const ChangeParamCustomResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_param_server_result()) { @@ -2952,15 +4363,15 @@ ProvideParamCustomResponse::ProvideParamCustomResponse(const ProvideParamCustomR } else { param_server_result_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ProvideParamCustomResponse) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.param_server.ChangeParamCustomResponse) } -inline void ProvideParamCustomResponse::SharedCtor() { +inline void ChangeParamCustomResponse::SharedCtor() { param_server_result_ = nullptr; } -ProvideParamCustomResponse::~ProvideParamCustomResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ProvideParamCustomResponse) +ChangeParamCustomResponse::~ChangeParamCustomResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.param_server.ChangeParamCustomResponse) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -2968,17 +4379,17 @@ ProvideParamCustomResponse::~ProvideParamCustomResponse() { SharedDtor(); } -inline void ProvideParamCustomResponse::SharedDtor() { +inline void ChangeParamCustomResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete param_server_result_; } -void ProvideParamCustomResponse::SetCachedSize(int size) const { +void ChangeParamCustomResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -void ProvideParamCustomResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ProvideParamCustomResponse) +void ChangeParamCustomResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.param_server.ChangeParamCustomResponse) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2990,7 +4401,7 @@ void ProvideParamCustomResponse::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ProvideParamCustomResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ChangeParamCustomResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -3027,9 +4438,9 @@ const char* ProvideParamCustomResponse::_InternalParse(const char* ptr, ::_pbi:: #undef CHK_ } -uint8_t* ProvideParamCustomResponse::_InternalSerialize( +uint8_t* ChangeParamCustomResponse::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ProvideParamCustomResponse) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.param_server.ChangeParamCustomResponse) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -3044,12 +4455,12 @@ uint8_t* ProvideParamCustomResponse::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ProvideParamCustomResponse) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.param_server.ChangeParamCustomResponse) return target; } -size_t ProvideParamCustomResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ProvideParamCustomResponse) +size_t ChangeParamCustomResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.param_server.ChangeParamCustomResponse) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -3066,21 +4477,21 @@ size_t ProvideParamCustomResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProvideParamCustomResponse::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeParamCustomResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - ProvideParamCustomResponse::MergeImpl + ChangeParamCustomResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProvideParamCustomResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeParamCustomResponse::GetClassData() const { return &_class_data_; } -void ProvideParamCustomResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, +void ChangeParamCustomResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); + static_cast(to)->MergeFrom( + static_cast(from)); } -void ProvideParamCustomResponse::MergeFrom(const ProvideParamCustomResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ProvideParamCustomResponse) +void ChangeParamCustomResponse::MergeFrom(const ChangeParamCustomResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.param_server.ChangeParamCustomResponse) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -3091,27 +4502,27 @@ void ProvideParamCustomResponse::MergeFrom(const ProvideParamCustomResponse& fro _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ProvideParamCustomResponse::CopyFrom(const ProvideParamCustomResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ProvideParamCustomResponse) +void ChangeParamCustomResponse::CopyFrom(const ChangeParamCustomResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.param_server.ChangeParamCustomResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool ProvideParamCustomResponse::IsInitialized() const { +bool ChangeParamCustomResponse::IsInitialized() const { return true; } -void ProvideParamCustomResponse::InternalSwap(ProvideParamCustomResponse* other) { +void ChangeParamCustomResponse::InternalSwap(ChangeParamCustomResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(param_server_result_, other->param_server_result_); } -::PROTOBUF_NAMESPACE_ID::Metadata ProvideParamCustomResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ChangeParamCustomResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[11]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[17]); } // =================================================================== @@ -3150,7 +4561,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RetrieveAllParamsRequest::GetC ::PROTOBUF_NAMESPACE_ID::Metadata RetrieveAllParamsRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[12]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[18]); } // =================================================================== @@ -3337,7 +4748,7 @@ void RetrieveAllParamsResponse::InternalSwap(RetrieveAllParamsResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RetrieveAllParamsResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[13]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[19]); } // =================================================================== @@ -3558,7 +4969,7 @@ void IntParam::InternalSwap(IntParam* other) { ::PROTOBUF_NAMESPACE_ID::Metadata IntParam::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[14]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[20]); } // =================================================================== @@ -3791,7 +5202,7 @@ void FloatParam::InternalSwap(FloatParam* other) { ::PROTOBUF_NAMESPACE_ID::Metadata FloatParam::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[15]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[21]); } // =================================================================== @@ -4034,7 +5445,7 @@ void CustomParam::InternalSwap(CustomParam* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CustomParam::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[16]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[22]); } // =================================================================== @@ -4278,7 +5689,7 @@ void AllParams::InternalSwap(AllParams* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AllParams::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[17]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[23]); } // =================================================================== @@ -4502,7 +5913,7 @@ void ParamServerResult::InternalSwap(ParamServerResult* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ParamServerResult::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_getter, &descriptor_table_param_5fserver_2fparam_5fserver_2eproto_once, - file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[18]); + file_level_metadata_param_5fserver_2fparam_5fserver_2eproto[24]); } // @@protoc_insertion_point(namespace_scope) @@ -4526,6 +5937,14 @@ template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::ProvideParamIntRespons Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::ProvideParamIntResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::ProvideParamIntResponse >(arena); } +template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::ChangeParamIntRequest* +Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::ChangeParamIntRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::ChangeParamIntRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::ChangeParamIntResponse* +Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::ChangeParamIntResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::ChangeParamIntResponse >(arena); +} template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::RetrieveParamFloatRequest* Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::RetrieveParamFloatRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::RetrieveParamFloatRequest >(arena); @@ -4542,6 +5961,14 @@ template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::ProvideParamFloatRespo Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::ProvideParamFloatResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::ProvideParamFloatResponse >(arena); } +template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::ChangeParamFloatRequest* +Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::ChangeParamFloatRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::ChangeParamFloatRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::ChangeParamFloatResponse* +Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::ChangeParamFloatResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::ChangeParamFloatResponse >(arena); +} template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::RetrieveParamCustomRequest* Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::RetrieveParamCustomRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::RetrieveParamCustomRequest >(arena); @@ -4558,6 +5985,14 @@ template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::ProvideParamCustomResp Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::ProvideParamCustomResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::ProvideParamCustomResponse >(arena); } +template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::ChangeParamCustomRequest* +Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::ChangeParamCustomRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::ChangeParamCustomRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::ChangeParamCustomResponse* +Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::ChangeParamCustomResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::ChangeParamCustomResponse >(arena); +} template<> PROTOBUF_NOINLINE ::mavsdk::rpc::param_server::RetrieveAllParamsRequest* Arena::CreateMaybeMessage< ::mavsdk::rpc::param_server::RetrieveAllParamsRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::mavsdk::rpc::param_server::RetrieveAllParamsRequest >(arena); diff --git a/src/mavsdk_server/src/generated/param_server/param_server.pb.h b/src/mavsdk_server/src/generated/param_server/param_server.pb.h index cda2ea5e59..b7dfb6259b 100644 --- a/src/mavsdk_server/src/generated/param_server/param_server.pb.h +++ b/src/mavsdk_server/src/generated/param_server/param_server.pb.h @@ -53,6 +53,24 @@ namespace param_server { class AllParams; struct AllParamsDefaultTypeInternal; extern AllParamsDefaultTypeInternal _AllParams_default_instance_; +class ChangeParamCustomRequest; +struct ChangeParamCustomRequestDefaultTypeInternal; +extern ChangeParamCustomRequestDefaultTypeInternal _ChangeParamCustomRequest_default_instance_; +class ChangeParamCustomResponse; +struct ChangeParamCustomResponseDefaultTypeInternal; +extern ChangeParamCustomResponseDefaultTypeInternal _ChangeParamCustomResponse_default_instance_; +class ChangeParamFloatRequest; +struct ChangeParamFloatRequestDefaultTypeInternal; +extern ChangeParamFloatRequestDefaultTypeInternal _ChangeParamFloatRequest_default_instance_; +class ChangeParamFloatResponse; +struct ChangeParamFloatResponseDefaultTypeInternal; +extern ChangeParamFloatResponseDefaultTypeInternal _ChangeParamFloatResponse_default_instance_; +class ChangeParamIntRequest; +struct ChangeParamIntRequestDefaultTypeInternal; +extern ChangeParamIntRequestDefaultTypeInternal _ChangeParamIntRequest_default_instance_; +class ChangeParamIntResponse; +struct ChangeParamIntResponseDefaultTypeInternal; +extern ChangeParamIntResponseDefaultTypeInternal _ChangeParamIntResponse_default_instance_; class CustomParam; struct CustomParamDefaultTypeInternal; extern CustomParamDefaultTypeInternal _CustomParam_default_instance_; @@ -112,6 +130,12 @@ extern RetrieveParamIntResponseDefaultTypeInternal _RetrieveParamIntResponse_def } // namespace mavsdk PROTOBUF_NAMESPACE_OPEN template<> ::mavsdk::rpc::param_server::AllParams* Arena::CreateMaybeMessage<::mavsdk::rpc::param_server::AllParams>(Arena*); +template<> ::mavsdk::rpc::param_server::ChangeParamCustomRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::param_server::ChangeParamCustomRequest>(Arena*); +template<> ::mavsdk::rpc::param_server::ChangeParamCustomResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::param_server::ChangeParamCustomResponse>(Arena*); +template<> ::mavsdk::rpc::param_server::ChangeParamFloatRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::param_server::ChangeParamFloatRequest>(Arena*); +template<> ::mavsdk::rpc::param_server::ChangeParamFloatResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::param_server::ChangeParamFloatResponse>(Arena*); +template<> ::mavsdk::rpc::param_server::ChangeParamIntRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::param_server::ChangeParamIntRequest>(Arena*); +template<> ::mavsdk::rpc::param_server::ChangeParamIntResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::param_server::ChangeParamIntResponse>(Arena*); template<> ::mavsdk::rpc::param_server::CustomParam* Arena::CreateMaybeMessage<::mavsdk::rpc::param_server::CustomParam>(Arena*); template<> ::mavsdk::rpc::param_server::FloatParam* Arena::CreateMaybeMessage<::mavsdk::rpc::param_server::FloatParam>(Arena*); template<> ::mavsdk::rpc::param_server::IntParam* Arena::CreateMaybeMessage<::mavsdk::rpc::param_server::IntParam>(Arena*); @@ -789,24 +813,24 @@ class ProvideParamIntResponse final : }; // ------------------------------------------------------------------- -class RetrieveParamFloatRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveParamFloatRequest) */ { +class ChangeParamIntRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ChangeParamIntRequest) */ { public: - inline RetrieveParamFloatRequest() : RetrieveParamFloatRequest(nullptr) {} - ~RetrieveParamFloatRequest() override; - explicit PROTOBUF_CONSTEXPR RetrieveParamFloatRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ChangeParamIntRequest() : ChangeParamIntRequest(nullptr) {} + ~ChangeParamIntRequest() override; + explicit PROTOBUF_CONSTEXPR ChangeParamIntRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - RetrieveParamFloatRequest(const RetrieveParamFloatRequest& from); - RetrieveParamFloatRequest(RetrieveParamFloatRequest&& from) noexcept - : RetrieveParamFloatRequest() { + ChangeParamIntRequest(const ChangeParamIntRequest& from); + ChangeParamIntRequest(ChangeParamIntRequest&& from) noexcept + : ChangeParamIntRequest() { *this = ::std::move(from); } - inline RetrieveParamFloatRequest& operator=(const RetrieveParamFloatRequest& from) { + inline ChangeParamIntRequest& operator=(const ChangeParamIntRequest& from) { CopyFrom(from); return *this; } - inline RetrieveParamFloatRequest& operator=(RetrieveParamFloatRequest&& from) noexcept { + inline ChangeParamIntRequest& operator=(ChangeParamIntRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -829,20 +853,20 @@ class RetrieveParamFloatRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RetrieveParamFloatRequest& default_instance() { + static const ChangeParamIntRequest& default_instance() { return *internal_default_instance(); } - static inline const RetrieveParamFloatRequest* internal_default_instance() { - return reinterpret_cast( - &_RetrieveParamFloatRequest_default_instance_); + static inline const ChangeParamIntRequest* internal_default_instance() { + return reinterpret_cast( + &_ChangeParamIntRequest_default_instance_); } static constexpr int kIndexInFileMessages = 4; - friend void swap(RetrieveParamFloatRequest& a, RetrieveParamFloatRequest& b) { + friend void swap(ChangeParamIntRequest& a, ChangeParamIntRequest& b) { a.Swap(&b); } - inline void Swap(RetrieveParamFloatRequest* other) { + inline void Swap(ChangeParamIntRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -855,7 +879,7 @@ class RetrieveParamFloatRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RetrieveParamFloatRequest* other) { + void UnsafeArenaSwap(ChangeParamIntRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -863,13 +887,13 @@ class RetrieveParamFloatRequest final : // implements Message ---------------------------------------------- - RetrieveParamFloatRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ChangeParamIntRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RetrieveParamFloatRequest& from); + void CopyFrom(const ChangeParamIntRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const RetrieveParamFloatRequest& from); + void MergeFrom(const ChangeParamIntRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -886,15 +910,15 @@ class RetrieveParamFloatRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(RetrieveParamFloatRequest* other); + void InternalSwap(ChangeParamIntRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.RetrieveParamFloatRequest"; + return "mavsdk.rpc.param_server.ChangeParamIntRequest"; } protected: - explicit RetrieveParamFloatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ChangeParamIntRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -909,6 +933,7 @@ class RetrieveParamFloatRequest final : enum : int { kNameFieldNumber = 1, + kValueFieldNumber = 2, }; // string name = 1; void clear_name(); @@ -924,7 +949,16 @@ class RetrieveParamFloatRequest final : std::string* _internal_mutable_name(); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveParamFloatRequest) + // int32 value = 2; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); + private: + int32_t _internal_value() const; + void _internal_set_value(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ChangeParamIntRequest) private: class _Internal; @@ -932,29 +966,30 @@ class RetrieveParamFloatRequest final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + int32_t value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class RetrieveParamFloatResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveParamFloatResponse) */ { +class ChangeParamIntResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ChangeParamIntResponse) */ { public: - inline RetrieveParamFloatResponse() : RetrieveParamFloatResponse(nullptr) {} - ~RetrieveParamFloatResponse() override; - explicit PROTOBUF_CONSTEXPR RetrieveParamFloatResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ChangeParamIntResponse() : ChangeParamIntResponse(nullptr) {} + ~ChangeParamIntResponse() override; + explicit PROTOBUF_CONSTEXPR ChangeParamIntResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - RetrieveParamFloatResponse(const RetrieveParamFloatResponse& from); - RetrieveParamFloatResponse(RetrieveParamFloatResponse&& from) noexcept - : RetrieveParamFloatResponse() { + ChangeParamIntResponse(const ChangeParamIntResponse& from); + ChangeParamIntResponse(ChangeParamIntResponse&& from) noexcept + : ChangeParamIntResponse() { *this = ::std::move(from); } - inline RetrieveParamFloatResponse& operator=(const RetrieveParamFloatResponse& from) { + inline ChangeParamIntResponse& operator=(const ChangeParamIntResponse& from) { CopyFrom(from); return *this; } - inline RetrieveParamFloatResponse& operator=(RetrieveParamFloatResponse&& from) noexcept { + inline ChangeParamIntResponse& operator=(ChangeParamIntResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -977,20 +1012,20 @@ class RetrieveParamFloatResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RetrieveParamFloatResponse& default_instance() { + static const ChangeParamIntResponse& default_instance() { return *internal_default_instance(); } - static inline const RetrieveParamFloatResponse* internal_default_instance() { - return reinterpret_cast( - &_RetrieveParamFloatResponse_default_instance_); + static inline const ChangeParamIntResponse* internal_default_instance() { + return reinterpret_cast( + &_ChangeParamIntResponse_default_instance_); } static constexpr int kIndexInFileMessages = 5; - friend void swap(RetrieveParamFloatResponse& a, RetrieveParamFloatResponse& b) { + friend void swap(ChangeParamIntResponse& a, ChangeParamIntResponse& b) { a.Swap(&b); } - inline void Swap(RetrieveParamFloatResponse* other) { + inline void Swap(ChangeParamIntResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1003,7 +1038,7 @@ class RetrieveParamFloatResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RetrieveParamFloatResponse* other) { + void UnsafeArenaSwap(ChangeParamIntResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1011,13 +1046,13 @@ class RetrieveParamFloatResponse final : // implements Message ---------------------------------------------- - RetrieveParamFloatResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ChangeParamIntResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RetrieveParamFloatResponse& from); + void CopyFrom(const ChangeParamIntResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const RetrieveParamFloatResponse& from); + void MergeFrom(const ChangeParamIntResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1034,15 +1069,15 @@ class RetrieveParamFloatResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(RetrieveParamFloatResponse* other); + void InternalSwap(ChangeParamIntResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.RetrieveParamFloatResponse"; + return "mavsdk.rpc.param_server.ChangeParamIntResponse"; } protected: - explicit RetrieveParamFloatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ChangeParamIntResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1057,7 +1092,6 @@ class RetrieveParamFloatResponse final : enum : int { kParamServerResultFieldNumber = 1, - kValueFieldNumber = 2, }; // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; bool has_param_server_result() const; @@ -1077,16 +1111,7 @@ class RetrieveParamFloatResponse final : ::mavsdk::rpc::param_server::ParamServerResult* param_server_result); ::mavsdk::rpc::param_server::ParamServerResult* unsafe_arena_release_param_server_result(); - // float value = 2; - void clear_value(); - float value() const; - void set_value(float value); - private: - float _internal_value() const; - void _internal_set_value(float value); - public: - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveParamFloatResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ChangeParamIntResponse) private: class _Internal; @@ -1094,30 +1119,29 @@ class RetrieveParamFloatResponse final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::mavsdk::rpc::param_server::ParamServerResult* param_server_result_; - float value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class ProvideParamFloatRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ProvideParamFloatRequest) */ { +class RetrieveParamFloatRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveParamFloatRequest) */ { public: - inline ProvideParamFloatRequest() : ProvideParamFloatRequest(nullptr) {} - ~ProvideParamFloatRequest() override; - explicit PROTOBUF_CONSTEXPR ProvideParamFloatRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RetrieveParamFloatRequest() : RetrieveParamFloatRequest(nullptr) {} + ~RetrieveParamFloatRequest() override; + explicit PROTOBUF_CONSTEXPR RetrieveParamFloatRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ProvideParamFloatRequest(const ProvideParamFloatRequest& from); - ProvideParamFloatRequest(ProvideParamFloatRequest&& from) noexcept - : ProvideParamFloatRequest() { + RetrieveParamFloatRequest(const RetrieveParamFloatRequest& from); + RetrieveParamFloatRequest(RetrieveParamFloatRequest&& from) noexcept + : RetrieveParamFloatRequest() { *this = ::std::move(from); } - inline ProvideParamFloatRequest& operator=(const ProvideParamFloatRequest& from) { + inline RetrieveParamFloatRequest& operator=(const RetrieveParamFloatRequest& from) { CopyFrom(from); return *this; } - inline ProvideParamFloatRequest& operator=(ProvideParamFloatRequest&& from) noexcept { + inline RetrieveParamFloatRequest& operator=(RetrieveParamFloatRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1140,20 +1164,20 @@ class ProvideParamFloatRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ProvideParamFloatRequest& default_instance() { + static const RetrieveParamFloatRequest& default_instance() { return *internal_default_instance(); } - static inline const ProvideParamFloatRequest* internal_default_instance() { - return reinterpret_cast( - &_ProvideParamFloatRequest_default_instance_); + static inline const RetrieveParamFloatRequest* internal_default_instance() { + return reinterpret_cast( + &_RetrieveParamFloatRequest_default_instance_); } static constexpr int kIndexInFileMessages = 6; - friend void swap(ProvideParamFloatRequest& a, ProvideParamFloatRequest& b) { + friend void swap(RetrieveParamFloatRequest& a, RetrieveParamFloatRequest& b) { a.Swap(&b); } - inline void Swap(ProvideParamFloatRequest* other) { + inline void Swap(RetrieveParamFloatRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1166,7 +1190,7 @@ class ProvideParamFloatRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ProvideParamFloatRequest* other) { + void UnsafeArenaSwap(RetrieveParamFloatRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1174,13 +1198,13 @@ class ProvideParamFloatRequest final : // implements Message ---------------------------------------------- - ProvideParamFloatRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RetrieveParamFloatRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ProvideParamFloatRequest& from); + void CopyFrom(const RetrieveParamFloatRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ProvideParamFloatRequest& from); + void MergeFrom(const RetrieveParamFloatRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1197,15 +1221,15 @@ class ProvideParamFloatRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ProvideParamFloatRequest* other); + void InternalSwap(RetrieveParamFloatRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.ProvideParamFloatRequest"; + return "mavsdk.rpc.param_server.RetrieveParamFloatRequest"; } protected: - explicit ProvideParamFloatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit RetrieveParamFloatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1220,7 +1244,6 @@ class ProvideParamFloatRequest final : enum : int { kNameFieldNumber = 1, - kValueFieldNumber = 2, }; // string name = 1; void clear_name(); @@ -1236,16 +1259,7 @@ class ProvideParamFloatRequest final : std::string* _internal_mutable_name(); public: - // float value = 2; - void clear_value(); - float value() const; - void set_value(float value); - private: - float _internal_value() const; - void _internal_set_value(float value); - public: - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ProvideParamFloatRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveParamFloatRequest) private: class _Internal; @@ -1253,30 +1267,29 @@ class ProvideParamFloatRequest final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - float value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class ProvideParamFloatResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ProvideParamFloatResponse) */ { +class RetrieveParamFloatResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveParamFloatResponse) */ { public: - inline ProvideParamFloatResponse() : ProvideParamFloatResponse(nullptr) {} - ~ProvideParamFloatResponse() override; - explicit PROTOBUF_CONSTEXPR ProvideParamFloatResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RetrieveParamFloatResponse() : RetrieveParamFloatResponse(nullptr) {} + ~RetrieveParamFloatResponse() override; + explicit PROTOBUF_CONSTEXPR RetrieveParamFloatResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ProvideParamFloatResponse(const ProvideParamFloatResponse& from); - ProvideParamFloatResponse(ProvideParamFloatResponse&& from) noexcept - : ProvideParamFloatResponse() { + RetrieveParamFloatResponse(const RetrieveParamFloatResponse& from); + RetrieveParamFloatResponse(RetrieveParamFloatResponse&& from) noexcept + : RetrieveParamFloatResponse() { *this = ::std::move(from); } - inline ProvideParamFloatResponse& operator=(const ProvideParamFloatResponse& from) { + inline RetrieveParamFloatResponse& operator=(const RetrieveParamFloatResponse& from) { CopyFrom(from); return *this; } - inline ProvideParamFloatResponse& operator=(ProvideParamFloatResponse&& from) noexcept { + inline RetrieveParamFloatResponse& operator=(RetrieveParamFloatResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1299,20 +1312,20 @@ class ProvideParamFloatResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ProvideParamFloatResponse& default_instance() { + static const RetrieveParamFloatResponse& default_instance() { return *internal_default_instance(); } - static inline const ProvideParamFloatResponse* internal_default_instance() { - return reinterpret_cast( - &_ProvideParamFloatResponse_default_instance_); + static inline const RetrieveParamFloatResponse* internal_default_instance() { + return reinterpret_cast( + &_RetrieveParamFloatResponse_default_instance_); } static constexpr int kIndexInFileMessages = 7; - friend void swap(ProvideParamFloatResponse& a, ProvideParamFloatResponse& b) { + friend void swap(RetrieveParamFloatResponse& a, RetrieveParamFloatResponse& b) { a.Swap(&b); } - inline void Swap(ProvideParamFloatResponse* other) { + inline void Swap(RetrieveParamFloatResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1325,7 +1338,7 @@ class ProvideParamFloatResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ProvideParamFloatResponse* other) { + void UnsafeArenaSwap(RetrieveParamFloatResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1333,13 +1346,13 @@ class ProvideParamFloatResponse final : // implements Message ---------------------------------------------- - ProvideParamFloatResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RetrieveParamFloatResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ProvideParamFloatResponse& from); + void CopyFrom(const RetrieveParamFloatResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ProvideParamFloatResponse& from); + void MergeFrom(const RetrieveParamFloatResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1356,15 +1369,15 @@ class ProvideParamFloatResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ProvideParamFloatResponse* other); + void InternalSwap(RetrieveParamFloatResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.ProvideParamFloatResponse"; + return "mavsdk.rpc.param_server.RetrieveParamFloatResponse"; } protected: - explicit ProvideParamFloatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit RetrieveParamFloatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1379,6 +1392,7 @@ class ProvideParamFloatResponse final : enum : int { kParamServerResultFieldNumber = 1, + kValueFieldNumber = 2, }; // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; bool has_param_server_result() const; @@ -1398,7 +1412,16 @@ class ProvideParamFloatResponse final : ::mavsdk::rpc::param_server::ParamServerResult* param_server_result); ::mavsdk::rpc::param_server::ParamServerResult* unsafe_arena_release_param_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ProvideParamFloatResponse) + // float value = 2; + void clear_value(); + float value() const; + void set_value(float value); + private: + float _internal_value() const; + void _internal_set_value(float value); + public: + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveParamFloatResponse) private: class _Internal; @@ -1406,29 +1429,30 @@ class ProvideParamFloatResponse final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::mavsdk::rpc::param_server::ParamServerResult* param_server_result_; + float value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class RetrieveParamCustomRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveParamCustomRequest) */ { +class ProvideParamFloatRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ProvideParamFloatRequest) */ { public: - inline RetrieveParamCustomRequest() : RetrieveParamCustomRequest(nullptr) {} - ~RetrieveParamCustomRequest() override; - explicit PROTOBUF_CONSTEXPR RetrieveParamCustomRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ProvideParamFloatRequest() : ProvideParamFloatRequest(nullptr) {} + ~ProvideParamFloatRequest() override; + explicit PROTOBUF_CONSTEXPR ProvideParamFloatRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - RetrieveParamCustomRequest(const RetrieveParamCustomRequest& from); - RetrieveParamCustomRequest(RetrieveParamCustomRequest&& from) noexcept - : RetrieveParamCustomRequest() { + ProvideParamFloatRequest(const ProvideParamFloatRequest& from); + ProvideParamFloatRequest(ProvideParamFloatRequest&& from) noexcept + : ProvideParamFloatRequest() { *this = ::std::move(from); } - inline RetrieveParamCustomRequest& operator=(const RetrieveParamCustomRequest& from) { + inline ProvideParamFloatRequest& operator=(const ProvideParamFloatRequest& from) { CopyFrom(from); return *this; } - inline RetrieveParamCustomRequest& operator=(RetrieveParamCustomRequest&& from) noexcept { + inline ProvideParamFloatRequest& operator=(ProvideParamFloatRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1451,20 +1475,20 @@ class RetrieveParamCustomRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RetrieveParamCustomRequest& default_instance() { + static const ProvideParamFloatRequest& default_instance() { return *internal_default_instance(); } - static inline const RetrieveParamCustomRequest* internal_default_instance() { - return reinterpret_cast( - &_RetrieveParamCustomRequest_default_instance_); + static inline const ProvideParamFloatRequest* internal_default_instance() { + return reinterpret_cast( + &_ProvideParamFloatRequest_default_instance_); } static constexpr int kIndexInFileMessages = 8; - friend void swap(RetrieveParamCustomRequest& a, RetrieveParamCustomRequest& b) { + friend void swap(ProvideParamFloatRequest& a, ProvideParamFloatRequest& b) { a.Swap(&b); } - inline void Swap(RetrieveParamCustomRequest* other) { + inline void Swap(ProvideParamFloatRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1477,7 +1501,7 @@ class RetrieveParamCustomRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RetrieveParamCustomRequest* other) { + void UnsafeArenaSwap(ProvideParamFloatRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1485,13 +1509,13 @@ class RetrieveParamCustomRequest final : // implements Message ---------------------------------------------- - RetrieveParamCustomRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ProvideParamFloatRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RetrieveParamCustomRequest& from); + void CopyFrom(const ProvideParamFloatRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const RetrieveParamCustomRequest& from); + void MergeFrom(const ProvideParamFloatRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1508,15 +1532,15 @@ class RetrieveParamCustomRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(RetrieveParamCustomRequest* other); + void InternalSwap(ProvideParamFloatRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.RetrieveParamCustomRequest"; + return "mavsdk.rpc.param_server.ProvideParamFloatRequest"; } protected: - explicit RetrieveParamCustomRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ProvideParamFloatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1531,6 +1555,7 @@ class RetrieveParamCustomRequest final : enum : int { kNameFieldNumber = 1, + kValueFieldNumber = 2, }; // string name = 1; void clear_name(); @@ -1546,7 +1571,16 @@ class RetrieveParamCustomRequest final : std::string* _internal_mutable_name(); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveParamCustomRequest) + // float value = 2; + void clear_value(); + float value() const; + void set_value(float value); + private: + float _internal_value() const; + void _internal_set_value(float value); + public: + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ProvideParamFloatRequest) private: class _Internal; @@ -1554,29 +1588,30 @@ class RetrieveParamCustomRequest final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + float value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class RetrieveParamCustomResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveParamCustomResponse) */ { +class ProvideParamFloatResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ProvideParamFloatResponse) */ { public: - inline RetrieveParamCustomResponse() : RetrieveParamCustomResponse(nullptr) {} - ~RetrieveParamCustomResponse() override; - explicit PROTOBUF_CONSTEXPR RetrieveParamCustomResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ProvideParamFloatResponse() : ProvideParamFloatResponse(nullptr) {} + ~ProvideParamFloatResponse() override; + explicit PROTOBUF_CONSTEXPR ProvideParamFloatResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - RetrieveParamCustomResponse(const RetrieveParamCustomResponse& from); - RetrieveParamCustomResponse(RetrieveParamCustomResponse&& from) noexcept - : RetrieveParamCustomResponse() { + ProvideParamFloatResponse(const ProvideParamFloatResponse& from); + ProvideParamFloatResponse(ProvideParamFloatResponse&& from) noexcept + : ProvideParamFloatResponse() { *this = ::std::move(from); } - inline RetrieveParamCustomResponse& operator=(const RetrieveParamCustomResponse& from) { + inline ProvideParamFloatResponse& operator=(const ProvideParamFloatResponse& from) { CopyFrom(from); return *this; } - inline RetrieveParamCustomResponse& operator=(RetrieveParamCustomResponse&& from) noexcept { + inline ProvideParamFloatResponse& operator=(ProvideParamFloatResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1599,20 +1634,20 @@ class RetrieveParamCustomResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RetrieveParamCustomResponse& default_instance() { + static const ProvideParamFloatResponse& default_instance() { return *internal_default_instance(); } - static inline const RetrieveParamCustomResponse* internal_default_instance() { - return reinterpret_cast( - &_RetrieveParamCustomResponse_default_instance_); + static inline const ProvideParamFloatResponse* internal_default_instance() { + return reinterpret_cast( + &_ProvideParamFloatResponse_default_instance_); } static constexpr int kIndexInFileMessages = 9; - friend void swap(RetrieveParamCustomResponse& a, RetrieveParamCustomResponse& b) { + friend void swap(ProvideParamFloatResponse& a, ProvideParamFloatResponse& b) { a.Swap(&b); } - inline void Swap(RetrieveParamCustomResponse* other) { + inline void Swap(ProvideParamFloatResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1625,7 +1660,7 @@ class RetrieveParamCustomResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RetrieveParamCustomResponse* other) { + void UnsafeArenaSwap(ProvideParamFloatResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1633,13 +1668,13 @@ class RetrieveParamCustomResponse final : // implements Message ---------------------------------------------- - RetrieveParamCustomResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ProvideParamFloatResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RetrieveParamCustomResponse& from); + void CopyFrom(const ProvideParamFloatResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const RetrieveParamCustomResponse& from); + void MergeFrom(const ProvideParamFloatResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1656,15 +1691,15 @@ class RetrieveParamCustomResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(RetrieveParamCustomResponse* other); + void InternalSwap(ProvideParamFloatResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.RetrieveParamCustomResponse"; + return "mavsdk.rpc.param_server.ProvideParamFloatResponse"; } protected: - explicit RetrieveParamCustomResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ProvideParamFloatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1678,23 +1713,8 @@ class RetrieveParamCustomResponse final : // accessors ------------------------------------------------------- enum : int { - kValueFieldNumber = 2, kParamServerResultFieldNumber = 1, }; - // string value = 2; - void clear_value(); - const std::string& value() const; - template - void set_value(ArgT0&& arg0, ArgT... args); - std::string* mutable_value(); - PROTOBUF_NODISCARD std::string* release_value(); - void set_allocated_value(std::string* value); - private: - const std::string& _internal_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value); - std::string* _internal_mutable_value(); - public: - // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; bool has_param_server_result() const; private: @@ -1713,38 +1733,37 @@ class RetrieveParamCustomResponse final : ::mavsdk::rpc::param_server::ParamServerResult* param_server_result); ::mavsdk::rpc::param_server::ParamServerResult* unsafe_arena_release_param_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveParamCustomResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ProvideParamFloatResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; ::mavsdk::rpc::param_server::ParamServerResult* param_server_result_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class ProvideParamCustomRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ProvideParamCustomRequest) */ { +class ChangeParamFloatRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ChangeParamFloatRequest) */ { public: - inline ProvideParamCustomRequest() : ProvideParamCustomRequest(nullptr) {} - ~ProvideParamCustomRequest() override; - explicit PROTOBUF_CONSTEXPR ProvideParamCustomRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ChangeParamFloatRequest() : ChangeParamFloatRequest(nullptr) {} + ~ChangeParamFloatRequest() override; + explicit PROTOBUF_CONSTEXPR ChangeParamFloatRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ProvideParamCustomRequest(const ProvideParamCustomRequest& from); - ProvideParamCustomRequest(ProvideParamCustomRequest&& from) noexcept - : ProvideParamCustomRequest() { + ChangeParamFloatRequest(const ChangeParamFloatRequest& from); + ChangeParamFloatRequest(ChangeParamFloatRequest&& from) noexcept + : ChangeParamFloatRequest() { *this = ::std::move(from); } - inline ProvideParamCustomRequest& operator=(const ProvideParamCustomRequest& from) { + inline ChangeParamFloatRequest& operator=(const ChangeParamFloatRequest& from) { CopyFrom(from); return *this; } - inline ProvideParamCustomRequest& operator=(ProvideParamCustomRequest&& from) noexcept { + inline ChangeParamFloatRequest& operator=(ChangeParamFloatRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1767,20 +1786,20 @@ class ProvideParamCustomRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ProvideParamCustomRequest& default_instance() { + static const ChangeParamFloatRequest& default_instance() { return *internal_default_instance(); } - static inline const ProvideParamCustomRequest* internal_default_instance() { - return reinterpret_cast( - &_ProvideParamCustomRequest_default_instance_); + static inline const ChangeParamFloatRequest* internal_default_instance() { + return reinterpret_cast( + &_ChangeParamFloatRequest_default_instance_); } static constexpr int kIndexInFileMessages = 10; - friend void swap(ProvideParamCustomRequest& a, ProvideParamCustomRequest& b) { + friend void swap(ChangeParamFloatRequest& a, ChangeParamFloatRequest& b) { a.Swap(&b); } - inline void Swap(ProvideParamCustomRequest* other) { + inline void Swap(ChangeParamFloatRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1793,7 +1812,7 @@ class ProvideParamCustomRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ProvideParamCustomRequest* other) { + void UnsafeArenaSwap(ChangeParamFloatRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1801,13 +1820,13 @@ class ProvideParamCustomRequest final : // implements Message ---------------------------------------------- - ProvideParamCustomRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ChangeParamFloatRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ProvideParamCustomRequest& from); + void CopyFrom(const ChangeParamFloatRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ProvideParamCustomRequest& from); + void MergeFrom(const ChangeParamFloatRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1824,15 +1843,15 @@ class ProvideParamCustomRequest final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ProvideParamCustomRequest* other); + void InternalSwap(ChangeParamFloatRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.ProvideParamCustomRequest"; + return "mavsdk.rpc.param_server.ChangeParamFloatRequest"; } protected: - explicit ProvideParamCustomRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ChangeParamFloatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1863,21 +1882,16 @@ class ProvideParamCustomRequest final : std::string* _internal_mutable_name(); public: - // string value = 2; + // float value = 2; void clear_value(); - const std::string& value() const; - template - void set_value(ArgT0&& arg0, ArgT... args); - std::string* mutable_value(); - PROTOBUF_NODISCARD std::string* release_value(); - void set_allocated_value(std::string* value); + float value() const; + void set_value(float value); private: - const std::string& _internal_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value); - std::string* _internal_mutable_value(); + float _internal_value() const; + void _internal_set_value(float value); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ProvideParamCustomRequest) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ChangeParamFloatRequest) private: class _Internal; @@ -1885,30 +1899,30 @@ class ProvideParamCustomRequest final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; + float value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class ProvideParamCustomResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ProvideParamCustomResponse) */ { +class ChangeParamFloatResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ChangeParamFloatResponse) */ { public: - inline ProvideParamCustomResponse() : ProvideParamCustomResponse(nullptr) {} - ~ProvideParamCustomResponse() override; - explicit PROTOBUF_CONSTEXPR ProvideParamCustomResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ChangeParamFloatResponse() : ChangeParamFloatResponse(nullptr) {} + ~ChangeParamFloatResponse() override; + explicit PROTOBUF_CONSTEXPR ChangeParamFloatResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ProvideParamCustomResponse(const ProvideParamCustomResponse& from); - ProvideParamCustomResponse(ProvideParamCustomResponse&& from) noexcept - : ProvideParamCustomResponse() { + ChangeParamFloatResponse(const ChangeParamFloatResponse& from); + ChangeParamFloatResponse(ChangeParamFloatResponse&& from) noexcept + : ChangeParamFloatResponse() { *this = ::std::move(from); } - inline ProvideParamCustomResponse& operator=(const ProvideParamCustomResponse& from) { + inline ChangeParamFloatResponse& operator=(const ChangeParamFloatResponse& from) { CopyFrom(from); return *this; } - inline ProvideParamCustomResponse& operator=(ProvideParamCustomResponse&& from) noexcept { + inline ChangeParamFloatResponse& operator=(ChangeParamFloatResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1931,20 +1945,20 @@ class ProvideParamCustomResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ProvideParamCustomResponse& default_instance() { + static const ChangeParamFloatResponse& default_instance() { return *internal_default_instance(); } - static inline const ProvideParamCustomResponse* internal_default_instance() { - return reinterpret_cast( - &_ProvideParamCustomResponse_default_instance_); + static inline const ChangeParamFloatResponse* internal_default_instance() { + return reinterpret_cast( + &_ChangeParamFloatResponse_default_instance_); } static constexpr int kIndexInFileMessages = 11; - friend void swap(ProvideParamCustomResponse& a, ProvideParamCustomResponse& b) { + friend void swap(ChangeParamFloatResponse& a, ChangeParamFloatResponse& b) { a.Swap(&b); } - inline void Swap(ProvideParamCustomResponse* other) { + inline void Swap(ChangeParamFloatResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1957,7 +1971,7 @@ class ProvideParamCustomResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ProvideParamCustomResponse* other) { + void UnsafeArenaSwap(ChangeParamFloatResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1965,13 +1979,13 @@ class ProvideParamCustomResponse final : // implements Message ---------------------------------------------- - ProvideParamCustomResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ChangeParamFloatResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ProvideParamCustomResponse& from); + void CopyFrom(const ChangeParamFloatResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ProvideParamCustomResponse& from); + void MergeFrom(const ChangeParamFloatResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -1988,15 +2002,15 @@ class ProvideParamCustomResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ProvideParamCustomResponse* other); + void InternalSwap(ChangeParamFloatResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.ProvideParamCustomResponse"; + return "mavsdk.rpc.param_server.ChangeParamFloatResponse"; } protected: - explicit ProvideParamCustomResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ChangeParamFloatResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2030,7 +2044,7 @@ class ProvideParamCustomResponse final : ::mavsdk::rpc::param_server::ParamServerResult* param_server_result); ::mavsdk::rpc::param_server::ParamServerResult* unsafe_arena_release_param_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ProvideParamCustomResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ChangeParamFloatResponse) private: class _Internal; @@ -2043,23 +2057,24 @@ class ProvideParamCustomResponse final : }; // ------------------------------------------------------------------- -class RetrieveAllParamsRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveAllParamsRequest) */ { +class RetrieveParamCustomRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveParamCustomRequest) */ { public: - inline RetrieveAllParamsRequest() : RetrieveAllParamsRequest(nullptr) {} - explicit PROTOBUF_CONSTEXPR RetrieveAllParamsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RetrieveParamCustomRequest() : RetrieveParamCustomRequest(nullptr) {} + ~RetrieveParamCustomRequest() override; + explicit PROTOBUF_CONSTEXPR RetrieveParamCustomRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - RetrieveAllParamsRequest(const RetrieveAllParamsRequest& from); - RetrieveAllParamsRequest(RetrieveAllParamsRequest&& from) noexcept - : RetrieveAllParamsRequest() { + RetrieveParamCustomRequest(const RetrieveParamCustomRequest& from); + RetrieveParamCustomRequest(RetrieveParamCustomRequest&& from) noexcept + : RetrieveParamCustomRequest() { *this = ::std::move(from); } - inline RetrieveAllParamsRequest& operator=(const RetrieveAllParamsRequest& from) { + inline RetrieveParamCustomRequest& operator=(const RetrieveParamCustomRequest& from) { CopyFrom(from); return *this; } - inline RetrieveAllParamsRequest& operator=(RetrieveAllParamsRequest&& from) noexcept { + inline RetrieveParamCustomRequest& operator=(RetrieveParamCustomRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2082,20 +2097,20 @@ class RetrieveAllParamsRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RetrieveAllParamsRequest& default_instance() { + static const RetrieveParamCustomRequest& default_instance() { return *internal_default_instance(); } - static inline const RetrieveAllParamsRequest* internal_default_instance() { - return reinterpret_cast( - &_RetrieveAllParamsRequest_default_instance_); + static inline const RetrieveParamCustomRequest* internal_default_instance() { + return reinterpret_cast( + &_RetrieveParamCustomRequest_default_instance_); } static constexpr int kIndexInFileMessages = 12; - friend void swap(RetrieveAllParamsRequest& a, RetrieveAllParamsRequest& b) { + friend void swap(RetrieveParamCustomRequest& a, RetrieveParamCustomRequest& b) { a.Swap(&b); } - inline void Swap(RetrieveAllParamsRequest* other) { + inline void Swap(RetrieveParamCustomRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2108,7 +2123,7 @@ class RetrieveAllParamsRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RetrieveAllParamsRequest* other) { + void UnsafeArenaSwap(RetrieveParamCustomRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2116,26 +2131,38 @@ class RetrieveAllParamsRequest final : // implements Message ---------------------------------------------- - RetrieveAllParamsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const RetrieveAllParamsRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const RetrieveAllParamsRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + RetrieveParamCustomRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const RetrieveParamCustomRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const RetrieveParamCustomRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RetrieveParamCustomRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.RetrieveAllParamsRequest"; + return "mavsdk.rpc.param_server.RetrieveParamCustomRequest"; } protected: - explicit RetrieveAllParamsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit RetrieveParamCustomRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2148,35 +2175,54 @@ class RetrieveAllParamsRequest final : // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveAllParamsRequest) + enum : int { + kNameFieldNumber = 1, + }; + // string name = 1; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveParamCustomRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class RetrieveAllParamsResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveAllParamsResponse) */ { +class RetrieveParamCustomResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveParamCustomResponse) */ { public: - inline RetrieveAllParamsResponse() : RetrieveAllParamsResponse(nullptr) {} - ~RetrieveAllParamsResponse() override; - explicit PROTOBUF_CONSTEXPR RetrieveAllParamsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RetrieveParamCustomResponse() : RetrieveParamCustomResponse(nullptr) {} + ~RetrieveParamCustomResponse() override; + explicit PROTOBUF_CONSTEXPR RetrieveParamCustomResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - RetrieveAllParamsResponse(const RetrieveAllParamsResponse& from); - RetrieveAllParamsResponse(RetrieveAllParamsResponse&& from) noexcept - : RetrieveAllParamsResponse() { + RetrieveParamCustomResponse(const RetrieveParamCustomResponse& from); + RetrieveParamCustomResponse(RetrieveParamCustomResponse&& from) noexcept + : RetrieveParamCustomResponse() { *this = ::std::move(from); } - inline RetrieveAllParamsResponse& operator=(const RetrieveAllParamsResponse& from) { + inline RetrieveParamCustomResponse& operator=(const RetrieveParamCustomResponse& from) { CopyFrom(from); return *this; } - inline RetrieveAllParamsResponse& operator=(RetrieveAllParamsResponse&& from) noexcept { + inline RetrieveParamCustomResponse& operator=(RetrieveParamCustomResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2199,20 +2245,20 @@ class RetrieveAllParamsResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RetrieveAllParamsResponse& default_instance() { + static const RetrieveParamCustomResponse& default_instance() { return *internal_default_instance(); } - static inline const RetrieveAllParamsResponse* internal_default_instance() { - return reinterpret_cast( - &_RetrieveAllParamsResponse_default_instance_); + static inline const RetrieveParamCustomResponse* internal_default_instance() { + return reinterpret_cast( + &_RetrieveParamCustomResponse_default_instance_); } static constexpr int kIndexInFileMessages = 13; - friend void swap(RetrieveAllParamsResponse& a, RetrieveAllParamsResponse& b) { + friend void swap(RetrieveParamCustomResponse& a, RetrieveParamCustomResponse& b) { a.Swap(&b); } - inline void Swap(RetrieveAllParamsResponse* other) { + inline void Swap(RetrieveParamCustomResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2225,7 +2271,7 @@ class RetrieveAllParamsResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RetrieveAllParamsResponse* other) { + void UnsafeArenaSwap(RetrieveParamCustomResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2233,13 +2279,13 @@ class RetrieveAllParamsResponse final : // implements Message ---------------------------------------------- - RetrieveAllParamsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RetrieveParamCustomResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RetrieveAllParamsResponse& from); + void CopyFrom(const RetrieveParamCustomResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const RetrieveAllParamsResponse& from); + void MergeFrom(const RetrieveParamCustomResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -2256,15 +2302,15 @@ class RetrieveAllParamsResponse final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(RetrieveAllParamsResponse* other); + void InternalSwap(RetrieveParamCustomResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.RetrieveAllParamsResponse"; + return "mavsdk.rpc.param_server.RetrieveParamCustomResponse"; } protected: - explicit RetrieveAllParamsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit RetrieveParamCustomResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2278,57 +2324,73 @@ class RetrieveAllParamsResponse final : // accessors ------------------------------------------------------- enum : int { - kParamsFieldNumber = 1, + kValueFieldNumber = 2, + kParamServerResultFieldNumber = 1, }; - // .mavsdk.rpc.param_server.AllParams params = 1; - bool has_params() const; + // string value = 2; + void clear_value(); + const std::string& value() const; + template + void set_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_value(); + PROTOBUF_NODISCARD std::string* release_value(); + void set_allocated_value(std::string* value); private: - bool _internal_has_params() const; + const std::string& _internal_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value); + std::string* _internal_mutable_value(); public: - void clear_params(); - const ::mavsdk::rpc::param_server::AllParams& params() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::param_server::AllParams* release_params(); - ::mavsdk::rpc::param_server::AllParams* mutable_params(); - void set_allocated_params(::mavsdk::rpc::param_server::AllParams* params); + + // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; + bool has_param_server_result() const; private: - const ::mavsdk::rpc::param_server::AllParams& _internal_params() const; - ::mavsdk::rpc::param_server::AllParams* _internal_mutable_params(); + bool _internal_has_param_server_result() const; public: - void unsafe_arena_set_allocated_params( - ::mavsdk::rpc::param_server::AllParams* params); - ::mavsdk::rpc::param_server::AllParams* unsafe_arena_release_params(); + void clear_param_server_result(); + const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::param_server::ParamServerResult* release_param_server_result(); + ::mavsdk::rpc::param_server::ParamServerResult* mutable_param_server_result(); + void set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result); + private: + const ::mavsdk::rpc::param_server::ParamServerResult& _internal_param_server_result() const; + ::mavsdk::rpc::param_server::ParamServerResult* _internal_mutable_param_server_result(); + public: + void unsafe_arena_set_allocated_param_server_result( + ::mavsdk::rpc::param_server::ParamServerResult* param_server_result); + ::mavsdk::rpc::param_server::ParamServerResult* unsafe_arena_release_param_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveAllParamsResponse) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveParamCustomResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::param_server::AllParams* params_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; + ::mavsdk::rpc::param_server::ParamServerResult* param_server_result_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class IntParam final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.IntParam) */ { +class ProvideParamCustomRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ProvideParamCustomRequest) */ { public: - inline IntParam() : IntParam(nullptr) {} - ~IntParam() override; - explicit PROTOBUF_CONSTEXPR IntParam(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ProvideParamCustomRequest() : ProvideParamCustomRequest(nullptr) {} + ~ProvideParamCustomRequest() override; + explicit PROTOBUF_CONSTEXPR ProvideParamCustomRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - IntParam(const IntParam& from); - IntParam(IntParam&& from) noexcept - : IntParam() { + ProvideParamCustomRequest(const ProvideParamCustomRequest& from); + ProvideParamCustomRequest(ProvideParamCustomRequest&& from) noexcept + : ProvideParamCustomRequest() { *this = ::std::move(from); } - inline IntParam& operator=(const IntParam& from) { + inline ProvideParamCustomRequest& operator=(const ProvideParamCustomRequest& from) { CopyFrom(from); return *this; } - inline IntParam& operator=(IntParam&& from) noexcept { + inline ProvideParamCustomRequest& operator=(ProvideParamCustomRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2351,20 +2413,20 @@ class IntParam final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IntParam& default_instance() { + static const ProvideParamCustomRequest& default_instance() { return *internal_default_instance(); } - static inline const IntParam* internal_default_instance() { - return reinterpret_cast( - &_IntParam_default_instance_); + static inline const ProvideParamCustomRequest* internal_default_instance() { + return reinterpret_cast( + &_ProvideParamCustomRequest_default_instance_); } static constexpr int kIndexInFileMessages = 14; - friend void swap(IntParam& a, IntParam& b) { + friend void swap(ProvideParamCustomRequest& a, ProvideParamCustomRequest& b) { a.Swap(&b); } - inline void Swap(IntParam* other) { + inline void Swap(ProvideParamCustomRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2377,7 +2439,7 @@ class IntParam final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IntParam* other) { + void UnsafeArenaSwap(ProvideParamCustomRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2385,13 +2447,13 @@ class IntParam final : // implements Message ---------------------------------------------- - IntParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ProvideParamCustomRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const IntParam& from); + void CopyFrom(const ProvideParamCustomRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const IntParam& from); + void MergeFrom(const ProvideParamCustomRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -2408,15 +2470,15 @@ class IntParam final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(IntParam* other); + void InternalSwap(ProvideParamCustomRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.IntParam"; + return "mavsdk.rpc.param_server.ProvideParamCustomRequest"; } protected: - explicit IntParam(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ProvideParamCustomRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2447,16 +2509,21 @@ class IntParam final : std::string* _internal_mutable_name(); public: - // int32 value = 2; + // string value = 2; void clear_value(); - int32_t value() const; - void set_value(int32_t value); + const std::string& value() const; + template + void set_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_value(); + PROTOBUF_NODISCARD std::string* release_value(); + void set_allocated_value(std::string* value); private: - int32_t _internal_value() const; - void _internal_set_value(int32_t value); + const std::string& _internal_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value); + std::string* _internal_mutable_value(); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.IntParam) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ProvideParamCustomRequest) private: class _Internal; @@ -2464,30 +2531,30 @@ class IntParam final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - int32_t value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class FloatParam final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.FloatParam) */ { +class ProvideParamCustomResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ProvideParamCustomResponse) */ { public: - inline FloatParam() : FloatParam(nullptr) {} - ~FloatParam() override; - explicit PROTOBUF_CONSTEXPR FloatParam(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ProvideParamCustomResponse() : ProvideParamCustomResponse(nullptr) {} + ~ProvideParamCustomResponse() override; + explicit PROTOBUF_CONSTEXPR ProvideParamCustomResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - FloatParam(const FloatParam& from); - FloatParam(FloatParam&& from) noexcept - : FloatParam() { + ProvideParamCustomResponse(const ProvideParamCustomResponse& from); + ProvideParamCustomResponse(ProvideParamCustomResponse&& from) noexcept + : ProvideParamCustomResponse() { *this = ::std::move(from); } - inline FloatParam& operator=(const FloatParam& from) { + inline ProvideParamCustomResponse& operator=(const ProvideParamCustomResponse& from) { CopyFrom(from); return *this; } - inline FloatParam& operator=(FloatParam&& from) noexcept { + inline ProvideParamCustomResponse& operator=(ProvideParamCustomResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2510,20 +2577,20 @@ class FloatParam final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const FloatParam& default_instance() { + static const ProvideParamCustomResponse& default_instance() { return *internal_default_instance(); } - static inline const FloatParam* internal_default_instance() { - return reinterpret_cast( - &_FloatParam_default_instance_); + static inline const ProvideParamCustomResponse* internal_default_instance() { + return reinterpret_cast( + &_ProvideParamCustomResponse_default_instance_); } static constexpr int kIndexInFileMessages = 15; - friend void swap(FloatParam& a, FloatParam& b) { + friend void swap(ProvideParamCustomResponse& a, ProvideParamCustomResponse& b) { a.Swap(&b); } - inline void Swap(FloatParam* other) { + inline void Swap(ProvideParamCustomResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2536,7 +2603,7 @@ class FloatParam final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(FloatParam* other) { + void UnsafeArenaSwap(ProvideParamCustomResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2544,13 +2611,13 @@ class FloatParam final : // implements Message ---------------------------------------------- - FloatParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ProvideParamCustomResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const FloatParam& from); + void CopyFrom(const ProvideParamCustomResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const FloatParam& from); + void MergeFrom(const ProvideParamCustomResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -2567,15 +2634,15 @@ class FloatParam final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(FloatParam* other); + void InternalSwap(ProvideParamCustomResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.FloatParam"; + return "mavsdk.rpc.param_server.ProvideParamCustomResponse"; } protected: - explicit FloatParam(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ProvideParamCustomResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2589,64 +2656,57 @@ class FloatParam final : // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 1, - kValueFieldNumber = 2, + kParamServerResultFieldNumber = 1, }; - // string name = 1; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; + bool has_param_server_result() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); + bool _internal_has_param_server_result() const; public: - - // float value = 2; - void clear_value(); - float value() const; - void set_value(float value); + void clear_param_server_result(); + const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::param_server::ParamServerResult* release_param_server_result(); + ::mavsdk::rpc::param_server::ParamServerResult* mutable_param_server_result(); + void set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result); private: - float _internal_value() const; - void _internal_set_value(float value); + const ::mavsdk::rpc::param_server::ParamServerResult& _internal_param_server_result() const; + ::mavsdk::rpc::param_server::ParamServerResult* _internal_mutable_param_server_result(); public: + void unsafe_arena_set_allocated_param_server_result( + ::mavsdk::rpc::param_server::ParamServerResult* param_server_result); + ::mavsdk::rpc::param_server::ParamServerResult* unsafe_arena_release_param_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.FloatParam) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ProvideParamCustomResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - float value_; + ::mavsdk::rpc::param_server::ParamServerResult* param_server_result_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class CustomParam final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.CustomParam) */ { +class ChangeParamCustomRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ChangeParamCustomRequest) */ { public: - inline CustomParam() : CustomParam(nullptr) {} - ~CustomParam() override; - explicit PROTOBUF_CONSTEXPR CustomParam(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ChangeParamCustomRequest() : ChangeParamCustomRequest(nullptr) {} + ~ChangeParamCustomRequest() override; + explicit PROTOBUF_CONSTEXPR ChangeParamCustomRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - CustomParam(const CustomParam& from); - CustomParam(CustomParam&& from) noexcept - : CustomParam() { + ChangeParamCustomRequest(const ChangeParamCustomRequest& from); + ChangeParamCustomRequest(ChangeParamCustomRequest&& from) noexcept + : ChangeParamCustomRequest() { *this = ::std::move(from); } - inline CustomParam& operator=(const CustomParam& from) { + inline ChangeParamCustomRequest& operator=(const ChangeParamCustomRequest& from) { CopyFrom(from); return *this; } - inline CustomParam& operator=(CustomParam&& from) noexcept { + inline ChangeParamCustomRequest& operator=(ChangeParamCustomRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2669,20 +2729,20 @@ class CustomParam final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CustomParam& default_instance() { + static const ChangeParamCustomRequest& default_instance() { return *internal_default_instance(); } - static inline const CustomParam* internal_default_instance() { - return reinterpret_cast( - &_CustomParam_default_instance_); + static inline const ChangeParamCustomRequest* internal_default_instance() { + return reinterpret_cast( + &_ChangeParamCustomRequest_default_instance_); } static constexpr int kIndexInFileMessages = 16; - friend void swap(CustomParam& a, CustomParam& b) { + friend void swap(ChangeParamCustomRequest& a, ChangeParamCustomRequest& b) { a.Swap(&b); } - inline void Swap(CustomParam* other) { + inline void Swap(ChangeParamCustomRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2695,7 +2755,7 @@ class CustomParam final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CustomParam* other) { + void UnsafeArenaSwap(ChangeParamCustomRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2703,13 +2763,13 @@ class CustomParam final : // implements Message ---------------------------------------------- - CustomParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ChangeParamCustomRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CustomParam& from); + void CopyFrom(const ChangeParamCustomRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CustomParam& from); + void MergeFrom(const ChangeParamCustomRequest& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -2726,15 +2786,15 @@ class CustomParam final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(CustomParam* other); + void InternalSwap(ChangeParamCustomRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.CustomParam"; + return "mavsdk.rpc.param_server.ChangeParamCustomRequest"; } protected: - explicit CustomParam(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ChangeParamCustomRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2779,7 +2839,7 @@ class CustomParam final : std::string* _internal_mutable_value(); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.CustomParam) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ChangeParamCustomRequest) private: class _Internal; @@ -2793,24 +2853,24 @@ class CustomParam final : }; // ------------------------------------------------------------------- -class AllParams final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.AllParams) */ { +class ChangeParamCustomResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ChangeParamCustomResponse) */ { public: - inline AllParams() : AllParams(nullptr) {} - ~AllParams() override; - explicit PROTOBUF_CONSTEXPR AllParams(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ChangeParamCustomResponse() : ChangeParamCustomResponse(nullptr) {} + ~ChangeParamCustomResponse() override; + explicit PROTOBUF_CONSTEXPR ChangeParamCustomResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - AllParams(const AllParams& from); - AllParams(AllParams&& from) noexcept - : AllParams() { + ChangeParamCustomResponse(const ChangeParamCustomResponse& from); + ChangeParamCustomResponse(ChangeParamCustomResponse&& from) noexcept + : ChangeParamCustomResponse() { *this = ::std::move(from); } - inline AllParams& operator=(const AllParams& from) { + inline ChangeParamCustomResponse& operator=(const ChangeParamCustomResponse& from) { CopyFrom(from); return *this; } - inline AllParams& operator=(AllParams&& from) noexcept { + inline ChangeParamCustomResponse& operator=(ChangeParamCustomResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2833,20 +2893,20 @@ class AllParams final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AllParams& default_instance() { + static const ChangeParamCustomResponse& default_instance() { return *internal_default_instance(); } - static inline const AllParams* internal_default_instance() { - return reinterpret_cast( - &_AllParams_default_instance_); + static inline const ChangeParamCustomResponse* internal_default_instance() { + return reinterpret_cast( + &_ChangeParamCustomResponse_default_instance_); } static constexpr int kIndexInFileMessages = 17; - friend void swap(AllParams& a, AllParams& b) { + friend void swap(ChangeParamCustomResponse& a, ChangeParamCustomResponse& b) { a.Swap(&b); } - inline void Swap(AllParams* other) { + inline void Swap(ChangeParamCustomResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2859,7 +2919,7 @@ class AllParams final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AllParams* other) { + void UnsafeArenaSwap(ChangeParamCustomResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2867,13 +2927,13 @@ class AllParams final : // implements Message ---------------------------------------------- - AllParams* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ChangeParamCustomResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AllParams& from); + void CopyFrom(const ChangeParamCustomResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const AllParams& from); + void MergeFrom(const ChangeParamCustomResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -2890,15 +2950,15 @@ class AllParams final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(AllParams* other); + void InternalSwap(ChangeParamCustomResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.AllParams"; + return "mavsdk.rpc.param_server.ChangeParamCustomResponse"; } protected: - explicit AllParams(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ChangeParamCustomResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2912,97 +2972,173 @@ class AllParams final : // accessors ------------------------------------------------------- enum : int { - kIntParamsFieldNumber = 1, - kFloatParamsFieldNumber = 2, - kCustomParamsFieldNumber = 3, + kParamServerResultFieldNumber = 1, }; - // repeated .mavsdk.rpc.param_server.IntParam int_params = 1; - int int_params_size() const; + // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; + bool has_param_server_result() const; private: - int _internal_int_params_size() const; + bool _internal_has_param_server_result() const; public: - void clear_int_params(); - ::mavsdk::rpc::param_server::IntParam* mutable_int_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::IntParam >* - mutable_int_params(); + void clear_param_server_result(); + const ::mavsdk::rpc::param_server::ParamServerResult& param_server_result() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::param_server::ParamServerResult* release_param_server_result(); + ::mavsdk::rpc::param_server::ParamServerResult* mutable_param_server_result(); + void set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result); private: - const ::mavsdk::rpc::param_server::IntParam& _internal_int_params(int index) const; - ::mavsdk::rpc::param_server::IntParam* _internal_add_int_params(); + const ::mavsdk::rpc::param_server::ParamServerResult& _internal_param_server_result() const; + ::mavsdk::rpc::param_server::ParamServerResult* _internal_mutable_param_server_result(); public: - const ::mavsdk::rpc::param_server::IntParam& int_params(int index) const; - ::mavsdk::rpc::param_server::IntParam* add_int_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::IntParam >& - int_params() const; + void unsafe_arena_set_allocated_param_server_result( + ::mavsdk::rpc::param_server::ParamServerResult* param_server_result); + ::mavsdk::rpc::param_server::ParamServerResult* unsafe_arena_release_param_server_result(); - // repeated .mavsdk.rpc.param_server.FloatParam float_params = 2; - int float_params_size() const; - private: - int _internal_float_params_size() const; - public: - void clear_float_params(); - ::mavsdk::rpc::param_server::FloatParam* mutable_float_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::FloatParam >* - mutable_float_params(); - private: - const ::mavsdk::rpc::param_server::FloatParam& _internal_float_params(int index) const; - ::mavsdk::rpc::param_server::FloatParam* _internal_add_float_params(); - public: - const ::mavsdk::rpc::param_server::FloatParam& float_params(int index) const; - ::mavsdk::rpc::param_server::FloatParam* add_float_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::FloatParam >& - float_params() const; + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ChangeParamCustomResponse) + private: + class _Internal; - // repeated .mavsdk.rpc.param_server.CustomParam custom_params = 3; - int custom_params_size() const; - private: - int _internal_custom_params_size() const; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::mavsdk::rpc::param_server::ParamServerResult* param_server_result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class RetrieveAllParamsRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveAllParamsRequest) */ { + public: + inline RetrieveAllParamsRequest() : RetrieveAllParamsRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR RetrieveAllParamsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RetrieveAllParamsRequest(const RetrieveAllParamsRequest& from); + RetrieveAllParamsRequest(RetrieveAllParamsRequest&& from) noexcept + : RetrieveAllParamsRequest() { + *this = ::std::move(from); + } + + inline RetrieveAllParamsRequest& operator=(const RetrieveAllParamsRequest& from) { + CopyFrom(from); + return *this; + } + inline RetrieveAllParamsRequest& operator=(RetrieveAllParamsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const RetrieveAllParamsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const RetrieveAllParamsRequest* internal_default_instance() { + return reinterpret_cast( + &_RetrieveAllParamsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(RetrieveAllParamsRequest& a, RetrieveAllParamsRequest& b) { + a.Swap(&b); + } + inline void Swap(RetrieveAllParamsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RetrieveAllParamsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + RetrieveAllParamsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const RetrieveAllParamsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const RetrieveAllParamsRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } public: - void clear_custom_params(); - ::mavsdk::rpc::param_server::CustomParam* mutable_custom_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::CustomParam >* - mutable_custom_params(); + private: - const ::mavsdk::rpc::param_server::CustomParam& _internal_custom_params(int index) const; - ::mavsdk::rpc::param_server::CustomParam* _internal_add_custom_params(); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "mavsdk.rpc.param_server.RetrieveAllParamsRequest"; + } + protected: + explicit RetrieveAllParamsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - const ::mavsdk::rpc::param_server::CustomParam& custom_params(int index) const; - ::mavsdk::rpc::param_server::CustomParam* add_custom_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::CustomParam >& - custom_params() const; - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.AllParams) + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveAllParamsRequest) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::IntParam > int_params_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::FloatParam > float_params_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::CustomParam > custom_params_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; // ------------------------------------------------------------------- -class ParamServerResult final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ParamServerResult) */ { +class RetrieveAllParamsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.RetrieveAllParamsResponse) */ { public: - inline ParamServerResult() : ParamServerResult(nullptr) {} - ~ParamServerResult() override; - explicit PROTOBUF_CONSTEXPR ParamServerResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RetrieveAllParamsResponse() : RetrieveAllParamsResponse(nullptr) {} + ~RetrieveAllParamsResponse() override; + explicit PROTOBUF_CONSTEXPR RetrieveAllParamsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ParamServerResult(const ParamServerResult& from); - ParamServerResult(ParamServerResult&& from) noexcept - : ParamServerResult() { + RetrieveAllParamsResponse(const RetrieveAllParamsResponse& from); + RetrieveAllParamsResponse(RetrieveAllParamsResponse&& from) noexcept + : RetrieveAllParamsResponse() { *this = ::std::move(from); } - inline ParamServerResult& operator=(const ParamServerResult& from) { + inline RetrieveAllParamsResponse& operator=(const RetrieveAllParamsResponse& from) { CopyFrom(from); return *this; } - inline ParamServerResult& operator=(ParamServerResult&& from) noexcept { + inline RetrieveAllParamsResponse& operator=(RetrieveAllParamsResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3025,20 +3161,20 @@ class ParamServerResult final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ParamServerResult& default_instance() { + static const RetrieveAllParamsResponse& default_instance() { return *internal_default_instance(); } - static inline const ParamServerResult* internal_default_instance() { - return reinterpret_cast( - &_ParamServerResult_default_instance_); + static inline const RetrieveAllParamsResponse* internal_default_instance() { + return reinterpret_cast( + &_RetrieveAllParamsResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; - friend void swap(ParamServerResult& a, ParamServerResult& b) { + friend void swap(RetrieveAllParamsResponse& a, RetrieveAllParamsResponse& b) { a.Swap(&b); } - inline void Swap(ParamServerResult* other) { + inline void Swap(RetrieveAllParamsResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3051,7 +3187,7 @@ class ParamServerResult final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ParamServerResult* other) { + void UnsafeArenaSwap(RetrieveAllParamsResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3059,13 +3195,13 @@ class ParamServerResult final : // implements Message ---------------------------------------------- - ParamServerResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RetrieveAllParamsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ParamServerResult& from); + void CopyFrom(const RetrieveAllParamsResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ParamServerResult& from); + void MergeFrom(const RetrieveAllParamsResponse& from); private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); public: @@ -3082,15 +3218,15 @@ class ParamServerResult final : void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ParamServerResult* other); + void InternalSwap(RetrieveAllParamsResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "mavsdk.rpc.param_server.ParamServerResult"; + return "mavsdk.rpc.param_server.RetrieveAllParamsResponse"; } protected: - explicit ParamServerResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit RetrieveAllParamsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3101,134 +3237,1296 @@ class ParamServerResult final : // nested types ---------------------------------------------------- - typedef ParamServerResult_Result Result; - static constexpr Result RESULT_UNKNOWN = - ParamServerResult_Result_RESULT_UNKNOWN; - static constexpr Result RESULT_SUCCESS = - ParamServerResult_Result_RESULT_SUCCESS; - static constexpr Result RESULT_NOT_FOUND = - ParamServerResult_Result_RESULT_NOT_FOUND; - static constexpr Result RESULT_WRONG_TYPE = - ParamServerResult_Result_RESULT_WRONG_TYPE; - static constexpr Result RESULT_PARAM_NAME_TOO_LONG = - ParamServerResult_Result_RESULT_PARAM_NAME_TOO_LONG; - static constexpr Result RESULT_NO_SYSTEM = - ParamServerResult_Result_RESULT_NO_SYSTEM; - static constexpr Result RESULT_PARAM_VALUE_TOO_LONG = - ParamServerResult_Result_RESULT_PARAM_VALUE_TOO_LONG; - static inline bool Result_IsValid(int value) { - return ParamServerResult_Result_IsValid(value); - } - static constexpr Result Result_MIN = - ParamServerResult_Result_Result_MIN; - static constexpr Result Result_MAX = - ParamServerResult_Result_Result_MAX; - static constexpr int Result_ARRAYSIZE = - ParamServerResult_Result_Result_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Result_descriptor() { - return ParamServerResult_Result_descriptor(); + // accessors ------------------------------------------------------- + + enum : int { + kParamsFieldNumber = 1, + }; + // .mavsdk.rpc.param_server.AllParams params = 1; + bool has_params() const; + private: + bool _internal_has_params() const; + public: + void clear_params(); + const ::mavsdk::rpc::param_server::AllParams& params() const; + PROTOBUF_NODISCARD ::mavsdk::rpc::param_server::AllParams* release_params(); + ::mavsdk::rpc::param_server::AllParams* mutable_params(); + void set_allocated_params(::mavsdk::rpc::param_server::AllParams* params); + private: + const ::mavsdk::rpc::param_server::AllParams& _internal_params() const; + ::mavsdk::rpc::param_server::AllParams* _internal_mutable_params(); + public: + void unsafe_arena_set_allocated_params( + ::mavsdk::rpc::param_server::AllParams* params); + ::mavsdk::rpc::param_server::AllParams* unsafe_arena_release_params(); + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.RetrieveAllParamsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::mavsdk::rpc::param_server::AllParams* params_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class IntParam final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.IntParam) */ { + public: + inline IntParam() : IntParam(nullptr) {} + ~IntParam() override; + explicit PROTOBUF_CONSTEXPR IntParam(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + IntParam(const IntParam& from); + IntParam(IntParam&& from) noexcept + : IntParam() { + *this = ::std::move(from); } - template - static inline const std::string& Result_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Result_Name."); - return ParamServerResult_Result_Name(enum_t_value); + + inline IntParam& operator=(const IntParam& from) { + CopyFrom(from); + return *this; } - static inline bool Result_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Result* value) { - return ParamServerResult_Result_Parse(name, value); + inline IntParam& operator=(IntParam&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const IntParam& default_instance() { + return *internal_default_instance(); + } + static inline const IntParam* internal_default_instance() { + return reinterpret_cast( + &_IntParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(IntParam& a, IntParam& b) { + a.Swap(&b); + } + inline void Swap(IntParam* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(IntParam* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IntParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IntParam& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IntParam& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IntParam* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "mavsdk.rpc.param_server.IntParam"; } + protected: + explicit IntParam(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kResultStrFieldNumber = 2, - kResultFieldNumber = 1, + kNameFieldNumber = 1, + kValueFieldNumber = 2, }; - // string result_str = 2; - void clear_result_str(); - const std::string& result_str() const; + // string name = 1; + void clear_name(); + const std::string& name() const; template - void set_result_str(ArgT0&& arg0, ArgT... args); - std::string* mutable_result_str(); - PROTOBUF_NODISCARD std::string* release_result_str(); - void set_allocated_result_str(std::string* result_str); + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); private: - const std::string& _internal_result_str() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str(const std::string& value); - std::string* _internal_mutable_result_str(); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); public: - // .mavsdk.rpc.param_server.ParamServerResult.Result result = 1; - void clear_result(); - ::mavsdk::rpc::param_server::ParamServerResult_Result result() const; - void set_result(::mavsdk::rpc::param_server::ParamServerResult_Result value); + // int32 value = 2; + void clear_value(); + int32_t value() const; + void set_value(int32_t value); private: - ::mavsdk::rpc::param_server::ParamServerResult_Result _internal_result() const; - void _internal_set_result(::mavsdk::rpc::param_server::ParamServerResult_Result value); + int32_t _internal_value() const; + void _internal_set_value(int32_t value); public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ParamServerResult) + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.IntParam) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr result_str_; - int result_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + int32_t value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; }; -// =================================================================== +// ------------------------------------------------------------------- + +class FloatParam final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.FloatParam) */ { + public: + inline FloatParam() : FloatParam(nullptr) {} + ~FloatParam() override; + explicit PROTOBUF_CONSTEXPR FloatParam(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FloatParam(const FloatParam& from); + FloatParam(FloatParam&& from) noexcept + : FloatParam() { + *this = ::std::move(from); + } + + inline FloatParam& operator=(const FloatParam& from) { + CopyFrom(from); + return *this; + } + inline FloatParam& operator=(FloatParam&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const FloatParam& default_instance() { + return *internal_default_instance(); + } + static inline const FloatParam* internal_default_instance() { + return reinterpret_cast( + &_FloatParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(FloatParam& a, FloatParam& b) { + a.Swap(&b); + } + inline void Swap(FloatParam* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(FloatParam* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FloatParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FloatParam& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const FloatParam& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FloatParam* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "mavsdk.rpc.param_server.FloatParam"; + } + protected: + explicit FloatParam(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kValueFieldNumber = 2, + }; + // string name = 1; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // float value = 2; + void clear_value(); + float value() const; + void set_value(float value); + private: + float _internal_value() const; + void _internal_set_value(float value); + public: + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.FloatParam) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + float value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class CustomParam final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.CustomParam) */ { + public: + inline CustomParam() : CustomParam(nullptr) {} + ~CustomParam() override; + explicit PROTOBUF_CONSTEXPR CustomParam(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CustomParam(const CustomParam& from); + CustomParam(CustomParam&& from) noexcept + : CustomParam() { + *this = ::std::move(from); + } + + inline CustomParam& operator=(const CustomParam& from) { + CopyFrom(from); + return *this; + } + inline CustomParam& operator=(CustomParam&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CustomParam& default_instance() { + return *internal_default_instance(); + } + static inline const CustomParam* internal_default_instance() { + return reinterpret_cast( + &_CustomParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(CustomParam& a, CustomParam& b) { + a.Swap(&b); + } + inline void Swap(CustomParam* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CustomParam* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CustomParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CustomParam& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CustomParam& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CustomParam* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "mavsdk.rpc.param_server.CustomParam"; + } + protected: + explicit CustomParam(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kValueFieldNumber = 2, + }; + // string name = 1; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // string value = 2; + void clear_value(); + const std::string& value() const; + template + void set_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_value(); + PROTOBUF_NODISCARD std::string* release_value(); + void set_allocated_value(std::string* value); + private: + const std::string& _internal_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value); + std::string* _internal_mutable_value(); + public: + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.CustomParam) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class AllParams final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.AllParams) */ { + public: + inline AllParams() : AllParams(nullptr) {} + ~AllParams() override; + explicit PROTOBUF_CONSTEXPR AllParams(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AllParams(const AllParams& from); + AllParams(AllParams&& from) noexcept + : AllParams() { + *this = ::std::move(from); + } + + inline AllParams& operator=(const AllParams& from) { + CopyFrom(from); + return *this; + } + inline AllParams& operator=(AllParams&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const AllParams& default_instance() { + return *internal_default_instance(); + } + static inline const AllParams* internal_default_instance() { + return reinterpret_cast( + &_AllParams_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + friend void swap(AllParams& a, AllParams& b) { + a.Swap(&b); + } + inline void Swap(AllParams* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AllParams* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AllParams* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AllParams& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AllParams& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AllParams* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "mavsdk.rpc.param_server.AllParams"; + } + protected: + explicit AllParams(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIntParamsFieldNumber = 1, + kFloatParamsFieldNumber = 2, + kCustomParamsFieldNumber = 3, + }; + // repeated .mavsdk.rpc.param_server.IntParam int_params = 1; + int int_params_size() const; + private: + int _internal_int_params_size() const; + public: + void clear_int_params(); + ::mavsdk::rpc::param_server::IntParam* mutable_int_params(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::IntParam >* + mutable_int_params(); + private: + const ::mavsdk::rpc::param_server::IntParam& _internal_int_params(int index) const; + ::mavsdk::rpc::param_server::IntParam* _internal_add_int_params(); + public: + const ::mavsdk::rpc::param_server::IntParam& int_params(int index) const; + ::mavsdk::rpc::param_server::IntParam* add_int_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::IntParam >& + int_params() const; + + // repeated .mavsdk.rpc.param_server.FloatParam float_params = 2; + int float_params_size() const; + private: + int _internal_float_params_size() const; + public: + void clear_float_params(); + ::mavsdk::rpc::param_server::FloatParam* mutable_float_params(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::FloatParam >* + mutable_float_params(); + private: + const ::mavsdk::rpc::param_server::FloatParam& _internal_float_params(int index) const; + ::mavsdk::rpc::param_server::FloatParam* _internal_add_float_params(); + public: + const ::mavsdk::rpc::param_server::FloatParam& float_params(int index) const; + ::mavsdk::rpc::param_server::FloatParam* add_float_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::FloatParam >& + float_params() const; + + // repeated .mavsdk.rpc.param_server.CustomParam custom_params = 3; + int custom_params_size() const; + private: + int _internal_custom_params_size() const; + public: + void clear_custom_params(); + ::mavsdk::rpc::param_server::CustomParam* mutable_custom_params(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::CustomParam >* + mutable_custom_params(); + private: + const ::mavsdk::rpc::param_server::CustomParam& _internal_custom_params(int index) const; + ::mavsdk::rpc::param_server::CustomParam* _internal_add_custom_params(); + public: + const ::mavsdk::rpc::param_server::CustomParam& custom_params(int index) const; + ::mavsdk::rpc::param_server::CustomParam* add_custom_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::CustomParam >& + custom_params() const; + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.AllParams) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::IntParam > int_params_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::FloatParam > float_params_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mavsdk::rpc::param_server::CustomParam > custom_params_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; +}; +// ------------------------------------------------------------------- + +class ParamServerResult final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.param_server.ParamServerResult) */ { + public: + inline ParamServerResult() : ParamServerResult(nullptr) {} + ~ParamServerResult() override; + explicit PROTOBUF_CONSTEXPR ParamServerResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ParamServerResult(const ParamServerResult& from); + ParamServerResult(ParamServerResult&& from) noexcept + : ParamServerResult() { + *this = ::std::move(from); + } + + inline ParamServerResult& operator=(const ParamServerResult& from) { + CopyFrom(from); + return *this; + } + inline ParamServerResult& operator=(ParamServerResult&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ParamServerResult& default_instance() { + return *internal_default_instance(); + } + static inline const ParamServerResult* internal_default_instance() { + return reinterpret_cast( + &_ParamServerResult_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + friend void swap(ParamServerResult& a, ParamServerResult& b) { + a.Swap(&b); + } + inline void Swap(ParamServerResult* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ParamServerResult* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ParamServerResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ParamServerResult& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ParamServerResult& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParamServerResult* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "mavsdk.rpc.param_server.ParamServerResult"; + } + protected: + explicit ParamServerResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ParamServerResult_Result Result; + static constexpr Result RESULT_UNKNOWN = + ParamServerResult_Result_RESULT_UNKNOWN; + static constexpr Result RESULT_SUCCESS = + ParamServerResult_Result_RESULT_SUCCESS; + static constexpr Result RESULT_NOT_FOUND = + ParamServerResult_Result_RESULT_NOT_FOUND; + static constexpr Result RESULT_WRONG_TYPE = + ParamServerResult_Result_RESULT_WRONG_TYPE; + static constexpr Result RESULT_PARAM_NAME_TOO_LONG = + ParamServerResult_Result_RESULT_PARAM_NAME_TOO_LONG; + static constexpr Result RESULT_NO_SYSTEM = + ParamServerResult_Result_RESULT_NO_SYSTEM; + static constexpr Result RESULT_PARAM_VALUE_TOO_LONG = + ParamServerResult_Result_RESULT_PARAM_VALUE_TOO_LONG; + static inline bool Result_IsValid(int value) { + return ParamServerResult_Result_IsValid(value); + } + static constexpr Result Result_MIN = + ParamServerResult_Result_Result_MIN; + static constexpr Result Result_MAX = + ParamServerResult_Result_Result_MAX; + static constexpr int Result_ARRAYSIZE = + ParamServerResult_Result_Result_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + Result_descriptor() { + return ParamServerResult_Result_descriptor(); + } + template + static inline const std::string& Result_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Result_Name."); + return ParamServerResult_Result_Name(enum_t_value); + } + static inline bool Result_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + Result* value) { + return ParamServerResult_Result_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kResultStrFieldNumber = 2, + kResultFieldNumber = 1, + }; + // string result_str = 2; + void clear_result_str(); + const std::string& result_str() const; + template + void set_result_str(ArgT0&& arg0, ArgT... args); + std::string* mutable_result_str(); + PROTOBUF_NODISCARD std::string* release_result_str(); + void set_allocated_result_str(std::string* result_str); + private: + const std::string& _internal_result_str() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str(const std::string& value); + std::string* _internal_mutable_result_str(); + public: + + // .mavsdk.rpc.param_server.ParamServerResult.Result result = 1; + void clear_result(); + ::mavsdk::rpc::param_server::ParamServerResult_Result result() const; + void set_result(::mavsdk::rpc::param_server::ParamServerResult_Result value); + private: + ::mavsdk::rpc::param_server::ParamServerResult_Result _internal_result() const; + void _internal_set_result(::mavsdk::rpc::param_server::ParamServerResult_Result value); + public: + + // @@protoc_insertion_point(class_scope:mavsdk.rpc.param_server.ParamServerResult) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr result_str_; + int result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_param_5fserver_2fparam_5fserver_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// RetrieveParamIntRequest + +// string name = 1; +inline void RetrieveParamIntRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& RetrieveParamIntRequest::name() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamIntRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RetrieveParamIntRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.RetrieveParamIntRequest.name) +} +inline std::string* RetrieveParamIntRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.RetrieveParamIntRequest.name) + return _s; +} +inline const std::string& RetrieveParamIntRequest::_internal_name() const { + return name_.Get(); +} +inline void RetrieveParamIntRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* RetrieveParamIntRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* RetrieveParamIntRequest::release_name() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.RetrieveParamIntRequest.name) + return name_.Release(); +} +inline void RetrieveParamIntRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault()) { + name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.RetrieveParamIntRequest.name) +} + +// ------------------------------------------------------------------- + +// RetrieveParamIntResponse + +// .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; +inline bool RetrieveParamIntResponse::_internal_has_param_server_result() const { + return this != internal_default_instance() && param_server_result_ != nullptr; +} +inline bool RetrieveParamIntResponse::has_param_server_result() const { + return _internal_has_param_server_result(); +} +inline void RetrieveParamIntResponse::clear_param_server_result() { + if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { + delete param_server_result_; + } + param_server_result_ = nullptr; +} +inline const ::mavsdk::rpc::param_server::ParamServerResult& RetrieveParamIntResponse::_internal_param_server_result() const { + const ::mavsdk::rpc::param_server::ParamServerResult* p = param_server_result_; + return p != nullptr ? *p : reinterpret_cast( + ::mavsdk::rpc::param_server::_ParamServerResult_default_instance_); +} +inline const ::mavsdk::rpc::param_server::ParamServerResult& RetrieveParamIntResponse::param_server_result() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamIntResponse.param_server_result) + return _internal_param_server_result(); +} +inline void RetrieveParamIntResponse::unsafe_arena_set_allocated_param_server_result( + ::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(param_server_result_); + } + param_server_result_ = param_server_result; + if (param_server_result) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.param_server.RetrieveParamIntResponse.param_server_result) +} +inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamIntResponse::release_param_server_result() { + + ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; + param_server_result_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamIntResponse::unsafe_arena_release_param_server_result() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.RetrieveParamIntResponse.param_server_result) + + ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; + param_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamIntResponse::_internal_mutable_param_server_result() { + + if (param_server_result_ == nullptr) { + auto* p = CreateMaybeMessage<::mavsdk::rpc::param_server::ParamServerResult>(GetArenaForAllocation()); + param_server_result_ = p; + } + return param_server_result_; +} +inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamIntResponse::mutable_param_server_result() { + ::mavsdk::rpc::param_server::ParamServerResult* _msg = _internal_mutable_param_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.RetrieveParamIntResponse.param_server_result) + return _msg; +} +inline void RetrieveParamIntResponse::set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete param_server_result_; + } + if (param_server_result) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(param_server_result); + if (message_arena != submessage_arena) { + param_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, param_server_result, submessage_arena); + } + + } else { + + } + param_server_result_ = param_server_result; + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.RetrieveParamIntResponse.param_server_result) +} + +// int32 value = 2; +inline void RetrieveParamIntResponse::clear_value() { + value_ = 0; +} +inline int32_t RetrieveParamIntResponse::_internal_value() const { + return value_; +} +inline int32_t RetrieveParamIntResponse::value() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamIntResponse.value) + return _internal_value(); +} +inline void RetrieveParamIntResponse::_internal_set_value(int32_t value) { + + value_ = value; +} +inline void RetrieveParamIntResponse::set_value(int32_t value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.RetrieveParamIntResponse.value) +} + +// ------------------------------------------------------------------- + +// ProvideParamIntRequest + +// string name = 1; +inline void ProvideParamIntRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& ProvideParamIntRequest::name() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamIntRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ProvideParamIntRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ProvideParamIntRequest.name) +} +inline std::string* ProvideParamIntRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ProvideParamIntRequest.name) + return _s; +} +inline const std::string& ProvideParamIntRequest::_internal_name() const { + return name_.Get(); +} +inline void ProvideParamIntRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ProvideParamIntRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ProvideParamIntRequest::release_name() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ProvideParamIntRequest.name) + return name_.Release(); +} +inline void ProvideParamIntRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault()) { + name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ProvideParamIntRequest.name) +} + +// int32 value = 2; +inline void ProvideParamIntRequest::clear_value() { + value_ = 0; +} +inline int32_t ProvideParamIntRequest::_internal_value() const { + return value_; +} +inline int32_t ProvideParamIntRequest::value() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamIntRequest.value) + return _internal_value(); +} +inline void ProvideParamIntRequest::_internal_set_value(int32_t value) { + + value_ = value; +} +inline void ProvideParamIntRequest::set_value(int32_t value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ProvideParamIntRequest.value) +} + +// ------------------------------------------------------------------- + +// ProvideParamIntResponse + +// .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; +inline bool ProvideParamIntResponse::_internal_has_param_server_result() const { + return this != internal_default_instance() && param_server_result_ != nullptr; +} +inline bool ProvideParamIntResponse::has_param_server_result() const { + return _internal_has_param_server_result(); +} +inline void ProvideParamIntResponse::clear_param_server_result() { + if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { + delete param_server_result_; + } + param_server_result_ = nullptr; +} +inline const ::mavsdk::rpc::param_server::ParamServerResult& ProvideParamIntResponse::_internal_param_server_result() const { + const ::mavsdk::rpc::param_server::ParamServerResult* p = param_server_result_; + return p != nullptr ? *p : reinterpret_cast( + ::mavsdk::rpc::param_server::_ParamServerResult_default_instance_); +} +inline const ::mavsdk::rpc::param_server::ParamServerResult& ProvideParamIntResponse::param_server_result() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamIntResponse.param_server_result) + return _internal_param_server_result(); +} +inline void ProvideParamIntResponse::unsafe_arena_set_allocated_param_server_result( + ::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(param_server_result_); + } + param_server_result_ = param_server_result; + if (param_server_result) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.param_server.ProvideParamIntResponse.param_server_result) +} +inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamIntResponse::release_param_server_result() { + + ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; + param_server_result_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamIntResponse::unsafe_arena_release_param_server_result() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ProvideParamIntResponse.param_server_result) + + ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; + param_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamIntResponse::_internal_mutable_param_server_result() { + + if (param_server_result_ == nullptr) { + auto* p = CreateMaybeMessage<::mavsdk::rpc::param_server::ParamServerResult>(GetArenaForAllocation()); + param_server_result_ = p; + } + return param_server_result_; +} +inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamIntResponse::mutable_param_server_result() { + ::mavsdk::rpc::param_server::ParamServerResult* _msg = _internal_mutable_param_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ProvideParamIntResponse.param_server_result) + return _msg; +} +inline void ProvideParamIntResponse::set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete param_server_result_; + } + if (param_server_result) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(param_server_result); + if (message_arena != submessage_arena) { + param_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, param_server_result, submessage_arena); + } + + } else { + + } + param_server_result_ = param_server_result; + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ProvideParamIntResponse.param_server_result) +} -// =================================================================== +// ------------------------------------------------------------------- -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// RetrieveParamIntRequest +// ChangeParamIntRequest // string name = 1; -inline void RetrieveParamIntRequest::clear_name() { +inline void ChangeParamIntRequest::clear_name() { name_.ClearToEmpty(); } -inline const std::string& RetrieveParamIntRequest::name() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamIntRequest.name) +inline const std::string& ChangeParamIntRequest::name() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ChangeParamIntRequest.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE -void RetrieveParamIntRequest::set_name(ArgT0&& arg0, ArgT... args) { +void ChangeParamIntRequest::set_name(ArgT0&& arg0, ArgT... args) { name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.RetrieveParamIntRequest.name) + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ChangeParamIntRequest.name) } -inline std::string* RetrieveParamIntRequest::mutable_name() { +inline std::string* ChangeParamIntRequest::mutable_name() { std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.RetrieveParamIntRequest.name) + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ChangeParamIntRequest.name) return _s; } -inline const std::string& RetrieveParamIntRequest::_internal_name() const { +inline const std::string& ChangeParamIntRequest::_internal_name() const { return name_.Get(); } -inline void RetrieveParamIntRequest::_internal_set_name(const std::string& value) { +inline void ChangeParamIntRequest::_internal_set_name(const std::string& value) { name_.Set(value, GetArenaForAllocation()); } -inline std::string* RetrieveParamIntRequest::_internal_mutable_name() { +inline std::string* ChangeParamIntRequest::_internal_mutable_name() { return name_.Mutable(GetArenaForAllocation()); } -inline std::string* RetrieveParamIntRequest::release_name() { - // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.RetrieveParamIntRequest.name) +inline std::string* ChangeParamIntRequest::release_name() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ChangeParamIntRequest.name) return name_.Release(); } -inline void RetrieveParamIntRequest::set_allocated_name(std::string* name) { +inline void ChangeParamIntRequest::set_allocated_name(std::string* name) { if (name != nullptr) { } else { @@ -3240,36 +4538,56 @@ inline void RetrieveParamIntRequest::set_allocated_name(std::string* name) { name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.RetrieveParamIntRequest.name) + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ChangeParamIntRequest.name) +} + +// int32 value = 2; +inline void ChangeParamIntRequest::clear_value() { + value_ = 0; +} +inline int32_t ChangeParamIntRequest::_internal_value() const { + return value_; +} +inline int32_t ChangeParamIntRequest::value() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ChangeParamIntRequest.value) + return _internal_value(); +} +inline void ChangeParamIntRequest::_internal_set_value(int32_t value) { + + value_ = value; +} +inline void ChangeParamIntRequest::set_value(int32_t value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ChangeParamIntRequest.value) } // ------------------------------------------------------------------- -// RetrieveParamIntResponse +// ChangeParamIntResponse // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; -inline bool RetrieveParamIntResponse::_internal_has_param_server_result() const { +inline bool ChangeParamIntResponse::_internal_has_param_server_result() const { return this != internal_default_instance() && param_server_result_ != nullptr; } -inline bool RetrieveParamIntResponse::has_param_server_result() const { +inline bool ChangeParamIntResponse::has_param_server_result() const { return _internal_has_param_server_result(); } -inline void RetrieveParamIntResponse::clear_param_server_result() { +inline void ChangeParamIntResponse::clear_param_server_result() { if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { delete param_server_result_; } param_server_result_ = nullptr; } -inline const ::mavsdk::rpc::param_server::ParamServerResult& RetrieveParamIntResponse::_internal_param_server_result() const { +inline const ::mavsdk::rpc::param_server::ParamServerResult& ChangeParamIntResponse::_internal_param_server_result() const { const ::mavsdk::rpc::param_server::ParamServerResult* p = param_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::param_server::_ParamServerResult_default_instance_); } -inline const ::mavsdk::rpc::param_server::ParamServerResult& RetrieveParamIntResponse::param_server_result() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamIntResponse.param_server_result) +inline const ::mavsdk::rpc::param_server::ParamServerResult& ChangeParamIntResponse::param_server_result() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ChangeParamIntResponse.param_server_result) return _internal_param_server_result(); } -inline void RetrieveParamIntResponse::unsafe_arena_set_allocated_param_server_result( +inline void ChangeParamIntResponse::unsafe_arena_set_allocated_param_server_result( ::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(param_server_result_); @@ -3280,9 +4598,9 @@ inline void RetrieveParamIntResponse::unsafe_arena_set_allocated_param_server_re } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.param_server.RetrieveParamIntResponse.param_server_result) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.param_server.ChangeParamIntResponse.param_server_result) } -inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamIntResponse::release_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamIntResponse::release_param_server_result() { ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; param_server_result_ = nullptr; @@ -3297,14 +4615,14 @@ inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamIntResponse: #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamIntResponse::unsafe_arena_release_param_server_result() { - // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.RetrieveParamIntResponse.param_server_result) +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamIntResponse::unsafe_arena_release_param_server_result() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ChangeParamIntResponse.param_server_result) ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; param_server_result_ = nullptr; return temp; } -inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamIntResponse::_internal_mutable_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamIntResponse::_internal_mutable_param_server_result() { if (param_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::param_server::ParamServerResult>(GetArenaForAllocation()); @@ -3312,12 +4630,12 @@ inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamIntResponse: } return param_server_result_; } -inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamIntResponse::mutable_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamIntResponse::mutable_param_server_result() { ::mavsdk::rpc::param_server::ParamServerResult* _msg = _internal_mutable_param_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.RetrieveParamIntResponse.param_server_result) + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ChangeParamIntResponse.param_server_result) return _msg; } -inline void RetrieveParamIntResponse::set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { +inline void ChangeParamIntResponse::set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete param_server_result_; @@ -3334,69 +4652,49 @@ inline void RetrieveParamIntResponse::set_allocated_param_server_result(::mavsdk } param_server_result_ = param_server_result; - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.RetrieveParamIntResponse.param_server_result) -} - -// int32 value = 2; -inline void RetrieveParamIntResponse::clear_value() { - value_ = 0; -} -inline int32_t RetrieveParamIntResponse::_internal_value() const { - return value_; -} -inline int32_t RetrieveParamIntResponse::value() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamIntResponse.value) - return _internal_value(); -} -inline void RetrieveParamIntResponse::_internal_set_value(int32_t value) { - - value_ = value; -} -inline void RetrieveParamIntResponse::set_value(int32_t value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.RetrieveParamIntResponse.value) + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ChangeParamIntResponse.param_server_result) } // ------------------------------------------------------------------- -// ProvideParamIntRequest +// RetrieveParamFloatRequest // string name = 1; -inline void ProvideParamIntRequest::clear_name() { +inline void RetrieveParamFloatRequest::clear_name() { name_.ClearToEmpty(); } -inline const std::string& ProvideParamIntRequest::name() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamIntRequest.name) +inline const std::string& RetrieveParamFloatRequest::name() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamFloatRequest.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE -void ProvideParamIntRequest::set_name(ArgT0&& arg0, ArgT... args) { +void RetrieveParamFloatRequest::set_name(ArgT0&& arg0, ArgT... args) { name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ProvideParamIntRequest.name) + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.RetrieveParamFloatRequest.name) } -inline std::string* ProvideParamIntRequest::mutable_name() { +inline std::string* RetrieveParamFloatRequest::mutable_name() { std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ProvideParamIntRequest.name) + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.RetrieveParamFloatRequest.name) return _s; } -inline const std::string& ProvideParamIntRequest::_internal_name() const { +inline const std::string& RetrieveParamFloatRequest::_internal_name() const { return name_.Get(); } -inline void ProvideParamIntRequest::_internal_set_name(const std::string& value) { +inline void RetrieveParamFloatRequest::_internal_set_name(const std::string& value) { name_.Set(value, GetArenaForAllocation()); } -inline std::string* ProvideParamIntRequest::_internal_mutable_name() { +inline std::string* RetrieveParamFloatRequest::_internal_mutable_name() { return name_.Mutable(GetArenaForAllocation()); } -inline std::string* ProvideParamIntRequest::release_name() { - // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ProvideParamIntRequest.name) +inline std::string* RetrieveParamFloatRequest::release_name() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.RetrieveParamFloatRequest.name) return name_.Release(); } -inline void ProvideParamIntRequest::set_allocated_name(std::string* name) { +inline void RetrieveParamFloatRequest::set_allocated_name(std::string* name) { if (name != nullptr) { } else { @@ -3408,56 +4706,36 @@ inline void ProvideParamIntRequest::set_allocated_name(std::string* name) { name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ProvideParamIntRequest.name) -} - -// int32 value = 2; -inline void ProvideParamIntRequest::clear_value() { - value_ = 0; -} -inline int32_t ProvideParamIntRequest::_internal_value() const { - return value_; -} -inline int32_t ProvideParamIntRequest::value() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamIntRequest.value) - return _internal_value(); -} -inline void ProvideParamIntRequest::_internal_set_value(int32_t value) { - - value_ = value; -} -inline void ProvideParamIntRequest::set_value(int32_t value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ProvideParamIntRequest.value) + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.RetrieveParamFloatRequest.name) } // ------------------------------------------------------------------- -// ProvideParamIntResponse +// RetrieveParamFloatResponse // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; -inline bool ProvideParamIntResponse::_internal_has_param_server_result() const { +inline bool RetrieveParamFloatResponse::_internal_has_param_server_result() const { return this != internal_default_instance() && param_server_result_ != nullptr; } -inline bool ProvideParamIntResponse::has_param_server_result() const { +inline bool RetrieveParamFloatResponse::has_param_server_result() const { return _internal_has_param_server_result(); } -inline void ProvideParamIntResponse::clear_param_server_result() { +inline void RetrieveParamFloatResponse::clear_param_server_result() { if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { delete param_server_result_; } param_server_result_ = nullptr; } -inline const ::mavsdk::rpc::param_server::ParamServerResult& ProvideParamIntResponse::_internal_param_server_result() const { +inline const ::mavsdk::rpc::param_server::ParamServerResult& RetrieveParamFloatResponse::_internal_param_server_result() const { const ::mavsdk::rpc::param_server::ParamServerResult* p = param_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::param_server::_ParamServerResult_default_instance_); } -inline const ::mavsdk::rpc::param_server::ParamServerResult& ProvideParamIntResponse::param_server_result() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamIntResponse.param_server_result) +inline const ::mavsdk::rpc::param_server::ParamServerResult& RetrieveParamFloatResponse::param_server_result() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamFloatResponse.param_server_result) return _internal_param_server_result(); } -inline void ProvideParamIntResponse::unsafe_arena_set_allocated_param_server_result( +inline void RetrieveParamFloatResponse::unsafe_arena_set_allocated_param_server_result( ::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(param_server_result_); @@ -3468,9 +4746,9 @@ inline void ProvideParamIntResponse::unsafe_arena_set_allocated_param_server_res } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.param_server.ProvideParamIntResponse.param_server_result) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.param_server.RetrieveParamFloatResponse.param_server_result) } -inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamIntResponse::release_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamFloatResponse::release_param_server_result() { ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; param_server_result_ = nullptr; @@ -3485,14 +4763,14 @@ inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamIntResponse:: #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamIntResponse::unsafe_arena_release_param_server_result() { - // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ProvideParamIntResponse.param_server_result) +inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamFloatResponse::unsafe_arena_release_param_server_result() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.RetrieveParamFloatResponse.param_server_result) ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; param_server_result_ = nullptr; return temp; } -inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamIntResponse::_internal_mutable_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamFloatResponse::_internal_mutable_param_server_result() { if (param_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::param_server::ParamServerResult>(GetArenaForAllocation()); @@ -3500,12 +4778,12 @@ inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamIntResponse:: } return param_server_result_; } -inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamIntResponse::mutable_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamFloatResponse::mutable_param_server_result() { ::mavsdk::rpc::param_server::ParamServerResult* _msg = _internal_mutable_param_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ProvideParamIntResponse.param_server_result) + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.RetrieveParamFloatResponse.param_server_result) return _msg; } -inline void ProvideParamIntResponse::set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { +inline void RetrieveParamFloatResponse::set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete param_server_result_; @@ -3522,49 +4800,69 @@ inline void ProvideParamIntResponse::set_allocated_param_server_result(::mavsdk: } param_server_result_ = param_server_result; - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ProvideParamIntResponse.param_server_result) + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.RetrieveParamFloatResponse.param_server_result) +} + +// float value = 2; +inline void RetrieveParamFloatResponse::clear_value() { + value_ = 0; +} +inline float RetrieveParamFloatResponse::_internal_value() const { + return value_; +} +inline float RetrieveParamFloatResponse::value() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamFloatResponse.value) + return _internal_value(); +} +inline void RetrieveParamFloatResponse::_internal_set_value(float value) { + + value_ = value; +} +inline void RetrieveParamFloatResponse::set_value(float value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.RetrieveParamFloatResponse.value) } // ------------------------------------------------------------------- -// RetrieveParamFloatRequest +// ProvideParamFloatRequest // string name = 1; -inline void RetrieveParamFloatRequest::clear_name() { +inline void ProvideParamFloatRequest::clear_name() { name_.ClearToEmpty(); } -inline const std::string& RetrieveParamFloatRequest::name() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamFloatRequest.name) +inline const std::string& ProvideParamFloatRequest::name() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamFloatRequest.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE -void RetrieveParamFloatRequest::set_name(ArgT0&& arg0, ArgT... args) { +void ProvideParamFloatRequest::set_name(ArgT0&& arg0, ArgT... args) { name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.RetrieveParamFloatRequest.name) + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ProvideParamFloatRequest.name) } -inline std::string* RetrieveParamFloatRequest::mutable_name() { +inline std::string* ProvideParamFloatRequest::mutable_name() { std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.RetrieveParamFloatRequest.name) + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ProvideParamFloatRequest.name) return _s; } -inline const std::string& RetrieveParamFloatRequest::_internal_name() const { +inline const std::string& ProvideParamFloatRequest::_internal_name() const { return name_.Get(); } -inline void RetrieveParamFloatRequest::_internal_set_name(const std::string& value) { +inline void ProvideParamFloatRequest::_internal_set_name(const std::string& value) { name_.Set(value, GetArenaForAllocation()); } -inline std::string* RetrieveParamFloatRequest::_internal_mutable_name() { +inline std::string* ProvideParamFloatRequest::_internal_mutable_name() { return name_.Mutable(GetArenaForAllocation()); } -inline std::string* RetrieveParamFloatRequest::release_name() { - // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.RetrieveParamFloatRequest.name) +inline std::string* ProvideParamFloatRequest::release_name() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ProvideParamFloatRequest.name) return name_.Release(); } -inline void RetrieveParamFloatRequest::set_allocated_name(std::string* name) { +inline void ProvideParamFloatRequest::set_allocated_name(std::string* name) { if (name != nullptr) { } else { @@ -3576,36 +4874,56 @@ inline void RetrieveParamFloatRequest::set_allocated_name(std::string* name) { name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.RetrieveParamFloatRequest.name) + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ProvideParamFloatRequest.name) +} + +// float value = 2; +inline void ProvideParamFloatRequest::clear_value() { + value_ = 0; +} +inline float ProvideParamFloatRequest::_internal_value() const { + return value_; +} +inline float ProvideParamFloatRequest::value() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamFloatRequest.value) + return _internal_value(); +} +inline void ProvideParamFloatRequest::_internal_set_value(float value) { + + value_ = value; +} +inline void ProvideParamFloatRequest::set_value(float value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ProvideParamFloatRequest.value) } // ------------------------------------------------------------------- -// RetrieveParamFloatResponse +// ProvideParamFloatResponse // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; -inline bool RetrieveParamFloatResponse::_internal_has_param_server_result() const { +inline bool ProvideParamFloatResponse::_internal_has_param_server_result() const { return this != internal_default_instance() && param_server_result_ != nullptr; } -inline bool RetrieveParamFloatResponse::has_param_server_result() const { +inline bool ProvideParamFloatResponse::has_param_server_result() const { return _internal_has_param_server_result(); } -inline void RetrieveParamFloatResponse::clear_param_server_result() { +inline void ProvideParamFloatResponse::clear_param_server_result() { if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { delete param_server_result_; } param_server_result_ = nullptr; } -inline const ::mavsdk::rpc::param_server::ParamServerResult& RetrieveParamFloatResponse::_internal_param_server_result() const { +inline const ::mavsdk::rpc::param_server::ParamServerResult& ProvideParamFloatResponse::_internal_param_server_result() const { const ::mavsdk::rpc::param_server::ParamServerResult* p = param_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::param_server::_ParamServerResult_default_instance_); } -inline const ::mavsdk::rpc::param_server::ParamServerResult& RetrieveParamFloatResponse::param_server_result() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamFloatResponse.param_server_result) +inline const ::mavsdk::rpc::param_server::ParamServerResult& ProvideParamFloatResponse::param_server_result() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamFloatResponse.param_server_result) return _internal_param_server_result(); } -inline void RetrieveParamFloatResponse::unsafe_arena_set_allocated_param_server_result( +inline void ProvideParamFloatResponse::unsafe_arena_set_allocated_param_server_result( ::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(param_server_result_); @@ -3616,9 +4934,9 @@ inline void RetrieveParamFloatResponse::unsafe_arena_set_allocated_param_server_ } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.param_server.RetrieveParamFloatResponse.param_server_result) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.param_server.ProvideParamFloatResponse.param_server_result) } -inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamFloatResponse::release_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamFloatResponse::release_param_server_result() { ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; param_server_result_ = nullptr; @@ -3633,14 +4951,14 @@ inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamFloatRespons #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamFloatResponse::unsafe_arena_release_param_server_result() { - // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.RetrieveParamFloatResponse.param_server_result) +inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamFloatResponse::unsafe_arena_release_param_server_result() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ProvideParamFloatResponse.param_server_result) ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; param_server_result_ = nullptr; return temp; } -inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamFloatResponse::_internal_mutable_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamFloatResponse::_internal_mutable_param_server_result() { if (param_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::param_server::ParamServerResult>(GetArenaForAllocation()); @@ -3648,12 +4966,12 @@ inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamFloatRespons } return param_server_result_; } -inline ::mavsdk::rpc::param_server::ParamServerResult* RetrieveParamFloatResponse::mutable_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamFloatResponse::mutable_param_server_result() { ::mavsdk::rpc::param_server::ParamServerResult* _msg = _internal_mutable_param_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.RetrieveParamFloatResponse.param_server_result) + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ProvideParamFloatResponse.param_server_result) return _msg; } -inline void RetrieveParamFloatResponse::set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { +inline void ProvideParamFloatResponse::set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete param_server_result_; @@ -3670,69 +4988,49 @@ inline void RetrieveParamFloatResponse::set_allocated_param_server_result(::mavs } param_server_result_ = param_server_result; - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.RetrieveParamFloatResponse.param_server_result) -} - -// float value = 2; -inline void RetrieveParamFloatResponse::clear_value() { - value_ = 0; -} -inline float RetrieveParamFloatResponse::_internal_value() const { - return value_; -} -inline float RetrieveParamFloatResponse::value() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.RetrieveParamFloatResponse.value) - return _internal_value(); -} -inline void RetrieveParamFloatResponse::_internal_set_value(float value) { - - value_ = value; -} -inline void RetrieveParamFloatResponse::set_value(float value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.RetrieveParamFloatResponse.value) + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ProvideParamFloatResponse.param_server_result) } // ------------------------------------------------------------------- -// ProvideParamFloatRequest +// ChangeParamFloatRequest // string name = 1; -inline void ProvideParamFloatRequest::clear_name() { +inline void ChangeParamFloatRequest::clear_name() { name_.ClearToEmpty(); } -inline const std::string& ProvideParamFloatRequest::name() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamFloatRequest.name) +inline const std::string& ChangeParamFloatRequest::name() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ChangeParamFloatRequest.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE -void ProvideParamFloatRequest::set_name(ArgT0&& arg0, ArgT... args) { +void ChangeParamFloatRequest::set_name(ArgT0&& arg0, ArgT... args) { name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ProvideParamFloatRequest.name) + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ChangeParamFloatRequest.name) } -inline std::string* ProvideParamFloatRequest::mutable_name() { +inline std::string* ChangeParamFloatRequest::mutable_name() { std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ProvideParamFloatRequest.name) + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ChangeParamFloatRequest.name) return _s; } -inline const std::string& ProvideParamFloatRequest::_internal_name() const { +inline const std::string& ChangeParamFloatRequest::_internal_name() const { return name_.Get(); } -inline void ProvideParamFloatRequest::_internal_set_name(const std::string& value) { +inline void ChangeParamFloatRequest::_internal_set_name(const std::string& value) { name_.Set(value, GetArenaForAllocation()); } -inline std::string* ProvideParamFloatRequest::_internal_mutable_name() { +inline std::string* ChangeParamFloatRequest::_internal_mutable_name() { return name_.Mutable(GetArenaForAllocation()); } -inline std::string* ProvideParamFloatRequest::release_name() { - // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ProvideParamFloatRequest.name) +inline std::string* ChangeParamFloatRequest::release_name() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ChangeParamFloatRequest.name) return name_.Release(); } -inline void ProvideParamFloatRequest::set_allocated_name(std::string* name) { +inline void ChangeParamFloatRequest::set_allocated_name(std::string* name) { if (name != nullptr) { } else { @@ -3744,56 +5042,56 @@ inline void ProvideParamFloatRequest::set_allocated_name(std::string* name) { name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ProvideParamFloatRequest.name) + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ChangeParamFloatRequest.name) } // float value = 2; -inline void ProvideParamFloatRequest::clear_value() { +inline void ChangeParamFloatRequest::clear_value() { value_ = 0; } -inline float ProvideParamFloatRequest::_internal_value() const { +inline float ChangeParamFloatRequest::_internal_value() const { return value_; } -inline float ProvideParamFloatRequest::value() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamFloatRequest.value) +inline float ChangeParamFloatRequest::value() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ChangeParamFloatRequest.value) return _internal_value(); } -inline void ProvideParamFloatRequest::_internal_set_value(float value) { +inline void ChangeParamFloatRequest::_internal_set_value(float value) { value_ = value; } -inline void ProvideParamFloatRequest::set_value(float value) { +inline void ChangeParamFloatRequest::set_value(float value) { _internal_set_value(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ProvideParamFloatRequest.value) + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ChangeParamFloatRequest.value) } // ------------------------------------------------------------------- -// ProvideParamFloatResponse +// ChangeParamFloatResponse // .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; -inline bool ProvideParamFloatResponse::_internal_has_param_server_result() const { +inline bool ChangeParamFloatResponse::_internal_has_param_server_result() const { return this != internal_default_instance() && param_server_result_ != nullptr; } -inline bool ProvideParamFloatResponse::has_param_server_result() const { +inline bool ChangeParamFloatResponse::has_param_server_result() const { return _internal_has_param_server_result(); } -inline void ProvideParamFloatResponse::clear_param_server_result() { +inline void ChangeParamFloatResponse::clear_param_server_result() { if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { delete param_server_result_; } param_server_result_ = nullptr; } -inline const ::mavsdk::rpc::param_server::ParamServerResult& ProvideParamFloatResponse::_internal_param_server_result() const { +inline const ::mavsdk::rpc::param_server::ParamServerResult& ChangeParamFloatResponse::_internal_param_server_result() const { const ::mavsdk::rpc::param_server::ParamServerResult* p = param_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::param_server::_ParamServerResult_default_instance_); } -inline const ::mavsdk::rpc::param_server::ParamServerResult& ProvideParamFloatResponse::param_server_result() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ProvideParamFloatResponse.param_server_result) +inline const ::mavsdk::rpc::param_server::ParamServerResult& ChangeParamFloatResponse::param_server_result() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ChangeParamFloatResponse.param_server_result) return _internal_param_server_result(); } -inline void ProvideParamFloatResponse::unsafe_arena_set_allocated_param_server_result( +inline void ChangeParamFloatResponse::unsafe_arena_set_allocated_param_server_result( ::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(param_server_result_); @@ -3804,9 +5102,9 @@ inline void ProvideParamFloatResponse::unsafe_arena_set_allocated_param_server_r } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.param_server.ProvideParamFloatResponse.param_server_result) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.param_server.ChangeParamFloatResponse.param_server_result) } -inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamFloatResponse::release_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamFloatResponse::release_param_server_result() { ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; param_server_result_ = nullptr; @@ -3821,14 +5119,14 @@ inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamFloatResponse #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamFloatResponse::unsafe_arena_release_param_server_result() { - // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ProvideParamFloatResponse.param_server_result) +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamFloatResponse::unsafe_arena_release_param_server_result() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ChangeParamFloatResponse.param_server_result) ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; param_server_result_ = nullptr; return temp; } -inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamFloatResponse::_internal_mutable_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamFloatResponse::_internal_mutable_param_server_result() { if (param_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::param_server::ParamServerResult>(GetArenaForAllocation()); @@ -3836,12 +5134,12 @@ inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamFloatResponse } return param_server_result_; } -inline ::mavsdk::rpc::param_server::ParamServerResult* ProvideParamFloatResponse::mutable_param_server_result() { +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamFloatResponse::mutable_param_server_result() { ::mavsdk::rpc::param_server::ParamServerResult* _msg = _internal_mutable_param_server_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ProvideParamFloatResponse.param_server_result) + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ChangeParamFloatResponse.param_server_result) return _msg; } -inline void ProvideParamFloatResponse::set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { +inline void ChangeParamFloatResponse::set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete param_server_result_; @@ -3858,7 +5156,7 @@ inline void ProvideParamFloatResponse::set_allocated_param_server_result(::mavsd } param_server_result_ = param_server_result; - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ProvideParamFloatResponse.param_server_result) + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ChangeParamFloatResponse.param_server_result) } // ------------------------------------------------------------------- @@ -4259,6 +5557,204 @@ inline void ProvideParamCustomResponse::set_allocated_param_server_result(::mavs // ------------------------------------------------------------------- +// ChangeParamCustomRequest + +// string name = 1; +inline void ChangeParamCustomRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& ChangeParamCustomRequest::name() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ChangeParamCustomRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ChangeParamCustomRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ChangeParamCustomRequest.name) +} +inline std::string* ChangeParamCustomRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ChangeParamCustomRequest.name) + return _s; +} +inline const std::string& ChangeParamCustomRequest::_internal_name() const { + return name_.Get(); +} +inline void ChangeParamCustomRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ChangeParamCustomRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ChangeParamCustomRequest::release_name() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ChangeParamCustomRequest.name) + return name_.Release(); +} +inline void ChangeParamCustomRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault()) { + name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ChangeParamCustomRequest.name) +} + +// string value = 2; +inline void ChangeParamCustomRequest::clear_value() { + value_.ClearToEmpty(); +} +inline const std::string& ChangeParamCustomRequest::value() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ChangeParamCustomRequest.value) + return _internal_value(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ChangeParamCustomRequest::set_value(ArgT0&& arg0, ArgT... args) { + + value_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:mavsdk.rpc.param_server.ChangeParamCustomRequest.value) +} +inline std::string* ChangeParamCustomRequest::mutable_value() { + std::string* _s = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ChangeParamCustomRequest.value) + return _s; +} +inline const std::string& ChangeParamCustomRequest::_internal_value() const { + return value_.Get(); +} +inline void ChangeParamCustomRequest::_internal_set_value(const std::string& value) { + + value_.Set(value, GetArenaForAllocation()); +} +inline std::string* ChangeParamCustomRequest::_internal_mutable_value() { + + return value_.Mutable(GetArenaForAllocation()); +} +inline std::string* ChangeParamCustomRequest::release_value() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ChangeParamCustomRequest.value) + return value_.Release(); +} +inline void ChangeParamCustomRequest::set_allocated_value(std::string* value) { + if (value != nullptr) { + + } else { + + } + value_.SetAllocated(value, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (value_.IsDefault()) { + value_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ChangeParamCustomRequest.value) +} + +// ------------------------------------------------------------------- + +// ChangeParamCustomResponse + +// .mavsdk.rpc.param_server.ParamServerResult param_server_result = 1; +inline bool ChangeParamCustomResponse::_internal_has_param_server_result() const { + return this != internal_default_instance() && param_server_result_ != nullptr; +} +inline bool ChangeParamCustomResponse::has_param_server_result() const { + return _internal_has_param_server_result(); +} +inline void ChangeParamCustomResponse::clear_param_server_result() { + if (GetArenaForAllocation() == nullptr && param_server_result_ != nullptr) { + delete param_server_result_; + } + param_server_result_ = nullptr; +} +inline const ::mavsdk::rpc::param_server::ParamServerResult& ChangeParamCustomResponse::_internal_param_server_result() const { + const ::mavsdk::rpc::param_server::ParamServerResult* p = param_server_result_; + return p != nullptr ? *p : reinterpret_cast( + ::mavsdk::rpc::param_server::_ParamServerResult_default_instance_); +} +inline const ::mavsdk::rpc::param_server::ParamServerResult& ChangeParamCustomResponse::param_server_result() const { + // @@protoc_insertion_point(field_get:mavsdk.rpc.param_server.ChangeParamCustomResponse.param_server_result) + return _internal_param_server_result(); +} +inline void ChangeParamCustomResponse::unsafe_arena_set_allocated_param_server_result( + ::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(param_server_result_); + } + param_server_result_ = param_server_result; + if (param_server_result) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.param_server.ChangeParamCustomResponse.param_server_result) +} +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamCustomResponse::release_param_server_result() { + + ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; + param_server_result_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamCustomResponse::unsafe_arena_release_param_server_result() { + // @@protoc_insertion_point(field_release:mavsdk.rpc.param_server.ChangeParamCustomResponse.param_server_result) + + ::mavsdk::rpc::param_server::ParamServerResult* temp = param_server_result_; + param_server_result_ = nullptr; + return temp; +} +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamCustomResponse::_internal_mutable_param_server_result() { + + if (param_server_result_ == nullptr) { + auto* p = CreateMaybeMessage<::mavsdk::rpc::param_server::ParamServerResult>(GetArenaForAllocation()); + param_server_result_ = p; + } + return param_server_result_; +} +inline ::mavsdk::rpc::param_server::ParamServerResult* ChangeParamCustomResponse::mutable_param_server_result() { + ::mavsdk::rpc::param_server::ParamServerResult* _msg = _internal_mutable_param_server_result(); + // @@protoc_insertion_point(field_mutable:mavsdk.rpc.param_server.ChangeParamCustomResponse.param_server_result) + return _msg; +} +inline void ChangeParamCustomResponse::set_allocated_param_server_result(::mavsdk::rpc::param_server::ParamServerResult* param_server_result) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete param_server_result_; + } + if (param_server_result) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(param_server_result); + if (message_arena != submessage_arena) { + param_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, param_server_result, submessage_arena); + } + + } else { + + } + param_server_result_ = param_server_result; + // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.param_server.ChangeParamCustomResponse.param_server_result) +} + +// ------------------------------------------------------------------- + // RetrieveAllParamsRequest // ------------------------------------------------------------------- @@ -4844,6 +6340,18 @@ inline void ParamServerResult::set_allocated_result_str(std::string* result_str) // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/mavsdk_server/src/plugins/param_server/param_server_service_impl.h b/src/mavsdk_server/src/plugins/param_server/param_server_service_impl.h index b6459574eb..bebfa9fb01 100644 --- a/src/mavsdk_server/src/plugins/param_server/param_server_service_impl.h +++ b/src/mavsdk_server/src/plugins/param_server/param_server_service_impl.h @@ -272,6 +272,37 @@ class ParamServerServiceImpl final : public rpc::param_server::ParamServerServic return grpc::Status::OK; } + grpc::Status ChangeParamInt( + grpc::ServerContext* /* context */, + const rpc::param_server::ChangeParamIntRequest* request, + rpc::param_server::ChangeParamIntResponse* response) override + { + if (_lazy_plugin.maybe_plugin() == nullptr) { + if (response != nullptr) { + // For server plugins, this should never happen, they should always be + // constructible. + auto result = mavsdk::ParamServer::Result::Unknown; + fillResponseWithResult(response, result); + } + + return grpc::Status::OK; + } + + if (request == nullptr) { + LogWarn() << "ChangeParamInt sent with a null request! Ignoring..."; + return grpc::Status::OK; + } + + auto result = + _lazy_plugin.maybe_plugin()->change_param_int(request->name(), request->value()); + + if (response != nullptr) { + fillResponseWithResult(response, result); + } + + return grpc::Status::OK; + } + grpc::Status RetrieveParamFloat( grpc::ServerContext* /* context */, const rpc::param_server::RetrieveParamFloatRequest* request, @@ -335,6 +366,37 @@ class ParamServerServiceImpl final : public rpc::param_server::ParamServerServic return grpc::Status::OK; } + grpc::Status ChangeParamFloat( + grpc::ServerContext* /* context */, + const rpc::param_server::ChangeParamFloatRequest* request, + rpc::param_server::ChangeParamFloatResponse* response) override + { + if (_lazy_plugin.maybe_plugin() == nullptr) { + if (response != nullptr) { + // For server plugins, this should never happen, they should always be + // constructible. + auto result = mavsdk::ParamServer::Result::Unknown; + fillResponseWithResult(response, result); + } + + return grpc::Status::OK; + } + + if (request == nullptr) { + LogWarn() << "ChangeParamFloat sent with a null request! Ignoring..."; + return grpc::Status::OK; + } + + auto result = + _lazy_plugin.maybe_plugin()->change_param_float(request->name(), request->value()); + + if (response != nullptr) { + fillResponseWithResult(response, result); + } + + return grpc::Status::OK; + } + grpc::Status RetrieveParamCustom( grpc::ServerContext* /* context */, const rpc::param_server::RetrieveParamCustomRequest* request, @@ -398,6 +460,37 @@ class ParamServerServiceImpl final : public rpc::param_server::ParamServerServic return grpc::Status::OK; } + grpc::Status ChangeParamCustom( + grpc::ServerContext* /* context */, + const rpc::param_server::ChangeParamCustomRequest* request, + rpc::param_server::ChangeParamCustomResponse* response) override + { + if (_lazy_plugin.maybe_plugin() == nullptr) { + if (response != nullptr) { + // For server plugins, this should never happen, they should always be + // constructible. + auto result = mavsdk::ParamServer::Result::Unknown; + fillResponseWithResult(response, result); + } + + return grpc::Status::OK; + } + + if (request == nullptr) { + LogWarn() << "ChangeParamCustom sent with a null request! Ignoring..."; + return grpc::Status::OK; + } + + auto result = + _lazy_plugin.maybe_plugin()->change_param_custom(request->name(), request->value()); + + if (response != nullptr) { + fillResponseWithResult(response, result); + } + + return grpc::Status::OK; + } + grpc::Status RetrieveAllParams( grpc::ServerContext* /* context */, const rpc::param_server::RetrieveAllParamsRequest* /* request */,