From 2191e1d2b9b8e4a6b228fd4fb0b8a8f66320b73f Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 1 Jun 2023 17:18:18 +1200 Subject: [PATCH 1/7] mavsdk_server: simplify linking On Windows, the mavsdk_server unit tests don't link properly when building with shared libs. For whatever reason the transitive dependencies didn't get tracked from the protobu/grpc components all the way into the mavsdk_server unit tests. I suspect that either some symbols get stripped too early, or it has to do with the export visibility in MSVC. I couldn't quite get to the bottom of it but I realized that we could just simplify it by avoiding the little libraries and just adding all sources to the mavsdk_server library in the first place. Let's see if it works... Signed-off-by: Julian Oes --- src/mavsdk_server/src/CMakeLists.txt | 29 ++++++++-------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/src/mavsdk_server/src/CMakeLists.txt b/src/mavsdk_server/src/CMakeLists.txt index 5c6fc65f6f..d34cb83009 100644 --- a/src/mavsdk_server/src/CMakeLists.txt +++ b/src/mavsdk_server/src/CMakeLists.txt @@ -1,35 +1,23 @@ cmake_minimum_required(VERSION 3.10.2) +list(APPEND MAVSDK_SERVER_SOURCES + mavsdk_server_api.h + mavsdk_server_api.cpp + mavsdk_server.cpp + grpc_server.cpp +) + set(COMPONENTS_LIST ${ENABLED_PLUGINS}) list(APPEND COMPONENTS_LIST core) - foreach(COMPONENT_NAME ${COMPONENTS_LIST}) - add_library(${COMPONENT_NAME}_proto_gens STATIC + list(APPEND MAVSDK_SERVER_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/generated/${COMPONENT_NAME}/${COMPONENT_NAME}.grpc.pb.cc ${CMAKE_CURRENT_SOURCE_DIR}/generated/${COMPONENT_NAME}/${COMPONENT_NAME}.pb.cc ${CMAKE_CURRENT_SOURCE_DIR}/generated/mavsdk_options.grpc.pb.cc ${CMAKE_CURRENT_SOURCE_DIR}/generated/mavsdk_options.pb.cc ) - - target_link_libraries(${COMPONENT_NAME}_proto_gens - gRPC::grpc++ - ) - - target_include_directories(${COMPONENT_NAME}_proto_gens - PRIVATE - ${PROJECT_SOURCE_DIR}/mavsdk_server/src/generated - ) - - list(APPEND COMPONENTS_PROTOGENS ${COMPONENT_NAME}_proto_gens) endforeach() -set(MAVSDK_SERVER_SOURCES - mavsdk_server_api.h - mavsdk_server_api.cpp - mavsdk_server.cpp - grpc_server.cpp -) - if(IOS OR (APPLE AND MACOS_FRAMEWORK)) set_property(SOURCE module.modulemap PROPERTY MACOSX_PACKAGE_LOCATION "Modules") @@ -47,7 +35,6 @@ target_link_libraries(mavsdk_server PRIVATE mavsdk gRPC::grpc++ - ${COMPONENTS_PROTOGENS} ) if(BUILD_WITH_PROTO_REFLECTION) From 7a4d8338fe2856f8bfc850078ad2d4cefb83dc68 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Fri, 2 Jun 2023 14:52:32 +1200 Subject: [PATCH 2/7] mavsdk_server: update third_party libs, regenerate This updates protobuf, gRPC, absl, and c-ares, and then regenerates the code using that. Signed-off-by: Julian Oes --- .../src/generated/action/action.grpc.pb.cc | 26 +- .../src/generated/action/action.grpc.pb.h | 34 +- .../src/generated/action/action.pb.cc | 5709 ++-- .../src/generated/action/action.pb.h | 3870 +-- .../action_server/action_server.grpc.pb.cc | 26 +- .../action_server/action_server.grpc.pb.h | 34 +- .../action_server/action_server.pb.cc | 3763 +-- .../action_server/action_server.pb.h | 2618 +- .../calibration/calibration.grpc.pb.cc | 26 +- .../calibration/calibration.grpc.pb.h | 34 +- .../generated/calibration/calibration.pb.cc | 2148 +- .../generated/calibration/calibration.pb.h | 1607 +- .../src/generated/camera/camera.grpc.pb.cc | 26 +- .../src/generated/camera/camera.grpc.pb.h | 34 +- .../src/generated/camera/camera.pb.cc | 8359 +++--- .../src/generated/camera/camera.pb.h | 6407 ++--- .../camera_server/camera_server.grpc.pb.cc | 26 +- .../camera_server/camera_server.grpc.pb.h | 34 +- .../camera_server/camera_server.pb.cc | 2855 +- .../camera_server/camera_server.pb.h | 2209 +- .../component_information.grpc.pb.cc | 26 +- .../component_information.grpc.pb.h | 34 +- .../component_information.pb.cc | 1420 +- .../component_information.pb.h | 1176 +- .../component_information_server.grpc.pb.cc | 26 +- .../component_information_server.grpc.pb.h | 34 +- .../component_information_server.pb.cc | 1521 +- .../component_information_server.pb.h | 1233 +- .../src/generated/core/core.grpc.pb.cc | 26 +- .../src/generated/core/core.grpc.pb.h | 34 +- .../src/generated/core/core.pb.cc | 573 +- .../src/generated/core/core.pb.h | 380 +- .../src/generated/failure/failure.grpc.pb.cc | 26 +- .../src/generated/failure/failure.grpc.pb.h | 34 +- .../src/generated/failure/failure.pb.cc | 662 +- .../src/generated/failure/failure.pb.h | 643 +- .../generated/follow_me/follow_me.grpc.pb.cc | 26 +- .../generated/follow_me/follow_me.grpc.pb.h | 34 +- .../src/generated/follow_me/follow_me.pb.cc | 2478 +- .../src/generated/follow_me/follow_me.pb.h | 1818 +- .../src/generated/ftp/ftp.grpc.pb.cc | 26 +- .../src/generated/ftp/ftp.grpc.pb.h | 34 +- src/mavsdk_server/src/generated/ftp/ftp.pb.cc | 4303 +-- src/mavsdk_server/src/generated/ftp/ftp.pb.h | 3305 +-- .../generated/geofence/geofence.grpc.pb.cc | 26 +- .../src/generated/geofence/geofence.grpc.pb.h | 34 +- .../src/generated/geofence/geofence.pb.cc | 1502 +- .../src/generated/geofence/geofence.pb.h | 1156 +- .../src/generated/gimbal/gimbal.grpc.pb.cc | 26 +- .../src/generated/gimbal/gimbal.grpc.pb.h | 34 +- .../src/generated/gimbal/gimbal.pb.cc | 2508 +- .../src/generated/gimbal/gimbal.pb.h | 1838 +- .../src/generated/gripper/gripper.grpc.pb.cc | 26 +- .../src/generated/gripper/gripper.grpc.pb.h | 34 +- .../src/generated/gripper/gripper.pb.cc | 836 +- .../src/generated/gripper/gripper.pb.h | 725 +- .../src/generated/info/info.grpc.pb.cc | 26 +- .../src/generated/info/info.grpc.pb.h | 34 +- .../src/generated/info/info.pb.cc | 2759 +- .../src/generated/info/info.pb.h | 2352 +- .../generated/log_files/log_files.grpc.pb.cc | 26 +- .../generated/log_files/log_files.grpc.pb.h | 34 +- .../src/generated/log_files/log_files.pb.cc | 1509 +- .../src/generated/log_files/log_files.pb.h | 1200 +- .../manual_control/manual_control.grpc.pb.cc | 26 +- .../manual_control/manual_control.grpc.pb.h | 34 +- .../manual_control/manual_control.pb.cc | 1092 +- .../manual_control/manual_control.pb.h | 831 +- .../src/generated/mavsdk_options.grpc.pb.cc | 26 +- .../src/generated/mavsdk_options.grpc.pb.h | 34 +- .../src/generated/mavsdk_options.pb.cc | 97 +- .../src/generated/mavsdk_options.pb.h | 130 +- .../src/generated/mission/mission.grpc.pb.cc | 26 +- .../src/generated/mission/mission.grpc.pb.h | 34 +- .../src/generated/mission/mission.pb.cc | 5028 ++-- .../src/generated/mission/mission.pb.h | 3654 +-- .../mission_raw/mission_raw.grpc.pb.cc | 26 +- .../mission_raw/mission_raw.grpc.pb.h | 34 +- .../generated/mission_raw/mission_raw.pb.cc | 4544 ++-- .../generated/mission_raw/mission_raw.pb.h | 3364 +-- .../mission_raw_server.grpc.pb.cc | 26 +- .../mission_raw_server.grpc.pb.h | 34 +- .../mission_raw_server.pb.cc | 1762 +- .../mission_raw_server.pb.h | 1455 +- .../src/generated/mocap/mocap.grpc.pb.cc | 26 +- .../src/generated/mocap/mocap.grpc.pb.h | 34 +- .../src/generated/mocap/mocap.pb.cc | 3654 +-- .../src/generated/mocap/mocap.pb.h | 2688 +- .../generated/offboard/offboard.grpc.pb.cc | 26 +- .../src/generated/offboard/offboard.grpc.pb.h | 34 +- .../src/generated/offboard/offboard.pb.cc | 6148 +++-- .../src/generated/offboard/offboard.pb.h | 4166 +-- .../src/generated/param/param.grpc.pb.cc | 26 +- .../src/generated/param/param.grpc.pb.h | 34 +- .../src/generated/param/param.pb.cc | 3666 +-- .../src/generated/param/param.pb.h | 2834 +- .../param_server/param_server.grpc.pb.cc | 26 +- .../param_server/param_server.grpc.pb.h | 34 +- .../generated/param_server/param_server.pb.cc | 3362 +-- .../generated/param_server/param_server.pb.h | 2572 +- .../src/generated/rtk/rtk.grpc.pb.cc | 26 +- .../src/generated/rtk/rtk.grpc.pb.h | 34 +- src/mavsdk_server/src/generated/rtk/rtk.pb.cc | 735 +- src/mavsdk_server/src/generated/rtk/rtk.pb.h | 624 +- .../server_utility/server_utility.grpc.pb.cc | 26 +- .../server_utility/server_utility.grpc.pb.h | 34 +- .../server_utility/server_utility.pb.cc | 641 +- .../server_utility/server_utility.pb.h | 599 +- .../src/generated/shell/shell.grpc.pb.cc | 26 +- .../src/generated/shell/shell.grpc.pb.h | 34 +- .../src/generated/shell/shell.pb.cc | 776 +- .../src/generated/shell/shell.pb.h | 663 +- .../generated/telemetry/telemetry.grpc.pb.cc | 26 +- .../generated/telemetry/telemetry.grpc.pb.h | 34 +- .../src/generated/telemetry/telemetry.pb.cc | 22135 +++++++++------- .../src/generated/telemetry/telemetry.pb.h | 14323 +++++----- .../telemetry_server.grpc.pb.cc | 26 +- .../telemetry_server.grpc.pb.h | 34 +- .../telemetry_server/telemetry_server.pb.cc | 12264 +++++---- .../telemetry_server/telemetry_server.pb.h | 8300 +++--- .../tracking_server.grpc.pb.cc | 26 +- .../tracking_server/tracking_server.grpc.pb.h | 34 +- .../tracking_server/tracking_server.pb.cc | 2656 +- .../tracking_server/tracking_server.pb.h | 1824 +- .../transponder/transponder.grpc.pb.cc | 26 +- .../transponder/transponder.grpc.pb.h | 34 +- .../generated/transponder/transponder.pb.cc | 1327 +- .../generated/transponder/transponder.pb.h | 1123 +- .../src/generated/tune/tune.grpc.pb.cc | 26 +- .../src/generated/tune/tune.grpc.pb.h | 34 +- .../src/generated/tune/tune.pb.cc | 798 +- .../src/generated/tune/tune.pb.h | 697 +- .../src/generated/winch/winch.grpc.pb.cc | 26 +- .../src/generated/winch/winch.grpc.pb.h | 34 +- .../src/generated/winch/winch.pb.cc | 4221 +-- .../src/generated/winch/winch.pb.h | 3054 ++- third_party/CMakeLists.txt | 2 +- third_party/absl/CMakeLists.txt | 5 +- third_party/cares/CMakeLists.txt | 2 +- third_party/grpc/CMakeLists.txt | 10 +- third_party/grpc/cmake_install_fix.patch | 34 + third_party/protobuf/CMakeLists.txt | 5 +- 142 files changed, 112834 insertions(+), 92513 deletions(-) create mode 100644 third_party/grpc/cmake_install_fix.patch diff --git a/src/mavsdk_server/src/generated/action/action.grpc.pb.cc b/src/mavsdk_server/src/generated/action/action.grpc.pb.cc index 68168cd7ad..003cd70135 100644 --- a/src/mavsdk_server/src/generated/action/action.grpc.pb.cc +++ b/src/mavsdk_server/src/generated/action/action.grpc.pb.cc @@ -6,19 +6,19 @@ #include "action/action.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace mavsdk { namespace rpc { namespace action { diff --git a/src/mavsdk_server/src/generated/action/action.grpc.pb.h b/src/mavsdk_server/src/generated/action/action.grpc.pb.h index cdcda5cf4d..045fd344e5 100644 --- a/src/mavsdk_server/src/generated/action/action.grpc.pb.h +++ b/src/mavsdk_server/src/generated/action/action.grpc.pb.h @@ -7,23 +7,23 @@ #include "action/action.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace mavsdk { namespace rpc { diff --git a/src/mavsdk_server/src/generated/action/action.pb.cc b/src/mavsdk_server/src/generated/action/action.pb.cc index e6924c5563..cc01d13ebe 100644 --- a/src/mavsdk_server/src/generated/action/action.pb.cc +++ b/src/mavsdk_server/src/generated/action/action.pb.cc @@ -4,1149 +4,1449 @@ #include "action/action.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/descriptor.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/reflection_ops.h" +#include "google/protobuf/wire_format.h" // @@protoc_insertion_point(includes) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; namespace mavsdk { namespace rpc { namespace action { +template PROTOBUF_CONSTEXPR ArmRequest::ArmRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct ArmRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ArmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmRequestDefaultTypeInternal() {} union { ArmRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmRequestDefaultTypeInternal _ArmRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmRequestDefaultTypeInternal _ArmRequest_default_instance_; +template PROTOBUF_CONSTEXPR ArmResponse::ArmResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct ArmResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ArmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmResponseDefaultTypeInternal() {} union { ArmResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmResponseDefaultTypeInternal _ArmResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmResponseDefaultTypeInternal _ArmResponse_default_instance_; +template PROTOBUF_CONSTEXPR DisarmRequest::DisarmRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct DisarmRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DisarmRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DisarmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DisarmRequestDefaultTypeInternal() {} union { DisarmRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisarmRequestDefaultTypeInternal _DisarmRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisarmRequestDefaultTypeInternal _DisarmRequest_default_instance_; +template PROTOBUF_CONSTEXPR DisarmResponse::DisarmResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct DisarmResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DisarmResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DisarmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DisarmResponseDefaultTypeInternal() {} union { DisarmResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisarmResponseDefaultTypeInternal _DisarmResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DisarmResponseDefaultTypeInternal _DisarmResponse_default_instance_; +template PROTOBUF_CONSTEXPR TakeoffRequest::TakeoffRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct TakeoffRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakeoffRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakeoffRequestDefaultTypeInternal() {} union { TakeoffRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffRequestDefaultTypeInternal _TakeoffRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffRequestDefaultTypeInternal _TakeoffRequest_default_instance_; +template PROTOBUF_CONSTEXPR TakeoffResponse::TakeoffResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct TakeoffResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakeoffResponseDefaultTypeInternal() {} union { TakeoffResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; +template PROTOBUF_CONSTEXPR LandRequest::LandRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct LandRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR LandRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~LandRequestDefaultTypeInternal() {} union { LandRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandRequestDefaultTypeInternal _LandRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandRequestDefaultTypeInternal _LandRequest_default_instance_; +template PROTOBUF_CONSTEXPR LandResponse::LandResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct LandResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~LandResponseDefaultTypeInternal() {} union { LandResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandResponseDefaultTypeInternal _LandResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandResponseDefaultTypeInternal _LandResponse_default_instance_; +template PROTOBUF_CONSTEXPR RebootRequest::RebootRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct RebootRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RebootRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR RebootRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RebootRequestDefaultTypeInternal() {} union { RebootRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootRequestDefaultTypeInternal _RebootRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootRequestDefaultTypeInternal _RebootRequest_default_instance_; +template PROTOBUF_CONSTEXPR RebootResponse::RebootResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct RebootResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RebootResponseDefaultTypeInternal() {} union { RebootResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootResponseDefaultTypeInternal _RebootResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootResponseDefaultTypeInternal _RebootResponse_default_instance_; +template PROTOBUF_CONSTEXPR ShutdownRequest::ShutdownRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct ShutdownRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShutdownRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ShutdownRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ShutdownRequestDefaultTypeInternal() {} union { ShutdownRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownRequestDefaultTypeInternal _ShutdownRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownRequestDefaultTypeInternal _ShutdownRequest_default_instance_; +template PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct ShutdownResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ShutdownResponseDefaultTypeInternal() {} union { ShutdownResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownResponseDefaultTypeInternal _ShutdownResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownResponseDefaultTypeInternal _ShutdownResponse_default_instance_; +template PROTOBUF_CONSTEXPR TerminateRequest::TerminateRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct TerminateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TerminateRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TerminateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TerminateRequestDefaultTypeInternal() {} union { TerminateRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateRequestDefaultTypeInternal _TerminateRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateRequestDefaultTypeInternal _TerminateRequest_default_instance_; +template PROTOBUF_CONSTEXPR TerminateResponse::TerminateResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct TerminateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TerminateResponseDefaultTypeInternal() {} union { TerminateResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; +template PROTOBUF_CONSTEXPR KillRequest::KillRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct KillRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR KillRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR KillRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~KillRequestDefaultTypeInternal() {} union { KillRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KillRequestDefaultTypeInternal _KillRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KillRequestDefaultTypeInternal _KillRequest_default_instance_; +template PROTOBUF_CONSTEXPR KillResponse::KillResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct KillResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR KillResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR KillResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~KillResponseDefaultTypeInternal() {} union { KillResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KillResponseDefaultTypeInternal _KillResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KillResponseDefaultTypeInternal _KillResponse_default_instance_; +template PROTOBUF_CONSTEXPR ReturnToLaunchRequest::ReturnToLaunchRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct ReturnToLaunchRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReturnToLaunchRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ReturnToLaunchRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ReturnToLaunchRequestDefaultTypeInternal() {} union { ReturnToLaunchRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReturnToLaunchRequestDefaultTypeInternal _ReturnToLaunchRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReturnToLaunchRequestDefaultTypeInternal _ReturnToLaunchRequest_default_instance_; +template PROTOBUF_CONSTEXPR ReturnToLaunchResponse::ReturnToLaunchResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct ReturnToLaunchResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ReturnToLaunchResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ReturnToLaunchResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ReturnToLaunchResponseDefaultTypeInternal() {} union { ReturnToLaunchResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReturnToLaunchResponseDefaultTypeInternal _ReturnToLaunchResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReturnToLaunchResponseDefaultTypeInternal _ReturnToLaunchResponse_default_instance_; +template PROTOBUF_CONSTEXPR GotoLocationRequest::GotoLocationRequest( - ::_pbi::ConstantInitialized) - : latitude_deg_(0) - , longitude_deg_(0) - , absolute_altitude_m_(0) - , yaw_deg_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.latitude_deg_)*/ 0 + + , /*decltype(_impl_.longitude_deg_)*/ 0 + + , /*decltype(_impl_.absolute_altitude_m_)*/ 0 + + , /*decltype(_impl_.yaw_deg_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct GotoLocationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GotoLocationRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GotoLocationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GotoLocationRequestDefaultTypeInternal() {} union { GotoLocationRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GotoLocationRequestDefaultTypeInternal _GotoLocationRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GotoLocationRequestDefaultTypeInternal _GotoLocationRequest_default_instance_; +template PROTOBUF_CONSTEXPR GotoLocationResponse::GotoLocationResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct GotoLocationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GotoLocationResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GotoLocationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GotoLocationResponseDefaultTypeInternal() {} union { GotoLocationResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GotoLocationResponseDefaultTypeInternal _GotoLocationResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GotoLocationResponseDefaultTypeInternal _GotoLocationResponse_default_instance_; +template PROTOBUF_CONSTEXPR DoOrbitRequest::DoOrbitRequest( - ::_pbi::ConstantInitialized) - : radius_m_(0) - , velocity_ms_(0) - , latitude_deg_(0) - , longitude_deg_(0) - , absolute_altitude_m_(0) - , yaw_behavior_(0) -{} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.radius_m_)*/ 0 + + , /*decltype(_impl_.velocity_ms_)*/ 0 + + , /*decltype(_impl_.latitude_deg_)*/ 0 + + , /*decltype(_impl_.longitude_deg_)*/ 0 + + , /*decltype(_impl_.absolute_altitude_m_)*/ 0 + + , /*decltype(_impl_.yaw_behavior_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct DoOrbitRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DoOrbitRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DoOrbitRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DoOrbitRequestDefaultTypeInternal() {} union { DoOrbitRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoOrbitRequestDefaultTypeInternal _DoOrbitRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoOrbitRequestDefaultTypeInternal _DoOrbitRequest_default_instance_; +template PROTOBUF_CONSTEXPR DoOrbitResponse::DoOrbitResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct DoOrbitResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR DoOrbitResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DoOrbitResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DoOrbitResponseDefaultTypeInternal() {} union { DoOrbitResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoOrbitResponseDefaultTypeInternal _DoOrbitResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoOrbitResponseDefaultTypeInternal _DoOrbitResponse_default_instance_; +template PROTOBUF_CONSTEXPR HoldRequest::HoldRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct HoldRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR HoldRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HoldRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~HoldRequestDefaultTypeInternal() {} union { HoldRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HoldRequestDefaultTypeInternal _HoldRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HoldRequestDefaultTypeInternal _HoldRequest_default_instance_; +template PROTOBUF_CONSTEXPR HoldResponse::HoldResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct HoldResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR HoldResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HoldResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~HoldResponseDefaultTypeInternal() {} union { HoldResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HoldResponseDefaultTypeInternal _HoldResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HoldResponseDefaultTypeInternal _HoldResponse_default_instance_; +template PROTOBUF_CONSTEXPR SetActuatorRequest::SetActuatorRequest( - ::_pbi::ConstantInitialized) - : index_(0) - , value_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.index_)*/ 0 + + , /*decltype(_impl_.value_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct SetActuatorRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetActuatorRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetActuatorRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetActuatorRequestDefaultTypeInternal() {} union { SetActuatorRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetActuatorRequestDefaultTypeInternal _SetActuatorRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetActuatorRequestDefaultTypeInternal _SetActuatorRequest_default_instance_; +template PROTOBUF_CONSTEXPR SetActuatorResponse::SetActuatorResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct SetActuatorResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetActuatorResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetActuatorResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetActuatorResponseDefaultTypeInternal() {} union { SetActuatorResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetActuatorResponseDefaultTypeInternal _SetActuatorResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetActuatorResponseDefaultTypeInternal _SetActuatorResponse_default_instance_; +template PROTOBUF_CONSTEXPR TransitionToFixedwingRequest::TransitionToFixedwingRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct TransitionToFixedwingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToFixedwingRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TransitionToFixedwingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransitionToFixedwingRequestDefaultTypeInternal() {} union { TransitionToFixedwingRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToFixedwingRequestDefaultTypeInternal _TransitionToFixedwingRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToFixedwingRequestDefaultTypeInternal _TransitionToFixedwingRequest_default_instance_; +template PROTOBUF_CONSTEXPR TransitionToFixedwingResponse::TransitionToFixedwingResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct TransitionToFixedwingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToFixedwingResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TransitionToFixedwingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransitionToFixedwingResponseDefaultTypeInternal() {} union { TransitionToFixedwingResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToFixedwingResponseDefaultTypeInternal _TransitionToFixedwingResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToFixedwingResponseDefaultTypeInternal _TransitionToFixedwingResponse_default_instance_; +template PROTOBUF_CONSTEXPR TransitionToMulticopterRequest::TransitionToMulticopterRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct TransitionToMulticopterRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToMulticopterRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TransitionToMulticopterRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransitionToMulticopterRequestDefaultTypeInternal() {} union { TransitionToMulticopterRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToMulticopterRequestDefaultTypeInternal _TransitionToMulticopterRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToMulticopterRequestDefaultTypeInternal _TransitionToMulticopterRequest_default_instance_; +template PROTOBUF_CONSTEXPR TransitionToMulticopterResponse::TransitionToMulticopterResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct TransitionToMulticopterResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransitionToMulticopterResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TransitionToMulticopterResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TransitionToMulticopterResponseDefaultTypeInternal() {} union { TransitionToMulticopterResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToMulticopterResponseDefaultTypeInternal _TransitionToMulticopterResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransitionToMulticopterResponseDefaultTypeInternal _TransitionToMulticopterResponse_default_instance_; +template PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct GetTakeoffAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetTakeoffAltitudeRequestDefaultTypeInternal() {} union { GetTakeoffAltitudeRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTakeoffAltitudeRequestDefaultTypeInternal _GetTakeoffAltitudeRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTakeoffAltitudeRequestDefaultTypeInternal _GetTakeoffAltitudeRequest_default_instance_; +template PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr) - , altitude_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr + , /*decltype(_impl_.altitude_)*/ 0 +} {} struct GetTakeoffAltitudeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetTakeoffAltitudeResponseDefaultTypeInternal() {} union { GetTakeoffAltitudeResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTakeoffAltitudeResponseDefaultTypeInternal _GetTakeoffAltitudeResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTakeoffAltitudeResponseDefaultTypeInternal _GetTakeoffAltitudeResponse_default_instance_; +template PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest( - ::_pbi::ConstantInitialized) - : altitude_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.altitude_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct SetTakeoffAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetTakeoffAltitudeRequestDefaultTypeInternal() {} union { SetTakeoffAltitudeRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTakeoffAltitudeRequestDefaultTypeInternal _SetTakeoffAltitudeRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTakeoffAltitudeRequestDefaultTypeInternal _SetTakeoffAltitudeRequest_default_instance_; +template PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct SetTakeoffAltitudeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetTakeoffAltitudeResponseDefaultTypeInternal() {} union { SetTakeoffAltitudeResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTakeoffAltitudeResponseDefaultTypeInternal _SetTakeoffAltitudeResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTakeoffAltitudeResponseDefaultTypeInternal _SetTakeoffAltitudeResponse_default_instance_; +template PROTOBUF_CONSTEXPR GetMaximumSpeedRequest::GetMaximumSpeedRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct GetMaximumSpeedRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetMaximumSpeedRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetMaximumSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetMaximumSpeedRequestDefaultTypeInternal() {} union { GetMaximumSpeedRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMaximumSpeedRequestDefaultTypeInternal _GetMaximumSpeedRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMaximumSpeedRequestDefaultTypeInternal _GetMaximumSpeedRequest_default_instance_; +template PROTOBUF_CONSTEXPR GetMaximumSpeedResponse::GetMaximumSpeedResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr) - , speed_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr + , /*decltype(_impl_.speed_)*/ 0 +} {} struct GetMaximumSpeedResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetMaximumSpeedResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetMaximumSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetMaximumSpeedResponseDefaultTypeInternal() {} union { GetMaximumSpeedResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMaximumSpeedResponseDefaultTypeInternal _GetMaximumSpeedResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMaximumSpeedResponseDefaultTypeInternal _GetMaximumSpeedResponse_default_instance_; +template PROTOBUF_CONSTEXPR SetMaximumSpeedRequest::SetMaximumSpeedRequest( - ::_pbi::ConstantInitialized) - : speed_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.speed_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct SetMaximumSpeedRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetMaximumSpeedRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetMaximumSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetMaximumSpeedRequestDefaultTypeInternal() {} union { SetMaximumSpeedRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetMaximumSpeedRequestDefaultTypeInternal _SetMaximumSpeedRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetMaximumSpeedRequestDefaultTypeInternal _SetMaximumSpeedRequest_default_instance_; +template PROTOBUF_CONSTEXPR SetMaximumSpeedResponse::SetMaximumSpeedResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct SetMaximumSpeedResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetMaximumSpeedResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetMaximumSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetMaximumSpeedResponseDefaultTypeInternal() {} union { SetMaximumSpeedResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetMaximumSpeedResponseDefaultTypeInternal _SetMaximumSpeedResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetMaximumSpeedResponseDefaultTypeInternal _SetMaximumSpeedResponse_default_instance_; +template PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct GetReturnToLaunchAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetReturnToLaunchAltitudeRequestDefaultTypeInternal() {} union { GetReturnToLaunchAltitudeRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReturnToLaunchAltitudeRequestDefaultTypeInternal _GetReturnToLaunchAltitudeRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReturnToLaunchAltitudeRequestDefaultTypeInternal _GetReturnToLaunchAltitudeRequest_default_instance_; +template PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr) - , relative_altitude_m_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr + , /*decltype(_impl_.relative_altitude_m_)*/ 0 +} {} struct GetReturnToLaunchAltitudeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetReturnToLaunchAltitudeResponseDefaultTypeInternal() {} union { GetReturnToLaunchAltitudeResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReturnToLaunchAltitudeResponseDefaultTypeInternal _GetReturnToLaunchAltitudeResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReturnToLaunchAltitudeResponseDefaultTypeInternal _GetReturnToLaunchAltitudeResponse_default_instance_; +template PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest( - ::_pbi::ConstantInitialized) - : relative_altitude_m_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.relative_altitude_m_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct SetReturnToLaunchAltitudeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetReturnToLaunchAltitudeRequestDefaultTypeInternal() {} union { SetReturnToLaunchAltitudeRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeRequestDefaultTypeInternal _SetReturnToLaunchAltitudeRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeRequestDefaultTypeInternal _SetReturnToLaunchAltitudeRequest_default_instance_; +template PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct SetReturnToLaunchAltitudeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetReturnToLaunchAltitudeResponseDefaultTypeInternal() {} union { SetReturnToLaunchAltitudeResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeResponseDefaultTypeInternal _SetReturnToLaunchAltitudeResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeResponseDefaultTypeInternal _SetReturnToLaunchAltitudeResponse_default_instance_; +template PROTOBUF_CONSTEXPR SetCurrentSpeedRequest::SetCurrentSpeedRequest( - ::_pbi::ConstantInitialized) - : speed_m_s_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.speed_m_s_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct SetCurrentSpeedRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetCurrentSpeedRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetCurrentSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetCurrentSpeedRequestDefaultTypeInternal() {} union { SetCurrentSpeedRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCurrentSpeedRequestDefaultTypeInternal _SetCurrentSpeedRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCurrentSpeedRequestDefaultTypeInternal _SetCurrentSpeedRequest_default_instance_; +template PROTOBUF_CONSTEXPR SetCurrentSpeedResponse::SetCurrentSpeedResponse( - ::_pbi::ConstantInitialized) - : action_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_result_)*/nullptr} {} struct SetCurrentSpeedResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetCurrentSpeedResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetCurrentSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetCurrentSpeedResponseDefaultTypeInternal() {} union { SetCurrentSpeedResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCurrentSpeedResponseDefaultTypeInternal _SetCurrentSpeedResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCurrentSpeedResponseDefaultTypeInternal _SetCurrentSpeedResponse_default_instance_; +template PROTOBUF_CONSTEXPR ActionResult::ActionResult( - ::_pbi::ConstantInitialized) - : result_str_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , result_(0) -{} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.result_str_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.result_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct ActionResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR ActionResultDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ActionResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ActionResultDefaultTypeInternal() {} union { ActionResult _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActionResultDefaultTypeInternal _ActionResult_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActionResultDefaultTypeInternal _ActionResult_default_instance_; } // namespace action } // namespace rpc } // namespace mavsdk static ::_pb::Metadata file_level_metadata_action_2faction_2eproto[45]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_action_2faction_2eproto[2]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_action_2faction_2eproto = nullptr; - -const uint32_t TableStruct_action_2faction_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, latitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, longitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, absolute_altitude_m_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, yaw_deg_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, radius_m_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, velocity_ms_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, yaw_behavior_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, latitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, longitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, absolute_altitude_m_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, index_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, action_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, altitude_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeRequest, altitude_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedResponse, action_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedResponse, speed_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedRequest, speed_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, action_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, relative_altitude_m_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, relative_altitude_m_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedRequest, speed_m_s_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, action_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, result_str_), -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::mavsdk::rpc::action::ArmRequest)}, - { 6, -1, -1, sizeof(::mavsdk::rpc::action::ArmResponse)}, - { 13, -1, -1, sizeof(::mavsdk::rpc::action::DisarmRequest)}, - { 19, -1, -1, sizeof(::mavsdk::rpc::action::DisarmResponse)}, - { 26, -1, -1, sizeof(::mavsdk::rpc::action::TakeoffRequest)}, - { 32, -1, -1, sizeof(::mavsdk::rpc::action::TakeoffResponse)}, - { 39, -1, -1, sizeof(::mavsdk::rpc::action::LandRequest)}, - { 45, -1, -1, sizeof(::mavsdk::rpc::action::LandResponse)}, - { 52, -1, -1, sizeof(::mavsdk::rpc::action::RebootRequest)}, - { 58, -1, -1, sizeof(::mavsdk::rpc::action::RebootResponse)}, - { 65, -1, -1, sizeof(::mavsdk::rpc::action::ShutdownRequest)}, - { 71, -1, -1, sizeof(::mavsdk::rpc::action::ShutdownResponse)}, - { 78, -1, -1, sizeof(::mavsdk::rpc::action::TerminateRequest)}, - { 84, -1, -1, sizeof(::mavsdk::rpc::action::TerminateResponse)}, - { 91, -1, -1, sizeof(::mavsdk::rpc::action::KillRequest)}, - { 97, -1, -1, sizeof(::mavsdk::rpc::action::KillResponse)}, - { 104, -1, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchRequest)}, - { 110, -1, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchResponse)}, - { 117, -1, -1, sizeof(::mavsdk::rpc::action::GotoLocationRequest)}, - { 127, -1, -1, sizeof(::mavsdk::rpc::action::GotoLocationResponse)}, - { 134, -1, -1, sizeof(::mavsdk::rpc::action::DoOrbitRequest)}, - { 146, -1, -1, sizeof(::mavsdk::rpc::action::DoOrbitResponse)}, - { 153, -1, -1, sizeof(::mavsdk::rpc::action::HoldRequest)}, - { 159, -1, -1, sizeof(::mavsdk::rpc::action::HoldResponse)}, - { 166, -1, -1, sizeof(::mavsdk::rpc::action::SetActuatorRequest)}, - { 174, -1, -1, sizeof(::mavsdk::rpc::action::SetActuatorResponse)}, - { 181, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingRequest)}, - { 187, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingResponse)}, - { 194, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterRequest)}, - { 200, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterResponse)}, - { 207, -1, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeRequest)}, - { 213, -1, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeResponse)}, - { 221, -1, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeRequest)}, - { 228, -1, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeResponse)}, - { 235, -1, -1, sizeof(::mavsdk::rpc::action::GetMaximumSpeedRequest)}, - { 241, -1, -1, sizeof(::mavsdk::rpc::action::GetMaximumSpeedResponse)}, - { 249, -1, -1, sizeof(::mavsdk::rpc::action::SetMaximumSpeedRequest)}, - { 256, -1, -1, sizeof(::mavsdk::rpc::action::SetMaximumSpeedResponse)}, - { 263, -1, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest)}, - { 269, -1, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse)}, - { 277, -1, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest)}, - { 284, -1, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse)}, - { 291, -1, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedRequest)}, - { 298, -1, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedResponse)}, - { 305, -1, -1, sizeof(::mavsdk::rpc::action::ActionResult)}, +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_action_2faction_2eproto = nullptr; +const ::uint32_t TableStruct_action_2faction_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ArmResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DisarmResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TakeoffResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::LandResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::RebootResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ShutdownResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TerminateResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::KillResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ReturnToLaunchResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.latitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.longitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.absolute_altitude_m_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationRequest, _impl_.yaw_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GotoLocationResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.radius_m_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.velocity_ms_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.yaw_behavior_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.latitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.longitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitRequest, _impl_.absolute_altitude_m_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::DoOrbitResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::HoldResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _impl_.index_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorRequest, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetActuatorResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToFixedwingResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::TransitionToMulticopterResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_.action_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetTakeoffAltitudeResponse, _impl_.altitude_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeRequest, _impl_.altitude_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedResponse, _impl_.action_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedResponse, _impl_.speed_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedRequest, _impl_.speed_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_.action_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedRequest, _impl_.speed_m_s_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetCurrentSpeedResponse, _impl_.action_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::ActionResult, _impl_.result_str_), +}; + +static const ::_pbi::MigrationSchema + schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::mavsdk::rpc::action::ArmRequest)}, + { 8, 17, -1, sizeof(::mavsdk::rpc::action::ArmResponse)}, + { 18, -1, -1, sizeof(::mavsdk::rpc::action::DisarmRequest)}, + { 26, 35, -1, sizeof(::mavsdk::rpc::action::DisarmResponse)}, + { 36, -1, -1, sizeof(::mavsdk::rpc::action::TakeoffRequest)}, + { 44, 53, -1, sizeof(::mavsdk::rpc::action::TakeoffResponse)}, + { 54, -1, -1, sizeof(::mavsdk::rpc::action::LandRequest)}, + { 62, 71, -1, sizeof(::mavsdk::rpc::action::LandResponse)}, + { 72, -1, -1, sizeof(::mavsdk::rpc::action::RebootRequest)}, + { 80, 89, -1, sizeof(::mavsdk::rpc::action::RebootResponse)}, + { 90, -1, -1, sizeof(::mavsdk::rpc::action::ShutdownRequest)}, + { 98, 107, -1, sizeof(::mavsdk::rpc::action::ShutdownResponse)}, + { 108, -1, -1, sizeof(::mavsdk::rpc::action::TerminateRequest)}, + { 116, 125, -1, sizeof(::mavsdk::rpc::action::TerminateResponse)}, + { 126, -1, -1, sizeof(::mavsdk::rpc::action::KillRequest)}, + { 134, 143, -1, sizeof(::mavsdk::rpc::action::KillResponse)}, + { 144, -1, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchRequest)}, + { 152, 161, -1, sizeof(::mavsdk::rpc::action::ReturnToLaunchResponse)}, + { 162, -1, -1, sizeof(::mavsdk::rpc::action::GotoLocationRequest)}, + { 174, 183, -1, sizeof(::mavsdk::rpc::action::GotoLocationResponse)}, + { 184, -1, -1, sizeof(::mavsdk::rpc::action::DoOrbitRequest)}, + { 198, 207, -1, sizeof(::mavsdk::rpc::action::DoOrbitResponse)}, + { 208, -1, -1, sizeof(::mavsdk::rpc::action::HoldRequest)}, + { 216, 225, -1, sizeof(::mavsdk::rpc::action::HoldResponse)}, + { 226, -1, -1, sizeof(::mavsdk::rpc::action::SetActuatorRequest)}, + { 236, 245, -1, sizeof(::mavsdk::rpc::action::SetActuatorResponse)}, + { 246, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingRequest)}, + { 254, 263, -1, sizeof(::mavsdk::rpc::action::TransitionToFixedwingResponse)}, + { 264, -1, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterRequest)}, + { 272, 281, -1, sizeof(::mavsdk::rpc::action::TransitionToMulticopterResponse)}, + { 282, -1, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeRequest)}, + { 290, 300, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeResponse)}, + { 302, -1, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeRequest)}, + { 311, 320, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeResponse)}, + { 321, -1, -1, sizeof(::mavsdk::rpc::action::GetMaximumSpeedRequest)}, + { 329, 339, -1, sizeof(::mavsdk::rpc::action::GetMaximumSpeedResponse)}, + { 341, -1, -1, sizeof(::mavsdk::rpc::action::SetMaximumSpeedRequest)}, + { 350, 359, -1, sizeof(::mavsdk::rpc::action::SetMaximumSpeedResponse)}, + { 360, -1, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest)}, + { 368, 378, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse)}, + { 380, -1, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest)}, + { 389, 398, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse)}, + { 399, -1, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedRequest)}, + { 408, 417, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedResponse)}, + { 418, -1, -1, sizeof(::mavsdk::rpc::action::ActionResult)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::mavsdk::rpc::action::_ArmRequest_default_instance_._instance, - &::mavsdk::rpc::action::_ArmResponse_default_instance_._instance, - &::mavsdk::rpc::action::_DisarmRequest_default_instance_._instance, - &::mavsdk::rpc::action::_DisarmResponse_default_instance_._instance, - &::mavsdk::rpc::action::_TakeoffRequest_default_instance_._instance, - &::mavsdk::rpc::action::_TakeoffResponse_default_instance_._instance, - &::mavsdk::rpc::action::_LandRequest_default_instance_._instance, - &::mavsdk::rpc::action::_LandResponse_default_instance_._instance, - &::mavsdk::rpc::action::_RebootRequest_default_instance_._instance, - &::mavsdk::rpc::action::_RebootResponse_default_instance_._instance, - &::mavsdk::rpc::action::_ShutdownRequest_default_instance_._instance, - &::mavsdk::rpc::action::_ShutdownResponse_default_instance_._instance, - &::mavsdk::rpc::action::_TerminateRequest_default_instance_._instance, - &::mavsdk::rpc::action::_TerminateResponse_default_instance_._instance, - &::mavsdk::rpc::action::_KillRequest_default_instance_._instance, - &::mavsdk::rpc::action::_KillResponse_default_instance_._instance, - &::mavsdk::rpc::action::_ReturnToLaunchRequest_default_instance_._instance, - &::mavsdk::rpc::action::_ReturnToLaunchResponse_default_instance_._instance, - &::mavsdk::rpc::action::_GotoLocationRequest_default_instance_._instance, - &::mavsdk::rpc::action::_GotoLocationResponse_default_instance_._instance, - &::mavsdk::rpc::action::_DoOrbitRequest_default_instance_._instance, - &::mavsdk::rpc::action::_DoOrbitResponse_default_instance_._instance, - &::mavsdk::rpc::action::_HoldRequest_default_instance_._instance, - &::mavsdk::rpc::action::_HoldResponse_default_instance_._instance, - &::mavsdk::rpc::action::_SetActuatorRequest_default_instance_._instance, - &::mavsdk::rpc::action::_SetActuatorResponse_default_instance_._instance, - &::mavsdk::rpc::action::_TransitionToFixedwingRequest_default_instance_._instance, - &::mavsdk::rpc::action::_TransitionToFixedwingResponse_default_instance_._instance, - &::mavsdk::rpc::action::_TransitionToMulticopterRequest_default_instance_._instance, - &::mavsdk::rpc::action::_TransitionToMulticopterResponse_default_instance_._instance, - &::mavsdk::rpc::action::_GetTakeoffAltitudeRequest_default_instance_._instance, - &::mavsdk::rpc::action::_GetTakeoffAltitudeResponse_default_instance_._instance, - &::mavsdk::rpc::action::_SetTakeoffAltitudeRequest_default_instance_._instance, - &::mavsdk::rpc::action::_SetTakeoffAltitudeResponse_default_instance_._instance, - &::mavsdk::rpc::action::_GetMaximumSpeedRequest_default_instance_._instance, - &::mavsdk::rpc::action::_GetMaximumSpeedResponse_default_instance_._instance, - &::mavsdk::rpc::action::_SetMaximumSpeedRequest_default_instance_._instance, - &::mavsdk::rpc::action::_SetMaximumSpeedResponse_default_instance_._instance, - &::mavsdk::rpc::action::_GetReturnToLaunchAltitudeRequest_default_instance_._instance, - &::mavsdk::rpc::action::_GetReturnToLaunchAltitudeResponse_default_instance_._instance, - &::mavsdk::rpc::action::_SetReturnToLaunchAltitudeRequest_default_instance_._instance, - &::mavsdk::rpc::action::_SetReturnToLaunchAltitudeResponse_default_instance_._instance, - &::mavsdk::rpc::action::_SetCurrentSpeedRequest_default_instance_._instance, - &::mavsdk::rpc::action::_SetCurrentSpeedResponse_default_instance_._instance, - &::mavsdk::rpc::action::_ActionResult_default_instance_._instance, -}; - -const char descriptor_table_protodef_action_2faction_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\023action/action.proto\022\021mavsdk.rpc.action" - "\032\024mavsdk_options.proto\"\014\n\nArmRequest\"E\n\013" - "ArmResponse\0226\n\raction_result\030\001 \001(\0132\037.mav" - "sdk.rpc.action.ActionResult\"\017\n\rDisarmReq" - "uest\"H\n\016DisarmResponse\0226\n\raction_result\030" - "\001 \001(\0132\037.mavsdk.rpc.action.ActionResult\"\020" - "\n\016TakeoffRequest\"I\n\017TakeoffResponse\0226\n\ra" - "ction_result\030\001 \001(\0132\037.mavsdk.rpc.action.A" - "ctionResult\"\r\n\013LandRequest\"F\n\014LandRespon" - "se\0226\n\raction_result\030\001 \001(\0132\037.mavsdk.rpc.a" - "ction.ActionResult\"\017\n\rRebootRequest\"H\n\016R" - "ebootResponse\0226\n\raction_result\030\001 \001(\0132\037.m" - "avsdk.rpc.action.ActionResult\"\021\n\017Shutdow" - "nRequest\"J\n\020ShutdownResponse\0226\n\raction_r" - "esult\030\001 \001(\0132\037.mavsdk.rpc.action.ActionRe" - "sult\"\022\n\020TerminateRequest\"K\n\021TerminateRes" - "ponse\0226\n\raction_result\030\001 \001(\0132\037.mavsdk.rp" - "c.action.ActionResult\"\r\n\013KillRequest\"F\n\014" - "KillResponse\0226\n\raction_result\030\001 \001(\0132\037.ma" - "vsdk.rpc.action.ActionResult\"\027\n\025ReturnTo" - "LaunchRequest\"P\n\026ReturnToLaunchResponse\022" - "6\n\raction_result\030\001 \001(\0132\037.mavsdk.rpc.acti" - "on.ActionResult\"p\n\023GotoLocationRequest\022\024" - "\n\014latitude_deg\030\001 \001(\001\022\025\n\rlongitude_deg\030\002 " - "\001(\001\022\033\n\023absolute_altitude_m\030\003 \001(\002\022\017\n\007yaw_" - "deg\030\004 \001(\002\"N\n\024GotoLocationResponse\0226\n\ract" - "ion_result\030\001 \001(\0132\037.mavsdk.rpc.action.Act" - "ionResult\"\327\001\n\016DoOrbitRequest\022\020\n\010radius_m" - "\030\001 \001(\002\022\023\n\013velocity_ms\030\002 \001(\002\0229\n\014yaw_behav" - "ior\030\003 \001(\0162#.mavsdk.rpc.action.OrbitYawBe" - "havior\022\035\n\014latitude_deg\030\005 \001(\001B\007\202\265\030\003NaN\022\036\n" - "\rlongitude_deg\030\006 \001(\001B\007\202\265\030\003NaN\022$\n\023absolut" - "e_altitude_m\030\007 \001(\001B\007\202\265\030\003NaN\"I\n\017DoOrbitRe" - "sponse\0226\n\raction_result\030\001 \001(\0132\037.mavsdk.r" - "pc.action.ActionResult\"\r\n\013HoldRequest\"F\n" - "\014HoldResponse\0226\n\raction_result\030\001 \001(\0132\037.m" - "avsdk.rpc.action.ActionResult\"2\n\022SetActu" - "atorRequest\022\r\n\005index\030\001 \001(\005\022\r\n\005value\030\002 \001(" - "\002\"M\n\023SetActuatorResponse\0226\n\raction_resul" - "t\030\001 \001(\0132\037.mavsdk.rpc.action.ActionResult" - "\"\036\n\034TransitionToFixedwingRequest\"W\n\035Tran" - "sitionToFixedwingResponse\0226\n\raction_resu" - "lt\030\001 \001(\0132\037.mavsdk.rpc.action.ActionResul" - "t\" \n\036TransitionToMulticopterRequest\"Y\n\037T" - "ransitionToMulticopterResponse\0226\n\raction" - "_result\030\001 \001(\0132\037.mavsdk.rpc.action.Action" - "Result\"\033\n\031GetTakeoffAltitudeRequest\"f\n\032G" - "etTakeoffAltitudeResponse\0226\n\raction_resu" - "lt\030\001 \001(\0132\037.mavsdk.rpc.action.ActionResul" - "t\022\020\n\010altitude\030\002 \001(\002\"-\n\031SetTakeoffAltitud" - "eRequest\022\020\n\010altitude\030\001 \001(\002\"T\n\032SetTakeoff" - "AltitudeResponse\0226\n\raction_result\030\001 \001(\0132" - "\037.mavsdk.rpc.action.ActionResult\"\030\n\026GetM" - "aximumSpeedRequest\"`\n\027GetMaximumSpeedRes" - "ponse\0226\n\raction_result\030\001 \001(\0132\037.mavsdk.rp" - "c.action.ActionResult\022\r\n\005speed\030\002 \001(\002\"\'\n\026" - "SetMaximumSpeedRequest\022\r\n\005speed\030\001 \001(\002\"Q\n" - "\027SetMaximumSpeedResponse\0226\n\raction_resul" - "t\030\001 \001(\0132\037.mavsdk.rpc.action.ActionResult" - "\"\"\n GetReturnToLaunchAltitudeRequest\"x\n!" - "GetReturnToLaunchAltitudeResponse\0226\n\ract" - "ion_result\030\001 \001(\0132\037.mavsdk.rpc.action.Act" - "ionResult\022\033\n\023relative_altitude_m\030\002 \001(\002\"\?" - "\n SetReturnToLaunchAltitudeRequest\022\033\n\023re" - "lative_altitude_m\030\001 \001(\002\"[\n!SetReturnToLa" - "unchAltitudeResponse\0226\n\raction_result\030\001 " - "\001(\0132\037.mavsdk.rpc.action.ActionResult\"+\n\026" - "SetCurrentSpeedRequest\022\021\n\tspeed_m_s\030\001 \001(" - "\002\"Q\n\027SetCurrentSpeedResponse\0226\n\raction_r" - "esult\030\001 \001(\0132\037.mavsdk.rpc.action.ActionRe" - "sult\"\360\003\n\014ActionResult\0226\n\006result\030\001 \001(\0162&." - "mavsdk.rpc.action.ActionResult.Result\022\022\n" - "\nresult_str\030\002 \001(\t\"\223\003\n\006Result\022\022\n\016RESULT_U" - "NKNOWN\020\000\022\022\n\016RESULT_SUCCESS\020\001\022\024\n\020RESULT_N" - "O_SYSTEM\020\002\022\033\n\027RESULT_CONNECTION_ERROR\020\003\022" - "\017\n\013RESULT_BUSY\020\004\022\031\n\025RESULT_COMMAND_DENIE" - "D\020\005\022.\n*RESULT_COMMAND_DENIED_LANDED_STAT" - "E_UNKNOWN\020\006\022$\n RESULT_COMMAND_DENIED_NOT" - "_LANDED\020\007\022\022\n\016RESULT_TIMEOUT\020\010\022*\n&RESULT_" - "VTOL_TRANSITION_SUPPORT_UNKNOWN\020\t\022%\n!RES" - "ULT_NO_VTOL_TRANSITION_SUPPORT\020\n\022\032\n\026RESU" - "LT_PARAMETER_ERROR\020\013\022\026\n\022RESULT_UNSUPPORT" - "ED\020\014\022\021\n\rRESULT_FAILED\020\r*\363\001\n\020OrbitYawBeha" - "vior\0222\n.ORBIT_YAW_BEHAVIOR_HOLD_FRONT_TO" - "_CIRCLE_CENTER\020\000\022+\n\'ORBIT_YAW_BEHAVIOR_H" - "OLD_INITIAL_HEADING\020\001\022#\n\037ORBIT_YAW_BEHAV" - "IOR_UNCONTROLLED\020\002\0223\n/ORBIT_YAW_BEHAVIOR" - "_HOLD_FRONT_TANGENT_TO_CIRCLE\020\003\022$\n ORBIT" - "_YAW_BEHAVIOR_RC_CONTROLLED\020\0042\246\021\n\rAction" - "Service\022F\n\003Arm\022\035.mavsdk.rpc.action.ArmRe" - "quest\032\036.mavsdk.rpc.action.ArmResponse\"\000\022" - "O\n\006Disarm\022 .mavsdk.rpc.action.DisarmRequ" - "est\032!.mavsdk.rpc.action.DisarmResponse\"\000" - "\022R\n\007Takeoff\022!.mavsdk.rpc.action.TakeoffR" - "equest\032\".mavsdk.rpc.action.TakeoffRespon" - "se\"\000\022I\n\004Land\022\036.mavsdk.rpc.action.LandReq" - "uest\032\037.mavsdk.rpc.action.LandResponse\"\000\022" - "O\n\006Reboot\022 .mavsdk.rpc.action.RebootRequ" - "est\032!.mavsdk.rpc.action.RebootResponse\"\000" - "\022U\n\010Shutdown\022\".mavsdk.rpc.action.Shutdow" - "nRequest\032#.mavsdk.rpc.action.ShutdownRes" - "ponse\"\000\022X\n\tTerminate\022#.mavsdk.rpc.action" - ".TerminateRequest\032$.mavsdk.rpc.action.Te" - "rminateResponse\"\000\022I\n\004Kill\022\036.mavsdk.rpc.a" - "ction.KillRequest\032\037.mavsdk.rpc.action.Ki" - "llResponse\"\000\022g\n\016ReturnToLaunch\022(.mavsdk." - "rpc.action.ReturnToLaunchRequest\032).mavsd" - "k.rpc.action.ReturnToLaunchResponse\"\000\022a\n" - "\014GotoLocation\022&.mavsdk.rpc.action.GotoLo" - "cationRequest\032\'.mavsdk.rpc.action.GotoLo" - "cationResponse\"\000\022R\n\007DoOrbit\022!.mavsdk.rpc" - ".action.DoOrbitRequest\032\".mavsdk.rpc.acti" - "on.DoOrbitResponse\"\000\022I\n\004Hold\022\036.mavsdk.rp" - "c.action.HoldRequest\032\037.mavsdk.rpc.action" - ".HoldResponse\"\000\022^\n\013SetActuator\022%.mavsdk." - "rpc.action.SetActuatorRequest\032&.mavsdk.r" - "pc.action.SetActuatorResponse\"\000\022|\n\025Trans" - "itionToFixedwing\022/.mavsdk.rpc.action.Tra" - "nsitionToFixedwingRequest\0320.mavsdk.rpc.a" - "ction.TransitionToFixedwingResponse\"\000\022\202\001" - "\n\027TransitionToMulticopter\0221.mavsdk.rpc.a" - "ction.TransitionToMulticopterRequest\0322.m" - "avsdk.rpc.action.TransitionToMulticopter" - "Response\"\000\022s\n\022GetTakeoffAltitude\022,.mavsd" - "k.rpc.action.GetTakeoffAltitudeRequest\032-" - ".mavsdk.rpc.action.GetTakeoffAltitudeRes" - "ponse\"\000\022s\n\022SetTakeoffAltitude\022,.mavsdk.r" - "pc.action.SetTakeoffAltitudeRequest\032-.ma" - "vsdk.rpc.action.SetTakeoffAltitudeRespon" - "se\"\000\022j\n\017GetMaximumSpeed\022).mavsdk.rpc.act" - "ion.GetMaximumSpeedRequest\032*.mavsdk.rpc." - "action.GetMaximumSpeedResponse\"\000\022j\n\017SetM" - "aximumSpeed\022).mavsdk.rpc.action.SetMaxim" - "umSpeedRequest\032*.mavsdk.rpc.action.SetMa" - "ximumSpeedResponse\"\000\022\210\001\n\031GetReturnToLaun" - "chAltitude\0223.mavsdk.rpc.action.GetReturn" - "ToLaunchAltitudeRequest\0324.mavsdk.rpc.act" - "ion.GetReturnToLaunchAltitudeResponse\"\000\022" - "\210\001\n\031SetReturnToLaunchAltitude\0223.mavsdk.r" - "pc.action.SetReturnToLaunchAltitudeReque" - "st\0324.mavsdk.rpc.action.SetReturnToLaunch" - "AltitudeResponse\"\000\022j\n\017SetCurrentSpeed\022)." - "mavsdk.rpc.action.SetCurrentSpeedRequest" - "\032*.mavsdk.rpc.action.SetCurrentSpeedResp" - "onse\"\000B\037\n\020io.mavsdk.actionB\013ActionProtob" - "\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_action_2faction_2eproto_deps[1] = { - &::descriptor_table_mavsdk_5foptions_2eproto, -}; -static ::_pbi::once_flag descriptor_table_action_2faction_2eproto_once; + &::mavsdk::rpc::action::_ArmRequest_default_instance_._instance, + &::mavsdk::rpc::action::_ArmResponse_default_instance_._instance, + &::mavsdk::rpc::action::_DisarmRequest_default_instance_._instance, + &::mavsdk::rpc::action::_DisarmResponse_default_instance_._instance, + &::mavsdk::rpc::action::_TakeoffRequest_default_instance_._instance, + &::mavsdk::rpc::action::_TakeoffResponse_default_instance_._instance, + &::mavsdk::rpc::action::_LandRequest_default_instance_._instance, + &::mavsdk::rpc::action::_LandResponse_default_instance_._instance, + &::mavsdk::rpc::action::_RebootRequest_default_instance_._instance, + &::mavsdk::rpc::action::_RebootResponse_default_instance_._instance, + &::mavsdk::rpc::action::_ShutdownRequest_default_instance_._instance, + &::mavsdk::rpc::action::_ShutdownResponse_default_instance_._instance, + &::mavsdk::rpc::action::_TerminateRequest_default_instance_._instance, + &::mavsdk::rpc::action::_TerminateResponse_default_instance_._instance, + &::mavsdk::rpc::action::_KillRequest_default_instance_._instance, + &::mavsdk::rpc::action::_KillResponse_default_instance_._instance, + &::mavsdk::rpc::action::_ReturnToLaunchRequest_default_instance_._instance, + &::mavsdk::rpc::action::_ReturnToLaunchResponse_default_instance_._instance, + &::mavsdk::rpc::action::_GotoLocationRequest_default_instance_._instance, + &::mavsdk::rpc::action::_GotoLocationResponse_default_instance_._instance, + &::mavsdk::rpc::action::_DoOrbitRequest_default_instance_._instance, + &::mavsdk::rpc::action::_DoOrbitResponse_default_instance_._instance, + &::mavsdk::rpc::action::_HoldRequest_default_instance_._instance, + &::mavsdk::rpc::action::_HoldResponse_default_instance_._instance, + &::mavsdk::rpc::action::_SetActuatorRequest_default_instance_._instance, + &::mavsdk::rpc::action::_SetActuatorResponse_default_instance_._instance, + &::mavsdk::rpc::action::_TransitionToFixedwingRequest_default_instance_._instance, + &::mavsdk::rpc::action::_TransitionToFixedwingResponse_default_instance_._instance, + &::mavsdk::rpc::action::_TransitionToMulticopterRequest_default_instance_._instance, + &::mavsdk::rpc::action::_TransitionToMulticopterResponse_default_instance_._instance, + &::mavsdk::rpc::action::_GetTakeoffAltitudeRequest_default_instance_._instance, + &::mavsdk::rpc::action::_GetTakeoffAltitudeResponse_default_instance_._instance, + &::mavsdk::rpc::action::_SetTakeoffAltitudeRequest_default_instance_._instance, + &::mavsdk::rpc::action::_SetTakeoffAltitudeResponse_default_instance_._instance, + &::mavsdk::rpc::action::_GetMaximumSpeedRequest_default_instance_._instance, + &::mavsdk::rpc::action::_GetMaximumSpeedResponse_default_instance_._instance, + &::mavsdk::rpc::action::_SetMaximumSpeedRequest_default_instance_._instance, + &::mavsdk::rpc::action::_SetMaximumSpeedResponse_default_instance_._instance, + &::mavsdk::rpc::action::_GetReturnToLaunchAltitudeRequest_default_instance_._instance, + &::mavsdk::rpc::action::_GetReturnToLaunchAltitudeResponse_default_instance_._instance, + &::mavsdk::rpc::action::_SetReturnToLaunchAltitudeRequest_default_instance_._instance, + &::mavsdk::rpc::action::_SetReturnToLaunchAltitudeResponse_default_instance_._instance, + &::mavsdk::rpc::action::_SetCurrentSpeedRequest_default_instance_._instance, + &::mavsdk::rpc::action::_SetCurrentSpeedResponse_default_instance_._instance, + &::mavsdk::rpc::action::_ActionResult_default_instance_._instance, +}; +const char descriptor_table_protodef_action_2faction_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + "\n\023action/action.proto\022\021mavsdk.rpc.action" + "\032\024mavsdk_options.proto\"\014\n\nArmRequest\"E\n\013" + "ArmResponse\0226\n\raction_result\030\001 \001(\0132\037.mav" + "sdk.rpc.action.ActionResult\"\017\n\rDisarmReq" + "uest\"H\n\016DisarmResponse\0226\n\raction_result\030" + "\001 \001(\0132\037.mavsdk.rpc.action.ActionResult\"\020" + "\n\016TakeoffRequest\"I\n\017TakeoffResponse\0226\n\ra" + "ction_result\030\001 \001(\0132\037.mavsdk.rpc.action.A" + "ctionResult\"\r\n\013LandRequest\"F\n\014LandRespon" + "se\0226\n\raction_result\030\001 \001(\0132\037.mavsdk.rpc.a" + "ction.ActionResult\"\017\n\rRebootRequest\"H\n\016R" + "ebootResponse\0226\n\raction_result\030\001 \001(\0132\037.m" + "avsdk.rpc.action.ActionResult\"\021\n\017Shutdow" + "nRequest\"J\n\020ShutdownResponse\0226\n\raction_r" + "esult\030\001 \001(\0132\037.mavsdk.rpc.action.ActionRe" + "sult\"\022\n\020TerminateRequest\"K\n\021TerminateRes" + "ponse\0226\n\raction_result\030\001 \001(\0132\037.mavsdk.rp" + "c.action.ActionResult\"\r\n\013KillRequest\"F\n\014" + "KillResponse\0226\n\raction_result\030\001 \001(\0132\037.ma" + "vsdk.rpc.action.ActionResult\"\027\n\025ReturnTo" + "LaunchRequest\"P\n\026ReturnToLaunchResponse\022" + "6\n\raction_result\030\001 \001(\0132\037.mavsdk.rpc.acti" + "on.ActionResult\"p\n\023GotoLocationRequest\022\024" + "\n\014latitude_deg\030\001 \001(\001\022\025\n\rlongitude_deg\030\002 " + "\001(\001\022\033\n\023absolute_altitude_m\030\003 \001(\002\022\017\n\007yaw_" + "deg\030\004 \001(\002\"N\n\024GotoLocationResponse\0226\n\ract" + "ion_result\030\001 \001(\0132\037.mavsdk.rpc.action.Act" + "ionResult\"\327\001\n\016DoOrbitRequest\022\020\n\010radius_m" + "\030\001 \001(\002\022\023\n\013velocity_ms\030\002 \001(\002\0229\n\014yaw_behav" + "ior\030\003 \001(\0162#.mavsdk.rpc.action.OrbitYawBe" + "havior\022\035\n\014latitude_deg\030\005 \001(\001B\007\202\265\030\003NaN\022\036\n" + "\rlongitude_deg\030\006 \001(\001B\007\202\265\030\003NaN\022$\n\023absolut" + "e_altitude_m\030\007 \001(\001B\007\202\265\030\003NaN\"I\n\017DoOrbitRe" + "sponse\0226\n\raction_result\030\001 \001(\0132\037.mavsdk.r" + "pc.action.ActionResult\"\r\n\013HoldRequest\"F\n" + "\014HoldResponse\0226\n\raction_result\030\001 \001(\0132\037.m" + "avsdk.rpc.action.ActionResult\"2\n\022SetActu" + "atorRequest\022\r\n\005index\030\001 \001(\005\022\r\n\005value\030\002 \001(" + "\002\"M\n\023SetActuatorResponse\0226\n\raction_resul" + "t\030\001 \001(\0132\037.mavsdk.rpc.action.ActionResult" + "\"\036\n\034TransitionToFixedwingRequest\"W\n\035Tran" + "sitionToFixedwingResponse\0226\n\raction_resu" + "lt\030\001 \001(\0132\037.mavsdk.rpc.action.ActionResul" + "t\" \n\036TransitionToMulticopterRequest\"Y\n\037T" + "ransitionToMulticopterResponse\0226\n\raction" + "_result\030\001 \001(\0132\037.mavsdk.rpc.action.Action" + "Result\"\033\n\031GetTakeoffAltitudeRequest\"f\n\032G" + "etTakeoffAltitudeResponse\0226\n\raction_resu" + "lt\030\001 \001(\0132\037.mavsdk.rpc.action.ActionResul" + "t\022\020\n\010altitude\030\002 \001(\002\"-\n\031SetTakeoffAltitud" + "eRequest\022\020\n\010altitude\030\001 \001(\002\"T\n\032SetTakeoff" + "AltitudeResponse\0226\n\raction_result\030\001 \001(\0132" + "\037.mavsdk.rpc.action.ActionResult\"\030\n\026GetM" + "aximumSpeedRequest\"`\n\027GetMaximumSpeedRes" + "ponse\0226\n\raction_result\030\001 \001(\0132\037.mavsdk.rp" + "c.action.ActionResult\022\r\n\005speed\030\002 \001(\002\"\'\n\026" + "SetMaximumSpeedRequest\022\r\n\005speed\030\001 \001(\002\"Q\n" + "\027SetMaximumSpeedResponse\0226\n\raction_resul" + "t\030\001 \001(\0132\037.mavsdk.rpc.action.ActionResult" + "\"\"\n GetReturnToLaunchAltitudeRequest\"x\n!" + "GetReturnToLaunchAltitudeResponse\0226\n\ract" + "ion_result\030\001 \001(\0132\037.mavsdk.rpc.action.Act" + "ionResult\022\033\n\023relative_altitude_m\030\002 \001(\002\"\?" + "\n SetReturnToLaunchAltitudeRequest\022\033\n\023re" + "lative_altitude_m\030\001 \001(\002\"[\n!SetReturnToLa" + "unchAltitudeResponse\0226\n\raction_result\030\001 " + "\001(\0132\037.mavsdk.rpc.action.ActionResult\"+\n\026" + "SetCurrentSpeedRequest\022\021\n\tspeed_m_s\030\001 \001(" + "\002\"Q\n\027SetCurrentSpeedResponse\0226\n\raction_r" + "esult\030\001 \001(\0132\037.mavsdk.rpc.action.ActionRe" + "sult\"\360\003\n\014ActionResult\0226\n\006result\030\001 \001(\0162&." + "mavsdk.rpc.action.ActionResult.Result\022\022\n" + "\nresult_str\030\002 \001(\t\"\223\003\n\006Result\022\022\n\016RESULT_U" + "NKNOWN\020\000\022\022\n\016RESULT_SUCCESS\020\001\022\024\n\020RESULT_N" + "O_SYSTEM\020\002\022\033\n\027RESULT_CONNECTION_ERROR\020\003\022" + "\017\n\013RESULT_BUSY\020\004\022\031\n\025RESULT_COMMAND_DENIE" + "D\020\005\022.\n*RESULT_COMMAND_DENIED_LANDED_STAT" + "E_UNKNOWN\020\006\022$\n RESULT_COMMAND_DENIED_NOT" + "_LANDED\020\007\022\022\n\016RESULT_TIMEOUT\020\010\022*\n&RESULT_" + "VTOL_TRANSITION_SUPPORT_UNKNOWN\020\t\022%\n!RES" + "ULT_NO_VTOL_TRANSITION_SUPPORT\020\n\022\032\n\026RESU" + "LT_PARAMETER_ERROR\020\013\022\026\n\022RESULT_UNSUPPORT" + "ED\020\014\022\021\n\rRESULT_FAILED\020\r*\363\001\n\020OrbitYawBeha" + "vior\0222\n.ORBIT_YAW_BEHAVIOR_HOLD_FRONT_TO" + "_CIRCLE_CENTER\020\000\022+\n\'ORBIT_YAW_BEHAVIOR_H" + "OLD_INITIAL_HEADING\020\001\022#\n\037ORBIT_YAW_BEHAV" + "IOR_UNCONTROLLED\020\002\0223\n/ORBIT_YAW_BEHAVIOR" + "_HOLD_FRONT_TANGENT_TO_CIRCLE\020\003\022$\n ORBIT" + "_YAW_BEHAVIOR_RC_CONTROLLED\020\0042\246\021\n\rAction" + "Service\022F\n\003Arm\022\035.mavsdk.rpc.action.ArmRe" + "quest\032\036.mavsdk.rpc.action.ArmResponse\"\000\022" + "O\n\006Disarm\022 .mavsdk.rpc.action.DisarmRequ" + "est\032!.mavsdk.rpc.action.DisarmResponse\"\000" + "\022R\n\007Takeoff\022!.mavsdk.rpc.action.TakeoffR" + "equest\032\".mavsdk.rpc.action.TakeoffRespon" + "se\"\000\022I\n\004Land\022\036.mavsdk.rpc.action.LandReq" + "uest\032\037.mavsdk.rpc.action.LandResponse\"\000\022" + "O\n\006Reboot\022 .mavsdk.rpc.action.RebootRequ" + "est\032!.mavsdk.rpc.action.RebootResponse\"\000" + "\022U\n\010Shutdown\022\".mavsdk.rpc.action.Shutdow" + "nRequest\032#.mavsdk.rpc.action.ShutdownRes" + "ponse\"\000\022X\n\tTerminate\022#.mavsdk.rpc.action" + ".TerminateRequest\032$.mavsdk.rpc.action.Te" + "rminateResponse\"\000\022I\n\004Kill\022\036.mavsdk.rpc.a" + "ction.KillRequest\032\037.mavsdk.rpc.action.Ki" + "llResponse\"\000\022g\n\016ReturnToLaunch\022(.mavsdk." + "rpc.action.ReturnToLaunchRequest\032).mavsd" + "k.rpc.action.ReturnToLaunchResponse\"\000\022a\n" + "\014GotoLocation\022&.mavsdk.rpc.action.GotoLo" + "cationRequest\032\'.mavsdk.rpc.action.GotoLo" + "cationResponse\"\000\022R\n\007DoOrbit\022!.mavsdk.rpc" + ".action.DoOrbitRequest\032\".mavsdk.rpc.acti" + "on.DoOrbitResponse\"\000\022I\n\004Hold\022\036.mavsdk.rp" + "c.action.HoldRequest\032\037.mavsdk.rpc.action" + ".HoldResponse\"\000\022^\n\013SetActuator\022%.mavsdk." + "rpc.action.SetActuatorRequest\032&.mavsdk.r" + "pc.action.SetActuatorResponse\"\000\022|\n\025Trans" + "itionToFixedwing\022/.mavsdk.rpc.action.Tra" + "nsitionToFixedwingRequest\0320.mavsdk.rpc.a" + "ction.TransitionToFixedwingResponse\"\000\022\202\001" + "\n\027TransitionToMulticopter\0221.mavsdk.rpc.a" + "ction.TransitionToMulticopterRequest\0322.m" + "avsdk.rpc.action.TransitionToMulticopter" + "Response\"\000\022s\n\022GetTakeoffAltitude\022,.mavsd" + "k.rpc.action.GetTakeoffAltitudeRequest\032-" + ".mavsdk.rpc.action.GetTakeoffAltitudeRes" + "ponse\"\000\022s\n\022SetTakeoffAltitude\022,.mavsdk.r" + "pc.action.SetTakeoffAltitudeRequest\032-.ma" + "vsdk.rpc.action.SetTakeoffAltitudeRespon" + "se\"\000\022j\n\017GetMaximumSpeed\022).mavsdk.rpc.act" + "ion.GetMaximumSpeedRequest\032*.mavsdk.rpc." + "action.GetMaximumSpeedResponse\"\000\022j\n\017SetM" + "aximumSpeed\022).mavsdk.rpc.action.SetMaxim" + "umSpeedRequest\032*.mavsdk.rpc.action.SetMa" + "ximumSpeedResponse\"\000\022\210\001\n\031GetReturnToLaun" + "chAltitude\0223.mavsdk.rpc.action.GetReturn" + "ToLaunchAltitudeRequest\0324.mavsdk.rpc.act" + "ion.GetReturnToLaunchAltitudeResponse\"\000\022" + "\210\001\n\031SetReturnToLaunchAltitude\0223.mavsdk.r" + "pc.action.SetReturnToLaunchAltitudeReque" + "st\0324.mavsdk.rpc.action.SetReturnToLaunch" + "AltitudeResponse\"\000\022j\n\017SetCurrentSpeed\022)." + "mavsdk.rpc.action.SetCurrentSpeedRequest" + "\032*.mavsdk.rpc.action.SetCurrentSpeedResp" + "onse\"\000B\037\n\020io.mavsdk.actionB\013ActionProtob" + "\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_action_2faction_2eproto_deps[1] = + { + &::descriptor_table_mavsdk_5foptions_2eproto, +}; +static ::absl::once_flag descriptor_table_action_2faction_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_action_2faction_2eproto = { - false, false, 5807, descriptor_table_protodef_action_2faction_2eproto, + false, + false, + 5807, + descriptor_table_protodef_action_2faction_2eproto, "action/action.proto", - &descriptor_table_action_2faction_2eproto_once, descriptor_table_action_2faction_2eproto_deps, 1, 45, - schemas, file_default_instances, TableStruct_action_2faction_2eproto::offsets, - file_level_metadata_action_2faction_2eproto, file_level_enum_descriptors_action_2faction_2eproto, + &descriptor_table_action_2faction_2eproto_once, + descriptor_table_action_2faction_2eproto_deps, + 1, + 45, + schemas, + file_default_instances, + TableStruct_action_2faction_2eproto::offsets, + file_level_metadata_action_2faction_2eproto, + file_level_enum_descriptors_action_2faction_2eproto, file_level_service_descriptors_action_2faction_2eproto, }; + +// This function exists to be marked as weak. +// It can significantly speed up compilation by breaking up LLVM's SCC +// in the .pb.cc translation units. Large translation units see a +// reduction of more than 35% of walltime for optimized builds. Without +// the weak attribute all the messages in the file, including all the +// vtables and everything they use become part of the same SCC through +// a cycle like: +// GetMetadata -> descriptor table -> default instances -> +// vtables -> GetMetadata +// By adding a weak function here we break the connection from the +// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_action_2faction_2eproto_getter() { return &descriptor_table_action_2faction_2eproto; } - // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_action_2faction_2eproto(&descriptor_table_action_2faction_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_action_2faction_2eproto(&descriptor_table_action_2faction_2eproto); namespace mavsdk { namespace rpc { namespace action { @@ -1175,8 +1475,9 @@ bool ActionResult_Result_IsValid(int value) { return false; } } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ActionResult_Result ActionResult::RESULT_UNKNOWN; constexpr ActionResult_Result ActionResult::RESULT_SUCCESS; constexpr ActionResult_Result ActionResult::RESULT_NO_SYSTEM; @@ -1194,7 +1495,9 @@ constexpr ActionResult_Result ActionResult::RESULT_FAILED; constexpr ActionResult_Result ActionResult::Result_MIN; constexpr ActionResult_Result ActionResult::Result_MAX; constexpr int ActionResult::Result_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OrbitYawBehavior_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_action_2faction_2eproto); return file_level_enum_descriptors_action_2faction_2eproto[1]; @@ -1211,21 +1514,19 @@ bool OrbitYawBehavior_IsValid(int value) { return false; } } - - // =================================================================== class ArmRequest::_Internal { public: }; -ArmRequest::ArmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +ArmRequest::ArmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmRequest) } ArmRequest::ArmRequest(const ArmRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + ArmRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmRequest) } @@ -1251,37 +1552,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ArmRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[0]); } - // =================================================================== class ArmResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ArmResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const ArmResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& ArmResponse::_Internal::action_result(const ArmResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -ArmResponse::ArmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +ArmResponse::ArmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ArmResponse) } ArmResponse::ArmResponse(const ArmResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + ArmResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ArmResponse) } -inline void ArmResponse::SharedCtor() { -action_result_ = nullptr; +inline void ArmResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } ArmResponse::~ArmResponse() { @@ -1294,40 +1608,44 @@ ArmResponse::~ArmResponse() { } inline void ArmResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void ArmResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ArmResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ArmResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ArmResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1345,6 +1663,7 @@ const char* ArmResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* c CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1352,14 +1671,15 @@ const char* ArmResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* c #undef CHK_ } -uint8_t* ArmResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ArmResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ArmResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -1373,47 +1693,45 @@ uint8_t* ArmResponse::_InternalSerialize( return target; } -size_t ArmResponse::ByteSizeLong() const { +::size_t ArmResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ArmResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ArmResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ArmResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ArmResponse::GetClassData() const { return &_class_data_; } -void ArmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ArmResponse::MergeFrom(const ArmResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ArmResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ArmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ArmResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ArmResponse::CopyFrom(const ArmResponse& from) { @@ -1430,7 +1748,8 @@ bool ArmResponse::IsInitialized() const { void ArmResponse::InternalSwap(ArmResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata ArmResponse::GetMetadata() const { @@ -1438,20 +1757,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ArmResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[1]); } - // =================================================================== class DisarmRequest::_Internal { public: }; -DisarmRequest::DisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +DisarmRequest::DisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DisarmRequest) } DisarmRequest::DisarmRequest(const DisarmRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + DisarmRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DisarmRequest) } @@ -1477,37 +1795,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DisarmRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[2]); } - // =================================================================== class DisarmResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DisarmResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const DisarmResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& DisarmResponse::_Internal::action_result(const DisarmResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -DisarmResponse::DisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +DisarmResponse::DisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DisarmResponse) } DisarmResponse::DisarmResponse(const DisarmResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + DisarmResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DisarmResponse) } -inline void DisarmResponse::SharedCtor() { -action_result_ = nullptr; +inline void DisarmResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } DisarmResponse::~DisarmResponse() { @@ -1520,40 +1851,44 @@ DisarmResponse::~DisarmResponse() { } inline void DisarmResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void DisarmResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void DisarmResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DisarmResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* DisarmResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1571,6 +1906,7 @@ const char* DisarmResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1578,14 +1914,15 @@ const char* DisarmResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* DisarmResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* DisarmResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DisarmResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -1599,47 +1936,45 @@ uint8_t* DisarmResponse::_InternalSerialize( return target; } -size_t DisarmResponse::ByteSizeLong() const { +::size_t DisarmResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DisarmResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DisarmResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, DisarmResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DisarmResponse::GetClassData() const { return &_class_data_; } -void DisarmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void DisarmResponse::MergeFrom(const DisarmResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DisarmResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void DisarmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DisarmResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DisarmResponse::CopyFrom(const DisarmResponse& from) { @@ -1656,7 +1991,8 @@ bool DisarmResponse::IsInitialized() const { void DisarmResponse::InternalSwap(DisarmResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata DisarmResponse::GetMetadata() const { @@ -1664,20 +2000,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DisarmResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[3]); } - // =================================================================== class TakeoffRequest::_Internal { public: }; -TakeoffRequest::TakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +TakeoffRequest::TakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TakeoffRequest) } TakeoffRequest::TakeoffRequest(const TakeoffRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + TakeoffRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TakeoffRequest) } @@ -1703,37 +2038,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TakeoffRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[4]); } - // =================================================================== class TakeoffResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const TakeoffResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::_Internal::action_result(const TakeoffResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -TakeoffResponse::TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +TakeoffResponse::TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TakeoffResponse) } TakeoffResponse::TakeoffResponse(const TakeoffResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + TakeoffResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TakeoffResponse) } -inline void TakeoffResponse::SharedCtor() { -action_result_ = nullptr; +inline void TakeoffResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } TakeoffResponse::~TakeoffResponse() { @@ -1746,40 +2094,44 @@ TakeoffResponse::~TakeoffResponse() { } inline void TakeoffResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void TakeoffResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void TakeoffResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TakeoffResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* TakeoffResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1797,6 +2149,7 @@ const char* TakeoffResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1804,14 +2157,15 @@ const char* TakeoffResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex #undef CHK_ } -uint8_t* TakeoffResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* TakeoffResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TakeoffResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -1825,47 +2179,45 @@ uint8_t* TakeoffResponse::_InternalSerialize( return target; } -size_t TakeoffResponse::ByteSizeLong() const { +::size_t TakeoffResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TakeoffResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TakeoffResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, TakeoffResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TakeoffResponse::GetClassData() const { return &_class_data_; } -void TakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void TakeoffResponse::MergeFrom(const TakeoffResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TakeoffResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void TakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TakeoffResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TakeoffResponse::CopyFrom(const TakeoffResponse& from) { @@ -1882,7 +2234,8 @@ bool TakeoffResponse::IsInitialized() const { void TakeoffResponse::InternalSwap(TakeoffResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata TakeoffResponse::GetMetadata() const { @@ -1890,20 +2243,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TakeoffResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[5]); } - // =================================================================== class LandRequest::_Internal { public: }; -LandRequest::LandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +LandRequest::LandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.LandRequest) } LandRequest::LandRequest(const LandRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + LandRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.LandRequest) } @@ -1929,37 +2281,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata LandRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[6]); } - // =================================================================== class LandResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const LandResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& LandResponse::_Internal::action_result(const LandResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -LandResponse::LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +LandResponse::LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.LandResponse) } LandResponse::LandResponse(const LandResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + LandResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.LandResponse) } -inline void LandResponse::SharedCtor() { -action_result_ = nullptr; +inline void LandResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } LandResponse::~LandResponse() { @@ -1972,40 +2337,44 @@ LandResponse::~LandResponse() { } inline void LandResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void LandResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void LandResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.LandResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* LandResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2023,6 +2392,7 @@ const char* LandResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2030,14 +2400,15 @@ const char* LandResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* LandResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* LandResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.LandResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -2051,47 +2422,45 @@ uint8_t* LandResponse::_InternalSerialize( return target; } -size_t LandResponse::ByteSizeLong() const { +::size_t LandResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.LandResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LandResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, LandResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LandResponse::GetClassData() const { return &_class_data_; } -void LandResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void LandResponse::MergeFrom(const LandResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.LandResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void LandResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.LandResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LandResponse::CopyFrom(const LandResponse& from) { @@ -2108,7 +2477,8 @@ bool LandResponse::IsInitialized() const { void LandResponse::InternalSwap(LandResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata LandResponse::GetMetadata() const { @@ -2116,20 +2486,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata LandResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[7]); } - // =================================================================== class RebootRequest::_Internal { public: }; -RebootRequest::RebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +RebootRequest::RebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.RebootRequest) } RebootRequest::RebootRequest(const RebootRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + RebootRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.RebootRequest) } @@ -2155,37 +2524,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata RebootRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[8]); } - // =================================================================== class RebootResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const RebootResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& RebootResponse::_Internal::action_result(const RebootResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -RebootResponse::RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +RebootResponse::RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.RebootResponse) } RebootResponse::RebootResponse(const RebootResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + RebootResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.RebootResponse) } -inline void RebootResponse::SharedCtor() { -action_result_ = nullptr; +inline void RebootResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } RebootResponse::~RebootResponse() { @@ -2198,40 +2580,44 @@ RebootResponse::~RebootResponse() { } inline void RebootResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void RebootResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void RebootResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.RebootResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* RebootResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2249,6 +2635,7 @@ const char* RebootResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2256,14 +2643,15 @@ const char* RebootResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* RebootResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* RebootResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.RebootResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -2277,47 +2665,45 @@ uint8_t* RebootResponse::_InternalSerialize( return target; } -size_t RebootResponse::ByteSizeLong() const { +::size_t RebootResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.RebootResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RebootResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, RebootResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RebootResponse::GetClassData() const { return &_class_data_; } -void RebootResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void RebootResponse::MergeFrom(const RebootResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.RebootResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void RebootResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.RebootResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RebootResponse::CopyFrom(const RebootResponse& from) { @@ -2334,7 +2720,8 @@ bool RebootResponse::IsInitialized() const { void RebootResponse::InternalSwap(RebootResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata RebootResponse::GetMetadata() const { @@ -2342,20 +2729,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata RebootResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[9]); } - // =================================================================== class ShutdownRequest::_Internal { public: }; -ShutdownRequest::ShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +ShutdownRequest::ShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ShutdownRequest) } ShutdownRequest::ShutdownRequest(const ShutdownRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + ShutdownRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ShutdownRequest) } @@ -2381,37 +2767,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ShutdownRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[10]); } - // =================================================================== class ShutdownResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const ShutdownResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::_Internal::action_result(const ShutdownResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -ShutdownResponse::ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +ShutdownResponse::ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ShutdownResponse) } ShutdownResponse::ShutdownResponse(const ShutdownResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + ShutdownResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ShutdownResponse) } -inline void ShutdownResponse::SharedCtor() { -action_result_ = nullptr; +inline void ShutdownResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } ShutdownResponse::~ShutdownResponse() { @@ -2424,40 +2823,44 @@ ShutdownResponse::~ShutdownResponse() { } inline void ShutdownResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void ShutdownResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ShutdownResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ShutdownResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ShutdownResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2475,6 +2878,7 @@ const char* ShutdownResponse::_InternalParse(const char* ptr, ::_pbi::ParseConte CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2482,14 +2886,15 @@ const char* ShutdownResponse::_InternalParse(const char* ptr, ::_pbi::ParseConte #undef CHK_ } -uint8_t* ShutdownResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ShutdownResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ShutdownResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -2503,47 +2908,45 @@ uint8_t* ShutdownResponse::_InternalSerialize( return target; } -size_t ShutdownResponse::ByteSizeLong() const { +::size_t ShutdownResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ShutdownResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShutdownResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ShutdownResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShutdownResponse::GetClassData() const { return &_class_data_; } -void ShutdownResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ShutdownResponse::MergeFrom(const ShutdownResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ShutdownResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ShutdownResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ShutdownResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ShutdownResponse::CopyFrom(const ShutdownResponse& from) { @@ -2560,7 +2963,8 @@ bool ShutdownResponse::IsInitialized() const { void ShutdownResponse::InternalSwap(ShutdownResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata ShutdownResponse::GetMetadata() const { @@ -2568,20 +2972,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ShutdownResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[11]); } - // =================================================================== class TerminateRequest::_Internal { public: }; -TerminateRequest::TerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +TerminateRequest::TerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TerminateRequest) } TerminateRequest::TerminateRequest(const TerminateRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + TerminateRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TerminateRequest) } @@ -2607,37 +3010,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TerminateRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[12]); } - // =================================================================== class TerminateResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const TerminateResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& TerminateResponse::_Internal::action_result(const TerminateResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -TerminateResponse::TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +TerminateResponse::TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TerminateResponse) } TerminateResponse::TerminateResponse(const TerminateResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + TerminateResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TerminateResponse) } -inline void TerminateResponse::SharedCtor() { -action_result_ = nullptr; +inline void TerminateResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } TerminateResponse::~TerminateResponse() { @@ -2650,40 +3066,44 @@ TerminateResponse::~TerminateResponse() { } inline void TerminateResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void TerminateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void TerminateResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TerminateResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* TerminateResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2701,6 +3121,7 @@ const char* TerminateResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2708,14 +3129,15 @@ const char* TerminateResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* TerminateResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* TerminateResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TerminateResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -2729,47 +3151,45 @@ uint8_t* TerminateResponse::_InternalSerialize( return target; } -size_t TerminateResponse::ByteSizeLong() const { +::size_t TerminateResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TerminateResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TerminateResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, TerminateResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TerminateResponse::GetClassData() const { return &_class_data_; } -void TerminateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void TerminateResponse::MergeFrom(const TerminateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TerminateResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void TerminateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TerminateResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TerminateResponse::CopyFrom(const TerminateResponse& from) { @@ -2786,7 +3206,8 @@ bool TerminateResponse::IsInitialized() const { void TerminateResponse::InternalSwap(TerminateResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata TerminateResponse::GetMetadata() const { @@ -2794,20 +3215,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TerminateResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[13]); } - // =================================================================== class KillRequest::_Internal { public: }; -KillRequest::KillRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +KillRequest::KillRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.KillRequest) } KillRequest::KillRequest(const KillRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + KillRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.KillRequest) } @@ -2833,37 +3253,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata KillRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[14]); } - // =================================================================== class KillResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(KillResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const KillResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& KillResponse::_Internal::action_result(const KillResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -KillResponse::KillResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +KillResponse::KillResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.KillResponse) } KillResponse::KillResponse(const KillResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + KillResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.KillResponse) } -inline void KillResponse::SharedCtor() { -action_result_ = nullptr; +inline void KillResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } KillResponse::~KillResponse() { @@ -2876,40 +3309,44 @@ KillResponse::~KillResponse() { } inline void KillResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void KillResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void KillResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.KillResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* KillResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2927,6 +3364,7 @@ const char* KillResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2934,14 +3372,15 @@ const char* KillResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* KillResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* KillResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.KillResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -2955,47 +3394,45 @@ uint8_t* KillResponse::_InternalSerialize( return target; } -size_t KillResponse::ByteSizeLong() const { +::size_t KillResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.KillResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData KillResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, KillResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*KillResponse::GetClassData() const { return &_class_data_; } -void KillResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void KillResponse::MergeFrom(const KillResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.KillResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void KillResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.KillResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void KillResponse::CopyFrom(const KillResponse& from) { @@ -3012,7 +3449,8 @@ bool KillResponse::IsInitialized() const { void KillResponse::InternalSwap(KillResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata KillResponse::GetMetadata() const { @@ -3020,20 +3458,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata KillResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[15]); } - // =================================================================== class ReturnToLaunchRequest::_Internal { public: }; -ReturnToLaunchRequest::ReturnToLaunchRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +ReturnToLaunchRequest::ReturnToLaunchRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ReturnToLaunchRequest) } ReturnToLaunchRequest::ReturnToLaunchRequest(const ReturnToLaunchRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + ReturnToLaunchRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ReturnToLaunchRequest) } @@ -3059,37 +3496,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ReturnToLaunchRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[16]); } - // =================================================================== class ReturnToLaunchResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ReturnToLaunchResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const ReturnToLaunchResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& ReturnToLaunchResponse::_Internal::action_result(const ReturnToLaunchResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -ReturnToLaunchResponse::ReturnToLaunchResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +ReturnToLaunchResponse::ReturnToLaunchResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ReturnToLaunchResponse) } ReturnToLaunchResponse::ReturnToLaunchResponse(const ReturnToLaunchResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + ReturnToLaunchResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ReturnToLaunchResponse) } -inline void ReturnToLaunchResponse::SharedCtor() { -action_result_ = nullptr; +inline void ReturnToLaunchResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } ReturnToLaunchResponse::~ReturnToLaunchResponse() { @@ -3102,40 +3552,44 @@ ReturnToLaunchResponse::~ReturnToLaunchResponse() { } inline void ReturnToLaunchResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void ReturnToLaunchResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ReturnToLaunchResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ReturnToLaunchResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ReturnToLaunchResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3153,6 +3607,7 @@ const char* ReturnToLaunchResponse::_InternalParse(const char* ptr, ::_pbi::Pars CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -3160,14 +3615,15 @@ const char* ReturnToLaunchResponse::_InternalParse(const char* ptr, ::_pbi::Pars #undef CHK_ } -uint8_t* ReturnToLaunchResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ReturnToLaunchResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ReturnToLaunchResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -3181,47 +3637,45 @@ uint8_t* ReturnToLaunchResponse::_InternalSerialize( return target; } -size_t ReturnToLaunchResponse::ByteSizeLong() const { +::size_t ReturnToLaunchResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ReturnToLaunchResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ReturnToLaunchResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ReturnToLaunchResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ReturnToLaunchResponse::GetClassData() const { return &_class_data_; } -void ReturnToLaunchResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ReturnToLaunchResponse::MergeFrom(const ReturnToLaunchResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ReturnToLaunchResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ReturnToLaunchResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ReturnToLaunchResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ReturnToLaunchResponse::CopyFrom(const ReturnToLaunchResponse& from) { @@ -3238,7 +3692,8 @@ bool ReturnToLaunchResponse::IsInitialized() const { void ReturnToLaunchResponse::InternalSwap(ReturnToLaunchResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata ReturnToLaunchResponse::GetMetadata() const { @@ -3246,33 +3701,37 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ReturnToLaunchResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[17]); } - // =================================================================== class GotoLocationRequest::_Internal { public: }; -GotoLocationRequest::GotoLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +GotoLocationRequest::GotoLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GotoLocationRequest) } GotoLocationRequest::GotoLocationRequest(const GotoLocationRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&latitude_deg_, &from.latitude_deg_, - static_cast(reinterpret_cast(&yaw_deg_) - - reinterpret_cast(&latitude_deg_)) + sizeof(yaw_deg_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GotoLocationRequest) } -inline void GotoLocationRequest::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&latitude_deg_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&yaw_deg_) - - reinterpret_cast(&latitude_deg_)) + sizeof(yaw_deg_)); +inline void GotoLocationRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.latitude_deg_) { 0 } + + , decltype(_impl_.longitude_deg_) { 0 } + + , decltype(_impl_.absolute_altitude_m_) { 0 } + + , decltype(_impl_.yaw_deg_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } GotoLocationRequest::~GotoLocationRequest() { @@ -3285,62 +3744,66 @@ GotoLocationRequest::~GotoLocationRequest() { } inline void GotoLocationRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void GotoLocationRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GotoLocationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GotoLocationRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&latitude_deg_, 0, static_cast( - reinterpret_cast(&yaw_deg_) - - reinterpret_cast(&latitude_deg_)) + sizeof(yaw_deg_)); + ::memset(&_impl_.latitude_deg_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.yaw_deg_) - + reinterpret_cast(&_impl_.latitude_deg_)) + sizeof(_impl_.yaw_deg_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GotoLocationRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // double latitude_deg = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { - latitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 9)) { + _impl_.latitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); - } else + } else { goto handle_unusual; + } continue; // double longitude_deg = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { - longitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 17)) { + _impl_.longitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); - } else + } else { goto handle_unusual; + } continue; // float absolute_altitude_m = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - absolute_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) { + _impl_.absolute_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // float yaw_deg = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - yaw_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) { + _impl_.yaw_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3365,50 +3828,54 @@ const char* GotoLocationRequest::_InternalParse(const char* ptr, ::_pbi::ParseCo #undef CHK_ } -uint8_t* GotoLocationRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* GotoLocationRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GotoLocationRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // double latitude_deg = 1; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_latitude_deg = this->_internal_latitude_deg(); - uint64_t raw_latitude_deg; + ::uint64_t raw_latitude_deg; memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); if (raw_latitude_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_latitude_deg(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 1, this->_internal_latitude_deg(), target); } // double longitude_deg = 2; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_longitude_deg = this->_internal_longitude_deg(); - uint64_t raw_longitude_deg; + ::uint64_t raw_longitude_deg; memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); if (raw_longitude_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_longitude_deg(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this->_internal_longitude_deg(), target); } // float absolute_altitude_m = 3; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - uint32_t raw_absolute_altitude_m; + ::uint32_t raw_absolute_altitude_m; memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); if (raw_absolute_altitude_m != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_absolute_altitude_m(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this->_internal_absolute_altitude_m(), target); } // float yaw_deg = 4; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_yaw_deg = this->_internal_yaw_deg(); - uint32_t raw_yaw_deg; + ::uint32_t raw_yaw_deg; memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); if (raw_yaw_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_yaw_deg(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this->_internal_yaw_deg(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3419,101 +3886,97 @@ uint8_t* GotoLocationRequest::_InternalSerialize( return target; } -size_t GotoLocationRequest::ByteSizeLong() const { +::size_t GotoLocationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GotoLocationRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double latitude_deg = 1; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_latitude_deg = this->_internal_latitude_deg(); - uint64_t raw_latitude_deg; + ::uint64_t raw_latitude_deg; memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); if (raw_latitude_deg != 0) { - total_size += 1 + 8; + total_size += 9; } // double longitude_deg = 2; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_longitude_deg = this->_internal_longitude_deg(); - uint64_t raw_longitude_deg; + ::uint64_t raw_longitude_deg; memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); if (raw_longitude_deg != 0) { - total_size += 1 + 8; + total_size += 9; } // float absolute_altitude_m = 3; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - uint32_t raw_absolute_altitude_m; + ::uint32_t raw_absolute_altitude_m; memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); if (raw_absolute_altitude_m != 0) { - total_size += 1 + 4; + total_size += 5; } // float yaw_deg = 4; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_yaw_deg = this->_internal_yaw_deg(); - uint32_t raw_yaw_deg; + ::uint32_t raw_yaw_deg; memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); if (raw_yaw_deg != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GotoLocationRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, GotoLocationRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GotoLocationRequest::GetClassData() const { return &_class_data_; } -void GotoLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void GotoLocationRequest::MergeFrom(const GotoLocationRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GotoLocationRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void GotoLocationRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GotoLocationRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_latitude_deg = from._internal_latitude_deg(); - uint64_t raw_latitude_deg; + ::uint64_t raw_latitude_deg; memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); if (raw_latitude_deg != 0) { - _internal_set_latitude_deg(from._internal_latitude_deg()); + _this->_internal_set_latitude_deg(from._internal_latitude_deg()); } - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_longitude_deg = from._internal_longitude_deg(); - uint64_t raw_longitude_deg; + ::uint64_t raw_longitude_deg; memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); if (raw_longitude_deg != 0) { - _internal_set_longitude_deg(from._internal_longitude_deg()); + _this->_internal_set_longitude_deg(from._internal_longitude_deg()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_absolute_altitude_m = from._internal_absolute_altitude_m(); - uint32_t raw_absolute_altitude_m; + ::uint32_t raw_absolute_altitude_m; memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); if (raw_absolute_altitude_m != 0) { - _internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); + _this->_internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_yaw_deg = from._internal_yaw_deg(); - uint32_t raw_yaw_deg; + ::uint32_t raw_yaw_deg; memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); if (raw_yaw_deg != 0) { - _internal_set_yaw_deg(from._internal_yaw_deg()); + _this->_internal_set_yaw_deg(from._internal_yaw_deg()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GotoLocationRequest::CopyFrom(const GotoLocationRequest& from) { @@ -3531,11 +3994,11 @@ void GotoLocationRequest::InternalSwap(GotoLocationRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(GotoLocationRequest, yaw_deg_) - + sizeof(GotoLocationRequest::yaw_deg_) - - PROTOBUF_FIELD_OFFSET(GotoLocationRequest, latitude_deg_)>( - reinterpret_cast(&latitude_deg_), - reinterpret_cast(&other->latitude_deg_)); + PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.yaw_deg_) + + sizeof(GotoLocationRequest::_impl_.yaw_deg_) + - PROTOBUF_FIELD_OFFSET(GotoLocationRequest, _impl_.latitude_deg_)>( + reinterpret_cast(&_impl_.latitude_deg_), + reinterpret_cast(&other->_impl_.latitude_deg_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GotoLocationRequest::GetMetadata() const { @@ -3543,37 +4006,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GotoLocationRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[18]); } - // =================================================================== class GotoLocationResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GotoLocationResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const GotoLocationResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& GotoLocationResponse::_Internal::action_result(const GotoLocationResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -GotoLocationResponse::GotoLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +GotoLocationResponse::GotoLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GotoLocationResponse) } GotoLocationResponse::GotoLocationResponse(const GotoLocationResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + GotoLocationResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GotoLocationResponse) } -inline void GotoLocationResponse::SharedCtor() { -action_result_ = nullptr; +inline void GotoLocationResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } GotoLocationResponse::~GotoLocationResponse() { @@ -3586,40 +4062,44 @@ GotoLocationResponse::~GotoLocationResponse() { } inline void GotoLocationResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void GotoLocationResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GotoLocationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GotoLocationResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GotoLocationResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3637,6 +4117,7 @@ const char* GotoLocationResponse::_InternalParse(const char* ptr, ::_pbi::ParseC CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -3644,14 +4125,15 @@ const char* GotoLocationResponse::_InternalParse(const char* ptr, ::_pbi::ParseC #undef CHK_ } -uint8_t* GotoLocationResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* GotoLocationResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GotoLocationResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -3665,47 +4147,45 @@ uint8_t* GotoLocationResponse::_InternalSerialize( return target; } -size_t GotoLocationResponse::ByteSizeLong() const { +::size_t GotoLocationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GotoLocationResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GotoLocationResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, GotoLocationResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GotoLocationResponse::GetClassData() const { return &_class_data_; } -void GotoLocationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void GotoLocationResponse::MergeFrom(const GotoLocationResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GotoLocationResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void GotoLocationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GotoLocationResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GotoLocationResponse::CopyFrom(const GotoLocationResponse& from) { @@ -3722,7 +4202,8 @@ bool GotoLocationResponse::IsInitialized() const { void GotoLocationResponse::InternalSwap(GotoLocationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata GotoLocationResponse::GetMetadata() const { @@ -3730,33 +4211,41 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GotoLocationResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[19]); } - // =================================================================== class DoOrbitRequest::_Internal { public: }; -DoOrbitRequest::DoOrbitRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +DoOrbitRequest::DoOrbitRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DoOrbitRequest) } DoOrbitRequest::DoOrbitRequest(const DoOrbitRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&radius_m_, &from.radius_m_, - static_cast(reinterpret_cast(&yaw_behavior_) - - reinterpret_cast(&radius_m_)) + sizeof(yaw_behavior_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DoOrbitRequest) } -inline void DoOrbitRequest::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&radius_m_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&yaw_behavior_) - - reinterpret_cast(&radius_m_)) + sizeof(yaw_behavior_)); +inline void DoOrbitRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.radius_m_) { 0 } + + , decltype(_impl_.velocity_ms_) { 0 } + + , decltype(_impl_.latitude_deg_) { 0 } + + , decltype(_impl_.longitude_deg_) { 0 } + + , decltype(_impl_.absolute_altitude_m_) { 0 } + + , decltype(_impl_.yaw_behavior_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } DoOrbitRequest::~DoOrbitRequest() { @@ -3769,79 +4258,85 @@ DoOrbitRequest::~DoOrbitRequest() { } inline void DoOrbitRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void DoOrbitRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void DoOrbitRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DoOrbitRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&radius_m_, 0, static_cast( - reinterpret_cast(&yaw_behavior_) - - reinterpret_cast(&radius_m_)) + sizeof(yaw_behavior_)); + ::memset(&_impl_.radius_m_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.yaw_behavior_) - + reinterpret_cast(&_impl_.radius_m_)) + sizeof(_impl_.yaw_behavior_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* DoOrbitRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // float radius_m = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - radius_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { + _impl_.radius_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // float velocity_ms = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - velocity_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { + _impl_.velocity_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_yaw_behavior(static_cast<::mavsdk::rpc::action::OrbitYawBehavior>(val)); - } else + } else { goto handle_unusual; + } continue; // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { - latitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 41)) { + _impl_.latitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); - } else + } else { goto handle_unusual; + } continue; // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 49)) { - longitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 49)) { + _impl_.longitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); - } else + } else { goto handle_unusual; + } continue; // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 57)) { - absolute_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 57)) { + _impl_.absolute_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3866,67 +4361,72 @@ const char* DoOrbitRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* DoOrbitRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* DoOrbitRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DoOrbitRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // float radius_m = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_radius_m = this->_internal_radius_m(); - uint32_t raw_radius_m; + ::uint32_t raw_radius_m; memcpy(&raw_radius_m, &tmp_radius_m, sizeof(tmp_radius_m)); if (raw_radius_m != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_radius_m(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this->_internal_radius_m(), target); } // float velocity_ms = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_velocity_ms = this->_internal_velocity_ms(); - uint32_t raw_velocity_ms; + ::uint32_t raw_velocity_ms; memcpy(&raw_velocity_ms, &tmp_velocity_ms, sizeof(tmp_velocity_ms)); if (raw_velocity_ms != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_velocity_ms(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this->_internal_velocity_ms(), target); } // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; if (this->_internal_yaw_behavior() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_yaw_behavior(), target); + 3, this->_internal_yaw_behavior(), target); } // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_latitude_deg = this->_internal_latitude_deg(); - uint64_t raw_latitude_deg; + ::uint64_t raw_latitude_deg; memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); if (raw_latitude_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_latitude_deg(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 5, this->_internal_latitude_deg(), target); } // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_longitude_deg = this->_internal_longitude_deg(); - uint64_t raw_longitude_deg; + ::uint64_t raw_longitude_deg; memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); if (raw_longitude_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_longitude_deg(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 6, this->_internal_longitude_deg(), target); } // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - uint64_t raw_absolute_altitude_m; + ::uint64_t raw_absolute_altitude_m; memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); if (raw_absolute_altitude_m != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(7, this->_internal_absolute_altitude_m(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 7, this->_internal_absolute_altitude_m(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3937,126 +4437,122 @@ uint8_t* DoOrbitRequest::_InternalSerialize( return target; } -size_t DoOrbitRequest::ByteSizeLong() const { +::size_t DoOrbitRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DoOrbitRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float radius_m = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_radius_m = this->_internal_radius_m(); - uint32_t raw_radius_m; + ::uint32_t raw_radius_m; memcpy(&raw_radius_m, &tmp_radius_m, sizeof(tmp_radius_m)); if (raw_radius_m != 0) { - total_size += 1 + 4; + total_size += 5; } // float velocity_ms = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_velocity_ms = this->_internal_velocity_ms(); - uint32_t raw_velocity_ms; + ::uint32_t raw_velocity_ms; memcpy(&raw_velocity_ms, &tmp_velocity_ms, sizeof(tmp_velocity_ms)); if (raw_velocity_ms != 0) { - total_size += 1 + 4; + total_size += 5; } // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_latitude_deg = this->_internal_latitude_deg(); - uint64_t raw_latitude_deg; + ::uint64_t raw_latitude_deg; memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); if (raw_latitude_deg != 0) { - total_size += 1 + 8; + total_size += 9; } // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_longitude_deg = this->_internal_longitude_deg(); - uint64_t raw_longitude_deg; + ::uint64_t raw_longitude_deg; memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); if (raw_longitude_deg != 0) { - total_size += 1 + 8; + total_size += 9; } // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - uint64_t raw_absolute_altitude_m; + ::uint64_t raw_absolute_altitude_m; memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); if (raw_absolute_altitude_m != 0) { - total_size += 1 + 8; + total_size += 9; } // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; if (this->_internal_yaw_behavior() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_yaw_behavior()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_yaw_behavior()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DoOrbitRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, DoOrbitRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DoOrbitRequest::GetClassData() const { return &_class_data_; } -void DoOrbitRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void DoOrbitRequest::MergeFrom(const DoOrbitRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DoOrbitRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void DoOrbitRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DoOrbitRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_radius_m = from._internal_radius_m(); - uint32_t raw_radius_m; + ::uint32_t raw_radius_m; memcpy(&raw_radius_m, &tmp_radius_m, sizeof(tmp_radius_m)); if (raw_radius_m != 0) { - _internal_set_radius_m(from._internal_radius_m()); + _this->_internal_set_radius_m(from._internal_radius_m()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_velocity_ms = from._internal_velocity_ms(); - uint32_t raw_velocity_ms; + ::uint32_t raw_velocity_ms; memcpy(&raw_velocity_ms, &tmp_velocity_ms, sizeof(tmp_velocity_ms)); if (raw_velocity_ms != 0) { - _internal_set_velocity_ms(from._internal_velocity_ms()); + _this->_internal_set_velocity_ms(from._internal_velocity_ms()); } - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_latitude_deg = from._internal_latitude_deg(); - uint64_t raw_latitude_deg; + ::uint64_t raw_latitude_deg; memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); if (raw_latitude_deg != 0) { - _internal_set_latitude_deg(from._internal_latitude_deg()); + _this->_internal_set_latitude_deg(from._internal_latitude_deg()); } - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_longitude_deg = from._internal_longitude_deg(); - uint64_t raw_longitude_deg; + ::uint64_t raw_longitude_deg; memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); if (raw_longitude_deg != 0) { - _internal_set_longitude_deg(from._internal_longitude_deg()); + _this->_internal_set_longitude_deg(from._internal_longitude_deg()); } - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_absolute_altitude_m = from._internal_absolute_altitude_m(); - uint64_t raw_absolute_altitude_m; + ::uint64_t raw_absolute_altitude_m; memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); if (raw_absolute_altitude_m != 0) { - _internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); + _this->_internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); } if (from._internal_yaw_behavior() != 0) { - _internal_set_yaw_behavior(from._internal_yaw_behavior()); + _this->_internal_set_yaw_behavior(from._internal_yaw_behavior()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DoOrbitRequest::CopyFrom(const DoOrbitRequest& from) { @@ -4074,11 +4570,11 @@ void DoOrbitRequest::InternalSwap(DoOrbitRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(DoOrbitRequest, yaw_behavior_) - + sizeof(DoOrbitRequest::yaw_behavior_) - - PROTOBUF_FIELD_OFFSET(DoOrbitRequest, radius_m_)>( - reinterpret_cast(&radius_m_), - reinterpret_cast(&other->radius_m_)); + PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.yaw_behavior_) + + sizeof(DoOrbitRequest::_impl_.yaw_behavior_) + - PROTOBUF_FIELD_OFFSET(DoOrbitRequest, _impl_.radius_m_)>( + reinterpret_cast(&_impl_.radius_m_), + reinterpret_cast(&other->_impl_.radius_m_)); } ::PROTOBUF_NAMESPACE_ID::Metadata DoOrbitRequest::GetMetadata() const { @@ -4086,37 +4582,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DoOrbitRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[20]); } - // =================================================================== class DoOrbitResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(DoOrbitResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const DoOrbitResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::_Internal::action_result(const DoOrbitResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -DoOrbitResponse::DoOrbitResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +DoOrbitResponse::DoOrbitResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.DoOrbitResponse) } DoOrbitResponse::DoOrbitResponse(const DoOrbitResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + DoOrbitResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.DoOrbitResponse) } -inline void DoOrbitResponse::SharedCtor() { -action_result_ = nullptr; +inline void DoOrbitResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } DoOrbitResponse::~DoOrbitResponse() { @@ -4129,40 +4638,44 @@ DoOrbitResponse::~DoOrbitResponse() { } inline void DoOrbitResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void DoOrbitResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void DoOrbitResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.DoOrbitResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* DoOrbitResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4180,6 +4693,7 @@ const char* DoOrbitResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -4187,14 +4701,15 @@ const char* DoOrbitResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex #undef CHK_ } -uint8_t* DoOrbitResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* DoOrbitResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.DoOrbitResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -4208,47 +4723,45 @@ uint8_t* DoOrbitResponse::_InternalSerialize( return target; } -size_t DoOrbitResponse::ByteSizeLong() const { +::size_t DoOrbitResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.DoOrbitResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DoOrbitResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, DoOrbitResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DoOrbitResponse::GetClassData() const { return &_class_data_; } -void DoOrbitResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void DoOrbitResponse::MergeFrom(const DoOrbitResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DoOrbitResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void DoOrbitResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.DoOrbitResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DoOrbitResponse::CopyFrom(const DoOrbitResponse& from) { @@ -4265,7 +4778,8 @@ bool DoOrbitResponse::IsInitialized() const { void DoOrbitResponse::InternalSwap(DoOrbitResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata DoOrbitResponse::GetMetadata() const { @@ -4273,20 +4787,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DoOrbitResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[21]); } - // =================================================================== class HoldRequest::_Internal { public: }; -HoldRequest::HoldRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +HoldRequest::HoldRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.HoldRequest) } HoldRequest::HoldRequest(const HoldRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + HoldRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.HoldRequest) } @@ -4312,37 +4825,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata HoldRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[22]); } - // =================================================================== class HoldResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(HoldResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const HoldResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& HoldResponse::_Internal::action_result(const HoldResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -HoldResponse::HoldResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +HoldResponse::HoldResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.HoldResponse) } HoldResponse::HoldResponse(const HoldResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + HoldResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.HoldResponse) } -inline void HoldResponse::SharedCtor() { -action_result_ = nullptr; +inline void HoldResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } HoldResponse::~HoldResponse() { @@ -4355,40 +4881,44 @@ HoldResponse::~HoldResponse() { } inline void HoldResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void HoldResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HoldResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.HoldResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HoldResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4406,6 +4936,7 @@ const char* HoldResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -4413,14 +4944,15 @@ const char* HoldResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* HoldResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* HoldResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.HoldResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -4434,47 +4966,45 @@ uint8_t* HoldResponse::_InternalSerialize( return target; } -size_t HoldResponse::ByteSizeLong() const { +::size_t HoldResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.HoldResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HoldResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HoldResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HoldResponse::GetClassData() const { return &_class_data_; } -void HoldResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void HoldResponse::MergeFrom(const HoldResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.HoldResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void HoldResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.HoldResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HoldResponse::CopyFrom(const HoldResponse& from) { @@ -4491,7 +5021,8 @@ bool HoldResponse::IsInitialized() const { void HoldResponse::InternalSwap(HoldResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata HoldResponse::GetMetadata() const { @@ -4499,33 +5030,33 @@ ::PROTOBUF_NAMESPACE_ID::Metadata HoldResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[23]); } - // =================================================================== class SetActuatorRequest::_Internal { public: }; -SetActuatorRequest::SetActuatorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetActuatorRequest::SetActuatorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetActuatorRequest) } SetActuatorRequest::SetActuatorRequest(const SetActuatorRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&index_, &from.index_, - static_cast(reinterpret_cast(&value_) - - reinterpret_cast(&index_)) + sizeof(value_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetActuatorRequest) } -inline void SetActuatorRequest::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&index_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&value_) - - reinterpret_cast(&index_)) + sizeof(value_)); +inline void SetActuatorRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.index_) { 0 } + + , decltype(_impl_.value_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } SetActuatorRequest::~SetActuatorRequest() { @@ -4538,46 +5069,48 @@ SetActuatorRequest::~SetActuatorRequest() { } inline void SetActuatorRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void SetActuatorRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetActuatorRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetActuatorRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&index_, 0, static_cast( - reinterpret_cast(&value_) - - reinterpret_cast(&index_)) + sizeof(value_)); + ::memset(&_impl_.index_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.value_) - + reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.value_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetActuatorRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 index = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else + } 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4602,26 +5135,28 @@ const char* SetActuatorRequest::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* SetActuatorRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetActuatorRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetActuatorRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 index = 1; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_index(), target); } // float value = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_value = this->_internal_value(); - uint32_t raw_value; + ::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); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this->_internal_value(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4632,61 +5167,58 @@ uint8_t* SetActuatorRequest::_InternalSerialize( return target; } -size_t SetActuatorRequest::ByteSizeLong() const { +::size_t SetActuatorRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetActuatorRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 index = 1; if (this->_internal_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_index()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_index()); } // float value = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + 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; + ::uint32_t raw_value; memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); if (raw_value != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetActuatorRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetActuatorRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetActuatorRequest::GetClassData() const { return &_class_data_; } -void SetActuatorRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetActuatorRequest::MergeFrom(const SetActuatorRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetActuatorRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetActuatorRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetActuatorRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_index() != 0) { - _internal_set_index(from._internal_index()); + _this->_internal_set_index(from._internal_index()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_value = from._internal_value(); - uint32_t raw_value; + ::uint32_t raw_value; memcpy(&raw_value, &tmp_value, sizeof(tmp_value)); if (raw_value != 0) { - _internal_set_value(from._internal_value()); + _this->_internal_set_value(from._internal_value()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetActuatorRequest::CopyFrom(const SetActuatorRequest& from) { @@ -4704,11 +5236,11 @@ void SetActuatorRequest::InternalSwap(SetActuatorRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetActuatorRequest, value_) - + sizeof(SetActuatorRequest::value_) - - PROTOBUF_FIELD_OFFSET(SetActuatorRequest, index_)>( - reinterpret_cast(&index_), - reinterpret_cast(&other->index_)); + PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.value_) + + sizeof(SetActuatorRequest::_impl_.value_) + - PROTOBUF_FIELD_OFFSET(SetActuatorRequest, _impl_.index_)>( + reinterpret_cast(&_impl_.index_), + reinterpret_cast(&other->_impl_.index_)); } ::PROTOBUF_NAMESPACE_ID::Metadata SetActuatorRequest::GetMetadata() const { @@ -4716,37 +5248,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetActuatorRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[24]); } - // =================================================================== class SetActuatorResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetActuatorResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const SetActuatorResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& SetActuatorResponse::_Internal::action_result(const SetActuatorResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -SetActuatorResponse::SetActuatorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetActuatorResponse::SetActuatorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetActuatorResponse) } SetActuatorResponse::SetActuatorResponse(const SetActuatorResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetActuatorResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetActuatorResponse) } -inline void SetActuatorResponse::SharedCtor() { -action_result_ = nullptr; +inline void SetActuatorResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } SetActuatorResponse::~SetActuatorResponse() { @@ -4759,40 +5304,44 @@ SetActuatorResponse::~SetActuatorResponse() { } inline void SetActuatorResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void SetActuatorResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetActuatorResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetActuatorResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetActuatorResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4810,6 +5359,7 @@ const char* SetActuatorResponse::_InternalParse(const char* ptr, ::_pbi::ParseCo CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -4817,14 +5367,15 @@ const char* SetActuatorResponse::_InternalParse(const char* ptr, ::_pbi::ParseCo #undef CHK_ } -uint8_t* SetActuatorResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetActuatorResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetActuatorResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -4838,47 +5389,45 @@ uint8_t* SetActuatorResponse::_InternalSerialize( return target; } -size_t SetActuatorResponse::ByteSizeLong() const { +::size_t SetActuatorResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetActuatorResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetActuatorResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetActuatorResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetActuatorResponse::GetClassData() const { return &_class_data_; } -void SetActuatorResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetActuatorResponse::MergeFrom(const SetActuatorResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetActuatorResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetActuatorResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetActuatorResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetActuatorResponse::CopyFrom(const SetActuatorResponse& from) { @@ -4895,7 +5444,8 @@ bool SetActuatorResponse::IsInitialized() const { void SetActuatorResponse::InternalSwap(SetActuatorResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetActuatorResponse::GetMetadata() const { @@ -4903,20 +5453,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetActuatorResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[25]); } - // =================================================================== class TransitionToFixedwingRequest::_Internal { public: }; -TransitionToFixedwingRequest::TransitionToFixedwingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +TransitionToFixedwingRequest::TransitionToFixedwingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToFixedwingRequest) } TransitionToFixedwingRequest::TransitionToFixedwingRequest(const TransitionToFixedwingRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + TransitionToFixedwingRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToFixedwingRequest) } @@ -4942,37 +5491,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TransitionToFixedwingRequest::GetMetadata() co &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[26]); } - // =================================================================== class TransitionToFixedwingResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TransitionToFixedwingResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const TransitionToFixedwingResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& TransitionToFixedwingResponse::_Internal::action_result(const TransitionToFixedwingResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -TransitionToFixedwingResponse::TransitionToFixedwingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +TransitionToFixedwingResponse::TransitionToFixedwingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToFixedwingResponse) } TransitionToFixedwingResponse::TransitionToFixedwingResponse(const TransitionToFixedwingResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + TransitionToFixedwingResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToFixedwingResponse) } -inline void TransitionToFixedwingResponse::SharedCtor() { -action_result_ = nullptr; +inline void TransitionToFixedwingResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } TransitionToFixedwingResponse::~TransitionToFixedwingResponse() { @@ -4985,40 +5547,44 @@ TransitionToFixedwingResponse::~TransitionToFixedwingResponse() { } inline void TransitionToFixedwingResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void TransitionToFixedwingResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void TransitionToFixedwingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* TransitionToFixedwingResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -5036,6 +5602,7 @@ const char* TransitionToFixedwingResponse::_InternalParse(const char* ptr, ::_pb CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -5043,14 +5610,15 @@ const char* TransitionToFixedwingResponse::_InternalParse(const char* ptr, ::_pb #undef CHK_ } -uint8_t* TransitionToFixedwingResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* TransitionToFixedwingResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -5064,47 +5632,45 @@ uint8_t* TransitionToFixedwingResponse::_InternalSerialize( return target; } -size_t TransitionToFixedwingResponse::ByteSizeLong() const { +::size_t TransitionToFixedwingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransitionToFixedwingResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, TransitionToFixedwingResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransitionToFixedwingResponse::GetClassData() const { return &_class_data_; } -void TransitionToFixedwingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void TransitionToFixedwingResponse::MergeFrom(const TransitionToFixedwingResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TransitionToFixedwingResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void TransitionToFixedwingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TransitionToFixedwingResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TransitionToFixedwingResponse::CopyFrom(const TransitionToFixedwingResponse& from) { @@ -5121,7 +5687,8 @@ bool TransitionToFixedwingResponse::IsInitialized() const { void TransitionToFixedwingResponse::InternalSwap(TransitionToFixedwingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata TransitionToFixedwingResponse::GetMetadata() const { @@ -5129,20 +5696,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TransitionToFixedwingResponse::GetMetadata() c &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[27]); } - // =================================================================== class TransitionToMulticopterRequest::_Internal { public: }; -TransitionToMulticopterRequest::TransitionToMulticopterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +TransitionToMulticopterRequest::TransitionToMulticopterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToMulticopterRequest) } TransitionToMulticopterRequest::TransitionToMulticopterRequest(const TransitionToMulticopterRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + TransitionToMulticopterRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToMulticopterRequest) } @@ -5168,37 +5734,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TransitionToMulticopterRequest::GetMetadata() &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[28]); } - // =================================================================== class TransitionToMulticopterResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TransitionToMulticopterResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const TransitionToMulticopterResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& TransitionToMulticopterResponse::_Internal::action_result(const TransitionToMulticopterResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -TransitionToMulticopterResponse::TransitionToMulticopterResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +TransitionToMulticopterResponse::TransitionToMulticopterResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.TransitionToMulticopterResponse) } TransitionToMulticopterResponse::TransitionToMulticopterResponse(const TransitionToMulticopterResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + TransitionToMulticopterResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.TransitionToMulticopterResponse) } -inline void TransitionToMulticopterResponse::SharedCtor() { -action_result_ = nullptr; +inline void TransitionToMulticopterResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } TransitionToMulticopterResponse::~TransitionToMulticopterResponse() { @@ -5211,40 +5790,44 @@ TransitionToMulticopterResponse::~TransitionToMulticopterResponse() { } inline void TransitionToMulticopterResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void TransitionToMulticopterResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void TransitionToMulticopterResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* TransitionToMulticopterResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -5262,6 +5845,7 @@ const char* TransitionToMulticopterResponse::_InternalParse(const char* ptr, ::_ CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -5269,14 +5853,15 @@ const char* TransitionToMulticopterResponse::_InternalParse(const char* ptr, ::_ #undef CHK_ } -uint8_t* TransitionToMulticopterResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* TransitionToMulticopterResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -5290,47 +5875,45 @@ uint8_t* TransitionToMulticopterResponse::_InternalSerialize( return target; } -size_t TransitionToMulticopterResponse::ByteSizeLong() const { +::size_t TransitionToMulticopterResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TransitionToMulticopterResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, TransitionToMulticopterResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TransitionToMulticopterResponse::GetClassData() const { return &_class_data_; } -void TransitionToMulticopterResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void TransitionToMulticopterResponse::MergeFrom(const TransitionToMulticopterResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TransitionToMulticopterResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void TransitionToMulticopterResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.TransitionToMulticopterResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TransitionToMulticopterResponse::CopyFrom(const TransitionToMulticopterResponse& from) { @@ -5347,7 +5930,8 @@ bool TransitionToMulticopterResponse::IsInitialized() const { void TransitionToMulticopterResponse::InternalSwap(TransitionToMulticopterResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata TransitionToMulticopterResponse::GetMetadata() const { @@ -5355,20 +5939,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TransitionToMulticopterResponse::GetMetadata() &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[29]); } - // =================================================================== class GetTakeoffAltitudeRequest::_Internal { public: }; -GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetTakeoffAltitudeRequest) } GetTakeoffAltitudeRequest::GetTakeoffAltitudeRequest(const GetTakeoffAltitudeRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + GetTakeoffAltitudeRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetTakeoffAltitudeRequest) } @@ -5394,41 +5977,55 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetTakeoffAltitudeRequest::GetMetadata() const &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[30]); } - // =================================================================== class GetTakeoffAltitudeResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const GetTakeoffAltitudeResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& GetTakeoffAltitudeResponse::_Internal::action_result(const GetTakeoffAltitudeResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) } GetTakeoffAltitudeResponse::GetTakeoffAltitudeResponse(const GetTakeoffAltitudeResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + GetTakeoffAltitudeResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + , decltype(_impl_.altitude_) {} + }; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } - altitude_ = from.altitude_; + _this->_impl_.altitude_ = from._impl_.altitude_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetTakeoffAltitudeResponse) } -inline void GetTakeoffAltitudeResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&action_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&altitude_) - - reinterpret_cast(&action_result_)) + sizeof(altitude_)); +inline void GetTakeoffAltitudeResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + , decltype(_impl_.altitude_) { 0 } + + }; } GetTakeoffAltitudeResponse::~GetTakeoffAltitudeResponse() { @@ -5441,49 +6038,54 @@ GetTakeoffAltitudeResponse::~GetTakeoffAltitudeResponse() { } inline void GetTakeoffAltitudeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void GetTakeoffAltitudeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GetTakeoffAltitudeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; - altitude_ = 0; + _impl_.altitude_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GetTakeoffAltitudeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // float altitude = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - altitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { + _impl_.altitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -5501,6 +6103,7 @@ const char* GetTakeoffAltitudeResponse::_InternalParse(const char* ptr, ::_pbi:: CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -5508,27 +6111,29 @@ const char* GetTakeoffAltitudeResponse::_InternalParse(const char* ptr, ::_pbi:: #undef CHK_ } -uint8_t* GetTakeoffAltitudeResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* GetTakeoffAltitudeResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); } // float altitude = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_altitude = this->_internal_altitude(); - uint32_t raw_altitude; + ::uint32_t raw_altitude; memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); if (raw_altitude != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_altitude(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this->_internal_altitude(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -5539,63 +6144,61 @@ uint8_t* GetTakeoffAltitudeResponse::_InternalSerialize( return target; } -size_t GetTakeoffAltitudeResponse::ByteSizeLong() const { +::size_t GetTakeoffAltitudeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } // float altitude = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_altitude = this->_internal_altitude(); - uint32_t raw_altitude; + ::uint32_t raw_altitude; memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); if (raw_altitude != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetTakeoffAltitudeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, GetTakeoffAltitudeResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetTakeoffAltitudeResponse::GetClassData() const { return &_class_data_; } -void GetTakeoffAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void GetTakeoffAltitudeResponse::MergeFrom(const GetTakeoffAltitudeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void GetTakeoffAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetTakeoffAltitudeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_altitude = from._internal_altitude(); - uint32_t raw_altitude; + ::uint32_t raw_altitude; memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); if (raw_altitude != 0) { - _internal_set_altitude(from._internal_altitude()); + _this->_internal_set_altitude(from._internal_altitude()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetTakeoffAltitudeResponse::CopyFrom(const GetTakeoffAltitudeResponse& from) { @@ -5612,12 +6215,13 @@ bool GetTakeoffAltitudeResponse::IsInitialized() const { void GetTakeoffAltitudeResponse::InternalSwap(GetTakeoffAltitudeResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, altitude_) - + sizeof(GetTakeoffAltitudeResponse::altitude_) - - PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, action_result_)>( - reinterpret_cast(&action_result_), - reinterpret_cast(&other->action_result_)); + PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.altitude_) + + sizeof(GetTakeoffAltitudeResponse::_impl_.altitude_) + - PROTOBUF_FIELD_OFFSET(GetTakeoffAltitudeResponse, _impl_.action_result_)>( + reinterpret_cast(&_impl_.action_result_), + reinterpret_cast(&other->_impl_.action_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GetTakeoffAltitudeResponse::GetMetadata() const { @@ -5625,28 +6229,31 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetTakeoffAltitudeResponse::GetMetadata() cons &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[31]); } - // =================================================================== class SetTakeoffAltitudeRequest::_Internal { public: }; -SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetTakeoffAltitudeRequest) } SetTakeoffAltitudeRequest::SetTakeoffAltitudeRequest(const SetTakeoffAltitudeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - altitude_ = from.altitude_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetTakeoffAltitudeRequest) } -inline void SetTakeoffAltitudeRequest::SharedCtor() { -altitude_ = 0; +inline void SetTakeoffAltitudeRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.altitude_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } SetTakeoffAltitudeRequest::~SetTakeoffAltitudeRequest() { @@ -5659,36 +6266,37 @@ SetTakeoffAltitudeRequest::~SetTakeoffAltitudeRequest() { } inline void SetTakeoffAltitudeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void SetTakeoffAltitudeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetTakeoffAltitudeRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - altitude_ = 0; + _impl_.altitude_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetTakeoffAltitudeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // float altitude = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - altitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { + _impl_.altitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -5713,20 +6321,21 @@ const char* SetTakeoffAltitudeRequest::_InternalParse(const char* ptr, ::_pbi::P #undef CHK_ } -uint8_t* SetTakeoffAltitudeRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetTakeoffAltitudeRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // float altitude = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_altitude = this->_internal_altitude(); - uint32_t raw_altitude; + ::uint32_t raw_altitude; memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); if (raw_altitude != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_altitude(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this->_internal_altitude(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -5737,53 +6346,49 @@ uint8_t* SetTakeoffAltitudeRequest::_InternalSerialize( return target; } -size_t SetTakeoffAltitudeRequest::ByteSizeLong() const { +::size_t SetTakeoffAltitudeRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float altitude = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_altitude = this->_internal_altitude(); - uint32_t raw_altitude; + ::uint32_t raw_altitude; memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); if (raw_altitude != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetTakeoffAltitudeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetTakeoffAltitudeRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetTakeoffAltitudeRequest::GetClassData() const { return &_class_data_; } -void SetTakeoffAltitudeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetTakeoffAltitudeRequest::MergeFrom(const SetTakeoffAltitudeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetTakeoffAltitudeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetTakeoffAltitudeRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_altitude = from._internal_altitude(); - uint32_t raw_altitude; + ::uint32_t raw_altitude; memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude)); if (raw_altitude != 0) { - _internal_set_altitude(from._internal_altitude()); + _this->_internal_set_altitude(from._internal_altitude()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetTakeoffAltitudeRequest::CopyFrom(const SetTakeoffAltitudeRequest& from) { @@ -5800,7 +6405,8 @@ bool SetTakeoffAltitudeRequest::IsInitialized() const { void SetTakeoffAltitudeRequest::InternalSwap(SetTakeoffAltitudeRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(altitude_, other->altitude_); + + swap(_impl_.altitude_, other->_impl_.altitude_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetTakeoffAltitudeRequest::GetMetadata() const { @@ -5808,37 +6414,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetTakeoffAltitudeRequest::GetMetadata() const &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[32]); } - // =================================================================== class SetTakeoffAltitudeResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetTakeoffAltitudeResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const SetTakeoffAltitudeResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& SetTakeoffAltitudeResponse::_Internal::action_result(const SetTakeoffAltitudeResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) } SetTakeoffAltitudeResponse::SetTakeoffAltitudeResponse(const SetTakeoffAltitudeResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetTakeoffAltitudeResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetTakeoffAltitudeResponse) } -inline void SetTakeoffAltitudeResponse::SharedCtor() { -action_result_ = nullptr; +inline void SetTakeoffAltitudeResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } SetTakeoffAltitudeResponse::~SetTakeoffAltitudeResponse() { @@ -5851,40 +6470,44 @@ SetTakeoffAltitudeResponse::~SetTakeoffAltitudeResponse() { } inline void SetTakeoffAltitudeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void SetTakeoffAltitudeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetTakeoffAltitudeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetTakeoffAltitudeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -5902,6 +6525,7 @@ const char* SetTakeoffAltitudeResponse::_InternalParse(const char* ptr, ::_pbi:: CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -5909,14 +6533,15 @@ const char* SetTakeoffAltitudeResponse::_InternalParse(const char* ptr, ::_pbi:: #undef CHK_ } -uint8_t* SetTakeoffAltitudeResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetTakeoffAltitudeResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -5930,47 +6555,45 @@ uint8_t* SetTakeoffAltitudeResponse::_InternalSerialize( return target; } -size_t SetTakeoffAltitudeResponse::ByteSizeLong() const { +::size_t SetTakeoffAltitudeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetTakeoffAltitudeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetTakeoffAltitudeResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetTakeoffAltitudeResponse::GetClassData() const { return &_class_data_; } -void SetTakeoffAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetTakeoffAltitudeResponse::MergeFrom(const SetTakeoffAltitudeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetTakeoffAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetTakeoffAltitudeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetTakeoffAltitudeResponse::CopyFrom(const SetTakeoffAltitudeResponse& from) { @@ -5987,7 +6610,8 @@ bool SetTakeoffAltitudeResponse::IsInitialized() const { void SetTakeoffAltitudeResponse::InternalSwap(SetTakeoffAltitudeResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetTakeoffAltitudeResponse::GetMetadata() const { @@ -5995,20 +6619,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetTakeoffAltitudeResponse::GetMetadata() cons &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[33]); } - // =================================================================== class GetMaximumSpeedRequest::_Internal { public: }; -GetMaximumSpeedRequest::GetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +GetMaximumSpeedRequest::GetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetMaximumSpeedRequest) } GetMaximumSpeedRequest::GetMaximumSpeedRequest(const GetMaximumSpeedRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + GetMaximumSpeedRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetMaximumSpeedRequest) } @@ -6034,41 +6657,55 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetMaximumSpeedRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[34]); } - // =================================================================== class GetMaximumSpeedResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const GetMaximumSpeedResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& GetMaximumSpeedResponse::_Internal::action_result(const GetMaximumSpeedResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -GetMaximumSpeedResponse::GetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +GetMaximumSpeedResponse::GetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetMaximumSpeedResponse) } GetMaximumSpeedResponse::GetMaximumSpeedResponse(const GetMaximumSpeedResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + GetMaximumSpeedResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + , decltype(_impl_.speed_) {} + }; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } - speed_ = from.speed_; + _this->_impl_.speed_ = from._impl_.speed_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetMaximumSpeedResponse) } -inline void GetMaximumSpeedResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&action_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&speed_) - - reinterpret_cast(&action_result_)) + sizeof(speed_)); +inline void GetMaximumSpeedResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + , decltype(_impl_.speed_) { 0 } + + }; } GetMaximumSpeedResponse::~GetMaximumSpeedResponse() { @@ -6081,49 +6718,54 @@ GetMaximumSpeedResponse::~GetMaximumSpeedResponse() { } inline void GetMaximumSpeedResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void GetMaximumSpeedResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GetMaximumSpeedResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetMaximumSpeedResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; - speed_ = 0; + _impl_.speed_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GetMaximumSpeedResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // float speed = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - speed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { + _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -6141,6 +6783,7 @@ const char* GetMaximumSpeedResponse::_InternalParse(const char* ptr, ::_pbi::Par CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -6148,27 +6791,29 @@ const char* GetMaximumSpeedResponse::_InternalParse(const char* ptr, ::_pbi::Par #undef CHK_ } -uint8_t* GetMaximumSpeedResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* GetMaximumSpeedResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetMaximumSpeedResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); } // float speed = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_speed = this->_internal_speed(); - uint32_t raw_speed; + ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); if (raw_speed != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_speed(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this->_internal_speed(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -6179,63 +6824,61 @@ uint8_t* GetMaximumSpeedResponse::_InternalSerialize( return target; } -size_t GetMaximumSpeedResponse::ByteSizeLong() const { +::size_t GetMaximumSpeedResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetMaximumSpeedResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } // float speed = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_speed = this->_internal_speed(); - uint32_t raw_speed; + ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); if (raw_speed != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetMaximumSpeedResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, GetMaximumSpeedResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetMaximumSpeedResponse::GetClassData() const { return &_class_data_; } -void GetMaximumSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void GetMaximumSpeedResponse::MergeFrom(const GetMaximumSpeedResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetMaximumSpeedResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void GetMaximumSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetMaximumSpeedResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_speed = from._internal_speed(); - uint32_t raw_speed; + ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); if (raw_speed != 0) { - _internal_set_speed(from._internal_speed()); + _this->_internal_set_speed(from._internal_speed()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetMaximumSpeedResponse::CopyFrom(const GetMaximumSpeedResponse& from) { @@ -6252,12 +6895,13 @@ bool GetMaximumSpeedResponse::IsInitialized() const { void GetMaximumSpeedResponse::InternalSwap(GetMaximumSpeedResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, speed_) - + sizeof(GetMaximumSpeedResponse::speed_) - - PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, action_result_)>( - reinterpret_cast(&action_result_), - reinterpret_cast(&other->action_result_)); + PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.speed_) + + sizeof(GetMaximumSpeedResponse::_impl_.speed_) + - PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.action_result_)>( + reinterpret_cast(&_impl_.action_result_), + reinterpret_cast(&other->_impl_.action_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GetMaximumSpeedResponse::GetMetadata() const { @@ -6265,28 +6909,31 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetMaximumSpeedResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[35]); } - // =================================================================== class SetMaximumSpeedRequest::_Internal { public: }; -SetMaximumSpeedRequest::SetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetMaximumSpeedRequest::SetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetMaximumSpeedRequest) } SetMaximumSpeedRequest::SetMaximumSpeedRequest(const SetMaximumSpeedRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - speed_ = from.speed_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetMaximumSpeedRequest) } -inline void SetMaximumSpeedRequest::SharedCtor() { -speed_ = 0; +inline void SetMaximumSpeedRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.speed_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } SetMaximumSpeedRequest::~SetMaximumSpeedRequest() { @@ -6299,36 +6946,37 @@ SetMaximumSpeedRequest::~SetMaximumSpeedRequest() { } inline void SetMaximumSpeedRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void SetMaximumSpeedRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetMaximumSpeedRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetMaximumSpeedRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - speed_ = 0; + _impl_.speed_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetMaximumSpeedRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // float speed = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - speed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { + _impl_.speed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -6353,20 +7001,21 @@ const char* SetMaximumSpeedRequest::_InternalParse(const char* ptr, ::_pbi::Pars #undef CHK_ } -uint8_t* SetMaximumSpeedRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetMaximumSpeedRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetMaximumSpeedRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // float speed = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_speed = this->_internal_speed(); - uint32_t raw_speed; + ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); if (raw_speed != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_speed(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this->_internal_speed(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -6377,53 +7026,49 @@ uint8_t* SetMaximumSpeedRequest::_InternalSerialize( return target; } -size_t SetMaximumSpeedRequest::ByteSizeLong() const { +::size_t SetMaximumSpeedRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetMaximumSpeedRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float speed = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_speed = this->_internal_speed(); - uint32_t raw_speed; + ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); if (raw_speed != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetMaximumSpeedRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetMaximumSpeedRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetMaximumSpeedRequest::GetClassData() const { return &_class_data_; } -void SetMaximumSpeedRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetMaximumSpeedRequest::MergeFrom(const SetMaximumSpeedRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetMaximumSpeedRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetMaximumSpeedRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetMaximumSpeedRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_speed = from._internal_speed(); - uint32_t raw_speed; + ::uint32_t raw_speed; memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); if (raw_speed != 0) { - _internal_set_speed(from._internal_speed()); + _this->_internal_set_speed(from._internal_speed()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetMaximumSpeedRequest::CopyFrom(const SetMaximumSpeedRequest& from) { @@ -6440,7 +7085,8 @@ bool SetMaximumSpeedRequest::IsInitialized() const { void SetMaximumSpeedRequest::InternalSwap(SetMaximumSpeedRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(speed_, other->speed_); + + swap(_impl_.speed_, other->_impl_.speed_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetMaximumSpeedRequest::GetMetadata() const { @@ -6448,37 +7094,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetMaximumSpeedRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[36]); } - // =================================================================== class SetMaximumSpeedResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetMaximumSpeedResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const SetMaximumSpeedResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& SetMaximumSpeedResponse::_Internal::action_result(const SetMaximumSpeedResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -SetMaximumSpeedResponse::SetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetMaximumSpeedResponse::SetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetMaximumSpeedResponse) } SetMaximumSpeedResponse::SetMaximumSpeedResponse(const SetMaximumSpeedResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetMaximumSpeedResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetMaximumSpeedResponse) } -inline void SetMaximumSpeedResponse::SharedCtor() { -action_result_ = nullptr; +inline void SetMaximumSpeedResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } SetMaximumSpeedResponse::~SetMaximumSpeedResponse() { @@ -6491,40 +7150,44 @@ SetMaximumSpeedResponse::~SetMaximumSpeedResponse() { } inline void SetMaximumSpeedResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void SetMaximumSpeedResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetMaximumSpeedResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetMaximumSpeedResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetMaximumSpeedResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -6542,6 +7205,7 @@ const char* SetMaximumSpeedResponse::_InternalParse(const char* ptr, ::_pbi::Par CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -6549,14 +7213,15 @@ const char* SetMaximumSpeedResponse::_InternalParse(const char* ptr, ::_pbi::Par #undef CHK_ } -uint8_t* SetMaximumSpeedResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetMaximumSpeedResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetMaximumSpeedResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -6570,47 +7235,45 @@ uint8_t* SetMaximumSpeedResponse::_InternalSerialize( return target; } -size_t SetMaximumSpeedResponse::ByteSizeLong() const { +::size_t SetMaximumSpeedResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetMaximumSpeedResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetMaximumSpeedResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetMaximumSpeedResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetMaximumSpeedResponse::GetClassData() const { return &_class_data_; } -void SetMaximumSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetMaximumSpeedResponse::MergeFrom(const SetMaximumSpeedResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetMaximumSpeedResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetMaximumSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetMaximumSpeedResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetMaximumSpeedResponse::CopyFrom(const SetMaximumSpeedResponse& from) { @@ -6627,7 +7290,8 @@ bool SetMaximumSpeedResponse::IsInitialized() const { void SetMaximumSpeedResponse::InternalSwap(SetMaximumSpeedResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetMaximumSpeedResponse::GetMetadata() const { @@ -6635,20 +7299,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetMaximumSpeedResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[37]); } - // =================================================================== class GetReturnToLaunchAltitudeRequest::_Internal { public: }; -GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) } GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(const GetReturnToLaunchAltitudeRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + GetReturnToLaunchAltitudeRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) } @@ -6674,41 +7337,55 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetReturnToLaunchAltitudeRequest::GetMetadata( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[38]); } - // =================================================================== class GetReturnToLaunchAltitudeResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const GetReturnToLaunchAltitudeResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeResponse::_Internal::action_result(const GetReturnToLaunchAltitudeResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) } GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(const GetReturnToLaunchAltitudeResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + GetReturnToLaunchAltitudeResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + , decltype(_impl_.relative_altitude_m_) {} + }; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } - relative_altitude_m_ = from.relative_altitude_m_; + _this->_impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) } -inline void GetReturnToLaunchAltitudeResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&action_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&relative_altitude_m_) - - reinterpret_cast(&action_result_)) + sizeof(relative_altitude_m_)); +inline void GetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + , decltype(_impl_.relative_altitude_m_) { 0 } + + }; } GetReturnToLaunchAltitudeResponse::~GetReturnToLaunchAltitudeResponse() { @@ -6721,49 +7398,54 @@ GetReturnToLaunchAltitudeResponse::~GetReturnToLaunchAltitudeResponse() { } inline void GetReturnToLaunchAltitudeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void GetReturnToLaunchAltitudeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GetReturnToLaunchAltitudeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; - relative_altitude_m_ = 0; + _impl_.relative_altitude_m_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GetReturnToLaunchAltitudeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // float relative_altitude_m = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - relative_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { + _impl_.relative_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -6781,6 +7463,7 @@ const char* GetReturnToLaunchAltitudeResponse::_InternalParse(const char* ptr, : CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -6788,27 +7471,29 @@ const char* GetReturnToLaunchAltitudeResponse::_InternalParse(const char* ptr, : #undef CHK_ } -uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); } // float relative_altitude_m = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - uint32_t raw_relative_altitude_m; + ::uint32_t raw_relative_altitude_m; memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); if (raw_relative_altitude_m != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_relative_altitude_m(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this->_internal_relative_altitude_m(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -6819,63 +7504,61 @@ uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( return target; } -size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong() const { +::size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } // float relative_altitude_m = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - uint32_t raw_relative_altitude_m; + ::uint32_t raw_relative_altitude_m; memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); if (raw_relative_altitude_m != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReturnToLaunchAltitudeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, GetReturnToLaunchAltitudeResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetReturnToLaunchAltitudeResponse::GetClassData() const { return &_class_data_; } -void GetReturnToLaunchAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void GetReturnToLaunchAltitudeResponse::MergeFrom(const GetReturnToLaunchAltitudeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void GetReturnToLaunchAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_relative_altitude_m = from._internal_relative_altitude_m(); - uint32_t raw_relative_altitude_m; + ::uint32_t raw_relative_altitude_m; memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); if (raw_relative_altitude_m != 0) { - _internal_set_relative_altitude_m(from._internal_relative_altitude_m()); + _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetReturnToLaunchAltitudeResponse::CopyFrom(const GetReturnToLaunchAltitudeResponse& from) { @@ -6892,12 +7575,13 @@ bool GetReturnToLaunchAltitudeResponse::IsInitialized() const { void GetReturnToLaunchAltitudeResponse::InternalSwap(GetReturnToLaunchAltitudeResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, relative_altitude_m_) - + sizeof(GetReturnToLaunchAltitudeResponse::relative_altitude_m_) - - PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, action_result_)>( - reinterpret_cast(&action_result_), - reinterpret_cast(&other->action_result_)); + PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_) + + sizeof(GetReturnToLaunchAltitudeResponse::_impl_.relative_altitude_m_) + - PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_)>( + reinterpret_cast(&_impl_.action_result_), + reinterpret_cast(&other->_impl_.action_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GetReturnToLaunchAltitudeResponse::GetMetadata() const { @@ -6905,28 +7589,31 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetReturnToLaunchAltitudeResponse::GetMetadata &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[39]); } - // =================================================================== class SetReturnToLaunchAltitudeRequest::_Internal { public: }; -SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) } SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(const SetReturnToLaunchAltitudeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - relative_altitude_m_ = from.relative_altitude_m_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) } -inline void SetReturnToLaunchAltitudeRequest::SharedCtor() { -relative_altitude_m_ = 0; +inline void SetReturnToLaunchAltitudeRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.relative_altitude_m_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } SetReturnToLaunchAltitudeRequest::~SetReturnToLaunchAltitudeRequest() { @@ -6939,36 +7626,37 @@ SetReturnToLaunchAltitudeRequest::~SetReturnToLaunchAltitudeRequest() { } inline void SetReturnToLaunchAltitudeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void SetReturnToLaunchAltitudeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetReturnToLaunchAltitudeRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - relative_altitude_m_ = 0; + _impl_.relative_altitude_m_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetReturnToLaunchAltitudeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // float relative_altitude_m = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - relative_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { + _impl_.relative_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -6993,20 +7681,21 @@ const char* SetReturnToLaunchAltitudeRequest::_InternalParse(const char* ptr, :: #undef CHK_ } -uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // float relative_altitude_m = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - uint32_t raw_relative_altitude_m; + ::uint32_t raw_relative_altitude_m; memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); if (raw_relative_altitude_m != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_relative_altitude_m(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this->_internal_relative_altitude_m(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -7017,53 +7706,49 @@ uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( return target; } -size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong() const { +::size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float relative_altitude_m = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - uint32_t raw_relative_altitude_m; + ::uint32_t raw_relative_altitude_m; memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); if (raw_relative_altitude_m != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetReturnToLaunchAltitudeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetReturnToLaunchAltitudeRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetReturnToLaunchAltitudeRequest::GetClassData() const { return &_class_data_; } -void SetReturnToLaunchAltitudeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetReturnToLaunchAltitudeRequest::MergeFrom(const SetReturnToLaunchAltitudeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetReturnToLaunchAltitudeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_relative_altitude_m = from._internal_relative_altitude_m(); - uint32_t raw_relative_altitude_m; + ::uint32_t raw_relative_altitude_m; memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); if (raw_relative_altitude_m != 0) { - _internal_set_relative_altitude_m(from._internal_relative_altitude_m()); + _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetReturnToLaunchAltitudeRequest::CopyFrom(const SetReturnToLaunchAltitudeRequest& from) { @@ -7080,7 +7765,8 @@ bool SetReturnToLaunchAltitudeRequest::IsInitialized() const { void SetReturnToLaunchAltitudeRequest::InternalSwap(SetReturnToLaunchAltitudeRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(relative_altitude_m_, other->relative_altitude_m_); + + swap(_impl_.relative_altitude_m_, other->_impl_.relative_altitude_m_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetReturnToLaunchAltitudeRequest::GetMetadata() const { @@ -7088,37 +7774,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetReturnToLaunchAltitudeRequest::GetMetadata( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[40]); } - // =================================================================== class SetReturnToLaunchAltitudeResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const SetReturnToLaunchAltitudeResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeResponse::_Internal::action_result(const SetReturnToLaunchAltitudeResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) } SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(const SetReturnToLaunchAltitudeResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetReturnToLaunchAltitudeResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) } -inline void SetReturnToLaunchAltitudeResponse::SharedCtor() { -action_result_ = nullptr; +inline void SetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } SetReturnToLaunchAltitudeResponse::~SetReturnToLaunchAltitudeResponse() { @@ -7131,40 +7830,44 @@ SetReturnToLaunchAltitudeResponse::~SetReturnToLaunchAltitudeResponse() { } inline void SetReturnToLaunchAltitudeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void SetReturnToLaunchAltitudeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetReturnToLaunchAltitudeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetReturnToLaunchAltitudeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -7182,6 +7885,7 @@ const char* SetReturnToLaunchAltitudeResponse::_InternalParse(const char* ptr, : CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -7189,14 +7893,15 @@ const char* SetReturnToLaunchAltitudeResponse::_InternalParse(const char* ptr, : #undef CHK_ } -uint8_t* SetReturnToLaunchAltitudeResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetReturnToLaunchAltitudeResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -7210,47 +7915,45 @@ uint8_t* SetReturnToLaunchAltitudeResponse::_InternalSerialize( return target; } -size_t SetReturnToLaunchAltitudeResponse::ByteSizeLong() const { +::size_t SetReturnToLaunchAltitudeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetReturnToLaunchAltitudeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetReturnToLaunchAltitudeResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetReturnToLaunchAltitudeResponse::GetClassData() const { return &_class_data_; } -void SetReturnToLaunchAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetReturnToLaunchAltitudeResponse::MergeFrom(const SetReturnToLaunchAltitudeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetReturnToLaunchAltitudeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetReturnToLaunchAltitudeResponse::CopyFrom(const SetReturnToLaunchAltitudeResponse& from) { @@ -7267,7 +7970,8 @@ bool SetReturnToLaunchAltitudeResponse::IsInitialized() const { void SetReturnToLaunchAltitudeResponse::InternalSwap(SetReturnToLaunchAltitudeResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetReturnToLaunchAltitudeResponse::GetMetadata() const { @@ -7275,28 +7979,31 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetReturnToLaunchAltitudeResponse::GetMetadata &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[41]); } - // =================================================================== class SetCurrentSpeedRequest::_Internal { public: }; -SetCurrentSpeedRequest::SetCurrentSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetCurrentSpeedRequest::SetCurrentSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetCurrentSpeedRequest) } SetCurrentSpeedRequest::SetCurrentSpeedRequest(const SetCurrentSpeedRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - speed_m_s_ = from.speed_m_s_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetCurrentSpeedRequest) } -inline void SetCurrentSpeedRequest::SharedCtor() { -speed_m_s_ = 0; +inline void SetCurrentSpeedRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.speed_m_s_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } SetCurrentSpeedRequest::~SetCurrentSpeedRequest() { @@ -7309,36 +8016,37 @@ SetCurrentSpeedRequest::~SetCurrentSpeedRequest() { } inline void SetCurrentSpeedRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void SetCurrentSpeedRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetCurrentSpeedRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - speed_m_s_ = 0; + _impl_.speed_m_s_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetCurrentSpeedRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // float speed_m_s = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - speed_m_s_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { + _impl_.speed_m_s_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -7363,20 +8071,21 @@ const char* SetCurrentSpeedRequest::_InternalParse(const char* ptr, ::_pbi::Pars #undef CHK_ } -uint8_t* SetCurrentSpeedRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetCurrentSpeedRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // float speed_m_s = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_speed_m_s = this->_internal_speed_m_s(); - uint32_t raw_speed_m_s; + ::uint32_t raw_speed_m_s; memcpy(&raw_speed_m_s, &tmp_speed_m_s, sizeof(tmp_speed_m_s)); if (raw_speed_m_s != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_speed_m_s(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this->_internal_speed_m_s(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -7387,53 +8096,49 @@ uint8_t* SetCurrentSpeedRequest::_InternalSerialize( return target; } -size_t SetCurrentSpeedRequest::ByteSizeLong() const { +::size_t SetCurrentSpeedRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float speed_m_s = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_speed_m_s = this->_internal_speed_m_s(); - uint32_t raw_speed_m_s; + ::uint32_t raw_speed_m_s; memcpy(&raw_speed_m_s, &tmp_speed_m_s, sizeof(tmp_speed_m_s)); if (raw_speed_m_s != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetCurrentSpeedRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetCurrentSpeedRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetCurrentSpeedRequest::GetClassData() const { return &_class_data_; } -void SetCurrentSpeedRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetCurrentSpeedRequest::MergeFrom(const SetCurrentSpeedRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetCurrentSpeedRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetCurrentSpeedRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetCurrentSpeedRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_speed_m_s = from._internal_speed_m_s(); - uint32_t raw_speed_m_s; + ::uint32_t raw_speed_m_s; memcpy(&raw_speed_m_s, &tmp_speed_m_s, sizeof(tmp_speed_m_s)); if (raw_speed_m_s != 0) { - _internal_set_speed_m_s(from._internal_speed_m_s()); + _this->_internal_set_speed_m_s(from._internal_speed_m_s()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetCurrentSpeedRequest::CopyFrom(const SetCurrentSpeedRequest& from) { @@ -7450,7 +8155,8 @@ bool SetCurrentSpeedRequest::IsInitialized() const { void SetCurrentSpeedRequest::InternalSwap(SetCurrentSpeedRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(speed_m_s_, other->speed_m_s_); + + swap(_impl_.speed_m_s_, other->_impl_.speed_m_s_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetCurrentSpeedRequest::GetMetadata() const { @@ -7458,37 +8164,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetCurrentSpeedRequest::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[42]); } - // =================================================================== class SetCurrentSpeedResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetCurrentSpeedResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action::ActionResult& action_result(const SetCurrentSpeedResponse* msg); + static void set_has_action_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action::ActionResult& SetCurrentSpeedResponse::_Internal::action_result(const SetCurrentSpeedResponse* msg) { - return *msg->action_result_; + return *msg->_impl_.action_result_; } -SetCurrentSpeedResponse::SetCurrentSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetCurrentSpeedResponse::SetCurrentSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetCurrentSpeedResponse) } SetCurrentSpeedResponse::SetCurrentSpeedResponse(const SetCurrentSpeedResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetCurrentSpeedResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_result()) { - action_result_ = new ::mavsdk::rpc::action::ActionResult(*from.action_result_); - } else { - action_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_result_ = new ::mavsdk::rpc::action::ActionResult(*from._impl_.action_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetCurrentSpeedResponse) } -inline void SetCurrentSpeedResponse::SharedCtor() { -action_result_ = nullptr; +inline void SetCurrentSpeedResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_result_){nullptr} + }; } SetCurrentSpeedResponse::~SetCurrentSpeedResponse() { @@ -7501,40 +8220,44 @@ SetCurrentSpeedResponse::~SetCurrentSpeedResponse() { } inline void SetCurrentSpeedResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_result_; } void SetCurrentSpeedResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetCurrentSpeedResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_result_ != nullptr); + _impl_.action_result_->Clear(); } - action_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetCurrentSpeedResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult action_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -7552,6 +8275,7 @@ const char* SetCurrentSpeedResponse::_InternalParse(const char* ptr, ::_pbi::Par CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -7559,14 +8283,15 @@ const char* SetCurrentSpeedResponse::_InternalParse(const char* ptr, ::_pbi::Par #undef CHK_ } -uint8_t* SetCurrentSpeedResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetCurrentSpeedResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_result(this), _Internal::action_result(this).GetCachedSize(), target, stream); @@ -7580,47 +8305,45 @@ uint8_t* SetCurrentSpeedResponse::_InternalSerialize( return target; } -size_t SetCurrentSpeedResponse::ByteSizeLong() const { +::size_t SetCurrentSpeedResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult action_result = 1; - if (this->_internal_has_action_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_result_); + *_impl_.action_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetCurrentSpeedResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetCurrentSpeedResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetCurrentSpeedResponse::GetClassData() const { return &_class_data_; } -void SetCurrentSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetCurrentSpeedResponse::MergeFrom(const SetCurrentSpeedResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetCurrentSpeedResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetCurrentSpeedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetCurrentSpeedResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_result()) { - _internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom(from._internal_action_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( + from._internal_action_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetCurrentSpeedResponse::CopyFrom(const SetCurrentSpeedResponse& from) { @@ -7637,7 +8360,8 @@ bool SetCurrentSpeedResponse::IsInitialized() const { void SetCurrentSpeedResponse::InternalSwap(SetCurrentSpeedResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_result_, other->action_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_result_, other->_impl_.action_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetCurrentSpeedResponse::GetMetadata() const { @@ -7645,40 +8369,52 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetCurrentSpeedResponse::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[43]); } - // =================================================================== class ActionResult::_Internal { public: }; -ActionResult::ActionResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +ActionResult::ActionResult(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.ActionResult) } ActionResult::ActionResult(const ActionResult& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + ActionResult* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.result_str_) {} + + , decltype(_impl_.result_) {} + + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - result_str_.InitDefault(); + _impl_.result_str_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.result_str_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_result_str().empty()) { - result_str_.Set(from._internal_result_str(), - GetArenaForAllocation()); + _this->_impl_.result_str_.Set(from._internal_result_str(), _this->GetArenaForAllocation()); } - result_ = from.result_; + _this->_impl_.result_ = from._impl_.result_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.ActionResult) } -inline void ActionResult::SharedCtor() { -result_str_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - result_str_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -result_ = 0; +inline void ActionResult::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.result_str_) {} + + , decltype(_impl_.result_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.result_str_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.result_str_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ActionResult::~ActionResult() { @@ -7691,49 +8427,51 @@ ActionResult::~ActionResult() { } inline void ActionResult::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - result_str_.Destroy(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.result_str_.Destroy(); } void ActionResult::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ActionResult::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.ActionResult) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - result_str_.ClearToEmpty(); - result_ = 0; + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ActionResult::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action.ActionResult.Result result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_result(static_cast<::mavsdk::rpc::action::ActionResult_Result>(val)); - } else + } else { goto handle_unusual; + } continue; // string result_str = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { auto str = _internal_mutable_result_str(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.action.ActionResult.result_str")); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -7758,27 +8496,25 @@ const char* ActionResult::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* ActionResult::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ActionResult::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.ActionResult) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // .mavsdk.rpc.action.ActionResult.Result result = 1; if (this->_internal_result() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); + 1, this->_internal_result(), target); } // string result_str = 2; if (!this->_internal_result_str().empty()) { + const std::string& _s = this->_internal_result_str(); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_result_str().data(), static_cast(this->_internal_result_str().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.action.ActionResult.result_str"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_result_str(), target); + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.action.ActionResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -7789,56 +8525,51 @@ uint8_t* ActionResult::_InternalSerialize( return target; } -size_t ActionResult::ByteSizeLong() const { +::size_t ActionResult::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.ActionResult) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string result_str = 2; if (!this->_internal_result_str().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_result_str()); + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_result_str()); } // .mavsdk.rpc.action.ActionResult.Result result = 1; if (this->_internal_result() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ActionResult::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ActionResult::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ActionResult::GetClassData() const { return &_class_data_; } -void ActionResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ActionResult::MergeFrom(const ActionResult& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ActionResult) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ActionResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.ActionResult) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_result_str().empty()) { - _internal_set_result_str(from._internal_result_str()); + _this->_internal_set_result_str(from._internal_result_str()); } if (from._internal_result() != 0) { - _internal_set_result(from._internal_result()); + _this->_internal_set_result(from._internal_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ActionResult::CopyFrom(const ActionResult& from) { @@ -7857,11 +8588,9 @@ void ActionResult::InternalSwap(ActionResult* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &result_str_, lhs_arena, - &other->result_str_, rhs_arena - ); - swap(result_, other->result_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, lhs_arena, + &other->_impl_.result_str_, rhs_arena); + swap(_impl_.result_, other->_impl_.result_); } ::PROTOBUF_NAMESPACE_ID::Metadata ActionResult::GetMetadata() const { @@ -7869,7 +8598,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ActionResult::GetMetadata() const { &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[44]); } - // @@protoc_insertion_point(namespace_scope) } // namespace action } // namespace rpc @@ -8056,6 +8784,5 @@ Arena::CreateMaybeMessage< ::mavsdk::rpc::action::ActionResult >(Arena* arena) { return Arena::CreateMessageInternal< ::mavsdk::rpc::action::ActionResult >(arena); } PROTOBUF_NAMESPACE_CLOSE - // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/action/action.pb.h b/src/mavsdk_server/src/generated/action/action.pb.h index ceb784e341..4d34eeb55f 100644 --- a/src/mavsdk_server/src/generated/action/action.pb.h +++ b/src/mavsdk_server/src/generated/action/action.pb.h @@ -1,41 +1,46 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: action/action.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3020000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3020001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include +#include + +#include "google/protobuf/port_def.inc" +#if PROTOBUF_VERSION < 4023000 +#error "This file was generated by a newer version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please update" +#error "your headers." +#endif // PROTOBUF_VERSION + +#if 4023002 < PROTOBUF_MIN_PROTOC_VERSION +#error "This file was generated by an older version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please" +#error "regenerate this file with a newer version of protoc." +#endif // PROTOBUF_MIN_PROTOC_VERSION +#include "google/protobuf/port_undef.inc" +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_bases.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_reflection.h" +#include "google/protobuf/unknown_field_set.h" #include "mavsdk_options.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_action_2faction_2eproto + PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; @@ -44,9 +49,10 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_action_2faction_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_action_2faction_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable + descriptor_table_action_2faction_2eproto; namespace mavsdk { namespace rpc { namespace action { @@ -189,56 +195,101 @@ extern TransitionToMulticopterResponseDefaultTypeInternal _TransitionToMulticopt } // namespace rpc } // namespace mavsdk PROTOBUF_NAMESPACE_OPEN -template<> ::mavsdk::rpc::action::ActionResult* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(Arena*); -template<> ::mavsdk::rpc::action::ArmRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ArmRequest>(Arena*); -template<> ::mavsdk::rpc::action::ArmResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ArmResponse>(Arena*); -template<> ::mavsdk::rpc::action::DisarmRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DisarmRequest>(Arena*); -template<> ::mavsdk::rpc::action::DisarmResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DisarmResponse>(Arena*); -template<> ::mavsdk::rpc::action::DoOrbitRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DoOrbitRequest>(Arena*); -template<> ::mavsdk::rpc::action::DoOrbitResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DoOrbitResponse>(Arena*); -template<> ::mavsdk::rpc::action::GetMaximumSpeedRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetMaximumSpeedRequest>(Arena*); -template<> ::mavsdk::rpc::action::GetMaximumSpeedResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetMaximumSpeedResponse>(Arena*); -template<> ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest>(Arena*); -template<> ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>(Arena*); -template<> ::mavsdk::rpc::action::GetTakeoffAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetTakeoffAltitudeRequest>(Arena*); -template<> ::mavsdk::rpc::action::GetTakeoffAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetTakeoffAltitudeResponse>(Arena*); -template<> ::mavsdk::rpc::action::GotoLocationRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GotoLocationRequest>(Arena*); -template<> ::mavsdk::rpc::action::GotoLocationResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GotoLocationResponse>(Arena*); -template<> ::mavsdk::rpc::action::HoldRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::HoldRequest>(Arena*); -template<> ::mavsdk::rpc::action::HoldResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::HoldResponse>(Arena*); -template<> ::mavsdk::rpc::action::KillRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::KillRequest>(Arena*); -template<> ::mavsdk::rpc::action::KillResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::KillResponse>(Arena*); -template<> ::mavsdk::rpc::action::LandRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::LandRequest>(Arena*); -template<> ::mavsdk::rpc::action::LandResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::LandResponse>(Arena*); -template<> ::mavsdk::rpc::action::RebootRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::RebootRequest>(Arena*); -template<> ::mavsdk::rpc::action::RebootResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::RebootResponse>(Arena*); -template<> ::mavsdk::rpc::action::ReturnToLaunchRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ReturnToLaunchRequest>(Arena*); -template<> ::mavsdk::rpc::action::ReturnToLaunchResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ReturnToLaunchResponse>(Arena*); -template<> ::mavsdk::rpc::action::SetActuatorRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetActuatorRequest>(Arena*); -template<> ::mavsdk::rpc::action::SetActuatorResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetActuatorResponse>(Arena*); -template<> ::mavsdk::rpc::action::SetCurrentSpeedRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetCurrentSpeedRequest>(Arena*); -template<> ::mavsdk::rpc::action::SetCurrentSpeedResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetCurrentSpeedResponse>(Arena*); -template<> ::mavsdk::rpc::action::SetMaximumSpeedRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetMaximumSpeedRequest>(Arena*); -template<> ::mavsdk::rpc::action::SetMaximumSpeedResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetMaximumSpeedResponse>(Arena*); -template<> ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest>(Arena*); -template<> ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>(Arena*); -template<> ::mavsdk::rpc::action::SetTakeoffAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetTakeoffAltitudeRequest>(Arena*); -template<> ::mavsdk::rpc::action::SetTakeoffAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetTakeoffAltitudeResponse>(Arena*); -template<> ::mavsdk::rpc::action::ShutdownRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ShutdownRequest>(Arena*); -template<> ::mavsdk::rpc::action::ShutdownResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ShutdownResponse>(Arena*); -template<> ::mavsdk::rpc::action::TakeoffRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TakeoffRequest>(Arena*); -template<> ::mavsdk::rpc::action::TakeoffResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TakeoffResponse>(Arena*); -template<> ::mavsdk::rpc::action::TerminateRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TerminateRequest>(Arena*); -template<> ::mavsdk::rpc::action::TerminateResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TerminateResponse>(Arena*); -template<> ::mavsdk::rpc::action::TransitionToFixedwingRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToFixedwingRequest>(Arena*); -template<> ::mavsdk::rpc::action::TransitionToFixedwingResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToFixedwingResponse>(Arena*); -template<> ::mavsdk::rpc::action::TransitionToMulticopterRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToMulticopterRequest>(Arena*); -template<> ::mavsdk::rpc::action::TransitionToMulticopterResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToMulticopterResponse>(Arena*); +template <> +::mavsdk::rpc::action::ActionResult* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(Arena*); +template <> +::mavsdk::rpc::action::ArmRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ArmRequest>(Arena*); +template <> +::mavsdk::rpc::action::ArmResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ArmResponse>(Arena*); +template <> +::mavsdk::rpc::action::DisarmRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DisarmRequest>(Arena*); +template <> +::mavsdk::rpc::action::DisarmResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DisarmResponse>(Arena*); +template <> +::mavsdk::rpc::action::DoOrbitRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DoOrbitRequest>(Arena*); +template <> +::mavsdk::rpc::action::DoOrbitResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::DoOrbitResponse>(Arena*); +template <> +::mavsdk::rpc::action::GetMaximumSpeedRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetMaximumSpeedRequest>(Arena*); +template <> +::mavsdk::rpc::action::GetMaximumSpeedResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetMaximumSpeedResponse>(Arena*); +template <> +::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest>(Arena*); +template <> +::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>(Arena*); +template <> +::mavsdk::rpc::action::GetTakeoffAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetTakeoffAltitudeRequest>(Arena*); +template <> +::mavsdk::rpc::action::GetTakeoffAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GetTakeoffAltitudeResponse>(Arena*); +template <> +::mavsdk::rpc::action::GotoLocationRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GotoLocationRequest>(Arena*); +template <> +::mavsdk::rpc::action::GotoLocationResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::GotoLocationResponse>(Arena*); +template <> +::mavsdk::rpc::action::HoldRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::HoldRequest>(Arena*); +template <> +::mavsdk::rpc::action::HoldResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::HoldResponse>(Arena*); +template <> +::mavsdk::rpc::action::KillRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::KillRequest>(Arena*); +template <> +::mavsdk::rpc::action::KillResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::KillResponse>(Arena*); +template <> +::mavsdk::rpc::action::LandRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::LandRequest>(Arena*); +template <> +::mavsdk::rpc::action::LandResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::LandResponse>(Arena*); +template <> +::mavsdk::rpc::action::RebootRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::RebootRequest>(Arena*); +template <> +::mavsdk::rpc::action::RebootResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::RebootResponse>(Arena*); +template <> +::mavsdk::rpc::action::ReturnToLaunchRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ReturnToLaunchRequest>(Arena*); +template <> +::mavsdk::rpc::action::ReturnToLaunchResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ReturnToLaunchResponse>(Arena*); +template <> +::mavsdk::rpc::action::SetActuatorRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetActuatorRequest>(Arena*); +template <> +::mavsdk::rpc::action::SetActuatorResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetActuatorResponse>(Arena*); +template <> +::mavsdk::rpc::action::SetCurrentSpeedRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetCurrentSpeedRequest>(Arena*); +template <> +::mavsdk::rpc::action::SetCurrentSpeedResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetCurrentSpeedResponse>(Arena*); +template <> +::mavsdk::rpc::action::SetMaximumSpeedRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetMaximumSpeedRequest>(Arena*); +template <> +::mavsdk::rpc::action::SetMaximumSpeedResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetMaximumSpeedResponse>(Arena*); +template <> +::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest>(Arena*); +template <> +::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>(Arena*); +template <> +::mavsdk::rpc::action::SetTakeoffAltitudeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetTakeoffAltitudeRequest>(Arena*); +template <> +::mavsdk::rpc::action::SetTakeoffAltitudeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::SetTakeoffAltitudeResponse>(Arena*); +template <> +::mavsdk::rpc::action::ShutdownRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ShutdownRequest>(Arena*); +template <> +::mavsdk::rpc::action::ShutdownResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::ShutdownResponse>(Arena*); +template <> +::mavsdk::rpc::action::TakeoffRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TakeoffRequest>(Arena*); +template <> +::mavsdk::rpc::action::TakeoffResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TakeoffResponse>(Arena*); +template <> +::mavsdk::rpc::action::TerminateRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TerminateRequest>(Arena*); +template <> +::mavsdk::rpc::action::TerminateResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TerminateResponse>(Arena*); +template <> +::mavsdk::rpc::action::TransitionToFixedwingRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToFixedwingRequest>(Arena*); +template <> +::mavsdk::rpc::action::TransitionToFixedwingResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToFixedwingResponse>(Arena*); +template <> +::mavsdk::rpc::action::TransitionToMulticopterRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToMulticopterRequest>(Arena*); +template <> +::mavsdk::rpc::action::TransitionToMulticopterResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action::TransitionToMulticopterResponse>(Arena*); PROTOBUF_NAMESPACE_CLOSE + namespace mavsdk { namespace rpc { namespace action { - enum ActionResult_Result : int { ActionResult_Result_RESULT_UNKNOWN = 0, ActionResult_Result_RESULT_SUCCESS = 1, @@ -254,27 +305,34 @@ enum ActionResult_Result : int { ActionResult_Result_RESULT_PARAMETER_ERROR = 11, ActionResult_Result_RESULT_UNSUPPORTED = 12, ActionResult_Result_RESULT_FAILED = 13, - ActionResult_Result_ActionResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - ActionResult_Result_ActionResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + ActionResult_Result_ActionResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + ActionResult_Result_ActionResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + bool ActionResult_Result_IsValid(int value); -constexpr ActionResult_Result ActionResult_Result_Result_MIN = ActionResult_Result_RESULT_UNKNOWN; -constexpr ActionResult_Result ActionResult_Result_Result_MAX = ActionResult_Result_RESULT_FAILED; -constexpr int ActionResult_Result_Result_ARRAYSIZE = ActionResult_Result_Result_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ActionResult_Result_descriptor(); -template -inline const std::string& ActionResult_Result_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ActionResult_Result_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ActionResult_Result_descriptor(), enum_t_value); -} -inline bool ActionResult_Result_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ActionResult_Result* value) { +constexpr ActionResult_Result ActionResult_Result_Result_MIN = static_cast(0); +constexpr ActionResult_Result ActionResult_Result_Result_MAX = static_cast(13); +constexpr int ActionResult_Result_Result_ARRAYSIZE = 13 + 1; +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +ActionResult_Result_descriptor(); +template +const std::string& ActionResult_Result_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Result_Name()."); + return ActionResult_Result_Name(static_cast(value)); +} +template <> +inline const std::string& ActionResult_Result_Name(ActionResult_Result value) { + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool ActionResult_Result_Parse(absl::string_view name, ActionResult_Result* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ActionResult_Result_descriptor(), name, value); + ActionResult_Result_descriptor(), name, value); } enum OrbitYawBehavior : int { ORBIT_YAW_BEHAVIOR_HOLD_FRONT_TO_CIRCLE_CENTER = 0, @@ -282,34 +340,46 @@ enum OrbitYawBehavior : int { ORBIT_YAW_BEHAVIOR_UNCONTROLLED = 2, ORBIT_YAW_BEHAVIOR_HOLD_FRONT_TANGENT_TO_CIRCLE = 3, ORBIT_YAW_BEHAVIOR_RC_CONTROLLED = 4, - OrbitYawBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - OrbitYawBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + OrbitYawBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + OrbitYawBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + bool OrbitYawBehavior_IsValid(int value); -constexpr OrbitYawBehavior OrbitYawBehavior_MIN = ORBIT_YAW_BEHAVIOR_HOLD_FRONT_TO_CIRCLE_CENTER; -constexpr OrbitYawBehavior OrbitYawBehavior_MAX = ORBIT_YAW_BEHAVIOR_RC_CONTROLLED; -constexpr int OrbitYawBehavior_ARRAYSIZE = OrbitYawBehavior_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OrbitYawBehavior_descriptor(); -template -inline const std::string& OrbitYawBehavior_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OrbitYawBehavior_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - OrbitYawBehavior_descriptor(), enum_t_value); -} -inline bool OrbitYawBehavior_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OrbitYawBehavior* value) { +constexpr OrbitYawBehavior OrbitYawBehavior_MIN = static_cast(0); +constexpr OrbitYawBehavior OrbitYawBehavior_MAX = static_cast(4); +constexpr int OrbitYawBehavior_ARRAYSIZE = 4 + 1; +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +OrbitYawBehavior_descriptor(); +template +const std::string& OrbitYawBehavior_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to OrbitYawBehavior_Name()."); + return OrbitYawBehavior_Name(static_cast(value)); +} +template <> +inline const std::string& OrbitYawBehavior_Name(OrbitYawBehavior value) { + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool OrbitYawBehavior_Parse(absl::string_view name, OrbitYawBehavior* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - OrbitYawBehavior_descriptor(), name, value); + OrbitYawBehavior_descriptor(), name, value); } + // =================================================================== + +// ------------------------------------------------------------------- + class ArmRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmRequest) */ { public: inline ArmRequest() : ArmRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR ArmRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ArmRequest(const ArmRequest& from); @@ -336,6 +406,13 @@ class ArmRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -373,7 +450,7 @@ class ArmRequest final : } void UnsafeArenaSwap(ArmRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -384,22 +461,21 @@ class ArmRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const ArmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const ArmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ArmRequest"; } protected: - explicit ArmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ArmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -418,15 +494,17 @@ class ArmRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class ArmResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ArmResponse) */ { public: inline ArmResponse() : ArmResponse(nullptr) {} ~ArmResponse() override; + template explicit PROTOBUF_CONSTEXPR ArmResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ArmResponse(const ArmResponse& from); @@ -453,6 +531,13 @@ class ArmResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -490,7 +575,7 @@ class ArmResponse final : } void UnsafeArenaSwap(ArmResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -502,33 +587,34 @@ class ArmResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ArmResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ArmResponse& from); + void MergeFrom( const ArmResponse& from) { + ArmResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ArmResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ArmResponse"; } protected: - explicit ArmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ArmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -545,10 +631,7 @@ class ArmResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -560,7 +643,6 @@ class ArmResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ArmResponse) private: class _Internal; @@ -568,16 +650,20 @@ class ArmResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class DisarmRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmRequest) */ { public: inline DisarmRequest() : DisarmRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR DisarmRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); DisarmRequest(const DisarmRequest& from); @@ -604,6 +690,13 @@ class DisarmRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -641,7 +734,7 @@ class DisarmRequest final : } void UnsafeArenaSwap(DisarmRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -652,22 +745,21 @@ class DisarmRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const DisarmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const DisarmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DisarmRequest"; } protected: - explicit DisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit DisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -686,15 +778,17 @@ class DisarmRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class DisarmResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DisarmResponse) */ { public: inline DisarmResponse() : DisarmResponse(nullptr) {} ~DisarmResponse() override; + template explicit PROTOBUF_CONSTEXPR DisarmResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); DisarmResponse(const DisarmResponse& from); @@ -721,6 +815,13 @@ class DisarmResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -758,7 +859,7 @@ class DisarmResponse final : } void UnsafeArenaSwap(DisarmResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -770,33 +871,34 @@ class DisarmResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DisarmResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const DisarmResponse& from); + void MergeFrom( const DisarmResponse& from) { + DisarmResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DisarmResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DisarmResponse"; } protected: - explicit DisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit DisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -813,10 +915,7 @@ class DisarmResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -828,7 +927,6 @@ class DisarmResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DisarmResponse) private: class _Internal; @@ -836,16 +934,20 @@ class DisarmResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class TakeoffRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffRequest) */ { public: inline TakeoffRequest() : TakeoffRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR TakeoffRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TakeoffRequest(const TakeoffRequest& from); @@ -872,6 +974,13 @@ class TakeoffRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -909,7 +1018,7 @@ class TakeoffRequest final : } void UnsafeArenaSwap(TakeoffRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -920,22 +1029,21 @@ class TakeoffRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const TakeoffRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const TakeoffRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TakeoffRequest"; } protected: - explicit TakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit TakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -954,15 +1062,17 @@ class TakeoffRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class TakeoffResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TakeoffResponse) */ { public: inline TakeoffResponse() : TakeoffResponse(nullptr) {} ~TakeoffResponse() override; + template explicit PROTOBUF_CONSTEXPR TakeoffResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TakeoffResponse(const TakeoffResponse& from); @@ -989,6 +1099,13 @@ class TakeoffResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1026,7 +1143,7 @@ class TakeoffResponse final : } void UnsafeArenaSwap(TakeoffResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1038,33 +1155,34 @@ class TakeoffResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const TakeoffResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const TakeoffResponse& from); + void MergeFrom( const TakeoffResponse& from) { + TakeoffResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TakeoffResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TakeoffResponse"; } protected: - explicit TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1081,10 +1199,7 @@ class TakeoffResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -1096,7 +1211,6 @@ class TakeoffResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TakeoffResponse) private: class _Internal; @@ -1104,16 +1218,20 @@ class TakeoffResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class LandRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandRequest) */ { public: inline LandRequest() : LandRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR LandRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); LandRequest(const LandRequest& from); @@ -1140,6 +1258,13 @@ class LandRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1177,7 +1302,7 @@ class LandRequest final : } void UnsafeArenaSwap(LandRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1188,22 +1313,21 @@ class LandRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const LandRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const LandRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.LandRequest"; } protected: - explicit LandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit LandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1222,15 +1346,17 @@ class LandRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class LandResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.LandResponse) */ { public: inline LandResponse() : LandResponse(nullptr) {} ~LandResponse() override; + template explicit PROTOBUF_CONSTEXPR LandResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); LandResponse(const LandResponse& from); @@ -1257,6 +1383,13 @@ class LandResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1294,7 +1427,7 @@ class LandResponse final : } void UnsafeArenaSwap(LandResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1306,33 +1439,34 @@ class LandResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const LandResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const LandResponse& from); + void MergeFrom( const LandResponse& from) { + LandResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(LandResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.LandResponse"; } protected: - explicit LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1349,10 +1483,7 @@ class LandResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -1364,7 +1495,6 @@ class LandResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.LandResponse) private: class _Internal; @@ -1372,16 +1502,20 @@ class LandResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class RebootRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootRequest) */ { public: inline RebootRequest() : RebootRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR RebootRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); RebootRequest(const RebootRequest& from); @@ -1408,6 +1542,13 @@ class RebootRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1445,7 +1586,7 @@ class RebootRequest final : } void UnsafeArenaSwap(RebootRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1456,22 +1597,21 @@ class RebootRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const RebootRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const RebootRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.RebootRequest"; } protected: - explicit RebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit RebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1490,15 +1630,17 @@ class RebootRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class RebootResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.RebootResponse) */ { public: inline RebootResponse() : RebootResponse(nullptr) {} ~RebootResponse() override; + template explicit PROTOBUF_CONSTEXPR RebootResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); RebootResponse(const RebootResponse& from); @@ -1525,6 +1667,13 @@ class RebootResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1562,7 +1711,7 @@ class RebootResponse final : } void UnsafeArenaSwap(RebootResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1574,33 +1723,34 @@ class RebootResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const RebootResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const RebootResponse& from); + void MergeFrom( const RebootResponse& from) { + RebootResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(RebootResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.RebootResponse"; } protected: - explicit RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1617,10 +1767,7 @@ class RebootResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -1632,7 +1779,6 @@ class RebootResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.RebootResponse) private: class _Internal; @@ -1640,16 +1786,20 @@ class RebootResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class ShutdownRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownRequest) */ { public: inline ShutdownRequest() : ShutdownRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR ShutdownRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ShutdownRequest(const ShutdownRequest& from); @@ -1676,6 +1826,13 @@ class ShutdownRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1713,7 +1870,7 @@ class ShutdownRequest final : } void UnsafeArenaSwap(ShutdownRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1724,22 +1881,21 @@ class ShutdownRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const ShutdownRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const ShutdownRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ShutdownRequest"; } protected: - explicit ShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1758,15 +1914,17 @@ class ShutdownRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class ShutdownResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ShutdownResponse) */ { public: inline ShutdownResponse() : ShutdownResponse(nullptr) {} ~ShutdownResponse() override; + template explicit PROTOBUF_CONSTEXPR ShutdownResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ShutdownResponse(const ShutdownResponse& from); @@ -1793,6 +1951,13 @@ class ShutdownResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1830,7 +1995,7 @@ class ShutdownResponse final : } void UnsafeArenaSwap(ShutdownResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1842,33 +2007,34 @@ class ShutdownResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ShutdownResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ShutdownResponse& from); + void MergeFrom( const ShutdownResponse& from) { + ShutdownResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ShutdownResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ShutdownResponse"; } protected: - explicit ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1885,10 +2051,7 @@ class ShutdownResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -1900,7 +2063,6 @@ class ShutdownResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ShutdownResponse) private: class _Internal; @@ -1908,16 +2070,20 @@ class ShutdownResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class TerminateRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateRequest) */ { public: inline TerminateRequest() : TerminateRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR TerminateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TerminateRequest(const TerminateRequest& from); @@ -1944,6 +2110,13 @@ class TerminateRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1981,7 +2154,7 @@ class TerminateRequest final : } void UnsafeArenaSwap(TerminateRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1992,22 +2165,21 @@ class TerminateRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const TerminateRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const TerminateRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TerminateRequest"; } protected: - explicit TerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit TerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2026,15 +2198,17 @@ class TerminateRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class TerminateResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TerminateResponse) */ { public: inline TerminateResponse() : TerminateResponse(nullptr) {} ~TerminateResponse() override; + template explicit PROTOBUF_CONSTEXPR TerminateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TerminateResponse(const TerminateResponse& from); @@ -2061,6 +2235,13 @@ class TerminateResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2098,7 +2279,7 @@ class TerminateResponse final : } void UnsafeArenaSwap(TerminateResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2110,33 +2291,34 @@ class TerminateResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const TerminateResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const TerminateResponse& from); + void MergeFrom( const TerminateResponse& from) { + TerminateResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TerminateResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TerminateResponse"; } protected: - explicit TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2153,10 +2335,7 @@ class TerminateResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -2168,7 +2347,6 @@ class TerminateResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TerminateResponse) private: class _Internal; @@ -2176,16 +2354,20 @@ class TerminateResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class KillRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillRequest) */ { public: inline KillRequest() : KillRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR KillRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); KillRequest(const KillRequest& from); @@ -2212,6 +2394,13 @@ class KillRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2249,7 +2438,7 @@ class KillRequest final : } void UnsafeArenaSwap(KillRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2260,22 +2449,21 @@ class KillRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const KillRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const KillRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.KillRequest"; } protected: - explicit KillRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit KillRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2294,15 +2482,17 @@ class KillRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class KillResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.KillResponse) */ { public: inline KillResponse() : KillResponse(nullptr) {} ~KillResponse() override; + template explicit PROTOBUF_CONSTEXPR KillResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); KillResponse(const KillResponse& from); @@ -2329,6 +2519,13 @@ class KillResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2366,7 +2563,7 @@ class KillResponse final : } void UnsafeArenaSwap(KillResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2378,33 +2575,34 @@ class KillResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const KillResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const KillResponse& from); + void MergeFrom( const KillResponse& from) { + KillResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(KillResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.KillResponse"; } protected: - explicit KillResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit KillResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2421,10 +2619,7 @@ class KillResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -2436,7 +2631,6 @@ class KillResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.KillResponse) private: class _Internal; @@ -2444,16 +2638,20 @@ class KillResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class ReturnToLaunchRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchRequest) */ { public: inline ReturnToLaunchRequest() : ReturnToLaunchRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR ReturnToLaunchRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ReturnToLaunchRequest(const ReturnToLaunchRequest& from); @@ -2480,6 +2678,13 @@ class ReturnToLaunchRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2517,7 +2722,7 @@ class ReturnToLaunchRequest final : } void UnsafeArenaSwap(ReturnToLaunchRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2528,22 +2733,21 @@ class ReturnToLaunchRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const ReturnToLaunchRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const ReturnToLaunchRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ReturnToLaunchRequest"; } protected: - explicit ReturnToLaunchRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ReturnToLaunchRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2562,15 +2766,17 @@ class ReturnToLaunchRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class ReturnToLaunchResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ReturnToLaunchResponse) */ { public: inline ReturnToLaunchResponse() : ReturnToLaunchResponse(nullptr) {} ~ReturnToLaunchResponse() override; + template explicit PROTOBUF_CONSTEXPR ReturnToLaunchResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ReturnToLaunchResponse(const ReturnToLaunchResponse& from); @@ -2597,6 +2803,13 @@ class ReturnToLaunchResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2634,7 +2847,7 @@ class ReturnToLaunchResponse final : } void UnsafeArenaSwap(ReturnToLaunchResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2646,33 +2859,34 @@ class ReturnToLaunchResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ReturnToLaunchResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ReturnToLaunchResponse& from); + void MergeFrom( const ReturnToLaunchResponse& from) { + ReturnToLaunchResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ReturnToLaunchResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ReturnToLaunchResponse"; } protected: - explicit ReturnToLaunchResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ReturnToLaunchResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2689,10 +2903,7 @@ class ReturnToLaunchResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -2704,7 +2915,6 @@ class ReturnToLaunchResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ReturnToLaunchResponse) private: class _Internal; @@ -2712,17 +2922,21 @@ class ReturnToLaunchResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class GotoLocationRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationRequest) */ { public: inline GotoLocationRequest() : GotoLocationRequest(nullptr) {} ~GotoLocationRequest() override; + template explicit PROTOBUF_CONSTEXPR GotoLocationRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GotoLocationRequest(const GotoLocationRequest& from); @@ -2749,6 +2963,13 @@ class GotoLocationRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2786,7 +3007,7 @@ class GotoLocationRequest final : } void UnsafeArenaSwap(GotoLocationRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2798,33 +3019,34 @@ class GotoLocationRequest final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GotoLocationRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GotoLocationRequest& from); + void MergeFrom( const GotoLocationRequest& from) { + GotoLocationRequest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GotoLocationRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GotoLocationRequest"; } protected: - explicit GotoLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit GotoLocationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2843,41 +3065,45 @@ class GotoLocationRequest final : kYawDegFieldNumber = 4, }; // double latitude_deg = 1; - void clear_latitude_deg(); + void clear_latitude_deg() ; double latitude_deg() const; void set_latitude_deg(double value); + private: double _internal_latitude_deg() const; void _internal_set_latitude_deg(double value); - public: + public: // double longitude_deg = 2; - void clear_longitude_deg(); + void clear_longitude_deg() ; double longitude_deg() const; void set_longitude_deg(double value); + private: double _internal_longitude_deg() const; void _internal_set_longitude_deg(double value); - public: + public: // float absolute_altitude_m = 3; - void clear_absolute_altitude_m(); + void clear_absolute_altitude_m() ; float absolute_altitude_m() const; void set_absolute_altitude_m(float value); + private: float _internal_absolute_altitude_m() const; void _internal_set_absolute_altitude_m(float value); - public: + public: // float yaw_deg = 4; - void clear_yaw_deg(); + void clear_yaw_deg() ; float yaw_deg() const; void set_yaw_deg(float value); + private: float _internal_yaw_deg() const; void _internal_set_yaw_deg(float value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GotoLocationRequest) private: class _Internal; @@ -2885,20 +3111,23 @@ class GotoLocationRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - double latitude_deg_; - double longitude_deg_; - float absolute_altitude_m_; - float yaw_deg_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + double latitude_deg_; + double longitude_deg_; + float absolute_altitude_m_; + float yaw_deg_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class GotoLocationResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GotoLocationResponse) */ { public: inline GotoLocationResponse() : GotoLocationResponse(nullptr) {} ~GotoLocationResponse() override; + template explicit PROTOBUF_CONSTEXPR GotoLocationResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GotoLocationResponse(const GotoLocationResponse& from); @@ -2925,6 +3154,13 @@ class GotoLocationResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2962,7 +3198,7 @@ class GotoLocationResponse final : } void UnsafeArenaSwap(GotoLocationResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2974,33 +3210,34 @@ class GotoLocationResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GotoLocationResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GotoLocationResponse& from); + void MergeFrom( const GotoLocationResponse& from) { + GotoLocationResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GotoLocationResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GotoLocationResponse"; } protected: - explicit GotoLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit GotoLocationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3017,10 +3254,7 @@ class GotoLocationResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -3032,7 +3266,6 @@ class GotoLocationResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GotoLocationResponse) private: class _Internal; @@ -3040,17 +3273,21 @@ class GotoLocationResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class DoOrbitRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitRequest) */ { public: inline DoOrbitRequest() : DoOrbitRequest(nullptr) {} ~DoOrbitRequest() override; + template explicit PROTOBUF_CONSTEXPR DoOrbitRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); DoOrbitRequest(const DoOrbitRequest& from); @@ -3077,6 +3314,13 @@ class DoOrbitRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3114,7 +3358,7 @@ class DoOrbitRequest final : } void UnsafeArenaSwap(DoOrbitRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3126,33 +3370,34 @@ class DoOrbitRequest final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DoOrbitRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const DoOrbitRequest& from); + void MergeFrom( const DoOrbitRequest& from) { + DoOrbitRequest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DoOrbitRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DoOrbitRequest"; } protected: - explicit DoOrbitRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit DoOrbitRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3173,59 +3418,65 @@ class DoOrbitRequest final : kYawBehaviorFieldNumber = 3, }; // float radius_m = 1; - void clear_radius_m(); + void clear_radius_m() ; float radius_m() const; void set_radius_m(float value); + private: float _internal_radius_m() const; void _internal_set_radius_m(float value); - public: + public: // float velocity_ms = 2; - void clear_velocity_ms(); + void clear_velocity_ms() ; float velocity_ms() const; void set_velocity_ms(float value); + private: float _internal_velocity_ms() const; void _internal_set_velocity_ms(float value); - public: + public: // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; - void clear_latitude_deg(); + void clear_latitude_deg() ; double latitude_deg() const; void set_latitude_deg(double value); + private: double _internal_latitude_deg() const; void _internal_set_latitude_deg(double value); - public: + public: // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; - void clear_longitude_deg(); + void clear_longitude_deg() ; double longitude_deg() const; void set_longitude_deg(double value); + private: double _internal_longitude_deg() const; void _internal_set_longitude_deg(double value); - public: + public: // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; - void clear_absolute_altitude_m(); + void clear_absolute_altitude_m() ; double absolute_altitude_m() const; void set_absolute_altitude_m(double value); + private: double _internal_absolute_altitude_m() const; void _internal_set_absolute_altitude_m(double value); - public: + public: // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; - void clear_yaw_behavior(); + void clear_yaw_behavior() ; ::mavsdk::rpc::action::OrbitYawBehavior yaw_behavior() const; void set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value); + private: ::mavsdk::rpc::action::OrbitYawBehavior _internal_yaw_behavior() const; void _internal_set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DoOrbitRequest) private: class _Internal; @@ -3233,22 +3484,25 @@ class DoOrbitRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - float radius_m_; - float velocity_ms_; - double latitude_deg_; - double longitude_deg_; - double absolute_altitude_m_; - int yaw_behavior_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + float radius_m_; + float velocity_ms_; + double latitude_deg_; + double longitude_deg_; + double absolute_altitude_m_; + int yaw_behavior_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class DoOrbitResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitResponse) */ { public: inline DoOrbitResponse() : DoOrbitResponse(nullptr) {} ~DoOrbitResponse() override; + template explicit PROTOBUF_CONSTEXPR DoOrbitResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); DoOrbitResponse(const DoOrbitResponse& from); @@ -3275,6 +3529,13 @@ class DoOrbitResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3312,7 +3573,7 @@ class DoOrbitResponse final : } void UnsafeArenaSwap(DoOrbitResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3324,33 +3585,34 @@ class DoOrbitResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DoOrbitResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const DoOrbitResponse& from); + void MergeFrom( const DoOrbitResponse& from) { + DoOrbitResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DoOrbitResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.DoOrbitResponse"; } protected: - explicit DoOrbitResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit DoOrbitResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3367,10 +3629,7 @@ class DoOrbitResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -3382,7 +3641,6 @@ class DoOrbitResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.DoOrbitResponse) private: class _Internal; @@ -3390,16 +3648,20 @@ class DoOrbitResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class HoldRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldRequest) */ { public: inline HoldRequest() : HoldRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR HoldRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HoldRequest(const HoldRequest& from); @@ -3426,6 +3688,13 @@ class HoldRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3463,7 +3732,7 @@ class HoldRequest final : } void UnsafeArenaSwap(HoldRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3474,22 +3743,21 @@ class HoldRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const HoldRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const HoldRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.HoldRequest"; } protected: - explicit HoldRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit HoldRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3508,15 +3776,17 @@ class HoldRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class HoldResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.HoldResponse) */ { public: inline HoldResponse() : HoldResponse(nullptr) {} ~HoldResponse() override; + template explicit PROTOBUF_CONSTEXPR HoldResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HoldResponse(const HoldResponse& from); @@ -3543,6 +3813,13 @@ class HoldResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3580,7 +3857,7 @@ class HoldResponse final : } void UnsafeArenaSwap(HoldResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3592,33 +3869,34 @@ class HoldResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HoldResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const HoldResponse& from); + void MergeFrom( const HoldResponse& from) { + HoldResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HoldResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.HoldResponse"; } protected: - explicit HoldResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit HoldResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3635,10 +3913,7 @@ class HoldResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -3650,7 +3925,6 @@ class HoldResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.HoldResponse) private: class _Internal; @@ -3658,17 +3932,21 @@ class HoldResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetActuatorRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorRequest) */ { public: inline SetActuatorRequest() : SetActuatorRequest(nullptr) {} ~SetActuatorRequest() override; + template explicit PROTOBUF_CONSTEXPR SetActuatorRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetActuatorRequest(const SetActuatorRequest& from); @@ -3695,6 +3973,13 @@ class SetActuatorRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3732,7 +4017,7 @@ class SetActuatorRequest final : } void UnsafeArenaSwap(SetActuatorRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3744,33 +4029,34 @@ class SetActuatorRequest final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetActuatorRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetActuatorRequest& from); + void MergeFrom( const SetActuatorRequest& from) { + SetActuatorRequest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetActuatorRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetActuatorRequest"; } protected: - explicit SetActuatorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetActuatorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3787,23 +4073,25 @@ class SetActuatorRequest final : kValueFieldNumber = 2, }; // int32 index = 1; - void clear_index(); - int32_t index() const; - void set_index(int32_t value); + void clear_index() ; + ::int32_t index() const; + void set_index(::int32_t value); + private: - int32_t _internal_index() const; - void _internal_set_index(int32_t value); - public: + ::int32_t _internal_index() const; + void _internal_set_index(::int32_t value); + public: // float value = 2; - void clear_value(); + void clear_value() ; float value() const; void set_value(float value); + private: float _internal_value() const; void _internal_set_value(float value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetActuatorRequest) private: class _Internal; @@ -3811,18 +4099,21 @@ class SetActuatorRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - int32_t index_; - float value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::int32_t index_; + float value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetActuatorResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetActuatorResponse) */ { public: inline SetActuatorResponse() : SetActuatorResponse(nullptr) {} ~SetActuatorResponse() override; + template explicit PROTOBUF_CONSTEXPR SetActuatorResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetActuatorResponse(const SetActuatorResponse& from); @@ -3849,6 +4140,13 @@ class SetActuatorResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3886,7 +4184,7 @@ class SetActuatorResponse final : } void UnsafeArenaSwap(SetActuatorResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3898,33 +4196,34 @@ class SetActuatorResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetActuatorResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetActuatorResponse& from); + void MergeFrom( const SetActuatorResponse& from) { + SetActuatorResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetActuatorResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetActuatorResponse"; } protected: - explicit SetActuatorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetActuatorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3941,10 +4240,7 @@ class SetActuatorResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -3956,7 +4252,6 @@ class SetActuatorResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetActuatorResponse) private: class _Internal; @@ -3964,16 +4259,20 @@ class SetActuatorResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class TransitionToFixedwingRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingRequest) */ { public: inline TransitionToFixedwingRequest() : TransitionToFixedwingRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR TransitionToFixedwingRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TransitionToFixedwingRequest(const TransitionToFixedwingRequest& from); @@ -4000,6 +4299,13 @@ class TransitionToFixedwingRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -4037,7 +4343,7 @@ class TransitionToFixedwingRequest final : } void UnsafeArenaSwap(TransitionToFixedwingRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -4048,22 +4354,21 @@ class TransitionToFixedwingRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const TransitionToFixedwingRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const TransitionToFixedwingRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TransitionToFixedwingRequest"; } protected: - explicit TransitionToFixedwingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit TransitionToFixedwingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -4082,15 +4387,17 @@ class TransitionToFixedwingRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class TransitionToFixedwingResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToFixedwingResponse) */ { public: inline TransitionToFixedwingResponse() : TransitionToFixedwingResponse(nullptr) {} ~TransitionToFixedwingResponse() override; + template explicit PROTOBUF_CONSTEXPR TransitionToFixedwingResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TransitionToFixedwingResponse(const TransitionToFixedwingResponse& from); @@ -4117,6 +4424,13 @@ class TransitionToFixedwingResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -4154,7 +4468,7 @@ class TransitionToFixedwingResponse final : } void UnsafeArenaSwap(TransitionToFixedwingResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -4166,33 +4480,34 @@ class TransitionToFixedwingResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const TransitionToFixedwingResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const TransitionToFixedwingResponse& from); + void MergeFrom( const TransitionToFixedwingResponse& from) { + TransitionToFixedwingResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TransitionToFixedwingResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TransitionToFixedwingResponse"; } protected: - explicit TransitionToFixedwingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit TransitionToFixedwingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -4209,10 +4524,7 @@ class TransitionToFixedwingResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -4224,7 +4536,6 @@ class TransitionToFixedwingResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToFixedwingResponse) private: class _Internal; @@ -4232,16 +4543,20 @@ class TransitionToFixedwingResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class TransitionToMulticopterRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterRequest) */ { public: inline TransitionToMulticopterRequest() : TransitionToMulticopterRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR TransitionToMulticopterRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TransitionToMulticopterRequest(const TransitionToMulticopterRequest& from); @@ -4268,6 +4583,13 @@ class TransitionToMulticopterRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -4305,7 +4627,7 @@ class TransitionToMulticopterRequest final : } void UnsafeArenaSwap(TransitionToMulticopterRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -4316,22 +4638,21 @@ class TransitionToMulticopterRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const TransitionToMulticopterRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const TransitionToMulticopterRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TransitionToMulticopterRequest"; } protected: - explicit TransitionToMulticopterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit TransitionToMulticopterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -4350,15 +4671,17 @@ class TransitionToMulticopterRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class TransitionToMulticopterResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.TransitionToMulticopterResponse) */ { public: inline TransitionToMulticopterResponse() : TransitionToMulticopterResponse(nullptr) {} ~TransitionToMulticopterResponse() override; + template explicit PROTOBUF_CONSTEXPR TransitionToMulticopterResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TransitionToMulticopterResponse(const TransitionToMulticopterResponse& from); @@ -4385,6 +4708,13 @@ class TransitionToMulticopterResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -4422,7 +4752,7 @@ class TransitionToMulticopterResponse final : } void UnsafeArenaSwap(TransitionToMulticopterResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -4434,33 +4764,34 @@ class TransitionToMulticopterResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const TransitionToMulticopterResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const TransitionToMulticopterResponse& from); + void MergeFrom( const TransitionToMulticopterResponse& from) { + TransitionToMulticopterResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TransitionToMulticopterResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.TransitionToMulticopterResponse"; } protected: - explicit TransitionToMulticopterResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit TransitionToMulticopterResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -4477,10 +4808,7 @@ class TransitionToMulticopterResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -4492,7 +4820,6 @@ class TransitionToMulticopterResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.TransitionToMulticopterResponse) private: class _Internal; @@ -4500,16 +4827,20 @@ class TransitionToMulticopterResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class GetTakeoffAltitudeRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetTakeoffAltitudeRequest) */ { public: inline GetTakeoffAltitudeRequest() : GetTakeoffAltitudeRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR GetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetTakeoffAltitudeRequest(const GetTakeoffAltitudeRequest& from); @@ -4536,6 +4867,13 @@ class GetTakeoffAltitudeRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -4573,7 +4911,7 @@ class GetTakeoffAltitudeRequest final : } void UnsafeArenaSwap(GetTakeoffAltitudeRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -4584,22 +4922,21 @@ class GetTakeoffAltitudeRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const GetTakeoffAltitudeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const GetTakeoffAltitudeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GetTakeoffAltitudeRequest"; } protected: - explicit GetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit GetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -4618,15 +4955,17 @@ class GetTakeoffAltitudeRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class GetTakeoffAltitudeResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetTakeoffAltitudeResponse) */ { public: inline GetTakeoffAltitudeResponse() : GetTakeoffAltitudeResponse(nullptr) {} ~GetTakeoffAltitudeResponse() override; + template explicit PROTOBUF_CONSTEXPR GetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetTakeoffAltitudeResponse(const GetTakeoffAltitudeResponse& from); @@ -4653,6 +4992,13 @@ class GetTakeoffAltitudeResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -4690,7 +5036,7 @@ class GetTakeoffAltitudeResponse final : } void UnsafeArenaSwap(GetTakeoffAltitudeResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -4702,33 +5048,34 @@ class GetTakeoffAltitudeResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetTakeoffAltitudeResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetTakeoffAltitudeResponse& from); + void MergeFrom( const GetTakeoffAltitudeResponse& from) { + GetTakeoffAltitudeResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetTakeoffAltitudeResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GetTakeoffAltitudeResponse"; } protected: - explicit GetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit GetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -4746,10 +5093,7 @@ class GetTakeoffAltitudeResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -4761,16 +5105,16 @@ class GetTakeoffAltitudeResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // float altitude = 2; - void clear_altitude(); + void clear_altitude() ; float altitude() const; void set_altitude(float value); + private: float _internal_altitude() const; void _internal_set_altitude(float value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetTakeoffAltitudeResponse) private: class _Internal; @@ -4778,18 +5122,22 @@ class GetTakeoffAltitudeResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - float altitude_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + float altitude_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetTakeoffAltitudeRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeRequest) */ { public: inline SetTakeoffAltitudeRequest() : SetTakeoffAltitudeRequest(nullptr) {} ~SetTakeoffAltitudeRequest() override; + template explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetTakeoffAltitudeRequest(const SetTakeoffAltitudeRequest& from); @@ -4816,6 +5164,13 @@ class SetTakeoffAltitudeRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -4853,7 +5208,7 @@ class SetTakeoffAltitudeRequest final : } void UnsafeArenaSwap(SetTakeoffAltitudeRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -4865,33 +5220,34 @@ class SetTakeoffAltitudeRequest final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetTakeoffAltitudeRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetTakeoffAltitudeRequest& from); + void MergeFrom( const SetTakeoffAltitudeRequest& from) { + SetTakeoffAltitudeRequest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetTakeoffAltitudeRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetTakeoffAltitudeRequest"; } protected: - explicit SetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetTakeoffAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -4907,14 +5263,15 @@ class SetTakeoffAltitudeRequest final : kAltitudeFieldNumber = 1, }; // float altitude = 1; - void clear_altitude(); + void clear_altitude() ; float altitude() const; void set_altitude(float value); + private: float _internal_altitude() const; void _internal_set_altitude(float value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetTakeoffAltitudeRequest) private: class _Internal; @@ -4922,17 +5279,20 @@ class SetTakeoffAltitudeRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - float altitude_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + float altitude_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetTakeoffAltitudeResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetTakeoffAltitudeResponse) */ { public: inline SetTakeoffAltitudeResponse() : SetTakeoffAltitudeResponse(nullptr) {} ~SetTakeoffAltitudeResponse() override; + template explicit PROTOBUF_CONSTEXPR SetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetTakeoffAltitudeResponse(const SetTakeoffAltitudeResponse& from); @@ -4959,6 +5319,13 @@ class SetTakeoffAltitudeResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -4996,7 +5363,7 @@ class SetTakeoffAltitudeResponse final : } void UnsafeArenaSwap(SetTakeoffAltitudeResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -5008,33 +5375,34 @@ class SetTakeoffAltitudeResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetTakeoffAltitudeResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetTakeoffAltitudeResponse& from); + void MergeFrom( const SetTakeoffAltitudeResponse& from) { + SetTakeoffAltitudeResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetTakeoffAltitudeResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetTakeoffAltitudeResponse"; } protected: - explicit SetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetTakeoffAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -5051,10 +5419,7 @@ class SetTakeoffAltitudeResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -5066,7 +5431,6 @@ class SetTakeoffAltitudeResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetTakeoffAltitudeResponse) private: class _Internal; @@ -5074,16 +5438,20 @@ class SetTakeoffAltitudeResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class GetMaximumSpeedRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetMaximumSpeedRequest) */ { public: inline GetMaximumSpeedRequest() : GetMaximumSpeedRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR GetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetMaximumSpeedRequest(const GetMaximumSpeedRequest& from); @@ -5110,6 +5478,13 @@ class GetMaximumSpeedRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -5147,7 +5522,7 @@ class GetMaximumSpeedRequest final : } void UnsafeArenaSwap(GetMaximumSpeedRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -5158,22 +5533,21 @@ class GetMaximumSpeedRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const GetMaximumSpeedRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const GetMaximumSpeedRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GetMaximumSpeedRequest"; } protected: - explicit GetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit GetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -5192,15 +5566,17 @@ class GetMaximumSpeedRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class GetMaximumSpeedResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetMaximumSpeedResponse) */ { public: inline GetMaximumSpeedResponse() : GetMaximumSpeedResponse(nullptr) {} ~GetMaximumSpeedResponse() override; + template explicit PROTOBUF_CONSTEXPR GetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetMaximumSpeedResponse(const GetMaximumSpeedResponse& from); @@ -5227,6 +5603,13 @@ class GetMaximumSpeedResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -5264,7 +5647,7 @@ class GetMaximumSpeedResponse final : } void UnsafeArenaSwap(GetMaximumSpeedResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -5276,33 +5659,34 @@ class GetMaximumSpeedResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetMaximumSpeedResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetMaximumSpeedResponse& from); + void MergeFrom( const GetMaximumSpeedResponse& from) { + GetMaximumSpeedResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetMaximumSpeedResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GetMaximumSpeedResponse"; } protected: - explicit GetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit GetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -5320,10 +5704,7 @@ class GetMaximumSpeedResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -5335,16 +5716,16 @@ class GetMaximumSpeedResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // float speed = 2; - void clear_speed(); + void clear_speed() ; float speed() const; void set_speed(float value); + private: float _internal_speed() const; void _internal_set_speed(float value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetMaximumSpeedResponse) private: class _Internal; @@ -5352,18 +5733,22 @@ class GetMaximumSpeedResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - float speed_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + float speed_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetMaximumSpeedRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetMaximumSpeedRequest) */ { public: inline SetMaximumSpeedRequest() : SetMaximumSpeedRequest(nullptr) {} ~SetMaximumSpeedRequest() override; + template explicit PROTOBUF_CONSTEXPR SetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetMaximumSpeedRequest(const SetMaximumSpeedRequest& from); @@ -5390,6 +5775,13 @@ class SetMaximumSpeedRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -5427,7 +5819,7 @@ class SetMaximumSpeedRequest final : } void UnsafeArenaSwap(SetMaximumSpeedRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -5439,33 +5831,34 @@ class SetMaximumSpeedRequest final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetMaximumSpeedRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetMaximumSpeedRequest& from); + void MergeFrom( const SetMaximumSpeedRequest& from) { + SetMaximumSpeedRequest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetMaximumSpeedRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetMaximumSpeedRequest"; } protected: - explicit SetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetMaximumSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -5481,14 +5874,15 @@ class SetMaximumSpeedRequest final : kSpeedFieldNumber = 1, }; // float speed = 1; - void clear_speed(); + void clear_speed() ; float speed() const; void set_speed(float value); + private: float _internal_speed() const; void _internal_set_speed(float value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetMaximumSpeedRequest) private: class _Internal; @@ -5496,17 +5890,20 @@ class SetMaximumSpeedRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - float speed_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + float speed_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetMaximumSpeedResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetMaximumSpeedResponse) */ { public: inline SetMaximumSpeedResponse() : SetMaximumSpeedResponse(nullptr) {} ~SetMaximumSpeedResponse() override; + template explicit PROTOBUF_CONSTEXPR SetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetMaximumSpeedResponse(const SetMaximumSpeedResponse& from); @@ -5533,6 +5930,13 @@ class SetMaximumSpeedResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -5570,7 +5974,7 @@ class SetMaximumSpeedResponse final : } void UnsafeArenaSwap(SetMaximumSpeedResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -5582,33 +5986,34 @@ class SetMaximumSpeedResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetMaximumSpeedResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetMaximumSpeedResponse& from); + void MergeFrom( const SetMaximumSpeedResponse& from) { + SetMaximumSpeedResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetMaximumSpeedResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetMaximumSpeedResponse"; } protected: - explicit SetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetMaximumSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -5625,10 +6030,7 @@ class SetMaximumSpeedResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -5640,7 +6042,6 @@ class SetMaximumSpeedResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetMaximumSpeedResponse) private: class _Internal; @@ -5648,16 +6049,20 @@ class SetMaximumSpeedResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class GetReturnToLaunchAltitudeRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) */ { public: inline GetReturnToLaunchAltitudeRequest() : GetReturnToLaunchAltitudeRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetReturnToLaunchAltitudeRequest(const GetReturnToLaunchAltitudeRequest& from); @@ -5684,6 +6089,13 @@ class GetReturnToLaunchAltitudeRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -5721,7 +6133,7 @@ class GetReturnToLaunchAltitudeRequest final : } void UnsafeArenaSwap(GetReturnToLaunchAltitudeRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -5732,22 +6144,21 @@ class GetReturnToLaunchAltitudeRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const GetReturnToLaunchAltitudeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const GetReturnToLaunchAltitudeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest"; } protected: - explicit GetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit GetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -5766,15 +6177,17 @@ class GetReturnToLaunchAltitudeRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class GetReturnToLaunchAltitudeResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) */ { public: inline GetReturnToLaunchAltitudeResponse() : GetReturnToLaunchAltitudeResponse(nullptr) {} ~GetReturnToLaunchAltitudeResponse() override; + template explicit PROTOBUF_CONSTEXPR GetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetReturnToLaunchAltitudeResponse(const GetReturnToLaunchAltitudeResponse& from); @@ -5801,6 +6214,13 @@ class GetReturnToLaunchAltitudeResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -5838,7 +6258,7 @@ class GetReturnToLaunchAltitudeResponse final : } void UnsafeArenaSwap(GetReturnToLaunchAltitudeResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -5850,33 +6270,34 @@ class GetReturnToLaunchAltitudeResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetReturnToLaunchAltitudeResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetReturnToLaunchAltitudeResponse& from); + void MergeFrom( const GetReturnToLaunchAltitudeResponse& from) { + GetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetReturnToLaunchAltitudeResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse"; } protected: - explicit GetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit GetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -5894,10 +6315,7 @@ class GetReturnToLaunchAltitudeResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -5909,16 +6327,16 @@ class GetReturnToLaunchAltitudeResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // float relative_altitude_m = 2; - void clear_relative_altitude_m(); + void clear_relative_altitude_m() ; float relative_altitude_m() const; void set_relative_altitude_m(float value); + private: float _internal_relative_altitude_m() const; void _internal_set_relative_altitude_m(float value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) private: class _Internal; @@ -5926,18 +6344,22 @@ class GetReturnToLaunchAltitudeResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - float relative_altitude_m_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + float relative_altitude_m_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetReturnToLaunchAltitudeRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) */ { public: inline SetReturnToLaunchAltitudeRequest() : SetReturnToLaunchAltitudeRequest(nullptr) {} ~SetReturnToLaunchAltitudeRequest() override; + template explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetReturnToLaunchAltitudeRequest(const SetReturnToLaunchAltitudeRequest& from); @@ -5964,6 +6386,13 @@ class SetReturnToLaunchAltitudeRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -6001,7 +6430,7 @@ class SetReturnToLaunchAltitudeRequest final : } void UnsafeArenaSwap(SetReturnToLaunchAltitudeRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -6013,33 +6442,34 @@ class SetReturnToLaunchAltitudeRequest final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetReturnToLaunchAltitudeRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetReturnToLaunchAltitudeRequest& from); + void MergeFrom( const SetReturnToLaunchAltitudeRequest& from) { + SetReturnToLaunchAltitudeRequest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetReturnToLaunchAltitudeRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest"; } protected: - explicit SetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetReturnToLaunchAltitudeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -6055,14 +6485,15 @@ class SetReturnToLaunchAltitudeRequest final : kRelativeAltitudeMFieldNumber = 1, }; // float relative_altitude_m = 1; - void clear_relative_altitude_m(); + void clear_relative_altitude_m() ; float relative_altitude_m() const; void set_relative_altitude_m(float value); + private: float _internal_relative_altitude_m() const; void _internal_set_relative_altitude_m(float value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) private: class _Internal; @@ -6070,17 +6501,20 @@ class SetReturnToLaunchAltitudeRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - float relative_altitude_m_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + float relative_altitude_m_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetReturnToLaunchAltitudeResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) */ { public: inline SetReturnToLaunchAltitudeResponse() : SetReturnToLaunchAltitudeResponse(nullptr) {} ~SetReturnToLaunchAltitudeResponse() override; + template explicit PROTOBUF_CONSTEXPR SetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetReturnToLaunchAltitudeResponse(const SetReturnToLaunchAltitudeResponse& from); @@ -6107,6 +6541,13 @@ class SetReturnToLaunchAltitudeResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -6144,7 +6585,7 @@ class SetReturnToLaunchAltitudeResponse final : } void UnsafeArenaSwap(SetReturnToLaunchAltitudeResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -6156,33 +6597,34 @@ class SetReturnToLaunchAltitudeResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetReturnToLaunchAltitudeResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetReturnToLaunchAltitudeResponse& from); + void MergeFrom( const SetReturnToLaunchAltitudeResponse& from) { + SetReturnToLaunchAltitudeResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetReturnToLaunchAltitudeResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse"; } protected: - explicit SetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetReturnToLaunchAltitudeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -6199,10 +6641,7 @@ class SetReturnToLaunchAltitudeResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -6214,7 +6653,6 @@ class SetReturnToLaunchAltitudeResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) private: class _Internal; @@ -6222,17 +6660,21 @@ class SetReturnToLaunchAltitudeResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetCurrentSpeedRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedRequest) */ { public: inline SetCurrentSpeedRequest() : SetCurrentSpeedRequest(nullptr) {} ~SetCurrentSpeedRequest() override; + template explicit PROTOBUF_CONSTEXPR SetCurrentSpeedRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetCurrentSpeedRequest(const SetCurrentSpeedRequest& from); @@ -6259,6 +6701,13 @@ class SetCurrentSpeedRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -6296,7 +6745,7 @@ class SetCurrentSpeedRequest final : } void UnsafeArenaSwap(SetCurrentSpeedRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -6308,33 +6757,34 @@ class SetCurrentSpeedRequest final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetCurrentSpeedRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetCurrentSpeedRequest& from); + void MergeFrom( const SetCurrentSpeedRequest& from) { + SetCurrentSpeedRequest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetCurrentSpeedRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetCurrentSpeedRequest"; } protected: - explicit SetCurrentSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetCurrentSpeedRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -6350,14 +6800,15 @@ class SetCurrentSpeedRequest final : kSpeedMSFieldNumber = 1, }; // float speed_m_s = 1; - void clear_speed_m_s(); + void clear_speed_m_s() ; float speed_m_s() const; void set_speed_m_s(float value); + private: float _internal_speed_m_s() const; void _internal_set_speed_m_s(float value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetCurrentSpeedRequest) private: class _Internal; @@ -6365,17 +6816,20 @@ class SetCurrentSpeedRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - float speed_m_s_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + float speed_m_s_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetCurrentSpeedResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedResponse) */ { public: inline SetCurrentSpeedResponse() : SetCurrentSpeedResponse(nullptr) {} ~SetCurrentSpeedResponse() override; + template explicit PROTOBUF_CONSTEXPR SetCurrentSpeedResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetCurrentSpeedResponse(const SetCurrentSpeedResponse& from); @@ -6402,6 +6856,13 @@ class SetCurrentSpeedResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -6439,7 +6900,7 @@ class SetCurrentSpeedResponse final : } void UnsafeArenaSwap(SetCurrentSpeedResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -6451,33 +6912,34 @@ class SetCurrentSpeedResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetCurrentSpeedResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetCurrentSpeedResponse& from); + void MergeFrom( const SetCurrentSpeedResponse& from) { + SetCurrentSpeedResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetCurrentSpeedResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.SetCurrentSpeedResponse"; } protected: - explicit SetCurrentSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetCurrentSpeedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -6494,10 +6956,7 @@ class SetCurrentSpeedResponse final : }; // .mavsdk.rpc.action.ActionResult action_result = 1; bool has_action_result() const; - private: - bool _internal_has_action_result() const; - public: - void clear_action_result(); + void clear_action_result() ; const ::mavsdk::rpc::action::ActionResult& action_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); ::mavsdk::rpc::action::ActionResult* mutable_action_result(); @@ -6509,7 +6968,6 @@ class SetCurrentSpeedResponse final : void unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result); ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetCurrentSpeedResponse) private: class _Internal; @@ -6517,17 +6975,21 @@ class SetCurrentSpeedResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action::ActionResult* action_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action::ActionResult* action_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class ActionResult final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.ActionResult) */ { public: inline ActionResult() : ActionResult(nullptr) {} ~ActionResult() override; + template explicit PROTOBUF_CONSTEXPR ActionResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ActionResult(const ActionResult& from); @@ -6554,6 +7016,13 @@ class ActionResult final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -6591,7 +7060,7 @@ class ActionResult final : } void UnsafeArenaSwap(ActionResult* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -6603,33 +7072,34 @@ class ActionResult final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ActionResult& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ActionResult& from); + void MergeFrom( const ActionResult& from) { + ActionResult::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ActionResult* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action.ActionResult"; } protected: - explicit ActionResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ActionResult(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -6639,57 +7109,35 @@ class ActionResult final : // nested types ---------------------------------------------------- - typedef ActionResult_Result Result; - static constexpr Result RESULT_UNKNOWN = - ActionResult_Result_RESULT_UNKNOWN; - static constexpr Result RESULT_SUCCESS = - ActionResult_Result_RESULT_SUCCESS; - static constexpr Result RESULT_NO_SYSTEM = - ActionResult_Result_RESULT_NO_SYSTEM; - static constexpr Result RESULT_CONNECTION_ERROR = - ActionResult_Result_RESULT_CONNECTION_ERROR; - static constexpr Result RESULT_BUSY = - ActionResult_Result_RESULT_BUSY; - static constexpr Result RESULT_COMMAND_DENIED = - ActionResult_Result_RESULT_COMMAND_DENIED; - static constexpr Result RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = - ActionResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN; - static constexpr Result RESULT_COMMAND_DENIED_NOT_LANDED = - ActionResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED; - static constexpr Result RESULT_TIMEOUT = - ActionResult_Result_RESULT_TIMEOUT; - static constexpr Result RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = - ActionResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN; - static constexpr Result RESULT_NO_VTOL_TRANSITION_SUPPORT = - ActionResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT; - static constexpr Result RESULT_PARAMETER_ERROR = - ActionResult_Result_RESULT_PARAMETER_ERROR; - static constexpr Result RESULT_UNSUPPORTED = - ActionResult_Result_RESULT_UNSUPPORTED; - static constexpr Result RESULT_FAILED = - ActionResult_Result_RESULT_FAILED; + using Result = ActionResult_Result; + static constexpr Result RESULT_UNKNOWN = ActionResult_Result_RESULT_UNKNOWN; + static constexpr Result RESULT_SUCCESS = ActionResult_Result_RESULT_SUCCESS; + static constexpr Result RESULT_NO_SYSTEM = ActionResult_Result_RESULT_NO_SYSTEM; + static constexpr Result RESULT_CONNECTION_ERROR = ActionResult_Result_RESULT_CONNECTION_ERROR; + static constexpr Result RESULT_BUSY = ActionResult_Result_RESULT_BUSY; + static constexpr Result RESULT_COMMAND_DENIED = ActionResult_Result_RESULT_COMMAND_DENIED; + static constexpr Result RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = ActionResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN; + static constexpr Result RESULT_COMMAND_DENIED_NOT_LANDED = ActionResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED; + static constexpr Result RESULT_TIMEOUT = ActionResult_Result_RESULT_TIMEOUT; + static constexpr Result RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = ActionResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN; + static constexpr Result RESULT_NO_VTOL_TRANSITION_SUPPORT = ActionResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT; + static constexpr Result RESULT_PARAMETER_ERROR = ActionResult_Result_RESULT_PARAMETER_ERROR; + static constexpr Result RESULT_UNSUPPORTED = ActionResult_Result_RESULT_UNSUPPORTED; + static constexpr Result RESULT_FAILED = ActionResult_Result_RESULT_FAILED; static inline bool Result_IsValid(int value) { return ActionResult_Result_IsValid(value); } - static constexpr Result Result_MIN = - ActionResult_Result_Result_MIN; - static constexpr Result Result_MAX = - ActionResult_Result_Result_MAX; - static constexpr int Result_ARRAYSIZE = - ActionResult_Result_Result_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Result_descriptor() { + static constexpr Result Result_MIN = ActionResult_Result_Result_MIN; + static constexpr Result Result_MAX = ActionResult_Result_Result_MAX; + static constexpr int Result_ARRAYSIZE = ActionResult_Result_Result_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Result_descriptor() { return ActionResult_Result_descriptor(); } - template - static inline const std::string& Result_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Result_Name."); - return ActionResult_Result_Name(enum_t_value); + template + static inline const std::string& Result_Name(T value) { + return ActionResult_Result_Name(value); } - static inline bool Result_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Result* value) { + static inline bool Result_Parse(absl::string_view name, Result* value) { return ActionResult_Result_Parse(name, value); } @@ -6700,28 +7148,35 @@ class ActionResult final : kResultFieldNumber = 1, }; // string result_str = 2; - void clear_result_str(); + void clear_result_str() ; const std::string& result_str() const; - template - void set_result_str(ArgT0&& arg0, ArgT... args); + + + + + template + void set_result_str(Arg_&& arg, Args_... args); std::string* mutable_result_str(); PROTOBUF_NODISCARD std::string* release_result_str(); - void set_allocated_result_str(std::string* result_str); + void set_allocated_result_str(std::string* ptr); + private: const std::string& _internal_result_str() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str( + const std::string& value); std::string* _internal_mutable_result_str(); - public: + public: // .mavsdk.rpc.action.ActionResult.Result result = 1; - void clear_result(); + void clear_result() ; ::mavsdk::rpc::action::ActionResult_Result result() const; void set_result(::mavsdk::rpc::action::ActionResult_Result value); + private: ::mavsdk::rpc::action::ActionResult_Result _internal_result() const; void _internal_set_result(::mavsdk::rpc::action::ActionResult_Result value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.ActionResult) private: class _Internal; @@ -6729,20 +7184,29 @@ class ActionResult final : 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_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr result_str_; + int result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_2faction_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // ArmRequest // ------------------------------------------------------------------- @@ -6750,20 +7214,17 @@ class ActionResult final : // ArmResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool ArmResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool ArmResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void ArmResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& ArmResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -6774,20 +7235,20 @@ inline const ::mavsdk::rpc::action::ActionResult& ArmResponse::action_result() c inline void ArmResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ArmResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* ArmResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -6801,18 +7262,18 @@ inline ::mavsdk::rpc::action::ActionResult* ArmResponse::release_action_result() } inline ::mavsdk::rpc::action::ActionResult* ArmResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ArmResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* ArmResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* ArmResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -6822,7 +7283,7 @@ inline ::mavsdk::rpc::action::ActionResult* ArmResponse::mutable_action_result() inline void ArmResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -6831,11 +7292,11 @@ inline void ArmResponse::set_allocated_action_result(::mavsdk::rpc::action::Acti action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ArmResponse.action_result) } @@ -6848,20 +7309,17 @@ inline void ArmResponse::set_allocated_action_result(::mavsdk::rpc::action::Acti // DisarmResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool DisarmResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool DisarmResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void DisarmResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& DisarmResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -6872,20 +7330,20 @@ inline const ::mavsdk::rpc::action::ActionResult& DisarmResponse::action_result( inline void DisarmResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.DisarmResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -6899,18 +7357,18 @@ inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::release_action_resul } inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.DisarmResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -6920,7 +7378,7 @@ inline ::mavsdk::rpc::action::ActionResult* DisarmResponse::mutable_action_resul inline void DisarmResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -6929,11 +7387,11 @@ inline void DisarmResponse::set_allocated_action_result(::mavsdk::rpc::action::A action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.DisarmResponse.action_result) } @@ -6946,20 +7404,17 @@ inline void DisarmResponse::set_allocated_action_result(::mavsdk::rpc::action::A // TakeoffResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool TakeoffResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool TakeoffResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void TakeoffResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -6970,20 +7425,20 @@ inline const ::mavsdk::rpc::action::ActionResult& TakeoffResponse::action_result inline void TakeoffResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TakeoffResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -6997,18 +7452,18 @@ inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::release_action_resu } inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TakeoffResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -7018,7 +7473,7 @@ inline ::mavsdk::rpc::action::ActionResult* TakeoffResponse::mutable_action_resu inline void TakeoffResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -7027,11 +7482,11 @@ inline void TakeoffResponse::set_allocated_action_result(::mavsdk::rpc::action:: action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TakeoffResponse.action_result) } @@ -7044,20 +7499,17 @@ inline void TakeoffResponse::set_allocated_action_result(::mavsdk::rpc::action:: // LandResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool LandResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool LandResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void LandResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& LandResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7068,20 +7520,20 @@ inline const ::mavsdk::rpc::action::ActionResult& LandResponse::action_result() inline void LandResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.LandResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* LandResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7095,18 +7547,18 @@ inline ::mavsdk::rpc::action::ActionResult* LandResponse::release_action_result( } inline ::mavsdk::rpc::action::ActionResult* LandResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.LandResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* LandResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* LandResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -7116,7 +7568,7 @@ inline ::mavsdk::rpc::action::ActionResult* LandResponse::mutable_action_result( inline void LandResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -7125,11 +7577,11 @@ inline void LandResponse::set_allocated_action_result(::mavsdk::rpc::action::Act action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.LandResponse.action_result) } @@ -7142,20 +7594,17 @@ inline void LandResponse::set_allocated_action_result(::mavsdk::rpc::action::Act // RebootResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool RebootResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool RebootResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void RebootResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& RebootResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7166,20 +7615,20 @@ inline const ::mavsdk::rpc::action::ActionResult& RebootResponse::action_result( inline void RebootResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.RebootResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* RebootResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7193,18 +7642,18 @@ inline ::mavsdk::rpc::action::ActionResult* RebootResponse::release_action_resul } inline ::mavsdk::rpc::action::ActionResult* RebootResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.RebootResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* RebootResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* RebootResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -7214,7 +7663,7 @@ inline ::mavsdk::rpc::action::ActionResult* RebootResponse::mutable_action_resul inline void RebootResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -7223,11 +7672,11 @@ inline void RebootResponse::set_allocated_action_result(::mavsdk::rpc::action::A action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.RebootResponse.action_result) } @@ -7240,20 +7689,17 @@ inline void RebootResponse::set_allocated_action_result(::mavsdk::rpc::action::A // ShutdownResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool ShutdownResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool ShutdownResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void ShutdownResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7264,20 +7710,20 @@ inline const ::mavsdk::rpc::action::ActionResult& ShutdownResponse::action_resul inline void ShutdownResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ShutdownResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7291,18 +7737,18 @@ inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::release_action_res } inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ShutdownResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -7312,7 +7758,7 @@ inline ::mavsdk::rpc::action::ActionResult* ShutdownResponse::mutable_action_res inline void ShutdownResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -7321,11 +7767,11 @@ inline void ShutdownResponse::set_allocated_action_result(::mavsdk::rpc::action: action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ShutdownResponse.action_result) } @@ -7338,20 +7784,17 @@ inline void ShutdownResponse::set_allocated_action_result(::mavsdk::rpc::action: // TerminateResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool TerminateResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool TerminateResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void TerminateResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& TerminateResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7362,20 +7805,20 @@ inline const ::mavsdk::rpc::action::ActionResult& TerminateResponse::action_resu inline void TerminateResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TerminateResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7389,18 +7832,18 @@ inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::release_action_re } inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TerminateResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -7410,7 +7853,7 @@ inline ::mavsdk::rpc::action::ActionResult* TerminateResponse::mutable_action_re inline void TerminateResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -7419,11 +7862,11 @@ inline void TerminateResponse::set_allocated_action_result(::mavsdk::rpc::action action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TerminateResponse.action_result) } @@ -7436,20 +7879,17 @@ inline void TerminateResponse::set_allocated_action_result(::mavsdk::rpc::action // KillResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool KillResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool KillResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void KillResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& KillResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7460,20 +7900,20 @@ inline const ::mavsdk::rpc::action::ActionResult& KillResponse::action_result() inline void KillResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.KillResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* KillResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7487,18 +7927,18 @@ inline ::mavsdk::rpc::action::ActionResult* KillResponse::release_action_result( } inline ::mavsdk::rpc::action::ActionResult* KillResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.KillResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* KillResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* KillResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -7508,7 +7948,7 @@ inline ::mavsdk::rpc::action::ActionResult* KillResponse::mutable_action_result( inline void KillResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -7517,11 +7957,11 @@ inline void KillResponse::set_allocated_action_result(::mavsdk::rpc::action::Act action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.KillResponse.action_result) } @@ -7534,20 +7974,17 @@ inline void KillResponse::set_allocated_action_result(::mavsdk::rpc::action::Act // ReturnToLaunchResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool ReturnToLaunchResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool ReturnToLaunchResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void ReturnToLaunchResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& ReturnToLaunchResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7558,20 +7995,20 @@ inline const ::mavsdk::rpc::action::ActionResult& ReturnToLaunchResponse::action inline void ReturnToLaunchResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7585,18 +8022,18 @@ inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::release_acti } inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -7606,7 +8043,7 @@ inline ::mavsdk::rpc::action::ActionResult* ReturnToLaunchResponse::mutable_acti inline void ReturnToLaunchResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -7615,11 +8052,11 @@ inline void ReturnToLaunchResponse::set_allocated_action_result(::mavsdk::rpc::a action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ReturnToLaunchResponse.action_result) } @@ -7629,103 +8066,100 @@ inline void ReturnToLaunchResponse::set_allocated_action_result(::mavsdk::rpc::a // double latitude_deg = 1; inline void GotoLocationRequest::clear_latitude_deg() { - latitude_deg_ = 0; -} -inline double GotoLocationRequest::_internal_latitude_deg() const { - return latitude_deg_; + _impl_.latitude_deg_ = 0; } inline double GotoLocationRequest::latitude_deg() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.latitude_deg) return _internal_latitude_deg(); } -inline void GotoLocationRequest::_internal_set_latitude_deg(double value) { - - latitude_deg_ = value; -} inline void GotoLocationRequest::set_latitude_deg(double value) { _internal_set_latitude_deg(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.latitude_deg) } +inline double GotoLocationRequest::_internal_latitude_deg() const { + return _impl_.latitude_deg_; +} +inline void GotoLocationRequest::_internal_set_latitude_deg(double value) { + ; + _impl_.latitude_deg_ = value; +} // double longitude_deg = 2; inline void GotoLocationRequest::clear_longitude_deg() { - longitude_deg_ = 0; -} -inline double GotoLocationRequest::_internal_longitude_deg() const { - return longitude_deg_; + _impl_.longitude_deg_ = 0; } inline double GotoLocationRequest::longitude_deg() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.longitude_deg) return _internal_longitude_deg(); } -inline void GotoLocationRequest::_internal_set_longitude_deg(double value) { - - longitude_deg_ = value; -} inline void GotoLocationRequest::set_longitude_deg(double value) { _internal_set_longitude_deg(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.longitude_deg) } +inline double GotoLocationRequest::_internal_longitude_deg() const { + return _impl_.longitude_deg_; +} +inline void GotoLocationRequest::_internal_set_longitude_deg(double value) { + ; + _impl_.longitude_deg_ = value; +} // float absolute_altitude_m = 3; inline void GotoLocationRequest::clear_absolute_altitude_m() { - absolute_altitude_m_ = 0; -} -inline float GotoLocationRequest::_internal_absolute_altitude_m() const { - return absolute_altitude_m_; + _impl_.absolute_altitude_m_ = 0; } inline float GotoLocationRequest::absolute_altitude_m() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.absolute_altitude_m) return _internal_absolute_altitude_m(); } -inline void GotoLocationRequest::_internal_set_absolute_altitude_m(float value) { - - absolute_altitude_m_ = value; -} inline void GotoLocationRequest::set_absolute_altitude_m(float value) { _internal_set_absolute_altitude_m(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.absolute_altitude_m) } +inline float GotoLocationRequest::_internal_absolute_altitude_m() const { + return _impl_.absolute_altitude_m_; +} +inline void GotoLocationRequest::_internal_set_absolute_altitude_m(float value) { + ; + _impl_.absolute_altitude_m_ = value; +} // float yaw_deg = 4; inline void GotoLocationRequest::clear_yaw_deg() { - yaw_deg_ = 0; -} -inline float GotoLocationRequest::_internal_yaw_deg() const { - return yaw_deg_; + _impl_.yaw_deg_ = 0; } inline float GotoLocationRequest::yaw_deg() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GotoLocationRequest.yaw_deg) return _internal_yaw_deg(); } -inline void GotoLocationRequest::_internal_set_yaw_deg(float value) { - - yaw_deg_ = value; -} inline void GotoLocationRequest::set_yaw_deg(float value) { _internal_set_yaw_deg(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GotoLocationRequest.yaw_deg) } +inline float GotoLocationRequest::_internal_yaw_deg() const { + return _impl_.yaw_deg_; +} +inline void GotoLocationRequest::_internal_set_yaw_deg(float value) { + ; + _impl_.yaw_deg_ = value; +} // ------------------------------------------------------------------- // GotoLocationResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool GotoLocationResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool GotoLocationResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void GotoLocationResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& GotoLocationResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7736,20 +8170,20 @@ inline const ::mavsdk::rpc::action::ActionResult& GotoLocationResponse::action_r inline void GotoLocationResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GotoLocationResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7763,18 +8197,18 @@ inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::release_action } inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GotoLocationResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -7784,7 +8218,7 @@ inline ::mavsdk::rpc::action::ActionResult* GotoLocationResponse::mutable_action inline void GotoLocationResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -7793,11 +8227,11 @@ inline void GotoLocationResponse::set_allocated_action_result(::mavsdk::rpc::act action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GotoLocationResponse.action_result) } @@ -7807,143 +8241,140 @@ inline void GotoLocationResponse::set_allocated_action_result(::mavsdk::rpc::act // float radius_m = 1; inline void DoOrbitRequest::clear_radius_m() { - radius_m_ = 0; -} -inline float DoOrbitRequest::_internal_radius_m() const { - return radius_m_; + _impl_.radius_m_ = 0; } inline float DoOrbitRequest::radius_m() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.radius_m) return _internal_radius_m(); } -inline void DoOrbitRequest::_internal_set_radius_m(float value) { - - radius_m_ = value; -} inline void DoOrbitRequest::set_radius_m(float value) { _internal_set_radius_m(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.radius_m) } +inline float DoOrbitRequest::_internal_radius_m() const { + return _impl_.radius_m_; +} +inline void DoOrbitRequest::_internal_set_radius_m(float value) { + ; + _impl_.radius_m_ = value; +} // float velocity_ms = 2; inline void DoOrbitRequest::clear_velocity_ms() { - velocity_ms_ = 0; -} -inline float DoOrbitRequest::_internal_velocity_ms() const { - return velocity_ms_; + _impl_.velocity_ms_ = 0; } inline float DoOrbitRequest::velocity_ms() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.velocity_ms) return _internal_velocity_ms(); } -inline void DoOrbitRequest::_internal_set_velocity_ms(float value) { - - velocity_ms_ = value; -} inline void DoOrbitRequest::set_velocity_ms(float value) { _internal_set_velocity_ms(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.velocity_ms) } +inline float DoOrbitRequest::_internal_velocity_ms() const { + return _impl_.velocity_ms_; +} +inline void DoOrbitRequest::_internal_set_velocity_ms(float value) { + ; + _impl_.velocity_ms_ = value; +} // .mavsdk.rpc.action.OrbitYawBehavior yaw_behavior = 3; inline void DoOrbitRequest::clear_yaw_behavior() { - yaw_behavior_ = 0; -} -inline ::mavsdk::rpc::action::OrbitYawBehavior DoOrbitRequest::_internal_yaw_behavior() const { - return static_cast< ::mavsdk::rpc::action::OrbitYawBehavior >(yaw_behavior_); + _impl_.yaw_behavior_ = 0; } inline ::mavsdk::rpc::action::OrbitYawBehavior DoOrbitRequest::yaw_behavior() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.yaw_behavior) return _internal_yaw_behavior(); } -inline void DoOrbitRequest::_internal_set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value) { - - yaw_behavior_ = value; -} inline void DoOrbitRequest::set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value) { - _internal_set_yaw_behavior(value); + _internal_set_yaw_behavior(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.yaw_behavior) } +inline ::mavsdk::rpc::action::OrbitYawBehavior DoOrbitRequest::_internal_yaw_behavior() const { + return static_cast<::mavsdk::rpc::action::OrbitYawBehavior>(_impl_.yaw_behavior_); +} +inline void DoOrbitRequest::_internal_set_yaw_behavior(::mavsdk::rpc::action::OrbitYawBehavior value) { + ; + _impl_.yaw_behavior_ = value; +} // double latitude_deg = 5 [(.mavsdk.options.default_value) = "NaN"]; inline void DoOrbitRequest::clear_latitude_deg() { - latitude_deg_ = 0; -} -inline double DoOrbitRequest::_internal_latitude_deg() const { - return latitude_deg_; + _impl_.latitude_deg_ = 0; } inline double DoOrbitRequest::latitude_deg() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.latitude_deg) return _internal_latitude_deg(); } -inline void DoOrbitRequest::_internal_set_latitude_deg(double value) { - - latitude_deg_ = value; -} inline void DoOrbitRequest::set_latitude_deg(double value) { _internal_set_latitude_deg(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.latitude_deg) } +inline double DoOrbitRequest::_internal_latitude_deg() const { + return _impl_.latitude_deg_; +} +inline void DoOrbitRequest::_internal_set_latitude_deg(double value) { + ; + _impl_.latitude_deg_ = value; +} // double longitude_deg = 6 [(.mavsdk.options.default_value) = "NaN"]; inline void DoOrbitRequest::clear_longitude_deg() { - longitude_deg_ = 0; -} -inline double DoOrbitRequest::_internal_longitude_deg() const { - return longitude_deg_; + _impl_.longitude_deg_ = 0; } inline double DoOrbitRequest::longitude_deg() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.longitude_deg) return _internal_longitude_deg(); } -inline void DoOrbitRequest::_internal_set_longitude_deg(double value) { - - longitude_deg_ = value; -} inline void DoOrbitRequest::set_longitude_deg(double value) { _internal_set_longitude_deg(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.longitude_deg) } +inline double DoOrbitRequest::_internal_longitude_deg() const { + return _impl_.longitude_deg_; +} +inline void DoOrbitRequest::_internal_set_longitude_deg(double value) { + ; + _impl_.longitude_deg_ = value; +} // double absolute_altitude_m = 7 [(.mavsdk.options.default_value) = "NaN"]; inline void DoOrbitRequest::clear_absolute_altitude_m() { - absolute_altitude_m_ = 0; -} -inline double DoOrbitRequest::_internal_absolute_altitude_m() const { - return absolute_altitude_m_; + _impl_.absolute_altitude_m_ = 0; } inline double DoOrbitRequest::absolute_altitude_m() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.DoOrbitRequest.absolute_altitude_m) return _internal_absolute_altitude_m(); } -inline void DoOrbitRequest::_internal_set_absolute_altitude_m(double value) { - - absolute_altitude_m_ = value; -} inline void DoOrbitRequest::set_absolute_altitude_m(double value) { _internal_set_absolute_altitude_m(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.DoOrbitRequest.absolute_altitude_m) } +inline double DoOrbitRequest::_internal_absolute_altitude_m() const { + return _impl_.absolute_altitude_m_; +} +inline void DoOrbitRequest::_internal_set_absolute_altitude_m(double value) { + ; + _impl_.absolute_altitude_m_ = value; +} // ------------------------------------------------------------------- // DoOrbitResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool DoOrbitResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool DoOrbitResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void DoOrbitResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -7954,20 +8385,20 @@ inline const ::mavsdk::rpc::action::ActionResult& DoOrbitResponse::action_result inline void DoOrbitResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.DoOrbitResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -7981,18 +8412,18 @@ inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::release_action_resu } inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.DoOrbitResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -8002,7 +8433,7 @@ inline ::mavsdk::rpc::action::ActionResult* DoOrbitResponse::mutable_action_resu inline void DoOrbitResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -8011,11 +8442,11 @@ inline void DoOrbitResponse::set_allocated_action_result(::mavsdk::rpc::action:: action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.DoOrbitResponse.action_result) } @@ -8028,20 +8459,17 @@ inline void DoOrbitResponse::set_allocated_action_result(::mavsdk::rpc::action:: // HoldResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool HoldResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool HoldResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void HoldResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& HoldResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8052,20 +8480,20 @@ inline const ::mavsdk::rpc::action::ActionResult& HoldResponse::action_result() inline void HoldResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.HoldResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* HoldResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -8079,18 +8507,18 @@ inline ::mavsdk::rpc::action::ActionResult* HoldResponse::release_action_result( } inline ::mavsdk::rpc::action::ActionResult* HoldResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.HoldResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* HoldResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* HoldResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -8100,7 +8528,7 @@ inline ::mavsdk::rpc::action::ActionResult* HoldResponse::mutable_action_result( inline void HoldResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -8109,11 +8537,11 @@ inline void HoldResponse::set_allocated_action_result(::mavsdk::rpc::action::Act action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.HoldResponse.action_result) } @@ -8123,63 +8551,60 @@ inline void HoldResponse::set_allocated_action_result(::mavsdk::rpc::action::Act // int32 index = 1; inline void SetActuatorRequest::clear_index() { - index_ = 0; -} -inline int32_t SetActuatorRequest::_internal_index() const { - return index_; + _impl_.index_ = 0; } -inline int32_t SetActuatorRequest::index() const { +inline ::int32_t SetActuatorRequest::index() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetActuatorRequest.index) return _internal_index(); } -inline void SetActuatorRequest::_internal_set_index(int32_t value) { - - index_ = value; -} -inline void SetActuatorRequest::set_index(int32_t value) { +inline void SetActuatorRequest::set_index(::int32_t value) { _internal_set_index(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetActuatorRequest.index) } +inline ::int32_t SetActuatorRequest::_internal_index() const { + return _impl_.index_; +} +inline void SetActuatorRequest::_internal_set_index(::int32_t value) { + ; + _impl_.index_ = value; +} // float value = 2; inline void SetActuatorRequest::clear_value() { - value_ = 0; -} -inline float SetActuatorRequest::_internal_value() const { - return value_; + _impl_.value_ = 0; } inline float SetActuatorRequest::value() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetActuatorRequest.value) return _internal_value(); } -inline void SetActuatorRequest::_internal_set_value(float value) { - - value_ = value; -} inline void SetActuatorRequest::set_value(float value) { _internal_set_value(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetActuatorRequest.value) } +inline float SetActuatorRequest::_internal_value() const { + return _impl_.value_; +} +inline void SetActuatorRequest::_internal_set_value(float value) { + ; + _impl_.value_ = value; +} // ------------------------------------------------------------------- // SetActuatorResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool SetActuatorResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool SetActuatorResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void SetActuatorResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& SetActuatorResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8190,20 +8615,20 @@ inline const ::mavsdk::rpc::action::ActionResult& SetActuatorResponse::action_re inline void SetActuatorResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetActuatorResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -8217,18 +8642,18 @@ inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::release_action_ } inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetActuatorResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -8238,7 +8663,7 @@ inline ::mavsdk::rpc::action::ActionResult* SetActuatorResponse::mutable_action_ inline void SetActuatorResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -8247,11 +8672,11 @@ inline void SetActuatorResponse::set_allocated_action_result(::mavsdk::rpc::acti action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetActuatorResponse.action_result) } @@ -8264,20 +8689,17 @@ inline void SetActuatorResponse::set_allocated_action_result(::mavsdk::rpc::acti // TransitionToFixedwingResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool TransitionToFixedwingResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool TransitionToFixedwingResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void TransitionToFixedwingResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& TransitionToFixedwingResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8288,20 +8710,20 @@ inline const ::mavsdk::rpc::action::ActionResult& TransitionToFixedwingResponse: inline void TransitionToFixedwingResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -8315,18 +8737,18 @@ inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::relea } inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -8336,7 +8758,7 @@ inline ::mavsdk::rpc::action::ActionResult* TransitionToFixedwingResponse::mutab inline void TransitionToFixedwingResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -8345,11 +8767,11 @@ inline void TransitionToFixedwingResponse::set_allocated_action_result(::mavsdk: action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TransitionToFixedwingResponse.action_result) } @@ -8362,20 +8784,17 @@ inline void TransitionToFixedwingResponse::set_allocated_action_result(::mavsdk: // TransitionToMulticopterResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool TransitionToMulticopterResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool TransitionToMulticopterResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void TransitionToMulticopterResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& TransitionToMulticopterResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8386,20 +8805,20 @@ inline const ::mavsdk::rpc::action::ActionResult& TransitionToMulticopterRespons inline void TransitionToMulticopterResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -8413,18 +8832,18 @@ inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::rel } inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -8434,7 +8853,7 @@ inline ::mavsdk::rpc::action::ActionResult* TransitionToMulticopterResponse::mut inline void TransitionToMulticopterResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -8443,11 +8862,11 @@ inline void TransitionToMulticopterResponse::set_allocated_action_result(::mavsd action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.TransitionToMulticopterResponse.action_result) } @@ -8460,20 +8879,17 @@ inline void TransitionToMulticopterResponse::set_allocated_action_result(::mavsd // GetTakeoffAltitudeResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool GetTakeoffAltitudeResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool GetTakeoffAltitudeResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void GetTakeoffAltitudeResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& GetTakeoffAltitudeResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8484,20 +8900,20 @@ inline const ::mavsdk::rpc::action::ActionResult& GetTakeoffAltitudeResponse::ac inline void GetTakeoffAltitudeResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -8511,18 +8927,18 @@ inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::release_ } inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -8532,7 +8948,7 @@ inline ::mavsdk::rpc::action::ActionResult* GetTakeoffAltitudeResponse::mutable_ inline void GetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -8541,33 +8957,33 @@ inline void GetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rp action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GetTakeoffAltitudeResponse.action_result) } // float altitude = 2; inline void GetTakeoffAltitudeResponse::clear_altitude() { - altitude_ = 0; -} -inline float GetTakeoffAltitudeResponse::_internal_altitude() const { - return altitude_; + _impl_.altitude_ = 0; } inline float GetTakeoffAltitudeResponse::altitude() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetTakeoffAltitudeResponse.altitude) return _internal_altitude(); } -inline void GetTakeoffAltitudeResponse::_internal_set_altitude(float value) { - - altitude_ = value; -} inline void GetTakeoffAltitudeResponse::set_altitude(float value) { _internal_set_altitude(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GetTakeoffAltitudeResponse.altitude) } +inline float GetTakeoffAltitudeResponse::_internal_altitude() const { + return _impl_.altitude_; +} +inline void GetTakeoffAltitudeResponse::_internal_set_altitude(float value) { + ; + _impl_.altitude_ = value; +} // ------------------------------------------------------------------- @@ -8575,43 +8991,40 @@ inline void GetTakeoffAltitudeResponse::set_altitude(float value) { // float altitude = 1; inline void SetTakeoffAltitudeRequest::clear_altitude() { - altitude_ = 0; -} -inline float SetTakeoffAltitudeRequest::_internal_altitude() const { - return altitude_; + _impl_.altitude_ = 0; } inline float SetTakeoffAltitudeRequest::altitude() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetTakeoffAltitudeRequest.altitude) return _internal_altitude(); } -inline void SetTakeoffAltitudeRequest::_internal_set_altitude(float value) { - - altitude_ = value; -} inline void SetTakeoffAltitudeRequest::set_altitude(float value) { _internal_set_altitude(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetTakeoffAltitudeRequest.altitude) } +inline float SetTakeoffAltitudeRequest::_internal_altitude() const { + return _impl_.altitude_; +} +inline void SetTakeoffAltitudeRequest::_internal_set_altitude(float value) { + ; + _impl_.altitude_ = value; +} // ------------------------------------------------------------------- // SetTakeoffAltitudeResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool SetTakeoffAltitudeResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool SetTakeoffAltitudeResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void SetTakeoffAltitudeResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& SetTakeoffAltitudeResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8622,20 +9035,20 @@ inline const ::mavsdk::rpc::action::ActionResult& SetTakeoffAltitudeResponse::ac inline void SetTakeoffAltitudeResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -8649,18 +9062,18 @@ inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::release_ } inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -8670,7 +9083,7 @@ inline ::mavsdk::rpc::action::ActionResult* SetTakeoffAltitudeResponse::mutable_ inline void SetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -8679,11 +9092,11 @@ inline void SetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rp action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetTakeoffAltitudeResponse.action_result) } @@ -8696,20 +9109,17 @@ inline void SetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rp // GetMaximumSpeedResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool GetMaximumSpeedResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool GetMaximumSpeedResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void GetMaximumSpeedResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& GetMaximumSpeedResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8720,20 +9130,20 @@ inline const ::mavsdk::rpc::action::ActionResult& GetMaximumSpeedResponse::actio inline void GetMaximumSpeedResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -8747,18 +9157,18 @@ inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::release_act } inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -8768,7 +9178,7 @@ inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::mutable_act inline void GetMaximumSpeedResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -8777,33 +9187,33 @@ inline void GetMaximumSpeedResponse::set_allocated_action_result(::mavsdk::rpc:: action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) } // float speed = 2; inline void GetMaximumSpeedResponse::clear_speed() { - speed_ = 0; -} -inline float GetMaximumSpeedResponse::_internal_speed() const { - return speed_; + _impl_.speed_ = 0; } inline float GetMaximumSpeedResponse::speed() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetMaximumSpeedResponse.speed) return _internal_speed(); } -inline void GetMaximumSpeedResponse::_internal_set_speed(float value) { - - speed_ = value; -} inline void GetMaximumSpeedResponse::set_speed(float value) { _internal_set_speed(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GetMaximumSpeedResponse.speed) } +inline float GetMaximumSpeedResponse::_internal_speed() const { + return _impl_.speed_; +} +inline void GetMaximumSpeedResponse::_internal_set_speed(float value) { + ; + _impl_.speed_ = value; +} // ------------------------------------------------------------------- @@ -8811,43 +9221,40 @@ inline void GetMaximumSpeedResponse::set_speed(float value) { // float speed = 1; inline void SetMaximumSpeedRequest::clear_speed() { - speed_ = 0; -} -inline float SetMaximumSpeedRequest::_internal_speed() const { - return speed_; + _impl_.speed_ = 0; } inline float SetMaximumSpeedRequest::speed() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetMaximumSpeedRequest.speed) return _internal_speed(); } -inline void SetMaximumSpeedRequest::_internal_set_speed(float value) { - - speed_ = value; -} inline void SetMaximumSpeedRequest::set_speed(float value) { _internal_set_speed(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetMaximumSpeedRequest.speed) } +inline float SetMaximumSpeedRequest::_internal_speed() const { + return _impl_.speed_; +} +inline void SetMaximumSpeedRequest::_internal_set_speed(float value) { + ; + _impl_.speed_ = value; +} // ------------------------------------------------------------------- // SetMaximumSpeedResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool SetMaximumSpeedResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool SetMaximumSpeedResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void SetMaximumSpeedResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& SetMaximumSpeedResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8858,20 +9265,20 @@ inline const ::mavsdk::rpc::action::ActionResult& SetMaximumSpeedResponse::actio inline void SetMaximumSpeedResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -8885,18 +9292,18 @@ inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::release_act } inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -8906,7 +9313,7 @@ inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::mutable_act inline void SetMaximumSpeedResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -8915,11 +9322,11 @@ inline void SetMaximumSpeedResponse::set_allocated_action_result(::mavsdk::rpc:: action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) } @@ -8932,20 +9339,17 @@ inline void SetMaximumSpeedResponse::set_allocated_action_result(::mavsdk::rpc:: // GetReturnToLaunchAltitudeResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool GetReturnToLaunchAltitudeResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool GetReturnToLaunchAltitudeResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void GetReturnToLaunchAltitudeResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -8956,20 +9360,20 @@ inline const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeRespo inline void GetReturnToLaunchAltitudeResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -8983,18 +9387,18 @@ inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::r } inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -9004,7 +9408,7 @@ inline ::mavsdk::rpc::action::ActionResult* GetReturnToLaunchAltitudeResponse::m inline void GetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -9013,33 +9417,33 @@ inline void GetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mav action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.action_result) } // float relative_altitude_m = 2; inline void GetReturnToLaunchAltitudeResponse::clear_relative_altitude_m() { - relative_altitude_m_ = 0; -} -inline float GetReturnToLaunchAltitudeResponse::_internal_relative_altitude_m() const { - return relative_altitude_m_; + _impl_.relative_altitude_m_ = 0; } inline float GetReturnToLaunchAltitudeResponse::relative_altitude_m() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.relative_altitude_m) return _internal_relative_altitude_m(); } -inline void GetReturnToLaunchAltitudeResponse::_internal_set_relative_altitude_m(float value) { - - relative_altitude_m_ = value; -} inline void GetReturnToLaunchAltitudeResponse::set_relative_altitude_m(float value) { _internal_set_relative_altitude_m(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse.relative_altitude_m) } +inline float GetReturnToLaunchAltitudeResponse::_internal_relative_altitude_m() const { + return _impl_.relative_altitude_m_; +} +inline void GetReturnToLaunchAltitudeResponse::_internal_set_relative_altitude_m(float value) { + ; + _impl_.relative_altitude_m_ = value; +} // ------------------------------------------------------------------- @@ -9047,43 +9451,40 @@ inline void GetReturnToLaunchAltitudeResponse::set_relative_altitude_m(float val // float relative_altitude_m = 1; inline void SetReturnToLaunchAltitudeRequest::clear_relative_altitude_m() { - relative_altitude_m_ = 0; -} -inline float SetReturnToLaunchAltitudeRequest::_internal_relative_altitude_m() const { - return relative_altitude_m_; + _impl_.relative_altitude_m_ = 0; } inline float SetReturnToLaunchAltitudeRequest::relative_altitude_m() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest.relative_altitude_m) return _internal_relative_altitude_m(); } -inline void SetReturnToLaunchAltitudeRequest::_internal_set_relative_altitude_m(float value) { - - relative_altitude_m_ = value; -} inline void SetReturnToLaunchAltitudeRequest::set_relative_altitude_m(float value) { _internal_set_relative_altitude_m(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest.relative_altitude_m) } +inline float SetReturnToLaunchAltitudeRequest::_internal_relative_altitude_m() const { + return _impl_.relative_altitude_m_; +} +inline void SetReturnToLaunchAltitudeRequest::_internal_set_relative_altitude_m(float value) { + ; + _impl_.relative_altitude_m_ = value; +} // ------------------------------------------------------------------- // SetReturnToLaunchAltitudeResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool SetReturnToLaunchAltitudeResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool SetReturnToLaunchAltitudeResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void SetReturnToLaunchAltitudeResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -9094,20 +9495,20 @@ inline const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeRespo inline void SetReturnToLaunchAltitudeResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -9121,18 +9522,18 @@ inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::r } inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -9142,7 +9543,7 @@ inline ::mavsdk::rpc::action::ActionResult* SetReturnToLaunchAltitudeResponse::m inline void SetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -9151,11 +9552,11 @@ inline void SetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mav action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse.action_result) } @@ -9165,43 +9566,40 @@ inline void SetReturnToLaunchAltitudeResponse::set_allocated_action_result(::mav // float speed_m_s = 1; inline void SetCurrentSpeedRequest::clear_speed_m_s() { - speed_m_s_ = 0; -} -inline float SetCurrentSpeedRequest::_internal_speed_m_s() const { - return speed_m_s_; + _impl_.speed_m_s_ = 0; } inline float SetCurrentSpeedRequest::speed_m_s() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetCurrentSpeedRequest.speed_m_s) return _internal_speed_m_s(); } -inline void SetCurrentSpeedRequest::_internal_set_speed_m_s(float value) { - - speed_m_s_ = value; -} inline void SetCurrentSpeedRequest::set_speed_m_s(float value) { _internal_set_speed_m_s(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetCurrentSpeedRequest.speed_m_s) } +inline float SetCurrentSpeedRequest::_internal_speed_m_s() const { + return _impl_.speed_m_s_; +} +inline void SetCurrentSpeedRequest::_internal_set_speed_m_s(float value) { + ; + _impl_.speed_m_s_ = value; +} // ------------------------------------------------------------------- // SetCurrentSpeedResponse // .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool SetCurrentSpeedResponse::_internal_has_action_result() const { - return this != internal_default_instance() && action_result_ != nullptr; -} inline bool SetCurrentSpeedResponse::has_action_result() const { - return _internal_has_action_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); + return value; } inline void SetCurrentSpeedResponse::clear_action_result() { - if (GetArenaForAllocation() == nullptr && action_result_ != nullptr) { - delete action_result_; - } - action_result_ = nullptr; + if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action::ActionResult& SetCurrentSpeedResponse::_internal_action_result() const { - const ::mavsdk::rpc::action::ActionResult* p = action_result_; + const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action::_ActionResult_default_instance_); } @@ -9212,20 +9610,20 @@ inline const ::mavsdk::rpc::action::ActionResult& SetCurrentSpeedResponse::actio inline void SetCurrentSpeedResponse::unsafe_arena_set_allocated_action_result( ::mavsdk::rpc::action::ActionResult* action_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_result_); } - action_result_ = action_result; + _impl_.action_result_ = action_result; if (action_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) } inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::release_action_result() { - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -9239,18 +9637,18 @@ inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::release_act } inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::unsafe_arena_release_action_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) - - ::mavsdk::rpc::action::ActionResult* temp = action_result_; - action_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; + _impl_.action_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::_internal_mutable_action_result() { - - if (action_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArenaForAllocation()); - action_result_ = p; + _impl_.action_result_ = p; } - return action_result_; + return _impl_.action_result_; } inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::mutable_action_result() { ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); @@ -9260,7 +9658,7 @@ inline ::mavsdk::rpc::action::ActionResult* SetCurrentSpeedResponse::mutable_act inline void SetCurrentSpeedResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_result_; + delete _impl_.action_result_; } if (action_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -9269,11 +9667,11 @@ inline void SetCurrentSpeedResponse::set_allocated_action_result(::mavsdk::rpc:: action_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_result_ = action_result; + _impl_.action_result_ = action_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetCurrentSpeedResponse.action_result) } @@ -9283,37 +9681,37 @@ inline void SetCurrentSpeedResponse::set_allocated_action_result(::mavsdk::rpc:: // .mavsdk.rpc.action.ActionResult.Result result = 1; inline void ActionResult::clear_result() { - result_ = 0; -} -inline ::mavsdk::rpc::action::ActionResult_Result ActionResult::_internal_result() const { - return static_cast< ::mavsdk::rpc::action::ActionResult_Result >(result_); + _impl_.result_ = 0; } inline ::mavsdk::rpc::action::ActionResult_Result ActionResult::result() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ActionResult.result) return _internal_result(); } -inline void ActionResult::_internal_set_result(::mavsdk::rpc::action::ActionResult_Result value) { - - result_ = value; -} inline void ActionResult::set_result(::mavsdk::rpc::action::ActionResult_Result value) { - _internal_set_result(value); + _internal_set_result(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.ActionResult.result) } +inline ::mavsdk::rpc::action::ActionResult_Result ActionResult::_internal_result() const { + return static_cast<::mavsdk::rpc::action::ActionResult_Result>(_impl_.result_); +} +inline void ActionResult::_internal_set_result(::mavsdk::rpc::action::ActionResult_Result value) { + ; + _impl_.result_ = value; +} // string result_str = 2; inline void ActionResult::clear_result_str() { - result_str_.ClearToEmpty(); + _impl_.result_str_.ClearToEmpty(); } inline const std::string& ActionResult::result_str() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action.ActionResult.result_str) return _internal_result_str(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ActionResult::set_result_str(ArgT0&& arg0, ArgT... args) { - - result_str_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ActionResult::set_result_str(Arg_&& arg, + Args_... args) { + ; + _impl_.result_str_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:mavsdk.rpc.action.ActionResult.result_str) } inline std::string* ActionResult::mutable_result_str() { @@ -9322,143 +9720,54 @@ inline std::string* ActionResult::mutable_result_str() { return _s; } inline const std::string& ActionResult::_internal_result_str() const { - return result_str_.Get(); + return _impl_.result_str_.Get(); } inline void ActionResult::_internal_set_result_str(const std::string& value) { - - result_str_.Set(value, GetArenaForAllocation()); + ; + + + _impl_.result_str_.Set(value, GetArenaForAllocation()); } inline std::string* ActionResult::_internal_mutable_result_str() { - - return result_str_.Mutable(GetArenaForAllocation()); + ; + return _impl_.result_str_.Mutable( GetArenaForAllocation()); } inline std::string* ActionResult::release_result_str() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action.ActionResult.result_str) - return result_str_.Release(); -} -inline void ActionResult::set_allocated_result_str(std::string* result_str) { - if (result_str != nullptr) { - - } else { - - } - result_str_.SetAllocated(result_str, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (result_str_.IsDefault()) { - result_str_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return _impl_.result_str_.Release(); +} +inline void ActionResult::set_allocated_result_str(std::string* value) { + _impl_.result_str_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.result_str_.IsDefault()) { + _impl_.result_str_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.ActionResult.result_str) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace action } // namespace rpc } // namespace mavsdk + PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::mavsdk::rpc::action::ActionResult_Result> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::mavsdk::rpc::action::ActionResult_Result>() { +struct is_proto_enum<::mavsdk::rpc::action::ActionResult_Result> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action::ActionResult_Result>() { return ::mavsdk::rpc::action::ActionResult_Result_descriptor(); } -template <> struct is_proto_enum< ::mavsdk::rpc::action::OrbitYawBehavior> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::mavsdk::rpc::action::OrbitYawBehavior>() { +struct is_proto_enum<::mavsdk::rpc::action::OrbitYawBehavior> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action::OrbitYawBehavior>() { return ::mavsdk::rpc::action::OrbitYawBehavior_descriptor(); } @@ -9466,5 +9775,6 @@ PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // GOOGLE_PROTOBUF_INCLUDED_action_2faction_2eproto_2epb_2eh diff --git a/src/mavsdk_server/src/generated/action_server/action_server.grpc.pb.cc b/src/mavsdk_server/src/generated/action_server/action_server.grpc.pb.cc index 59bfc1af2d..9bf62f1fe0 100644 --- a/src/mavsdk_server/src/generated/action_server/action_server.grpc.pb.cc +++ b/src/mavsdk_server/src/generated/action_server/action_server.grpc.pb.cc @@ -6,19 +6,19 @@ #include "action_server/action_server.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace mavsdk { namespace rpc { namespace action_server { diff --git a/src/mavsdk_server/src/generated/action_server/action_server.grpc.pb.h b/src/mavsdk_server/src/generated/action_server/action_server.grpc.pb.h index 00ea4f90f4..85c0bbfb5c 100644 --- a/src/mavsdk_server/src/generated/action_server/action_server.grpc.pb.h +++ b/src/mavsdk_server/src/generated/action_server/action_server.grpc.pb.h @@ -7,23 +7,23 @@ #include "action_server/action_server.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace mavsdk { namespace rpc { diff --git a/src/mavsdk_server/src/generated/action_server/action_server.pb.cc b/src/mavsdk_server/src/generated/action_server/action_server.pb.cc index a0455c7e6b..62ee7d722a 100644 --- a/src/mavsdk_server/src/generated/action_server/action_server.pb.cc +++ b/src/mavsdk_server/src/generated/action_server/action_server.pb.cc @@ -4,755 +4,955 @@ #include "action_server/action_server.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/descriptor.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/reflection_ops.h" +#include "google/protobuf/wire_format.h" // @@protoc_insertion_point(includes) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; namespace mavsdk { namespace rpc { namespace action_server { +template PROTOBUF_CONSTEXPR SetAllowTakeoffRequest::SetAllowTakeoffRequest( - ::_pbi::ConstantInitialized) - : allow_takeoff_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.allow_takeoff_)*/ false + + , /*decltype(_impl_._cached_size_)*/{}} {} struct SetAllowTakeoffRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetAllowTakeoffRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetAllowTakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetAllowTakeoffRequestDefaultTypeInternal() {} union { SetAllowTakeoffRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowTakeoffRequestDefaultTypeInternal _SetAllowTakeoffRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowTakeoffRequestDefaultTypeInternal _SetAllowTakeoffRequest_default_instance_; +template PROTOBUF_CONSTEXPR SetArmableRequest::SetArmableRequest( - ::_pbi::ConstantInitialized) - : armable_(false) - , force_armable_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.armable_)*/ false + + , /*decltype(_impl_.force_armable_)*/ false + + , /*decltype(_impl_._cached_size_)*/{}} {} struct SetArmableRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetArmableRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetArmableRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetArmableRequestDefaultTypeInternal() {} union { SetArmableRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetArmableRequestDefaultTypeInternal _SetArmableRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetArmableRequestDefaultTypeInternal _SetArmableRequest_default_instance_; +template PROTOBUF_CONSTEXPR SetDisarmableRequest::SetDisarmableRequest( - ::_pbi::ConstantInitialized) - : disarmable_(false) - , force_disarmable_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.disarmable_)*/ false + + , /*decltype(_impl_.force_disarmable_)*/ false + + , /*decltype(_impl_._cached_size_)*/{}} {} struct SetDisarmableRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetDisarmableRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetDisarmableRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetDisarmableRequestDefaultTypeInternal() {} union { SetDisarmableRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDisarmableRequestDefaultTypeInternal _SetDisarmableRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDisarmableRequestDefaultTypeInternal _SetDisarmableRequest_default_instance_; +template PROTOBUF_CONSTEXPR SetAllowableFlightModesRequest::SetAllowableFlightModesRequest( - ::_pbi::ConstantInitialized) - : flight_modes_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.flight_modes_)*/nullptr} {} struct SetAllowableFlightModesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetAllowableFlightModesRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetAllowableFlightModesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetAllowableFlightModesRequestDefaultTypeInternal() {} union { SetAllowableFlightModesRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowableFlightModesRequestDefaultTypeInternal _SetAllowableFlightModesRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowableFlightModesRequestDefaultTypeInternal _SetAllowableFlightModesRequest_default_instance_; +template PROTOBUF_CONSTEXPR GetAllowableFlightModesRequest::GetAllowableFlightModesRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct GetAllowableFlightModesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAllowableFlightModesRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetAllowableFlightModesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetAllowableFlightModesRequestDefaultTypeInternal() {} union { GetAllowableFlightModesRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAllowableFlightModesRequestDefaultTypeInternal _GetAllowableFlightModesRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAllowableFlightModesRequestDefaultTypeInternal _GetAllowableFlightModesRequest_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest::SubscribeArmDisarmRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeArmDisarmRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeArmDisarmRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeArmDisarmRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeArmDisarmRequestDefaultTypeInternal() {} union { SubscribeArmDisarmRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeArmDisarmRequestDefaultTypeInternal _SubscribeArmDisarmRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeArmDisarmRequestDefaultTypeInternal _SubscribeArmDisarmRequest_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeFlightModeChangeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeFlightModeChangeRequestDefaultTypeInternal() {} union { SubscribeFlightModeChangeRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeFlightModeChangeRequestDefaultTypeInternal _SubscribeFlightModeChangeRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeFlightModeChangeRequestDefaultTypeInternal _SubscribeFlightModeChangeRequest_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeTakeoffRequest::SubscribeTakeoffRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeTakeoffRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeTakeoffRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeTakeoffRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeTakeoffRequestDefaultTypeInternal() {} union { SubscribeTakeoffRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeTakeoffRequestDefaultTypeInternal _SubscribeTakeoffRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeTakeoffRequestDefaultTypeInternal _SubscribeTakeoffRequest_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeLandRequest::SubscribeLandRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeLandRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeLandRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeLandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeLandRequestDefaultTypeInternal() {} union { SubscribeLandRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeLandRequestDefaultTypeInternal _SubscribeLandRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeLandRequestDefaultTypeInternal _SubscribeLandRequest_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeRebootRequest::SubscribeRebootRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeRebootRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeRebootRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeRebootRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeRebootRequestDefaultTypeInternal() {} union { SubscribeRebootRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeRebootRequestDefaultTypeInternal _SubscribeRebootRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeRebootRequestDefaultTypeInternal _SubscribeRebootRequest_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeShutdownRequest::SubscribeShutdownRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeShutdownRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeShutdownRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeShutdownRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeShutdownRequestDefaultTypeInternal() {} union { SubscribeShutdownRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeShutdownRequestDefaultTypeInternal _SubscribeShutdownRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeShutdownRequestDefaultTypeInternal _SubscribeShutdownRequest_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeTerminateRequest::SubscribeTerminateRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeTerminateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeTerminateRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeTerminateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeTerminateRequestDefaultTypeInternal() {} union { SubscribeTerminateRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeTerminateRequestDefaultTypeInternal _SubscribeTerminateRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeTerminateRequestDefaultTypeInternal _SubscribeTerminateRequest_default_instance_; +template PROTOBUF_CONSTEXPR ArmDisarmResponse::ArmDisarmResponse( - ::_pbi::ConstantInitialized) - : action_server_result_(nullptr) - , arm_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_server_result_)*/nullptr + , /*decltype(_impl_.arm_)*/nullptr} {} struct ArmDisarmResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmDisarmResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ArmDisarmResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmDisarmResponseDefaultTypeInternal() {} union { ArmDisarmResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmDisarmResponseDefaultTypeInternal _ArmDisarmResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmDisarmResponseDefaultTypeInternal _ArmDisarmResponse_default_instance_; +template PROTOBUF_CONSTEXPR FlightModeChangeResponse::FlightModeChangeResponse( - ::_pbi::ConstantInitialized) - : action_server_result_(nullptr) - , flight_mode_(0) -{} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_server_result_)*/nullptr + , /*decltype(_impl_.flight_mode_)*/ 0 +} {} struct FlightModeChangeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlightModeChangeResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FlightModeChangeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FlightModeChangeResponseDefaultTypeInternal() {} union { FlightModeChangeResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlightModeChangeResponseDefaultTypeInternal _FlightModeChangeResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlightModeChangeResponseDefaultTypeInternal _FlightModeChangeResponse_default_instance_; +template PROTOBUF_CONSTEXPR TakeoffResponse::TakeoffResponse( - ::_pbi::ConstantInitialized) - : action_server_result_(nullptr) - , takeoff_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_server_result_)*/nullptr + , /*decltype(_impl_.takeoff_)*/ false +} {} struct TakeoffResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakeoffResponseDefaultTypeInternal() {} union { TakeoffResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakeoffResponseDefaultTypeInternal _TakeoffResponse_default_instance_; +template PROTOBUF_CONSTEXPR LandResponse::LandResponse( - ::_pbi::ConstantInitialized) - : action_server_result_(nullptr) - , land_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_server_result_)*/nullptr + , /*decltype(_impl_.land_)*/ false +} {} struct LandResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~LandResponseDefaultTypeInternal() {} union { LandResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandResponseDefaultTypeInternal _LandResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LandResponseDefaultTypeInternal _LandResponse_default_instance_; +template PROTOBUF_CONSTEXPR RebootResponse::RebootResponse( - ::_pbi::ConstantInitialized) - : action_server_result_(nullptr) - , reboot_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_server_result_)*/nullptr + , /*decltype(_impl_.reboot_)*/ false +} {} struct RebootResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR RebootResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RebootResponseDefaultTypeInternal() {} union { RebootResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootResponseDefaultTypeInternal _RebootResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RebootResponseDefaultTypeInternal _RebootResponse_default_instance_; +template PROTOBUF_CONSTEXPR ShutdownResponse::ShutdownResponse( - ::_pbi::ConstantInitialized) - : action_server_result_(nullptr) - , shutdown_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_server_result_)*/nullptr + , /*decltype(_impl_.shutdown_)*/ false +} {} struct ShutdownResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ShutdownResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ShutdownResponseDefaultTypeInternal() {} union { ShutdownResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownResponseDefaultTypeInternal _ShutdownResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShutdownResponseDefaultTypeInternal _ShutdownResponse_default_instance_; +template PROTOBUF_CONSTEXPR TerminateResponse::TerminateResponse( - ::_pbi::ConstantInitialized) - : action_server_result_(nullptr) - , terminate_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_server_result_)*/nullptr + , /*decltype(_impl_.terminate_)*/ false +} {} struct TerminateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TerminateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TerminateResponseDefaultTypeInternal() {} union { TerminateResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_; +template PROTOBUF_CONSTEXPR SetArmableResponse::SetArmableResponse( - ::_pbi::ConstantInitialized) - : action_server_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_server_result_)*/nullptr} {} struct SetArmableResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetArmableResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetArmableResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetArmableResponseDefaultTypeInternal() {} union { SetArmableResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetArmableResponseDefaultTypeInternal _SetArmableResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetArmableResponseDefaultTypeInternal _SetArmableResponse_default_instance_; +template PROTOBUF_CONSTEXPR SetDisarmableResponse::SetDisarmableResponse( - ::_pbi::ConstantInitialized) - : action_server_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_server_result_)*/nullptr} {} struct SetDisarmableResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetDisarmableResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetDisarmableResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetDisarmableResponseDefaultTypeInternal() {} union { SetDisarmableResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDisarmableResponseDefaultTypeInternal _SetDisarmableResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDisarmableResponseDefaultTypeInternal _SetDisarmableResponse_default_instance_; +template PROTOBUF_CONSTEXPR SetAllowableFlightModesResponse::SetAllowableFlightModesResponse( - ::_pbi::ConstantInitialized) - : action_server_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_server_result_)*/nullptr} {} struct SetAllowableFlightModesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetAllowableFlightModesResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetAllowableFlightModesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetAllowableFlightModesResponseDefaultTypeInternal() {} union { SetAllowableFlightModesResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowableFlightModesResponseDefaultTypeInternal _SetAllowableFlightModesResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowableFlightModesResponseDefaultTypeInternal _SetAllowableFlightModesResponse_default_instance_; +template PROTOBUF_CONSTEXPR SetAllowTakeoffResponse::SetAllowTakeoffResponse( - ::_pbi::ConstantInitialized) - : action_server_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.action_server_result_)*/nullptr} {} struct SetAllowTakeoffResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetAllowTakeoffResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetAllowTakeoffResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetAllowTakeoffResponseDefaultTypeInternal() {} union { SetAllowTakeoffResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowTakeoffResponseDefaultTypeInternal _SetAllowTakeoffResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetAllowTakeoffResponseDefaultTypeInternal _SetAllowTakeoffResponse_default_instance_; +template PROTOBUF_CONSTEXPR GetAllowableFlightModesResponse::GetAllowableFlightModesResponse( - ::_pbi::ConstantInitialized) - : flight_modes_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.flight_modes_)*/nullptr} {} struct GetAllowableFlightModesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAllowableFlightModesResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetAllowableFlightModesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetAllowableFlightModesResponseDefaultTypeInternal() {} union { GetAllowableFlightModesResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAllowableFlightModesResponseDefaultTypeInternal _GetAllowableFlightModesResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAllowableFlightModesResponseDefaultTypeInternal _GetAllowableFlightModesResponse_default_instance_; +template PROTOBUF_CONSTEXPR AllowableFlightModes::AllowableFlightModes( - ::_pbi::ConstantInitialized) - : can_auto_mode_(false) - , can_guided_mode_(false) - , can_stabilize_mode_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.can_auto_mode_)*/ false + + , /*decltype(_impl_.can_guided_mode_)*/ false + + , /*decltype(_impl_.can_stabilize_mode_)*/ false + + , /*decltype(_impl_._cached_size_)*/{}} {} struct AllowableFlightModesDefaultTypeInternal { - PROTOBUF_CONSTEXPR AllowableFlightModesDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AllowableFlightModesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AllowableFlightModesDefaultTypeInternal() {} union { AllowableFlightModes _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllowableFlightModesDefaultTypeInternal _AllowableFlightModes_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllowableFlightModesDefaultTypeInternal _AllowableFlightModes_default_instance_; +template PROTOBUF_CONSTEXPR ArmDisarm::ArmDisarm( - ::_pbi::ConstantInitialized) - : arm_(false) - , force_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.arm_)*/ false + + , /*decltype(_impl_.force_)*/ false + + , /*decltype(_impl_._cached_size_)*/{}} {} struct ArmDisarmDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArmDisarmDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ArmDisarmDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ArmDisarmDefaultTypeInternal() {} union { ArmDisarm _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmDisarmDefaultTypeInternal _ArmDisarm_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArmDisarmDefaultTypeInternal _ArmDisarm_default_instance_; +template PROTOBUF_CONSTEXPR ActionServerResult::ActionServerResult( - ::_pbi::ConstantInitialized) - : result_str_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , result_(0) -{} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.result_str_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.result_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct ActionServerResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR ActionServerResultDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ActionServerResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ActionServerResultDefaultTypeInternal() {} union { ActionServerResult _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActionServerResultDefaultTypeInternal _ActionServerResult_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ActionServerResultDefaultTypeInternal _ActionServerResult_default_instance_; } // namespace action_server } // namespace rpc } // namespace mavsdk static ::_pb::Metadata file_level_metadata_action_5fserver_2faction_5fserver_2eproto[27]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto[2]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_action_5fserver_2faction_5fserver_2eproto = nullptr; - -const uint32_t TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffRequest, allow_takeoff_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, armable_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, force_armable_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, disarmable_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, force_disarmable_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, flight_modes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeArmDisarmRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeTakeoffRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeLandRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeRebootRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeShutdownRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeTerminateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, arm_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, flight_mode_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, takeoff_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, land_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, reboot_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, shutdown_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, action_server_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, terminate_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, action_server_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, action_server_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, action_server_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, action_server_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, flight_modes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, can_auto_mode_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, can_guided_mode_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, can_stabilize_mode_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, arm_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, force_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, result_str_), +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_action_5fserver_2faction_5fserver_2eproto = nullptr; +const ::uint32_t TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffRequest, _impl_.allow_takeoff_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _impl_.armable_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableRequest, _impl_.force_armable_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _impl_.disarmable_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableRequest, _impl_.force_disarmable_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest, _impl_.flight_modes_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeArmDisarmRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeTakeoffRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeLandRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeRebootRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeShutdownRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SubscribeTerminateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarmResponse, _impl_.arm_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::FlightModeChangeResponse, _impl_.flight_mode_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TakeoffResponse, _impl_.takeoff_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::LandResponse, _impl_.land_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::RebootResponse, _impl_.reboot_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ShutdownResponse, _impl_.shutdown_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_.action_server_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::TerminateResponse, _impl_.terminate_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetArmableResponse, _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetDisarmableResponse, _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse, _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::SetAllowTakeoffResponse, _impl_.action_server_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse, _impl_.flight_modes_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_auto_mode_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_guided_mode_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::AllowableFlightModes, _impl_.can_stabilize_mode_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _impl_.arm_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ArmDisarm, _impl_.force_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action_server::ActionServerResult, _impl_.result_str_), }; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::mavsdk::rpc::action_server::SetAllowTakeoffRequest)}, - { 7, -1, -1, sizeof(::mavsdk::rpc::action_server::SetArmableRequest)}, - { 15, -1, -1, sizeof(::mavsdk::rpc::action_server::SetDisarmableRequest)}, - { 23, -1, -1, sizeof(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest)}, - { 30, -1, -1, sizeof(::mavsdk::rpc::action_server::GetAllowableFlightModesRequest)}, - { 36, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeArmDisarmRequest)}, - { 42, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest)}, - { 48, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeTakeoffRequest)}, - { 54, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeLandRequest)}, - { 60, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeRebootRequest)}, - { 66, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeShutdownRequest)}, - { 72, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeTerminateRequest)}, - { 78, -1, -1, sizeof(::mavsdk::rpc::action_server::ArmDisarmResponse)}, - { 86, -1, -1, sizeof(::mavsdk::rpc::action_server::FlightModeChangeResponse)}, - { 94, -1, -1, sizeof(::mavsdk::rpc::action_server::TakeoffResponse)}, - { 102, -1, -1, sizeof(::mavsdk::rpc::action_server::LandResponse)}, - { 110, -1, -1, sizeof(::mavsdk::rpc::action_server::RebootResponse)}, - { 118, -1, -1, sizeof(::mavsdk::rpc::action_server::ShutdownResponse)}, - { 126, -1, -1, sizeof(::mavsdk::rpc::action_server::TerminateResponse)}, - { 134, -1, -1, sizeof(::mavsdk::rpc::action_server::SetArmableResponse)}, - { 141, -1, -1, sizeof(::mavsdk::rpc::action_server::SetDisarmableResponse)}, - { 148, -1, -1, sizeof(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse)}, - { 155, -1, -1, sizeof(::mavsdk::rpc::action_server::SetAllowTakeoffResponse)}, - { 162, -1, -1, sizeof(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse)}, - { 169, -1, -1, sizeof(::mavsdk::rpc::action_server::AllowableFlightModes)}, - { 178, -1, -1, sizeof(::mavsdk::rpc::action_server::ArmDisarm)}, - { 186, -1, -1, sizeof(::mavsdk::rpc::action_server::ActionServerResult)}, + +static const ::_pbi::MigrationSchema + schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::mavsdk::rpc::action_server::SetAllowTakeoffRequest)}, + { 9, -1, -1, sizeof(::mavsdk::rpc::action_server::SetArmableRequest)}, + { 19, -1, -1, sizeof(::mavsdk::rpc::action_server::SetDisarmableRequest)}, + { 29, 38, -1, sizeof(::mavsdk::rpc::action_server::SetAllowableFlightModesRequest)}, + { 39, -1, -1, sizeof(::mavsdk::rpc::action_server::GetAllowableFlightModesRequest)}, + { 47, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeArmDisarmRequest)}, + { 55, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest)}, + { 63, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeTakeoffRequest)}, + { 71, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeLandRequest)}, + { 79, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeRebootRequest)}, + { 87, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeShutdownRequest)}, + { 95, -1, -1, sizeof(::mavsdk::rpc::action_server::SubscribeTerminateRequest)}, + { 103, 113, -1, sizeof(::mavsdk::rpc::action_server::ArmDisarmResponse)}, + { 115, 125, -1, sizeof(::mavsdk::rpc::action_server::FlightModeChangeResponse)}, + { 127, 137, -1, sizeof(::mavsdk::rpc::action_server::TakeoffResponse)}, + { 139, 149, -1, sizeof(::mavsdk::rpc::action_server::LandResponse)}, + { 151, 161, -1, sizeof(::mavsdk::rpc::action_server::RebootResponse)}, + { 163, 173, -1, sizeof(::mavsdk::rpc::action_server::ShutdownResponse)}, + { 175, 185, -1, sizeof(::mavsdk::rpc::action_server::TerminateResponse)}, + { 187, 196, -1, sizeof(::mavsdk::rpc::action_server::SetArmableResponse)}, + { 197, 206, -1, sizeof(::mavsdk::rpc::action_server::SetDisarmableResponse)}, + { 207, 216, -1, sizeof(::mavsdk::rpc::action_server::SetAllowableFlightModesResponse)}, + { 217, 226, -1, sizeof(::mavsdk::rpc::action_server::SetAllowTakeoffResponse)}, + { 227, 236, -1, sizeof(::mavsdk::rpc::action_server::GetAllowableFlightModesResponse)}, + { 237, -1, -1, sizeof(::mavsdk::rpc::action_server::AllowableFlightModes)}, + { 248, -1, -1, sizeof(::mavsdk::rpc::action_server::ArmDisarm)}, + { 258, -1, -1, sizeof(::mavsdk::rpc::action_server::ActionServerResult)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::mavsdk::rpc::action_server::_SetAllowTakeoffRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_SetArmableRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_SetDisarmableRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_SetAllowableFlightModesRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_GetAllowableFlightModesRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_SubscribeArmDisarmRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_SubscribeFlightModeChangeRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_SubscribeTakeoffRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_SubscribeLandRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_SubscribeRebootRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_SubscribeShutdownRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_SubscribeTerminateRequest_default_instance_._instance, - &::mavsdk::rpc::action_server::_ArmDisarmResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_FlightModeChangeResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_TakeoffResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_LandResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_RebootResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_ShutdownResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_TerminateResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_SetArmableResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_SetDisarmableResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_SetAllowableFlightModesResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_SetAllowTakeoffResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_GetAllowableFlightModesResponse_default_instance_._instance, - &::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_._instance, - &::mavsdk::rpc::action_server::_ArmDisarm_default_instance_._instance, - &::mavsdk::rpc::action_server::_ActionServerResult_default_instance_._instance, + &::mavsdk::rpc::action_server::_SetAllowTakeoffRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_SetArmableRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_SetDisarmableRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_SetAllowableFlightModesRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_GetAllowableFlightModesRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_SubscribeArmDisarmRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_SubscribeFlightModeChangeRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_SubscribeTakeoffRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_SubscribeLandRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_SubscribeRebootRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_SubscribeShutdownRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_SubscribeTerminateRequest_default_instance_._instance, + &::mavsdk::rpc::action_server::_ArmDisarmResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_FlightModeChangeResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_TakeoffResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_LandResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_RebootResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_ShutdownResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_TerminateResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_SetArmableResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_SetDisarmableResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_SetAllowableFlightModesResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_SetAllowTakeoffResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_GetAllowableFlightModesResponse_default_instance_._instance, + &::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_._instance, + &::mavsdk::rpc::action_server::_ArmDisarm_default_instance_._instance, + &::mavsdk::rpc::action_server::_ActionServerResult_default_instance_._instance, }; - -const char descriptor_table_protodef_action_5fserver_2faction_5fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n!action_server/action_server.proto\022\030mav" - "sdk.rpc.action_server\032\024mavsdk_options.pr" - "oto\"/\n\026SetAllowTakeoffRequest\022\025\n\rallow_t" - "akeoff\030\001 \001(\010\";\n\021SetArmableRequest\022\017\n\007arm" - "able\030\001 \001(\010\022\025\n\rforce_armable\030\002 \001(\010\"D\n\024Set" - "DisarmableRequest\022\022\n\ndisarmable\030\001 \001(\010\022\030\n" - "\020force_disarmable\030\002 \001(\010\"f\n\036SetAllowableF" - "lightModesRequest\022D\n\014flight_modes\030\001 \001(\0132" - "..mavsdk.rpc.action_server.AllowableFlig" - "htModes\" \n\036GetAllowableFlightModesReques" - "t\"\033\n\031SubscribeArmDisarmRequest\"\"\n Subscr" - "ibeFlightModeChangeRequest\"\031\n\027SubscribeT" - "akeoffRequest\"\026\n\024SubscribeLandRequest\"\030\n" - "\026SubscribeRebootRequest\"\032\n\030SubscribeShut" - "downRequest\"\033\n\031SubscribeTerminateRequest" - "\"\221\001\n\021ArmDisarmResponse\022J\n\024action_server_" - "result\030\001 \001(\0132,.mavsdk.rpc.action_server." - "ActionServerResult\0220\n\003arm\030\002 \001(\0132#.mavsdk" - ".rpc.action_server.ArmDisarm\"\241\001\n\030FlightM" - "odeChangeResponse\022J\n\024action_server_resul" - "t\030\001 \001(\0132,.mavsdk.rpc.action_server.Actio" - "nServerResult\0229\n\013flight_mode\030\002 \001(\0162$.mav" - "sdk.rpc.action_server.FlightMode\"n\n\017Take" - "offResponse\022J\n\024action_server_result\030\001 \001(" - "\0132,.mavsdk.rpc.action_server.ActionServe" - "rResult\022\017\n\007takeoff\030\002 \001(\010\"h\n\014LandResponse" - "\022J\n\024action_server_result\030\001 \001(\0132,.mavsdk." - "rpc.action_server.ActionServerResult\022\014\n\004" - "land\030\002 \001(\010\"l\n\016RebootResponse\022J\n\024action_s" - "erver_result\030\001 \001(\0132,.mavsdk.rpc.action_s" - "erver.ActionServerResult\022\016\n\006reboot\030\002 \001(\010" - "\"p\n\020ShutdownResponse\022J\n\024action_server_re" - "sult\030\001 \001(\0132,.mavsdk.rpc.action_server.Ac" - "tionServerResult\022\020\n\010shutdown\030\002 \001(\010\"r\n\021Te" - "rminateResponse\022J\n\024action_server_result\030" - "\001 \001(\0132,.mavsdk.rpc.action_server.ActionS" - "erverResult\022\021\n\tterminate\030\002 \001(\010\"`\n\022SetArm" - "ableResponse\022J\n\024action_server_result\030\001 \001" - "(\0132,.mavsdk.rpc.action_server.ActionServ" - "erResult\"c\n\025SetDisarmableResponse\022J\n\024act" - "ion_server_result\030\001 \001(\0132,.mavsdk.rpc.act" - "ion_server.ActionServerResult\"m\n\037SetAllo" - "wableFlightModesResponse\022J\n\024action_serve" - "r_result\030\001 \001(\0132,.mavsdk.rpc.action_serve" - "r.ActionServerResult\"e\n\027SetAllowTakeoffR" - "esponse\022J\n\024action_server_result\030\001 \001(\0132,." - "mavsdk.rpc.action_server.ActionServerRes" - "ult\"g\n\037GetAllowableFlightModesResponse\022D" - "\n\014flight_modes\030\001 \001(\0132..mavsdk.rpc.action" - "_server.AllowableFlightModes\"b\n\024Allowabl" - "eFlightModes\022\025\n\rcan_auto_mode\030\001 \001(\010\022\027\n\017c" - "an_guided_mode\030\002 \001(\010\022\032\n\022can_stabilize_mo" - "de\030\003 \001(\010\"\'\n\tArmDisarm\022\013\n\003arm\030\001 \001(\010\022\r\n\005fo" - "rce\030\002 \001(\010\"\351\003\n\022ActionServerResult\022C\n\006resu" - "lt\030\001 \001(\01623.mavsdk.rpc.action_server.Acti" - "onServerResult.Result\022\022\n\nresult_str\030\002 \001(" - "\t\"\371\002\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000\022\022\n\016RESU" - "LT_SUCCESS\020\001\022\024\n\020RESULT_NO_SYSTEM\020\002\022\033\n\027RE" - "SULT_CONNECTION_ERROR\020\003\022\017\n\013RESULT_BUSY\020\004" - "\022\031\n\025RESULT_COMMAND_DENIED\020\005\022.\n*RESULT_CO" - "MMAND_DENIED_LANDED_STATE_UNKNOWN\020\006\022$\n R" - "ESULT_COMMAND_DENIED_NOT_LANDED\020\007\022\022\n\016RES" - "ULT_TIMEOUT\020\010\022*\n&RESULT_VTOL_TRANSITION_" - "SUPPORT_UNKNOWN\020\t\022%\n!RESULT_NO_VTOL_TRAN" - "SITION_SUPPORT\020\n\022\032\n\026RESULT_PARAMETER_ERR" - "OR\020\013\022\017\n\013RESULT_NEXT\020\014*\353\002\n\nFlightMode\022\027\n\023" - "FLIGHT_MODE_UNKNOWN\020\000\022\025\n\021FLIGHT_MODE_REA" - "DY\020\001\022\027\n\023FLIGHT_MODE_TAKEOFF\020\002\022\024\n\020FLIGHT_" - "MODE_HOLD\020\003\022\027\n\023FLIGHT_MODE_MISSION\020\004\022 \n\034" - "FLIGHT_MODE_RETURN_TO_LAUNCH\020\005\022\024\n\020FLIGHT" - "_MODE_LAND\020\006\022\030\n\024FLIGHT_MODE_OFFBOARD\020\007\022\031" - "\n\025FLIGHT_MODE_FOLLOW_ME\020\010\022\026\n\022FLIGHT_MODE" - "_MANUAL\020\t\022\026\n\022FLIGHT_MODE_ALTCTL\020\n\022\026\n\022FLI" - "GHT_MODE_POSCTL\020\013\022\024\n\020FLIGHT_MODE_ACRO\020\014\022" - "\032\n\026FLIGHT_MODE_STABILIZED\020\r2\235\014\n\023ActionSe" - "rverService\022~\n\022SubscribeArmDisarm\0223.mavs" - "dk.rpc.action_server.SubscribeArmDisarmR" - "equest\032+.mavsdk.rpc.action_server.ArmDis" - "armResponse\"\004\200\265\030\0000\001\022\223\001\n\031SubscribeFlightM" - "odeChange\022:.mavsdk.rpc.action_server.Sub" - "scribeFlightModeChangeRequest\0322.mavsdk.r" - "pc.action_server.FlightModeChangeRespons" - "e\"\004\200\265\030\0000\001\022x\n\020SubscribeTakeoff\0221.mavsdk.r" - "pc.action_server.SubscribeTakeoffRequest" - "\032).mavsdk.rpc.action_server.TakeoffRespo" - "nse\"\004\200\265\030\0000\001\022o\n\rSubscribeLand\022..mavsdk.rp" - "c.action_server.SubscribeLandRequest\032&.m" - "avsdk.rpc.action_server.LandResponse\"\004\200\265" - "\030\0000\001\022u\n\017SubscribeReboot\0220.mavsdk.rpc.act" - "ion_server.SubscribeRebootRequest\032(.mavs" - "dk.rpc.action_server.RebootResponse\"\004\200\265\030" - "\0000\001\022{\n\021SubscribeShutdown\0222.mavsdk.rpc.ac" - "tion_server.SubscribeShutdownRequest\032*.m" - "avsdk.rpc.action_server.ShutdownResponse" - "\"\004\200\265\030\0000\001\022~\n\022SubscribeTerminate\0223.mavsdk." - "rpc.action_server.SubscribeTerminateRequ" - "est\032+.mavsdk.rpc.action_server.Terminate" - "Response\"\004\200\265\030\0000\001\022|\n\017SetAllowTakeoff\0220.ma" - "vsdk.rpc.action_server.SetAllowTakeoffRe" - "quest\0321.mavsdk.rpc.action_server.SetAllo" - "wTakeoffResponse\"\004\200\265\030\001\022m\n\nSetArmable\022+.m" - "avsdk.rpc.action_server.SetArmableReques" - "t\032,.mavsdk.rpc.action_server.SetArmableR" - "esponse\"\004\200\265\030\001\022v\n\rSetDisarmable\022..mavsdk." - "rpc.action_server.SetDisarmableRequest\032/" - ".mavsdk.rpc.action_server.SetDisarmableR" - "esponse\"\004\200\265\030\001\022\224\001\n\027SetAllowableFlightMode" - "s\0228.mavsdk.rpc.action_server.SetAllowabl" - "eFlightModesRequest\0329.mavsdk.rpc.action_" - "server.SetAllowableFlightModesResponse\"\004" - "\200\265\030\001\022\224\001\n\027GetAllowableFlightModes\0228.mavsd" - "k.rpc.action_server.GetAllowableFlightMo" - "desRequest\0329.mavsdk.rpc.action_server.Ge" - "tAllowableFlightModesResponse\"\004\200\265\030\001B,\n\027i" - "o.mavsdk.action_serverB\021ActionServerProt" - "ob\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_action_5fserver_2faction_5fserver_2eproto_deps[1] = { - &::descriptor_table_mavsdk_5foptions_2eproto, +const char descriptor_table_protodef_action_5fserver_2faction_5fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + "\n!action_server/action_server.proto\022\030mav" + "sdk.rpc.action_server\032\024mavsdk_options.pr" + "oto\"/\n\026SetAllowTakeoffRequest\022\025\n\rallow_t" + "akeoff\030\001 \001(\010\";\n\021SetArmableRequest\022\017\n\007arm" + "able\030\001 \001(\010\022\025\n\rforce_armable\030\002 \001(\010\"D\n\024Set" + "DisarmableRequest\022\022\n\ndisarmable\030\001 \001(\010\022\030\n" + "\020force_disarmable\030\002 \001(\010\"f\n\036SetAllowableF" + "lightModesRequest\022D\n\014flight_modes\030\001 \001(\0132" + "..mavsdk.rpc.action_server.AllowableFlig" + "htModes\" \n\036GetAllowableFlightModesReques" + "t\"\033\n\031SubscribeArmDisarmRequest\"\"\n Subscr" + "ibeFlightModeChangeRequest\"\031\n\027SubscribeT" + "akeoffRequest\"\026\n\024SubscribeLandRequest\"\030\n" + "\026SubscribeRebootRequest\"\032\n\030SubscribeShut" + "downRequest\"\033\n\031SubscribeTerminateRequest" + "\"\221\001\n\021ArmDisarmResponse\022J\n\024action_server_" + "result\030\001 \001(\0132,.mavsdk.rpc.action_server." + "ActionServerResult\0220\n\003arm\030\002 \001(\0132#.mavsdk" + ".rpc.action_server.ArmDisarm\"\241\001\n\030FlightM" + "odeChangeResponse\022J\n\024action_server_resul" + "t\030\001 \001(\0132,.mavsdk.rpc.action_server.Actio" + "nServerResult\0229\n\013flight_mode\030\002 \001(\0162$.mav" + "sdk.rpc.action_server.FlightMode\"n\n\017Take" + "offResponse\022J\n\024action_server_result\030\001 \001(" + "\0132,.mavsdk.rpc.action_server.ActionServe" + "rResult\022\017\n\007takeoff\030\002 \001(\010\"h\n\014LandResponse" + "\022J\n\024action_server_result\030\001 \001(\0132,.mavsdk." + "rpc.action_server.ActionServerResult\022\014\n\004" + "land\030\002 \001(\010\"l\n\016RebootResponse\022J\n\024action_s" + "erver_result\030\001 \001(\0132,.mavsdk.rpc.action_s" + "erver.ActionServerResult\022\016\n\006reboot\030\002 \001(\010" + "\"p\n\020ShutdownResponse\022J\n\024action_server_re" + "sult\030\001 \001(\0132,.mavsdk.rpc.action_server.Ac" + "tionServerResult\022\020\n\010shutdown\030\002 \001(\010\"r\n\021Te" + "rminateResponse\022J\n\024action_server_result\030" + "\001 \001(\0132,.mavsdk.rpc.action_server.ActionS" + "erverResult\022\021\n\tterminate\030\002 \001(\010\"`\n\022SetArm" + "ableResponse\022J\n\024action_server_result\030\001 \001" + "(\0132,.mavsdk.rpc.action_server.ActionServ" + "erResult\"c\n\025SetDisarmableResponse\022J\n\024act" + "ion_server_result\030\001 \001(\0132,.mavsdk.rpc.act" + "ion_server.ActionServerResult\"m\n\037SetAllo" + "wableFlightModesResponse\022J\n\024action_serve" + "r_result\030\001 \001(\0132,.mavsdk.rpc.action_serve" + "r.ActionServerResult\"e\n\027SetAllowTakeoffR" + "esponse\022J\n\024action_server_result\030\001 \001(\0132,." + "mavsdk.rpc.action_server.ActionServerRes" + "ult\"g\n\037GetAllowableFlightModesResponse\022D" + "\n\014flight_modes\030\001 \001(\0132..mavsdk.rpc.action" + "_server.AllowableFlightModes\"b\n\024Allowabl" + "eFlightModes\022\025\n\rcan_auto_mode\030\001 \001(\010\022\027\n\017c" + "an_guided_mode\030\002 \001(\010\022\032\n\022can_stabilize_mo" + "de\030\003 \001(\010\"\'\n\tArmDisarm\022\013\n\003arm\030\001 \001(\010\022\r\n\005fo" + "rce\030\002 \001(\010\"\351\003\n\022ActionServerResult\022C\n\006resu" + "lt\030\001 \001(\01623.mavsdk.rpc.action_server.Acti" + "onServerResult.Result\022\022\n\nresult_str\030\002 \001(" + "\t\"\371\002\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000\022\022\n\016RESU" + "LT_SUCCESS\020\001\022\024\n\020RESULT_NO_SYSTEM\020\002\022\033\n\027RE" + "SULT_CONNECTION_ERROR\020\003\022\017\n\013RESULT_BUSY\020\004" + "\022\031\n\025RESULT_COMMAND_DENIED\020\005\022.\n*RESULT_CO" + "MMAND_DENIED_LANDED_STATE_UNKNOWN\020\006\022$\n R" + "ESULT_COMMAND_DENIED_NOT_LANDED\020\007\022\022\n\016RES" + "ULT_TIMEOUT\020\010\022*\n&RESULT_VTOL_TRANSITION_" + "SUPPORT_UNKNOWN\020\t\022%\n!RESULT_NO_VTOL_TRAN" + "SITION_SUPPORT\020\n\022\032\n\026RESULT_PARAMETER_ERR" + "OR\020\013\022\017\n\013RESULT_NEXT\020\014*\353\002\n\nFlightMode\022\027\n\023" + "FLIGHT_MODE_UNKNOWN\020\000\022\025\n\021FLIGHT_MODE_REA" + "DY\020\001\022\027\n\023FLIGHT_MODE_TAKEOFF\020\002\022\024\n\020FLIGHT_" + "MODE_HOLD\020\003\022\027\n\023FLIGHT_MODE_MISSION\020\004\022 \n\034" + "FLIGHT_MODE_RETURN_TO_LAUNCH\020\005\022\024\n\020FLIGHT" + "_MODE_LAND\020\006\022\030\n\024FLIGHT_MODE_OFFBOARD\020\007\022\031" + "\n\025FLIGHT_MODE_FOLLOW_ME\020\010\022\026\n\022FLIGHT_MODE" + "_MANUAL\020\t\022\026\n\022FLIGHT_MODE_ALTCTL\020\n\022\026\n\022FLI" + "GHT_MODE_POSCTL\020\013\022\024\n\020FLIGHT_MODE_ACRO\020\014\022" + "\032\n\026FLIGHT_MODE_STABILIZED\020\r2\235\014\n\023ActionSe" + "rverService\022~\n\022SubscribeArmDisarm\0223.mavs" + "dk.rpc.action_server.SubscribeArmDisarmR" + "equest\032+.mavsdk.rpc.action_server.ArmDis" + "armResponse\"\004\200\265\030\0000\001\022\223\001\n\031SubscribeFlightM" + "odeChange\022:.mavsdk.rpc.action_server.Sub" + "scribeFlightModeChangeRequest\0322.mavsdk.r" + "pc.action_server.FlightModeChangeRespons" + "e\"\004\200\265\030\0000\001\022x\n\020SubscribeTakeoff\0221.mavsdk.r" + "pc.action_server.SubscribeTakeoffRequest" + "\032).mavsdk.rpc.action_server.TakeoffRespo" + "nse\"\004\200\265\030\0000\001\022o\n\rSubscribeLand\022..mavsdk.rp" + "c.action_server.SubscribeLandRequest\032&.m" + "avsdk.rpc.action_server.LandResponse\"\004\200\265" + "\030\0000\001\022u\n\017SubscribeReboot\0220.mavsdk.rpc.act" + "ion_server.SubscribeRebootRequest\032(.mavs" + "dk.rpc.action_server.RebootResponse\"\004\200\265\030" + "\0000\001\022{\n\021SubscribeShutdown\0222.mavsdk.rpc.ac" + "tion_server.SubscribeShutdownRequest\032*.m" + "avsdk.rpc.action_server.ShutdownResponse" + "\"\004\200\265\030\0000\001\022~\n\022SubscribeTerminate\0223.mavsdk." + "rpc.action_server.SubscribeTerminateRequ" + "est\032+.mavsdk.rpc.action_server.Terminate" + "Response\"\004\200\265\030\0000\001\022|\n\017SetAllowTakeoff\0220.ma" + "vsdk.rpc.action_server.SetAllowTakeoffRe" + "quest\0321.mavsdk.rpc.action_server.SetAllo" + "wTakeoffResponse\"\004\200\265\030\001\022m\n\nSetArmable\022+.m" + "avsdk.rpc.action_server.SetArmableReques" + "t\032,.mavsdk.rpc.action_server.SetArmableR" + "esponse\"\004\200\265\030\001\022v\n\rSetDisarmable\022..mavsdk." + "rpc.action_server.SetDisarmableRequest\032/" + ".mavsdk.rpc.action_server.SetDisarmableR" + "esponse\"\004\200\265\030\001\022\224\001\n\027SetAllowableFlightMode" + "s\0228.mavsdk.rpc.action_server.SetAllowabl" + "eFlightModesRequest\0329.mavsdk.rpc.action_" + "server.SetAllowableFlightModesResponse\"\004" + "\200\265\030\001\022\224\001\n\027GetAllowableFlightModes\0228.mavsd" + "k.rpc.action_server.GetAllowableFlightMo" + "desRequest\0329.mavsdk.rpc.action_server.Ge" + "tAllowableFlightModesResponse\"\004\200\265\030\001B,\n\027i" + "o.mavsdk.action_serverB\021ActionServerProt" + "ob\006proto3" }; -static ::_pbi::once_flag descriptor_table_action_5fserver_2faction_5fserver_2eproto_once; +static const ::_pbi::DescriptorTable* const descriptor_table_action_5fserver_2faction_5fserver_2eproto_deps[1] = + { + &::descriptor_table_mavsdk_5foptions_2eproto, +}; +static ::absl::once_flag descriptor_table_action_5fserver_2faction_5fserver_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_action_5fserver_2faction_5fserver_2eproto = { - false, false, 4609, descriptor_table_protodef_action_5fserver_2faction_5fserver_2eproto, + false, + false, + 4609, + descriptor_table_protodef_action_5fserver_2faction_5fserver_2eproto, "action_server/action_server.proto", - &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, descriptor_table_action_5fserver_2faction_5fserver_2eproto_deps, 1, 27, - schemas, file_default_instances, TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets, - file_level_metadata_action_5fserver_2faction_5fserver_2eproto, file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto, + &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, + descriptor_table_action_5fserver_2faction_5fserver_2eproto_deps, + 1, + 27, + schemas, + file_default_instances, + TableStruct_action_5fserver_2faction_5fserver_2eproto::offsets, + file_level_metadata_action_5fserver_2faction_5fserver_2eproto, + file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto, file_level_service_descriptors_action_5fserver_2faction_5fserver_2eproto, }; + +// This function exists to be marked as weak. +// It can significantly speed up compilation by breaking up LLVM's SCC +// in the .pb.cc translation units. Large translation units see a +// reduction of more than 35% of walltime for optimized builds. Without +// the weak attribute all the messages in the file, including all the +// vtables and everything they use become part of the same SCC through +// a cycle like: +// GetMetadata -> descriptor table -> default instances -> +// vtables -> GetMetadata +// By adding a weak function here we break the connection from the +// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter() { return &descriptor_table_action_5fserver_2faction_5fserver_2eproto; } - // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_action_5fserver_2faction_5fserver_2eproto(&descriptor_table_action_5fserver_2faction_5fserver_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_action_5fserver_2faction_5fserver_2eproto(&descriptor_table_action_5fserver_2faction_5fserver_2eproto); namespace mavsdk { namespace rpc { namespace action_server { @@ -780,8 +980,9 @@ bool ActionServerResult_Result_IsValid(int value) { return false; } } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ActionServerResult_Result ActionServerResult::RESULT_UNKNOWN; constexpr ActionServerResult_Result ActionServerResult::RESULT_SUCCESS; constexpr ActionServerResult_Result ActionServerResult::RESULT_NO_SYSTEM; @@ -798,7 +999,9 @@ constexpr ActionServerResult_Result ActionServerResult::RESULT_NEXT; constexpr ActionServerResult_Result ActionServerResult::Result_MIN; constexpr ActionServerResult_Result ActionServerResult::Result_MAX; constexpr int ActionServerResult::Result_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FlightMode_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_action_5fserver_2faction_5fserver_2eproto); return file_level_enum_descriptors_action_5fserver_2faction_5fserver_2eproto[1]; @@ -824,29 +1027,31 @@ bool FlightMode_IsValid(int value) { return false; } } - - // =================================================================== class SetAllowTakeoffRequest::_Internal { public: }; -SetAllowTakeoffRequest::SetAllowTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetAllowTakeoffRequest::SetAllowTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowTakeoffRequest) } SetAllowTakeoffRequest::SetAllowTakeoffRequest(const SetAllowTakeoffRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - allow_takeoff_ = from.allow_takeoff_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowTakeoffRequest) } -inline void SetAllowTakeoffRequest::SharedCtor() { -allow_takeoff_ = false; +inline void SetAllowTakeoffRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.allow_takeoff_) { false } + + , /*decltype(_impl_._cached_size_)*/{} + }; } SetAllowTakeoffRequest::~SetAllowTakeoffRequest() { @@ -859,36 +1064,37 @@ SetAllowTakeoffRequest::~SetAllowTakeoffRequest() { } inline void SetAllowTakeoffRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void SetAllowTakeoffRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetAllowTakeoffRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - allow_takeoff_ = false; + _impl_.allow_takeoff_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetAllowTakeoffRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bool allow_takeoff = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - allow_takeoff_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + _impl_.allow_takeoff_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -913,16 +1119,17 @@ const char* SetAllowTakeoffRequest::_InternalParse(const char* ptr, ::_pbi::Pars #undef CHK_ } -uint8_t* SetAllowTakeoffRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetAllowTakeoffRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // bool allow_takeoff = 1; if (this->_internal_allow_takeoff() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_allow_takeoff(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this->_internal_allow_takeoff(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -933,45 +1140,41 @@ uint8_t* SetAllowTakeoffRequest::_InternalSerialize( return target; } -size_t SetAllowTakeoffRequest::ByteSizeLong() const { +::size_t SetAllowTakeoffRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool allow_takeoff = 1; if (this->_internal_allow_takeoff() != 0) { - total_size += 1 + 1; + total_size += 2; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAllowTakeoffRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetAllowTakeoffRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAllowTakeoffRequest::GetClassData() const { return &_class_data_; } -void SetAllowTakeoffRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetAllowTakeoffRequest::MergeFrom(const SetAllowTakeoffRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetAllowTakeoffRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowTakeoffRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_allow_takeoff() != 0) { - _internal_set_allow_takeoff(from._internal_allow_takeoff()); + _this->_internal_set_allow_takeoff(from._internal_allow_takeoff()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetAllowTakeoffRequest::CopyFrom(const SetAllowTakeoffRequest& from) { @@ -988,7 +1191,8 @@ bool SetAllowTakeoffRequest::IsInitialized() const { void SetAllowTakeoffRequest::InternalSwap(SetAllowTakeoffRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(allow_takeoff_, other->allow_takeoff_); + + swap(_impl_.allow_takeoff_, other->_impl_.allow_takeoff_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetAllowTakeoffRequest::GetMetadata() const { @@ -996,33 +1200,33 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetAllowTakeoffRequest::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[0]); } - // =================================================================== class SetArmableRequest::_Internal { public: }; -SetArmableRequest::SetArmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetArmableRequest::SetArmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetArmableRequest) } SetArmableRequest::SetArmableRequest(const SetArmableRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&armable_, &from.armable_, - static_cast(reinterpret_cast(&force_armable_) - - reinterpret_cast(&armable_)) + sizeof(force_armable_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetArmableRequest) } -inline void SetArmableRequest::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&armable_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&force_armable_) - - reinterpret_cast(&armable_)) + sizeof(force_armable_)); +inline void SetArmableRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.armable_) { false } + + , decltype(_impl_.force_armable_) { false } + + , /*decltype(_impl_._cached_size_)*/{} + }; } SetArmableRequest::~SetArmableRequest() { @@ -1035,46 +1239,48 @@ SetArmableRequest::~SetArmableRequest() { } inline void SetArmableRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void SetArmableRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetArmableRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetArmableRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&armable_, 0, static_cast( - reinterpret_cast(&force_armable_) - - reinterpret_cast(&armable_)) + sizeof(force_armable_)); + ::memset(&_impl_.armable_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.force_armable_) - + reinterpret_cast(&_impl_.armable_)) + sizeof(_impl_.force_armable_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetArmableRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bool armable = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - armable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + _impl_.armable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool force_armable = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - force_armable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.force_armable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1099,22 +1305,24 @@ const char* SetArmableRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* SetArmableRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetArmableRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetArmableRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // bool armable = 1; if (this->_internal_armable() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_armable(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this->_internal_armable(), target); } // bool force_armable = 2; if (this->_internal_force_armable() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_force_armable(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this->_internal_force_armable(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1125,53 +1333,49 @@ uint8_t* SetArmableRequest::_InternalSerialize( return target; } -size_t SetArmableRequest::ByteSizeLong() const { +::size_t SetArmableRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetArmableRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool armable = 1; if (this->_internal_armable() != 0) { - total_size += 1 + 1; + total_size += 2; } // bool force_armable = 2; if (this->_internal_force_armable() != 0) { - total_size += 1 + 1; + total_size += 2; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetArmableRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetArmableRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetArmableRequest::GetClassData() const { return &_class_data_; } -void SetArmableRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetArmableRequest::MergeFrom(const SetArmableRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetArmableRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetArmableRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetArmableRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_armable() != 0) { - _internal_set_armable(from._internal_armable()); + _this->_internal_set_armable(from._internal_armable()); } if (from._internal_force_armable() != 0) { - _internal_set_force_armable(from._internal_force_armable()); + _this->_internal_set_force_armable(from._internal_force_armable()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetArmableRequest::CopyFrom(const SetArmableRequest& from) { @@ -1189,11 +1393,11 @@ void SetArmableRequest::InternalSwap(SetArmableRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetArmableRequest, force_armable_) - + sizeof(SetArmableRequest::force_armable_) - - PROTOBUF_FIELD_OFFSET(SetArmableRequest, armable_)>( - reinterpret_cast(&armable_), - reinterpret_cast(&other->armable_)); + PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.force_armable_) + + sizeof(SetArmableRequest::_impl_.force_armable_) + - PROTOBUF_FIELD_OFFSET(SetArmableRequest, _impl_.armable_)>( + reinterpret_cast(&_impl_.armable_), + reinterpret_cast(&other->_impl_.armable_)); } ::PROTOBUF_NAMESPACE_ID::Metadata SetArmableRequest::GetMetadata() const { @@ -1201,33 +1405,33 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetArmableRequest::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[1]); } - // =================================================================== class SetDisarmableRequest::_Internal { public: }; -SetDisarmableRequest::SetDisarmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetDisarmableRequest::SetDisarmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetDisarmableRequest) } SetDisarmableRequest::SetDisarmableRequest(const SetDisarmableRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&disarmable_, &from.disarmable_, - static_cast(reinterpret_cast(&force_disarmable_) - - reinterpret_cast(&disarmable_)) + sizeof(force_disarmable_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetDisarmableRequest) } -inline void SetDisarmableRequest::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&disarmable_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&force_disarmable_) - - reinterpret_cast(&disarmable_)) + sizeof(force_disarmable_)); +inline void SetDisarmableRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.disarmable_) { false } + + , decltype(_impl_.force_disarmable_) { false } + + , /*decltype(_impl_._cached_size_)*/{} + }; } SetDisarmableRequest::~SetDisarmableRequest() { @@ -1240,46 +1444,48 @@ SetDisarmableRequest::~SetDisarmableRequest() { } inline void SetDisarmableRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void SetDisarmableRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetDisarmableRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetDisarmableRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&disarmable_, 0, static_cast( - reinterpret_cast(&force_disarmable_) - - reinterpret_cast(&disarmable_)) + sizeof(force_disarmable_)); + ::memset(&_impl_.disarmable_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.force_disarmable_) - + reinterpret_cast(&_impl_.disarmable_)) + sizeof(_impl_.force_disarmable_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetDisarmableRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bool disarmable = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - disarmable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + _impl_.disarmable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool force_disarmable = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - force_disarmable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.force_disarmable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1304,22 +1510,24 @@ const char* SetDisarmableRequest::_InternalParse(const char* ptr, ::_pbi::ParseC #undef CHK_ } -uint8_t* SetDisarmableRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetDisarmableRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetDisarmableRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // bool disarmable = 1; if (this->_internal_disarmable() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_disarmable(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this->_internal_disarmable(), target); } // bool force_disarmable = 2; if (this->_internal_force_disarmable() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_force_disarmable(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this->_internal_force_disarmable(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -1330,53 +1538,49 @@ uint8_t* SetDisarmableRequest::_InternalSerialize( return target; } -size_t SetDisarmableRequest::ByteSizeLong() const { +::size_t SetDisarmableRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetDisarmableRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool disarmable = 1; if (this->_internal_disarmable() != 0) { - total_size += 1 + 1; + total_size += 2; } // bool force_disarmable = 2; if (this->_internal_force_disarmable() != 0) { - total_size += 1 + 1; + total_size += 2; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetDisarmableRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetDisarmableRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetDisarmableRequest::GetClassData() const { return &_class_data_; } -void SetDisarmableRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetDisarmableRequest::MergeFrom(const SetDisarmableRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetDisarmableRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetDisarmableRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetDisarmableRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_disarmable() != 0) { - _internal_set_disarmable(from._internal_disarmable()); + _this->_internal_set_disarmable(from._internal_disarmable()); } if (from._internal_force_disarmable() != 0) { - _internal_set_force_disarmable(from._internal_force_disarmable()); + _this->_internal_set_force_disarmable(from._internal_force_disarmable()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetDisarmableRequest::CopyFrom(const SetDisarmableRequest& from) { @@ -1394,11 +1598,11 @@ void SetDisarmableRequest::InternalSwap(SetDisarmableRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, force_disarmable_) - + sizeof(SetDisarmableRequest::force_disarmable_) - - PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, disarmable_)>( - reinterpret_cast(&disarmable_), - reinterpret_cast(&other->disarmable_)); + PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.force_disarmable_) + + sizeof(SetDisarmableRequest::_impl_.force_disarmable_) + - PROTOBUF_FIELD_OFFSET(SetDisarmableRequest, _impl_.disarmable_)>( + reinterpret_cast(&_impl_.disarmable_), + reinterpret_cast(&other->_impl_.disarmable_)); } ::PROTOBUF_NAMESPACE_ID::Metadata SetDisarmableRequest::GetMetadata() const { @@ -1406,37 +1610,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetDisarmableRequest::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[2]); } - // =================================================================== class SetAllowableFlightModesRequest::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesRequest, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes(const SetAllowableFlightModesRequest* msg); + static void set_has_flight_modes(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::AllowableFlightModes& SetAllowableFlightModesRequest::_Internal::flight_modes(const SetAllowableFlightModesRequest* msg) { - return *msg->flight_modes_; + return *msg->_impl_.flight_modes_; } -SetAllowableFlightModesRequest::SetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetAllowableFlightModesRequest::SetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) } SetAllowableFlightModesRequest::SetAllowableFlightModesRequest(const SetAllowableFlightModesRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetAllowableFlightModesRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.flight_modes_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_flight_modes()) { - flight_modes_ = new ::mavsdk::rpc::action_server::AllowableFlightModes(*from.flight_modes_); - } else { - flight_modes_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.flight_modes_ = new ::mavsdk::rpc::action_server::AllowableFlightModes(*from._impl_.flight_modes_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) } -inline void SetAllowableFlightModesRequest::SharedCtor() { -flight_modes_ = nullptr; +inline void SetAllowableFlightModesRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.flight_modes_){nullptr} + }; } SetAllowableFlightModesRequest::~SetAllowableFlightModesRequest() { @@ -1449,40 +1666,44 @@ SetAllowableFlightModesRequest::~SetAllowableFlightModesRequest() { } inline void SetAllowableFlightModesRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete flight_modes_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.flight_modes_; } void SetAllowableFlightModesRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetAllowableFlightModesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && flight_modes_ != nullptr) { - delete flight_modes_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.flight_modes_ != nullptr); + _impl_.flight_modes_->Clear(); } - flight_modes_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetAllowableFlightModesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_flight_modes(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1500,6 +1721,7 @@ const char* SetAllowableFlightModesRequest::_InternalParse(const char* ptr, ::_p CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1507,14 +1729,15 @@ const char* SetAllowableFlightModesRequest::_InternalParse(const char* ptr, ::_p #undef CHK_ } -uint8_t* SetAllowableFlightModesRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetAllowableFlightModesRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - if (this->_internal_has_flight_modes()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::flight_modes(this), _Internal::flight_modes(this).GetCachedSize(), target, stream); @@ -1528,47 +1751,45 @@ uint8_t* SetAllowableFlightModesRequest::_InternalSerialize( return target; } -size_t SetAllowableFlightModesRequest::ByteSizeLong() const { +::size_t SetAllowableFlightModesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - if (this->_internal_has_flight_modes()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *flight_modes_); + *_impl_.flight_modes_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAllowableFlightModesRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetAllowableFlightModesRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAllowableFlightModesRequest::GetClassData() const { return &_class_data_; } -void SetAllowableFlightModesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetAllowableFlightModesRequest::MergeFrom(const SetAllowableFlightModesRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetAllowableFlightModesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_flight_modes()) { - _internal_mutable_flight_modes()->::mavsdk::rpc::action_server::AllowableFlightModes::MergeFrom(from._internal_flight_modes()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_flight_modes()->::mavsdk::rpc::action_server::AllowableFlightModes::MergeFrom( + from._internal_flight_modes()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetAllowableFlightModesRequest::CopyFrom(const SetAllowableFlightModesRequest& from) { @@ -1585,7 +1806,8 @@ bool SetAllowableFlightModesRequest::IsInitialized() const { void SetAllowableFlightModesRequest::InternalSwap(SetAllowableFlightModesRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(flight_modes_, other->flight_modes_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.flight_modes_, other->_impl_.flight_modes_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetAllowableFlightModesRequest::GetMetadata() const { @@ -1593,20 +1815,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetAllowableFlightModesRequest::GetMetadata() &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[3]); } - // =================================================================== class GetAllowableFlightModesRequest::_Internal { public: }; -GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) } GetAllowableFlightModesRequest::GetAllowableFlightModesRequest(const GetAllowableFlightModesRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + GetAllowableFlightModesRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) } @@ -1632,20 +1853,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetAllowableFlightModesRequest::GetMetadata() &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[4]); } - // =================================================================== class SubscribeArmDisarmRequest::_Internal { public: }; -SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) } SubscribeArmDisarmRequest::SubscribeArmDisarmRequest(const SubscribeArmDisarmRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeArmDisarmRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) } @@ -1671,20 +1891,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeArmDisarmRequest::GetMetadata() const &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[5]); } - // =================================================================== class SubscribeFlightModeChangeRequest::_Internal { public: }; -SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) } SubscribeFlightModeChangeRequest::SubscribeFlightModeChangeRequest(const SubscribeFlightModeChangeRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeFlightModeChangeRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) } @@ -1710,20 +1929,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeFlightModeChangeRequest::GetMetadata( &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[6]); } - // =================================================================== class SubscribeTakeoffRequest::_Internal { public: }; -SubscribeTakeoffRequest::SubscribeTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeTakeoffRequest::SubscribeTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeTakeoffRequest) } SubscribeTakeoffRequest::SubscribeTakeoffRequest(const SubscribeTakeoffRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeTakeoffRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeTakeoffRequest) } @@ -1749,20 +1967,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeTakeoffRequest::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[7]); } - // =================================================================== class SubscribeLandRequest::_Internal { public: }; -SubscribeLandRequest::SubscribeLandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeLandRequest::SubscribeLandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeLandRequest) } SubscribeLandRequest::SubscribeLandRequest(const SubscribeLandRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeLandRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeLandRequest) } @@ -1788,20 +2005,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeLandRequest::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[8]); } - // =================================================================== class SubscribeRebootRequest::_Internal { public: }; -SubscribeRebootRequest::SubscribeRebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeRebootRequest::SubscribeRebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeRebootRequest) } SubscribeRebootRequest::SubscribeRebootRequest(const SubscribeRebootRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeRebootRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeRebootRequest) } @@ -1827,20 +2043,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeRebootRequest::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[9]); } - // =================================================================== class SubscribeShutdownRequest::_Internal { public: }; -SubscribeShutdownRequest::SubscribeShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeShutdownRequest::SubscribeShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeShutdownRequest) } SubscribeShutdownRequest::SubscribeShutdownRequest(const SubscribeShutdownRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeShutdownRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeShutdownRequest) } @@ -1866,20 +2081,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeShutdownRequest::GetMetadata() const &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[10]); } - // =================================================================== class SubscribeTerminateRequest::_Internal { public: }; -SubscribeTerminateRequest::SubscribeTerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeTerminateRequest::SubscribeTerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SubscribeTerminateRequest) } SubscribeTerminateRequest::SubscribeTerminateRequest(const SubscribeTerminateRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeTerminateRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SubscribeTerminateRequest) } @@ -1905,50 +2119,63 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeTerminateRequest::GetMetadata() const &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[11]); } - // =================================================================== class ArmDisarmResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const ArmDisarmResponse* msg); + static void set_has_action_server_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } static const ::mavsdk::rpc::action_server::ArmDisarm& arm(const ArmDisarmResponse* msg); + static void set_has_arm(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } }; const ::mavsdk::rpc::action_server::ActionServerResult& ArmDisarmResponse::_Internal::action_server_result(const ArmDisarmResponse* msg) { - return *msg->action_server_result_; + return *msg->_impl_.action_server_result_; } const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::_Internal::arm(const ArmDisarmResponse* msg) { - return *msg->arm_; + return *msg->_impl_.arm_; } -ArmDisarmResponse::ArmDisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +ArmDisarmResponse::ArmDisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ArmDisarmResponse) } ArmDisarmResponse::ArmDisarmResponse(const ArmDisarmResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + ArmDisarmResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.arm_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_server_result()) { - action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from.action_server_result_); - } else { - action_server_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); } - if (from._internal_has_arm()) { - arm_ = new ::mavsdk::rpc::action_server::ArmDisarm(*from.arm_); - } else { - arm_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.arm_ = new ::mavsdk::rpc::action_server::ArmDisarm(*from._impl_.arm_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ArmDisarmResponse) } -inline void ArmDisarmResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&action_server_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&arm_) - - reinterpret_cast(&action_server_result_)) + sizeof(arm_)); +inline void ArmDisarmResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.arm_){nullptr} + }; } ArmDisarmResponse::~ArmDisarmResponse() { @@ -1961,53 +2188,60 @@ ArmDisarmResponse::~ArmDisarmResponse() { } inline void ArmDisarmResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_server_result_; - if (this != internal_default_instance()) delete arm_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_server_result_; + if (this != internal_default_instance()) delete _impl_.arm_; } void ArmDisarmResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ArmDisarmResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ArmDisarmResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; - if (GetArenaForAllocation() == nullptr && arm_ != nullptr) { - delete arm_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.arm_ != nullptr); + _impl_.arm_->Clear(); + } } - arm_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ArmDisarmResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.action_server.ArmDisarm arm = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_arm(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2025,6 +2259,7 @@ const char* ArmDisarmResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2032,21 +2267,22 @@ const char* ArmDisarmResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* ArmDisarmResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ArmDisarmResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ArmDisarmResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); } // .mavsdk.rpc.action_server.ArmDisarm arm = 2; - if (this->_internal_has_arm()) { + if (cached_has_bits & 0x00000002u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::arm(this), _Internal::arm(this).GetCachedSize(), target, stream); @@ -2060,57 +2296,61 @@ uint8_t* ArmDisarmResponse::_InternalSerialize( return target; } -size_t ArmDisarmResponse::ByteSizeLong() const { +::size_t ArmDisarmResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ArmDisarmResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_server_result_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.action_server_result_); + } - // .mavsdk.rpc.action_server.ArmDisarm arm = 2; - if (this->_internal_has_arm()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *arm_); - } + // .mavsdk.rpc.action_server.ArmDisarm arm = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.arm_); + } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ArmDisarmResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ArmDisarmResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ArmDisarmResponse::GetClassData() const { return &_class_data_; } -void ArmDisarmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ArmDisarmResponse::MergeFrom(const ArmDisarmResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ArmDisarmResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ArmDisarmResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ArmDisarmResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_server_result()) { - _internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom(from._internal_action_server_result()); - } - if (from._internal_has_arm()) { - _internal_mutable_arm()->::mavsdk::rpc::action_server::ArmDisarm::MergeFrom(from._internal_arm()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( + from._internal_action_server_result()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_arm()->::mavsdk::rpc::action_server::ArmDisarm::MergeFrom( + from._internal_arm()); + } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ArmDisarmResponse::CopyFrom(const ArmDisarmResponse& from) { @@ -2127,12 +2367,13 @@ bool ArmDisarmResponse::IsInitialized() const { void ArmDisarmResponse::InternalSwap(ArmDisarmResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, arm_) - + sizeof(ArmDisarmResponse::arm_) - - PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, action_server_result_)>( - reinterpret_cast(&action_server_result_), - reinterpret_cast(&other->action_server_result_)); + PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.arm_) + + sizeof(ArmDisarmResponse::_impl_.arm_) + - PROTOBUF_FIELD_OFFSET(ArmDisarmResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ArmDisarmResponse::GetMetadata() const { @@ -2140,41 +2381,55 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ArmDisarmResponse::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[12]); } - // =================================================================== class FlightModeChangeResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const FlightModeChangeResponse* msg); + static void set_has_action_server_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::ActionServerResult& FlightModeChangeResponse::_Internal::action_server_result(const FlightModeChangeResponse* msg) { - return *msg->action_server_result_; + return *msg->_impl_.action_server_result_; } -FlightModeChangeResponse::FlightModeChangeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +FlightModeChangeResponse::FlightModeChangeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.FlightModeChangeResponse) } FlightModeChangeResponse::FlightModeChangeResponse(const FlightModeChangeResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + FlightModeChangeResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.flight_mode_) {} + }; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_server_result()) { - action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from.action_server_result_); - } else { - action_server_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); } - flight_mode_ = from.flight_mode_; + _this->_impl_.flight_mode_ = from._impl_.flight_mode_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.FlightModeChangeResponse) } -inline void FlightModeChangeResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&action_server_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&flight_mode_) - - reinterpret_cast(&action_server_result_)) + sizeof(flight_mode_)); +inline void FlightModeChangeResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.flight_mode_) { 0 } + + }; } FlightModeChangeResponse::~FlightModeChangeResponse() { @@ -2187,50 +2442,55 @@ FlightModeChangeResponse::~FlightModeChangeResponse() { } inline void FlightModeChangeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_server_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_server_result_; } void FlightModeChangeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void FlightModeChangeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - action_server_result_ = nullptr; - flight_mode_ = 0; + _impl_.flight_mode_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* FlightModeChangeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_flight_mode(static_cast<::mavsdk::rpc::action_server::FlightMode>(val)); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2248,6 +2508,7 @@ const char* FlightModeChangeResponse::_InternalParse(const char* ptr, ::_pbi::Pa CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2255,14 +2516,15 @@ const char* FlightModeChangeResponse::_InternalParse(const char* ptr, ::_pbi::Pa #undef CHK_ } -uint8_t* FlightModeChangeResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* FlightModeChangeResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); @@ -2272,7 +2534,7 @@ uint8_t* FlightModeChangeResponse::_InternalSerialize( if (this->_internal_flight_mode() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_flight_mode(), target); + 2, this->_internal_flight_mode(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2283,56 +2545,54 @@ uint8_t* FlightModeChangeResponse::_InternalSerialize( return target; } -size_t FlightModeChangeResponse::ByteSizeLong() const { +::size_t FlightModeChangeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_server_result_); + *_impl_.action_server_result_); } // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; if (this->_internal_flight_mode() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_flight_mode()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_flight_mode()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlightModeChangeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, FlightModeChangeResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlightModeChangeResponse::GetClassData() const { return &_class_data_; } -void FlightModeChangeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void FlightModeChangeResponse::MergeFrom(const FlightModeChangeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.FlightModeChangeResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void FlightModeChangeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.FlightModeChangeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_server_result()) { - _internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom(from._internal_action_server_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( + from._internal_action_server_result()); } if (from._internal_flight_mode() != 0) { - _internal_set_flight_mode(from._internal_flight_mode()); + _this->_internal_set_flight_mode(from._internal_flight_mode()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FlightModeChangeResponse::CopyFrom(const FlightModeChangeResponse& from) { @@ -2349,12 +2609,13 @@ bool FlightModeChangeResponse::IsInitialized() const { void FlightModeChangeResponse::InternalSwap(FlightModeChangeResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, flight_mode_) - + sizeof(FlightModeChangeResponse::flight_mode_) - - PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, action_server_result_)>( - reinterpret_cast(&action_server_result_), - reinterpret_cast(&other->action_server_result_)); + PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.flight_mode_) + + sizeof(FlightModeChangeResponse::_impl_.flight_mode_) + - PROTOBUF_FIELD_OFFSET(FlightModeChangeResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata FlightModeChangeResponse::GetMetadata() const { @@ -2362,41 +2623,55 @@ ::PROTOBUF_NAMESPACE_ID::Metadata FlightModeChangeResponse::GetMetadata() const &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[13]); } - // =================================================================== class TakeoffResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const TakeoffResponse* msg); + static void set_has_action_server_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::ActionServerResult& TakeoffResponse::_Internal::action_server_result(const TakeoffResponse* msg) { - return *msg->action_server_result_; + return *msg->_impl_.action_server_result_; } -TakeoffResponse::TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +TakeoffResponse::TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.TakeoffResponse) } TakeoffResponse::TakeoffResponse(const TakeoffResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + TakeoffResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.takeoff_) {} + }; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_server_result()) { - action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from.action_server_result_); - } else { - action_server_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); } - takeoff_ = from.takeoff_; + _this->_impl_.takeoff_ = from._impl_.takeoff_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.TakeoffResponse) } -inline void TakeoffResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&action_server_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&takeoff_) - - reinterpret_cast(&action_server_result_)) + sizeof(takeoff_)); +inline void TakeoffResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.takeoff_) { false } + + }; } TakeoffResponse::~TakeoffResponse() { @@ -2409,49 +2684,54 @@ TakeoffResponse::~TakeoffResponse() { } inline void TakeoffResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_server_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_server_result_; } void TakeoffResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void TakeoffResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.TakeoffResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - action_server_result_ = nullptr; - takeoff_ = false; + _impl_.takeoff_ = false; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* TakeoffResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool takeoff = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - takeoff_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.takeoff_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2469,6 +2749,7 @@ const char* TakeoffResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2476,14 +2757,15 @@ const char* TakeoffResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex #undef CHK_ } -uint8_t* TakeoffResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* TakeoffResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.TakeoffResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); @@ -2492,7 +2774,8 @@ uint8_t* TakeoffResponse::_InternalSerialize( // bool takeoff = 2; if (this->_internal_takeoff() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_takeoff(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this->_internal_takeoff(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2503,55 +2786,53 @@ uint8_t* TakeoffResponse::_InternalSerialize( return target; } -size_t TakeoffResponse::ByteSizeLong() const { +::size_t TakeoffResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.TakeoffResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_server_result_); + *_impl_.action_server_result_); } // bool takeoff = 2; if (this->_internal_takeoff() != 0) { - total_size += 1 + 1; + total_size += 2; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TakeoffResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, TakeoffResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TakeoffResponse::GetClassData() const { return &_class_data_; } -void TakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void TakeoffResponse::MergeFrom(const TakeoffResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.TakeoffResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void TakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.TakeoffResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_server_result()) { - _internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom(from._internal_action_server_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( + from._internal_action_server_result()); } if (from._internal_takeoff() != 0) { - _internal_set_takeoff(from._internal_takeoff()); + _this->_internal_set_takeoff(from._internal_takeoff()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TakeoffResponse::CopyFrom(const TakeoffResponse& from) { @@ -2568,12 +2849,13 @@ bool TakeoffResponse::IsInitialized() const { void TakeoffResponse::InternalSwap(TakeoffResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(TakeoffResponse, takeoff_) - + sizeof(TakeoffResponse::takeoff_) - - PROTOBUF_FIELD_OFFSET(TakeoffResponse, action_server_result_)>( - reinterpret_cast(&action_server_result_), - reinterpret_cast(&other->action_server_result_)); + PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.takeoff_) + + sizeof(TakeoffResponse::_impl_.takeoff_) + - PROTOBUF_FIELD_OFFSET(TakeoffResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata TakeoffResponse::GetMetadata() const { @@ -2581,41 +2863,55 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TakeoffResponse::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[14]); } - // =================================================================== class LandResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LandResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const LandResponse* msg); + static void set_has_action_server_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::ActionServerResult& LandResponse::_Internal::action_server_result(const LandResponse* msg) { - return *msg->action_server_result_; + return *msg->_impl_.action_server_result_; } -LandResponse::LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +LandResponse::LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.LandResponse) } LandResponse::LandResponse(const LandResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + LandResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.land_) {} + }; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_server_result()) { - action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from.action_server_result_); - } else { - action_server_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); } - land_ = from.land_; + _this->_impl_.land_ = from._impl_.land_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.LandResponse) } -inline void LandResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&action_server_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&land_) - - reinterpret_cast(&action_server_result_)) + sizeof(land_)); +inline void LandResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.land_) { false } + + }; } LandResponse::~LandResponse() { @@ -2628,49 +2924,54 @@ LandResponse::~LandResponse() { } inline void LandResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_server_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_server_result_; } void LandResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void LandResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.LandResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - action_server_result_ = nullptr; - land_ = false; + _impl_.land_ = false; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* LandResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool land = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - land_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.land_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2688,6 +2989,7 @@ const char* LandResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2695,14 +2997,15 @@ const char* LandResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* LandResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* LandResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.LandResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); @@ -2711,7 +3014,8 @@ uint8_t* LandResponse::_InternalSerialize( // bool land = 2; if (this->_internal_land() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_land(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this->_internal_land(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2722,55 +3026,53 @@ uint8_t* LandResponse::_InternalSerialize( return target; } -size_t LandResponse::ByteSizeLong() const { +::size_t LandResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.LandResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_server_result_); + *_impl_.action_server_result_); } // bool land = 2; if (this->_internal_land() != 0) { - total_size += 1 + 1; + total_size += 2; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LandResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, LandResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LandResponse::GetClassData() const { return &_class_data_; } -void LandResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void LandResponse::MergeFrom(const LandResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.LandResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void LandResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.LandResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_server_result()) { - _internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom(from._internal_action_server_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( + from._internal_action_server_result()); } if (from._internal_land() != 0) { - _internal_set_land(from._internal_land()); + _this->_internal_set_land(from._internal_land()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LandResponse::CopyFrom(const LandResponse& from) { @@ -2787,12 +3089,13 @@ bool LandResponse::IsInitialized() const { void LandResponse::InternalSwap(LandResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(LandResponse, land_) - + sizeof(LandResponse::land_) - - PROTOBUF_FIELD_OFFSET(LandResponse, action_server_result_)>( - reinterpret_cast(&action_server_result_), - reinterpret_cast(&other->action_server_result_)); + PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.land_) + + sizeof(LandResponse::_impl_.land_) + - PROTOBUF_FIELD_OFFSET(LandResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata LandResponse::GetMetadata() const { @@ -2800,41 +3103,55 @@ ::PROTOBUF_NAMESPACE_ID::Metadata LandResponse::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[15]); } - // =================================================================== class RebootResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const RebootResponse* msg); + static void set_has_action_server_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::ActionServerResult& RebootResponse::_Internal::action_server_result(const RebootResponse* msg) { - return *msg->action_server_result_; + return *msg->_impl_.action_server_result_; } -RebootResponse::RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +RebootResponse::RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.RebootResponse) } RebootResponse::RebootResponse(const RebootResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + RebootResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.reboot_) {} + }; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_server_result()) { - action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from.action_server_result_); - } else { - action_server_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); } - reboot_ = from.reboot_; + _this->_impl_.reboot_ = from._impl_.reboot_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.RebootResponse) } -inline void RebootResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&action_server_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&reboot_) - - reinterpret_cast(&action_server_result_)) + sizeof(reboot_)); +inline void RebootResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.reboot_) { false } + + }; } RebootResponse::~RebootResponse() { @@ -2847,49 +3164,54 @@ RebootResponse::~RebootResponse() { } inline void RebootResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_server_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_server_result_; } void RebootResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void RebootResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.RebootResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - action_server_result_ = nullptr; - reboot_ = false; + _impl_.reboot_ = false; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* RebootResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool reboot = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - reboot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.reboot_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2907,6 +3229,7 @@ const char* RebootResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2914,14 +3237,15 @@ const char* RebootResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* RebootResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* RebootResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.RebootResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); @@ -2930,7 +3254,8 @@ uint8_t* RebootResponse::_InternalSerialize( // bool reboot = 2; if (this->_internal_reboot() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_reboot(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this->_internal_reboot(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2941,55 +3266,53 @@ uint8_t* RebootResponse::_InternalSerialize( return target; } -size_t RebootResponse::ByteSizeLong() const { +::size_t RebootResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.RebootResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_server_result_); + *_impl_.action_server_result_); } // bool reboot = 2; if (this->_internal_reboot() != 0) { - total_size += 1 + 1; + total_size += 2; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RebootResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, RebootResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RebootResponse::GetClassData() const { return &_class_data_; } -void RebootResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void RebootResponse::MergeFrom(const RebootResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.RebootResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void RebootResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.RebootResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_server_result()) { - _internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom(from._internal_action_server_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( + from._internal_action_server_result()); } if (from._internal_reboot() != 0) { - _internal_set_reboot(from._internal_reboot()); + _this->_internal_set_reboot(from._internal_reboot()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RebootResponse::CopyFrom(const RebootResponse& from) { @@ -3006,12 +3329,13 @@ bool RebootResponse::IsInitialized() const { void RebootResponse::InternalSwap(RebootResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(RebootResponse, reboot_) - + sizeof(RebootResponse::reboot_) - - PROTOBUF_FIELD_OFFSET(RebootResponse, action_server_result_)>( - reinterpret_cast(&action_server_result_), - reinterpret_cast(&other->action_server_result_)); + PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.reboot_) + + sizeof(RebootResponse::_impl_.reboot_) + - PROTOBUF_FIELD_OFFSET(RebootResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata RebootResponse::GetMetadata() const { @@ -3019,41 +3343,55 @@ ::PROTOBUF_NAMESPACE_ID::Metadata RebootResponse::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[16]); } - // =================================================================== class ShutdownResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const ShutdownResponse* msg); + static void set_has_action_server_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::ActionServerResult& ShutdownResponse::_Internal::action_server_result(const ShutdownResponse* msg) { - return *msg->action_server_result_; + return *msg->_impl_.action_server_result_; } -ShutdownResponse::ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +ShutdownResponse::ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ShutdownResponse) } ShutdownResponse::ShutdownResponse(const ShutdownResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + ShutdownResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.shutdown_) {} + }; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_server_result()) { - action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from.action_server_result_); - } else { - action_server_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); } - shutdown_ = from.shutdown_; + _this->_impl_.shutdown_ = from._impl_.shutdown_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ShutdownResponse) } -inline void ShutdownResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&action_server_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&shutdown_) - - reinterpret_cast(&action_server_result_)) + sizeof(shutdown_)); +inline void ShutdownResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.shutdown_) { false } + + }; } ShutdownResponse::~ShutdownResponse() { @@ -3066,49 +3404,54 @@ ShutdownResponse::~ShutdownResponse() { } inline void ShutdownResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_server_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_server_result_; } void ShutdownResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ShutdownResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ShutdownResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - action_server_result_ = nullptr; - shutdown_ = false; + _impl_.shutdown_ = false; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ShutdownResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool shutdown = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - shutdown_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.shutdown_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3126,6 +3469,7 @@ const char* ShutdownResponse::_InternalParse(const char* ptr, ::_pbi::ParseConte CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -3133,14 +3477,15 @@ const char* ShutdownResponse::_InternalParse(const char* ptr, ::_pbi::ParseConte #undef CHK_ } -uint8_t* ShutdownResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ShutdownResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ShutdownResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); @@ -3149,7 +3494,8 @@ uint8_t* ShutdownResponse::_InternalSerialize( // bool shutdown = 2; if (this->_internal_shutdown() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_shutdown(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this->_internal_shutdown(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3160,55 +3506,53 @@ uint8_t* ShutdownResponse::_InternalSerialize( return target; } -size_t ShutdownResponse::ByteSizeLong() const { +::size_t ShutdownResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ShutdownResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_server_result_); + *_impl_.action_server_result_); } // bool shutdown = 2; if (this->_internal_shutdown() != 0) { - total_size += 1 + 1; + total_size += 2; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShutdownResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ShutdownResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShutdownResponse::GetClassData() const { return &_class_data_; } -void ShutdownResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ShutdownResponse::MergeFrom(const ShutdownResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ShutdownResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ShutdownResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ShutdownResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_server_result()) { - _internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom(from._internal_action_server_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( + from._internal_action_server_result()); } if (from._internal_shutdown() != 0) { - _internal_set_shutdown(from._internal_shutdown()); + _this->_internal_set_shutdown(from._internal_shutdown()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ShutdownResponse::CopyFrom(const ShutdownResponse& from) { @@ -3225,12 +3569,13 @@ bool ShutdownResponse::IsInitialized() const { void ShutdownResponse::InternalSwap(ShutdownResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ShutdownResponse, shutdown_) - + sizeof(ShutdownResponse::shutdown_) - - PROTOBUF_FIELD_OFFSET(ShutdownResponse, action_server_result_)>( - reinterpret_cast(&action_server_result_), - reinterpret_cast(&other->action_server_result_)); + PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.shutdown_) + + sizeof(ShutdownResponse::_impl_.shutdown_) + - PROTOBUF_FIELD_OFFSET(ShutdownResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ShutdownResponse::GetMetadata() const { @@ -3238,41 +3583,55 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ShutdownResponse::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[17]); } - // =================================================================== class TerminateResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const TerminateResponse* msg); + static void set_has_action_server_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::ActionServerResult& TerminateResponse::_Internal::action_server_result(const TerminateResponse* msg) { - return *msg->action_server_result_; + return *msg->_impl_.action_server_result_; } -TerminateResponse::TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +TerminateResponse::TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.TerminateResponse) } TerminateResponse::TerminateResponse(const TerminateResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + TerminateResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.terminate_) {} + }; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_server_result()) { - action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from.action_server_result_); - } else { - action_server_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); } - terminate_ = from.terminate_; + _this->_impl_.terminate_ = from._impl_.terminate_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.TerminateResponse) } -inline void TerminateResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&action_server_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&terminate_) - - reinterpret_cast(&action_server_result_)) + sizeof(terminate_)); +inline void TerminateResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + , decltype(_impl_.terminate_) { false } + + }; } TerminateResponse::~TerminateResponse() { @@ -3285,49 +3644,54 @@ TerminateResponse::~TerminateResponse() { } inline void TerminateResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_server_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_server_result_; } void TerminateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void TerminateResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.TerminateResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - action_server_result_ = nullptr; - terminate_ = false; + _impl_.terminate_ = false; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* TerminateResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool terminate = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - terminate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.terminate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3345,6 +3709,7 @@ const char* TerminateResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -3352,14 +3717,15 @@ const char* TerminateResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* TerminateResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* TerminateResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.TerminateResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); @@ -3368,7 +3734,8 @@ uint8_t* TerminateResponse::_InternalSerialize( // bool terminate = 2; if (this->_internal_terminate() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_terminate(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this->_internal_terminate(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3379,55 +3746,53 @@ uint8_t* TerminateResponse::_InternalSerialize( return target; } -size_t TerminateResponse::ByteSizeLong() const { +::size_t TerminateResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.TerminateResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_server_result_); + *_impl_.action_server_result_); } // bool terminate = 2; if (this->_internal_terminate() != 0) { - total_size += 1 + 1; + total_size += 2; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TerminateResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, TerminateResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TerminateResponse::GetClassData() const { return &_class_data_; } -void TerminateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void TerminateResponse::MergeFrom(const TerminateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.TerminateResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void TerminateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.TerminateResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_server_result()) { - _internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom(from._internal_action_server_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( + from._internal_action_server_result()); } if (from._internal_terminate() != 0) { - _internal_set_terminate(from._internal_terminate()); + _this->_internal_set_terminate(from._internal_terminate()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TerminateResponse::CopyFrom(const TerminateResponse& from) { @@ -3444,12 +3809,13 @@ bool TerminateResponse::IsInitialized() const { void TerminateResponse::InternalSwap(TerminateResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(TerminateResponse, terminate_) - + sizeof(TerminateResponse::terminate_) - - PROTOBUF_FIELD_OFFSET(TerminateResponse, action_server_result_)>( - reinterpret_cast(&action_server_result_), - reinterpret_cast(&other->action_server_result_)); + PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.terminate_) + + sizeof(TerminateResponse::_impl_.terminate_) + - PROTOBUF_FIELD_OFFSET(TerminateResponse, _impl_.action_server_result_)>( + reinterpret_cast(&_impl_.action_server_result_), + reinterpret_cast(&other->_impl_.action_server_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata TerminateResponse::GetMetadata() const { @@ -3457,37 +3823,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TerminateResponse::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[18]); } - // =================================================================== class SetArmableResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetArmableResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetArmableResponse* msg); + static void set_has_action_server_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::ActionServerResult& SetArmableResponse::_Internal::action_server_result(const SetArmableResponse* msg) { - return *msg->action_server_result_; + return *msg->_impl_.action_server_result_; } -SetArmableResponse::SetArmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetArmableResponse::SetArmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetArmableResponse) } SetArmableResponse::SetArmableResponse(const SetArmableResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetArmableResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_server_result()) { - action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from.action_server_result_); - } else { - action_server_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetArmableResponse) } -inline void SetArmableResponse::SharedCtor() { -action_server_result_ = nullptr; +inline void SetArmableResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + }; } SetArmableResponse::~SetArmableResponse() { @@ -3500,40 +3879,44 @@ SetArmableResponse::~SetArmableResponse() { } inline void SetArmableResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_server_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_server_result_; } void SetArmableResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetArmableResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetArmableResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - action_server_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetArmableResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3551,6 +3934,7 @@ const char* SetArmableResponse::_InternalParse(const char* ptr, ::_pbi::ParseCon CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -3558,14 +3942,15 @@ const char* SetArmableResponse::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* SetArmableResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetArmableResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetArmableResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); @@ -3579,47 +3964,45 @@ uint8_t* SetArmableResponse::_InternalSerialize( return target; } -size_t SetArmableResponse::ByteSizeLong() const { +::size_t SetArmableResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetArmableResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_server_result_); + *_impl_.action_server_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetArmableResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetArmableResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetArmableResponse::GetClassData() const { return &_class_data_; } -void SetArmableResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetArmableResponse::MergeFrom(const SetArmableResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetArmableResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetArmableResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetArmableResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_server_result()) { - _internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom(from._internal_action_server_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( + from._internal_action_server_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetArmableResponse::CopyFrom(const SetArmableResponse& from) { @@ -3636,7 +4019,8 @@ bool SetArmableResponse::IsInitialized() const { void SetArmableResponse::InternalSwap(SetArmableResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_server_result_, other->action_server_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_server_result_, other->_impl_.action_server_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetArmableResponse::GetMetadata() const { @@ -3644,37 +4028,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetArmableResponse::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[19]); } - // =================================================================== class SetDisarmableResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetDisarmableResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetDisarmableResponse* msg); + static void set_has_action_server_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::ActionServerResult& SetDisarmableResponse::_Internal::action_server_result(const SetDisarmableResponse* msg) { - return *msg->action_server_result_; + return *msg->_impl_.action_server_result_; } -SetDisarmableResponse::SetDisarmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetDisarmableResponse::SetDisarmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetDisarmableResponse) } SetDisarmableResponse::SetDisarmableResponse(const SetDisarmableResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetDisarmableResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_server_result()) { - action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from.action_server_result_); - } else { - action_server_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetDisarmableResponse) } -inline void SetDisarmableResponse::SharedCtor() { -action_server_result_ = nullptr; +inline void SetDisarmableResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + }; } SetDisarmableResponse::~SetDisarmableResponse() { @@ -3687,40 +4084,44 @@ SetDisarmableResponse::~SetDisarmableResponse() { } inline void SetDisarmableResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_server_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_server_result_; } void SetDisarmableResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetDisarmableResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetDisarmableResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - action_server_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetDisarmableResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3738,6 +4139,7 @@ const char* SetDisarmableResponse::_InternalParse(const char* ptr, ::_pbi::Parse CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -3745,14 +4147,15 @@ const char* SetDisarmableResponse::_InternalParse(const char* ptr, ::_pbi::Parse #undef CHK_ } -uint8_t* SetDisarmableResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetDisarmableResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetDisarmableResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); @@ -3766,47 +4169,45 @@ uint8_t* SetDisarmableResponse::_InternalSerialize( return target; } -size_t SetDisarmableResponse::ByteSizeLong() const { +::size_t SetDisarmableResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetDisarmableResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_server_result_); + *_impl_.action_server_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetDisarmableResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetDisarmableResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetDisarmableResponse::GetClassData() const { return &_class_data_; } -void SetDisarmableResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetDisarmableResponse::MergeFrom(const SetDisarmableResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetDisarmableResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetDisarmableResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetDisarmableResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_server_result()) { - _internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom(from._internal_action_server_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( + from._internal_action_server_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetDisarmableResponse::CopyFrom(const SetDisarmableResponse& from) { @@ -3823,7 +4224,8 @@ bool SetDisarmableResponse::IsInitialized() const { void SetDisarmableResponse::InternalSwap(SetDisarmableResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_server_result_, other->action_server_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_server_result_, other->_impl_.action_server_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetDisarmableResponse::GetMetadata() const { @@ -3831,37 +4233,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetDisarmableResponse::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[20]); } - // =================================================================== class SetAllowableFlightModesResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetAllowableFlightModesResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetAllowableFlightModesResponse* msg); + static void set_has_action_server_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowableFlightModesResponse::_Internal::action_server_result(const SetAllowableFlightModesResponse* msg) { - return *msg->action_server_result_; + return *msg->_impl_.action_server_result_; } -SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) } SetAllowableFlightModesResponse::SetAllowableFlightModesResponse(const SetAllowableFlightModesResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetAllowableFlightModesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_server_result()) { - action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from.action_server_result_); - } else { - action_server_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) } -inline void SetAllowableFlightModesResponse::SharedCtor() { -action_server_result_ = nullptr; +inline void SetAllowableFlightModesResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + }; } SetAllowableFlightModesResponse::~SetAllowableFlightModesResponse() { @@ -3874,40 +4289,44 @@ SetAllowableFlightModesResponse::~SetAllowableFlightModesResponse() { } inline void SetAllowableFlightModesResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_server_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_server_result_; } void SetAllowableFlightModesResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetAllowableFlightModesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - action_server_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetAllowableFlightModesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3925,6 +4344,7 @@ const char* SetAllowableFlightModesResponse::_InternalParse(const char* ptr, ::_ CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -3932,14 +4352,15 @@ const char* SetAllowableFlightModesResponse::_InternalParse(const char* ptr, ::_ #undef CHK_ } -uint8_t* SetAllowableFlightModesResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetAllowableFlightModesResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); @@ -3953,47 +4374,45 @@ uint8_t* SetAllowableFlightModesResponse::_InternalSerialize( return target; } -size_t SetAllowableFlightModesResponse::ByteSizeLong() const { +::size_t SetAllowableFlightModesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_server_result_); + *_impl_.action_server_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAllowableFlightModesResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetAllowableFlightModesResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAllowableFlightModesResponse::GetClassData() const { return &_class_data_; } -void SetAllowableFlightModesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetAllowableFlightModesResponse::MergeFrom(const SetAllowableFlightModesResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetAllowableFlightModesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_server_result()) { - _internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom(from._internal_action_server_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( + from._internal_action_server_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetAllowableFlightModesResponse::CopyFrom(const SetAllowableFlightModesResponse& from) { @@ -4010,7 +4429,8 @@ bool SetAllowableFlightModesResponse::IsInitialized() const { void SetAllowableFlightModesResponse::InternalSwap(SetAllowableFlightModesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_server_result_, other->action_server_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_server_result_, other->_impl_.action_server_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetAllowableFlightModesResponse::GetMetadata() const { @@ -4018,37 +4438,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetAllowableFlightModesResponse::GetMetadata() &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[21]); } - // =================================================================== class SetAllowTakeoffResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetAllowTakeoffResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result(const SetAllowTakeoffResponse* msg); + static void set_has_action_server_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowTakeoffResponse::_Internal::action_server_result(const SetAllowTakeoffResponse* msg) { - return *msg->action_server_result_; + return *msg->_impl_.action_server_result_; } -SetAllowTakeoffResponse::SetAllowTakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetAllowTakeoffResponse::SetAllowTakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) } SetAllowTakeoffResponse::SetAllowTakeoffResponse(const SetAllowTakeoffResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetAllowTakeoffResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_action_server_result()) { - action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from.action_server_result_); - } else { - action_server_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.action_server_result_ = new ::mavsdk::rpc::action_server::ActionServerResult(*from._impl_.action_server_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.SetAllowTakeoffResponse) } -inline void SetAllowTakeoffResponse::SharedCtor() { -action_server_result_ = nullptr; +inline void SetAllowTakeoffResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.action_server_result_){nullptr} + }; } SetAllowTakeoffResponse::~SetAllowTakeoffResponse() { @@ -4061,40 +4494,44 @@ SetAllowTakeoffResponse::~SetAllowTakeoffResponse() { } inline void SetAllowTakeoffResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete action_server_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.action_server_result_; } void SetAllowTakeoffResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetAllowTakeoffResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.action_server_result_ != nullptr); + _impl_.action_server_result_->Clear(); } - action_server_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetAllowTakeoffResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_action_server_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4112,6 +4549,7 @@ const char* SetAllowTakeoffResponse::_InternalParse(const char* ptr, ::_pbi::Par CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -4119,14 +4557,15 @@ const char* SetAllowTakeoffResponse::_InternalParse(const char* ptr, ::_pbi::Par #undef CHK_ } -uint8_t* SetAllowTakeoffResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetAllowTakeoffResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::action_server_result(this), _Internal::action_server_result(this).GetCachedSize(), target, stream); @@ -4140,47 +4579,45 @@ uint8_t* SetAllowTakeoffResponse::_InternalSerialize( return target; } -size_t SetAllowTakeoffResponse::ByteSizeLong() const { +::size_t SetAllowTakeoffResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; - if (this->_internal_has_action_server_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_server_result_); + *_impl_.action_server_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetAllowTakeoffResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetAllowTakeoffResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetAllowTakeoffResponse::GetClassData() const { return &_class_data_; } -void SetAllowTakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetAllowTakeoffResponse::MergeFrom(const SetAllowTakeoffResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetAllowTakeoffResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.SetAllowTakeoffResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_action_server_result()) { - _internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom(from._internal_action_server_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_action_server_result()->::mavsdk::rpc::action_server::ActionServerResult::MergeFrom( + from._internal_action_server_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetAllowTakeoffResponse::CopyFrom(const SetAllowTakeoffResponse& from) { @@ -4197,7 +4634,8 @@ bool SetAllowTakeoffResponse::IsInitialized() const { void SetAllowTakeoffResponse::InternalSwap(SetAllowTakeoffResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(action_server_result_, other->action_server_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.action_server_result_, other->_impl_.action_server_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetAllowTakeoffResponse::GetMetadata() const { @@ -4205,37 +4643,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetAllowTakeoffResponse::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[22]); } - // =================================================================== class GetAllowableFlightModesResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetAllowableFlightModesResponse, _impl_._has_bits_); static const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes(const GetAllowableFlightModesResponse* msg); + static void set_has_flight_modes(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::action_server::AllowableFlightModes& GetAllowableFlightModesResponse::_Internal::flight_modes(const GetAllowableFlightModesResponse* msg) { - return *msg->flight_modes_; + return *msg->_impl_.flight_modes_; } -GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) } GetAllowableFlightModesResponse::GetAllowableFlightModesResponse(const GetAllowableFlightModesResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + GetAllowableFlightModesResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.flight_modes_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_flight_modes()) { - flight_modes_ = new ::mavsdk::rpc::action_server::AllowableFlightModes(*from.flight_modes_); - } else { - flight_modes_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.flight_modes_ = new ::mavsdk::rpc::action_server::AllowableFlightModes(*from._impl_.flight_modes_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) } -inline void GetAllowableFlightModesResponse::SharedCtor() { -flight_modes_ = nullptr; +inline void GetAllowableFlightModesResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.flight_modes_){nullptr} + }; } GetAllowableFlightModesResponse::~GetAllowableFlightModesResponse() { @@ -4248,40 +4699,44 @@ GetAllowableFlightModesResponse::~GetAllowableFlightModesResponse() { } inline void GetAllowableFlightModesResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete flight_modes_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.flight_modes_; } void GetAllowableFlightModesResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GetAllowableFlightModesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && flight_modes_ != nullptr) { - delete flight_modes_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.flight_modes_ != nullptr); + _impl_.flight_modes_->Clear(); } - flight_modes_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GetAllowableFlightModesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_flight_modes(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4299,6 +4754,7 @@ const char* GetAllowableFlightModesResponse::_InternalParse(const char* ptr, ::_ CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -4306,14 +4762,15 @@ const char* GetAllowableFlightModesResponse::_InternalParse(const char* ptr, ::_ #undef CHK_ } -uint8_t* GetAllowableFlightModesResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* GetAllowableFlightModesResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - if (this->_internal_has_flight_modes()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::flight_modes(this), _Internal::flight_modes(this).GetCachedSize(), target, stream); @@ -4327,47 +4784,45 @@ uint8_t* GetAllowableFlightModesResponse::_InternalSerialize( return target; } -size_t GetAllowableFlightModesResponse::ByteSizeLong() const { +::size_t GetAllowableFlightModesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; - if (this->_internal_has_flight_modes()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *flight_modes_); + *_impl_.flight_modes_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetAllowableFlightModesResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, GetAllowableFlightModesResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetAllowableFlightModesResponse::GetClassData() const { return &_class_data_; } -void GetAllowableFlightModesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void GetAllowableFlightModesResponse::MergeFrom(const GetAllowableFlightModesResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void GetAllowableFlightModesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_flight_modes()) { - _internal_mutable_flight_modes()->::mavsdk::rpc::action_server::AllowableFlightModes::MergeFrom(from._internal_flight_modes()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_flight_modes()->::mavsdk::rpc::action_server::AllowableFlightModes::MergeFrom( + from._internal_flight_modes()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetAllowableFlightModesResponse::CopyFrom(const GetAllowableFlightModesResponse& from) { @@ -4384,7 +4839,8 @@ bool GetAllowableFlightModesResponse::IsInitialized() const { void GetAllowableFlightModesResponse::InternalSwap(GetAllowableFlightModesResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(flight_modes_, other->flight_modes_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.flight_modes_, other->_impl_.flight_modes_); } ::PROTOBUF_NAMESPACE_ID::Metadata GetAllowableFlightModesResponse::GetMetadata() const { @@ -4392,33 +4848,35 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetAllowableFlightModesResponse::GetMetadata() &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[23]); } - // =================================================================== class AllowableFlightModes::_Internal { public: }; -AllowableFlightModes::AllowableFlightModes(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +AllowableFlightModes::AllowableFlightModes(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.AllowableFlightModes) } AllowableFlightModes::AllowableFlightModes(const AllowableFlightModes& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&can_auto_mode_, &from.can_auto_mode_, - static_cast(reinterpret_cast(&can_stabilize_mode_) - - reinterpret_cast(&can_auto_mode_)) + sizeof(can_stabilize_mode_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.AllowableFlightModes) } -inline void AllowableFlightModes::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&can_auto_mode_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&can_stabilize_mode_) - - reinterpret_cast(&can_auto_mode_)) + sizeof(can_stabilize_mode_)); +inline void AllowableFlightModes::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.can_auto_mode_) { false } + + , decltype(_impl_.can_guided_mode_) { false } + + , decltype(_impl_.can_stabilize_mode_) { false } + + , /*decltype(_impl_._cached_size_)*/{} + }; } AllowableFlightModes::~AllowableFlightModes() { @@ -4431,54 +4889,57 @@ AllowableFlightModes::~AllowableFlightModes() { } inline void AllowableFlightModes::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void AllowableFlightModes::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AllowableFlightModes::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.AllowableFlightModes) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&can_auto_mode_, 0, static_cast( - reinterpret_cast(&can_stabilize_mode_) - - reinterpret_cast(&can_auto_mode_)) + sizeof(can_stabilize_mode_)); + ::memset(&_impl_.can_auto_mode_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.can_stabilize_mode_) - + reinterpret_cast(&_impl_.can_auto_mode_)) + sizeof(_impl_.can_stabilize_mode_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* AllowableFlightModes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bool can_auto_mode = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - can_auto_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + _impl_.can_auto_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool can_guided_mode = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - can_guided_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.can_guided_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool can_stabilize_mode = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - can_stabilize_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { + _impl_.can_stabilize_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4503,28 +4964,31 @@ const char* AllowableFlightModes::_InternalParse(const char* ptr, ::_pbi::ParseC #undef CHK_ } -uint8_t* AllowableFlightModes::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* AllowableFlightModes::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.AllowableFlightModes) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // bool can_auto_mode = 1; if (this->_internal_can_auto_mode() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_can_auto_mode(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this->_internal_can_auto_mode(), target); } // bool can_guided_mode = 2; if (this->_internal_can_guided_mode() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_can_guided_mode(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this->_internal_can_guided_mode(), target); } // bool can_stabilize_mode = 3; if (this->_internal_can_stabilize_mode() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_can_stabilize_mode(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this->_internal_can_stabilize_mode(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4535,61 +4999,57 @@ uint8_t* AllowableFlightModes::_InternalSerialize( return target; } -size_t AllowableFlightModes::ByteSizeLong() const { +::size_t AllowableFlightModes::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.AllowableFlightModes) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool can_auto_mode = 1; if (this->_internal_can_auto_mode() != 0) { - total_size += 1 + 1; + total_size += 2; } // bool can_guided_mode = 2; if (this->_internal_can_guided_mode() != 0) { - total_size += 1 + 1; + total_size += 2; } // bool can_stabilize_mode = 3; if (this->_internal_can_stabilize_mode() != 0) { - total_size += 1 + 1; + total_size += 2; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AllowableFlightModes::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, AllowableFlightModes::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AllowableFlightModes::GetClassData() const { return &_class_data_; } -void AllowableFlightModes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void AllowableFlightModes::MergeFrom(const AllowableFlightModes& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.AllowableFlightModes) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void AllowableFlightModes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.AllowableFlightModes) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_can_auto_mode() != 0) { - _internal_set_can_auto_mode(from._internal_can_auto_mode()); + _this->_internal_set_can_auto_mode(from._internal_can_auto_mode()); } if (from._internal_can_guided_mode() != 0) { - _internal_set_can_guided_mode(from._internal_can_guided_mode()); + _this->_internal_set_can_guided_mode(from._internal_can_guided_mode()); } if (from._internal_can_stabilize_mode() != 0) { - _internal_set_can_stabilize_mode(from._internal_can_stabilize_mode()); + _this->_internal_set_can_stabilize_mode(from._internal_can_stabilize_mode()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AllowableFlightModes::CopyFrom(const AllowableFlightModes& from) { @@ -4607,11 +5067,11 @@ void AllowableFlightModes::InternalSwap(AllowableFlightModes* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(AllowableFlightModes, can_stabilize_mode_) - + sizeof(AllowableFlightModes::can_stabilize_mode_) - - PROTOBUF_FIELD_OFFSET(AllowableFlightModes, can_auto_mode_)>( - reinterpret_cast(&can_auto_mode_), - reinterpret_cast(&other->can_auto_mode_)); + PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_stabilize_mode_) + + sizeof(AllowableFlightModes::_impl_.can_stabilize_mode_) + - PROTOBUF_FIELD_OFFSET(AllowableFlightModes, _impl_.can_auto_mode_)>( + reinterpret_cast(&_impl_.can_auto_mode_), + reinterpret_cast(&other->_impl_.can_auto_mode_)); } ::PROTOBUF_NAMESPACE_ID::Metadata AllowableFlightModes::GetMetadata() const { @@ -4619,33 +5079,33 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AllowableFlightModes::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[24]); } - // =================================================================== class ArmDisarm::_Internal { public: }; -ArmDisarm::ArmDisarm(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +ArmDisarm::ArmDisarm(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ArmDisarm) } ArmDisarm::ArmDisarm(const ArmDisarm& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&arm_, &from.arm_, - static_cast(reinterpret_cast(&force_) - - reinterpret_cast(&arm_)) + sizeof(force_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ArmDisarm) } -inline void ArmDisarm::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&arm_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&force_) - - reinterpret_cast(&arm_)) + sizeof(force_)); +inline void ArmDisarm::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.arm_) { false } + + , decltype(_impl_.force_) { false } + + , /*decltype(_impl_._cached_size_)*/{} + }; } ArmDisarm::~ArmDisarm() { @@ -4658,46 +5118,48 @@ ArmDisarm::~ArmDisarm() { } inline void ArmDisarm::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void ArmDisarm::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ArmDisarm::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ArmDisarm) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&arm_, 0, static_cast( - reinterpret_cast(&force_) - - reinterpret_cast(&arm_)) + sizeof(force_)); + ::memset(&_impl_.arm_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.force_) - + reinterpret_cast(&_impl_.arm_)) + sizeof(_impl_.force_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ArmDisarm::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bool arm = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - arm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + _impl_.arm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool force = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - force_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.force_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4722,22 +5184,24 @@ const char* ArmDisarm::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx #undef CHK_ } -uint8_t* ArmDisarm::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ArmDisarm::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ArmDisarm) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // bool arm = 1; if (this->_internal_arm() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_arm(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this->_internal_arm(), target); } // bool force = 2; if (this->_internal_force() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_force(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this->_internal_force(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4748,53 +5212,49 @@ uint8_t* ArmDisarm::_InternalSerialize( return target; } -size_t ArmDisarm::ByteSizeLong() const { +::size_t ArmDisarm::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ArmDisarm) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool arm = 1; if (this->_internal_arm() != 0) { - total_size += 1 + 1; + total_size += 2; } // bool force = 2; if (this->_internal_force() != 0) { - total_size += 1 + 1; + total_size += 2; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ArmDisarm::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ArmDisarm::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ArmDisarm::GetClassData() const { return &_class_data_; } -void ArmDisarm::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ArmDisarm::MergeFrom(const ArmDisarm& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ArmDisarm) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ArmDisarm::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ArmDisarm) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_arm() != 0) { - _internal_set_arm(from._internal_arm()); + _this->_internal_set_arm(from._internal_arm()); } if (from._internal_force() != 0) { - _internal_set_force(from._internal_force()); + _this->_internal_set_force(from._internal_force()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ArmDisarm::CopyFrom(const ArmDisarm& from) { @@ -4812,11 +5272,11 @@ void ArmDisarm::InternalSwap(ArmDisarm* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ArmDisarm, force_) - + sizeof(ArmDisarm::force_) - - PROTOBUF_FIELD_OFFSET(ArmDisarm, arm_)>( - reinterpret_cast(&arm_), - reinterpret_cast(&other->arm_)); + PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.force_) + + sizeof(ArmDisarm::_impl_.force_) + - PROTOBUF_FIELD_OFFSET(ArmDisarm, _impl_.arm_)>( + reinterpret_cast(&_impl_.arm_), + reinterpret_cast(&other->_impl_.arm_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ArmDisarm::GetMetadata() const { @@ -4824,40 +5284,52 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ArmDisarm::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[25]); } - // =================================================================== class ActionServerResult::_Internal { public: }; -ActionServerResult::ActionServerResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +ActionServerResult::ActionServerResult(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action_server.ActionServerResult) } ActionServerResult::ActionServerResult(const ActionServerResult& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + ActionServerResult* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.result_str_) {} + + , decltype(_impl_.result_) {} + + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - result_str_.InitDefault(); + _impl_.result_str_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.result_str_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_result_str().empty()) { - result_str_.Set(from._internal_result_str(), - GetArenaForAllocation()); + _this->_impl_.result_str_.Set(from._internal_result_str(), _this->GetArenaForAllocation()); } - result_ = from.result_; + _this->_impl_.result_ = from._impl_.result_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action_server.ActionServerResult) } -inline void ActionServerResult::SharedCtor() { -result_str_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - result_str_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -result_ = 0; +inline void ActionServerResult::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.result_str_) {} + + , decltype(_impl_.result_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.result_str_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.result_str_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ActionServerResult::~ActionServerResult() { @@ -4870,49 +5342,51 @@ ActionServerResult::~ActionServerResult() { } inline void ActionServerResult::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - result_str_.Destroy(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.result_str_.Destroy(); } void ActionServerResult::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ActionServerResult::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action_server.ActionServerResult) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - result_str_.ClearToEmpty(); - result_ = 0; + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ActionServerResult::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_result(static_cast<::mavsdk::rpc::action_server::ActionServerResult_Result>(val)); - } else + } else { goto handle_unusual; + } continue; // string result_str = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { auto str = _internal_mutable_result_str(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.action_server.ActionServerResult.result_str")); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4937,27 +5411,25 @@ const char* ActionServerResult::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* ActionServerResult::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ActionServerResult::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action_server.ActionServerResult) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; if (this->_internal_result() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); + 1, this->_internal_result(), target); } // string result_str = 2; if (!this->_internal_result_str().empty()) { + const std::string& _s = this->_internal_result_str(); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_result_str().data(), static_cast(this->_internal_result_str().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.action_server.ActionServerResult.result_str"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_result_str(), target); + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.action_server.ActionServerResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4968,56 +5440,51 @@ uint8_t* ActionServerResult::_InternalSerialize( return target; } -size_t ActionServerResult::ByteSizeLong() const { +::size_t ActionServerResult::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action_server.ActionServerResult) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string result_str = 2; if (!this->_internal_result_str().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_result_str()); + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_result_str()); } // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; if (this->_internal_result() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ActionServerResult::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ActionServerResult::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ActionServerResult::GetClassData() const { return &_class_data_; } -void ActionServerResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ActionServerResult::MergeFrom(const ActionServerResult& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ActionServerResult) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ActionServerResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action_server.ActionServerResult) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_result_str().empty()) { - _internal_set_result_str(from._internal_result_str()); + _this->_internal_set_result_str(from._internal_result_str()); } if (from._internal_result() != 0) { - _internal_set_result(from._internal_result()); + _this->_internal_set_result(from._internal_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ActionServerResult::CopyFrom(const ActionServerResult& from) { @@ -5036,11 +5503,9 @@ void ActionServerResult::InternalSwap(ActionServerResult* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &result_str_, lhs_arena, - &other->result_str_, rhs_arena - ); - swap(result_, other->result_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, lhs_arena, + &other->_impl_.result_str_, rhs_arena); + swap(_impl_.result_, other->_impl_.result_); } ::PROTOBUF_NAMESPACE_ID::Metadata ActionServerResult::GetMetadata() const { @@ -5048,7 +5513,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ActionServerResult::GetMetadata() const { &descriptor_table_action_5fserver_2faction_5fserver_2eproto_getter, &descriptor_table_action_5fserver_2faction_5fserver_2eproto_once, file_level_metadata_action_5fserver_2faction_5fserver_2eproto[26]); } - // @@protoc_insertion_point(namespace_scope) } // namespace action_server } // namespace rpc @@ -5163,6 +5627,5 @@ Arena::CreateMaybeMessage< ::mavsdk::rpc::action_server::ActionServerResult >(Ar return Arena::CreateMessageInternal< ::mavsdk::rpc::action_server::ActionServerResult >(arena); } PROTOBUF_NAMESPACE_CLOSE - // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/action_server/action_server.pb.h b/src/mavsdk_server/src/generated/action_server/action_server.pb.h index 2302337fcd..7d3f2ac947 100644 --- a/src/mavsdk_server/src/generated/action_server/action_server.pb.h +++ b/src/mavsdk_server/src/generated/action_server/action_server.pb.h @@ -1,41 +1,46 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: action_server/action_server.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3020000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3020001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include +#include + +#include "google/protobuf/port_def.inc" +#if PROTOBUF_VERSION < 4023000 +#error "This file was generated by a newer version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please update" +#error "your headers." +#endif // PROTOBUF_VERSION + +#if 4023002 < PROTOBUF_MIN_PROTOC_VERSION +#error "This file was generated by an older version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please" +#error "regenerate this file with a newer version of protoc." +#endif // PROTOBUF_MIN_PROTOC_VERSION +#include "google/protobuf/port_undef.inc" +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_bases.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_reflection.h" +#include "google/protobuf/unknown_field_set.h" #include "mavsdk_options.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_action_5fserver_2faction_5fserver_2eproto + PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; @@ -44,9 +49,10 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_action_5fserver_2faction_5fserver_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_action_5fserver_2faction_5fserver_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable + descriptor_table_action_5fserver_2faction_5fserver_2eproto; namespace mavsdk { namespace rpc { namespace action_server { @@ -135,38 +141,65 @@ extern TerminateResponseDefaultTypeInternal _TerminateResponse_default_instance_ } // namespace rpc } // namespace mavsdk PROTOBUF_NAMESPACE_OPEN -template<> ::mavsdk::rpc::action_server::ActionServerResult* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(Arena*); -template<> ::mavsdk::rpc::action_server::AllowableFlightModes* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(Arena*); -template<> ::mavsdk::rpc::action_server::ArmDisarm* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ArmDisarm>(Arena*); -template<> ::mavsdk::rpc::action_server::ArmDisarmResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ArmDisarmResponse>(Arena*); -template<> ::mavsdk::rpc::action_server::FlightModeChangeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::FlightModeChangeResponse>(Arena*); -template<> ::mavsdk::rpc::action_server::GetAllowableFlightModesRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::GetAllowableFlightModesRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::GetAllowableFlightModesResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::GetAllowableFlightModesResponse>(Arena*); -template<> ::mavsdk::rpc::action_server::LandResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::LandResponse>(Arena*); -template<> ::mavsdk::rpc::action_server::RebootResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::RebootResponse>(Arena*); -template<> ::mavsdk::rpc::action_server::SetAllowTakeoffRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowTakeoffRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::SetAllowTakeoffResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowTakeoffResponse>(Arena*); -template<> ::mavsdk::rpc::action_server::SetAllowableFlightModesRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowableFlightModesRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::SetAllowableFlightModesResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowableFlightModesResponse>(Arena*); -template<> ::mavsdk::rpc::action_server::SetArmableRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetArmableRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::SetArmableResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetArmableResponse>(Arena*); -template<> ::mavsdk::rpc::action_server::SetDisarmableRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetDisarmableRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::SetDisarmableResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetDisarmableResponse>(Arena*); -template<> ::mavsdk::rpc::action_server::ShutdownResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ShutdownResponse>(Arena*); -template<> ::mavsdk::rpc::action_server::SubscribeArmDisarmRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeArmDisarmRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::SubscribeLandRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeLandRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::SubscribeRebootRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeRebootRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::SubscribeShutdownRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeShutdownRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::SubscribeTakeoffRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeTakeoffRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::SubscribeTerminateRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeTerminateRequest>(Arena*); -template<> ::mavsdk::rpc::action_server::TakeoffResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::TakeoffResponse>(Arena*); -template<> ::mavsdk::rpc::action_server::TerminateResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::TerminateResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::ActionServerResult* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(Arena*); +template <> +::mavsdk::rpc::action_server::AllowableFlightModes* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(Arena*); +template <> +::mavsdk::rpc::action_server::ArmDisarm* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ArmDisarm>(Arena*); +template <> +::mavsdk::rpc::action_server::ArmDisarmResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ArmDisarmResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::FlightModeChangeResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::FlightModeChangeResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::GetAllowableFlightModesRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::GetAllowableFlightModesRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::GetAllowableFlightModesResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::GetAllowableFlightModesResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::LandResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::LandResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::RebootResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::RebootResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::SetAllowTakeoffRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowTakeoffRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::SetAllowTakeoffResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowTakeoffResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::SetAllowableFlightModesRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowableFlightModesRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::SetAllowableFlightModesResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetAllowableFlightModesResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::SetArmableRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetArmableRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::SetArmableResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetArmableResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::SetDisarmableRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetDisarmableRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::SetDisarmableResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SetDisarmableResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::ShutdownResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::ShutdownResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::SubscribeArmDisarmRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeArmDisarmRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeFlightModeChangeRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::SubscribeLandRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeLandRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::SubscribeRebootRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeRebootRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::SubscribeShutdownRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeShutdownRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::SubscribeTakeoffRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeTakeoffRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::SubscribeTerminateRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::SubscribeTerminateRequest>(Arena*); +template <> +::mavsdk::rpc::action_server::TakeoffResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::TakeoffResponse>(Arena*); +template <> +::mavsdk::rpc::action_server::TerminateResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::action_server::TerminateResponse>(Arena*); PROTOBUF_NAMESPACE_CLOSE + namespace mavsdk { namespace rpc { namespace action_server { - enum ActionServerResult_Result : int { ActionServerResult_Result_RESULT_UNKNOWN = 0, ActionServerResult_Result_RESULT_SUCCESS = 1, @@ -181,27 +214,34 @@ enum ActionServerResult_Result : int { ActionServerResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT = 10, ActionServerResult_Result_RESULT_PARAMETER_ERROR = 11, ActionServerResult_Result_RESULT_NEXT = 12, - ActionServerResult_Result_ActionServerResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - ActionServerResult_Result_ActionServerResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + ActionServerResult_Result_ActionServerResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + ActionServerResult_Result_ActionServerResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + bool ActionServerResult_Result_IsValid(int value); -constexpr ActionServerResult_Result ActionServerResult_Result_Result_MIN = ActionServerResult_Result_RESULT_UNKNOWN; -constexpr ActionServerResult_Result ActionServerResult_Result_Result_MAX = ActionServerResult_Result_RESULT_NEXT; -constexpr int ActionServerResult_Result_Result_ARRAYSIZE = ActionServerResult_Result_Result_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ActionServerResult_Result_descriptor(); -template -inline const std::string& ActionServerResult_Result_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ActionServerResult_Result_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ActionServerResult_Result_descriptor(), enum_t_value); -} -inline bool ActionServerResult_Result_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ActionServerResult_Result* value) { +constexpr ActionServerResult_Result ActionServerResult_Result_Result_MIN = static_cast(0); +constexpr ActionServerResult_Result ActionServerResult_Result_Result_MAX = static_cast(12); +constexpr int ActionServerResult_Result_Result_ARRAYSIZE = 12 + 1; +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +ActionServerResult_Result_descriptor(); +template +const std::string& ActionServerResult_Result_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Result_Name()."); + return ActionServerResult_Result_Name(static_cast(value)); +} +template <> +inline const std::string& ActionServerResult_Result_Name(ActionServerResult_Result value) { + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool ActionServerResult_Result_Parse(absl::string_view name, ActionServerResult_Result* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ActionServerResult_Result_descriptor(), name, value); + ActionServerResult_Result_descriptor(), name, value); } enum FlightMode : int { FLIGHT_MODE_UNKNOWN = 0, @@ -218,35 +258,47 @@ enum FlightMode : int { FLIGHT_MODE_POSCTL = 11, FLIGHT_MODE_ACRO = 12, FLIGHT_MODE_STABILIZED = 13, - FlightMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - FlightMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + FlightMode_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + FlightMode_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + bool FlightMode_IsValid(int value); -constexpr FlightMode FlightMode_MIN = FLIGHT_MODE_UNKNOWN; -constexpr FlightMode FlightMode_MAX = FLIGHT_MODE_STABILIZED; -constexpr int FlightMode_ARRAYSIZE = FlightMode_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FlightMode_descriptor(); -template -inline const std::string& FlightMode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FlightMode_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - FlightMode_descriptor(), enum_t_value); -} -inline bool FlightMode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FlightMode* value) { +constexpr FlightMode FlightMode_MIN = static_cast(0); +constexpr FlightMode FlightMode_MAX = static_cast(13); +constexpr int FlightMode_ARRAYSIZE = 13 + 1; +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +FlightMode_descriptor(); +template +const std::string& FlightMode_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to FlightMode_Name()."); + return FlightMode_Name(static_cast(value)); +} +template <> +inline const std::string& FlightMode_Name(FlightMode value) { + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool FlightMode_Parse(absl::string_view name, FlightMode* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - FlightMode_descriptor(), name, value); + FlightMode_descriptor(), name, value); } + // =================================================================== + +// ------------------------------------------------------------------- + class SetAllowTakeoffRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffRequest) */ { public: inline SetAllowTakeoffRequest() : SetAllowTakeoffRequest(nullptr) {} ~SetAllowTakeoffRequest() override; + template explicit PROTOBUF_CONSTEXPR SetAllowTakeoffRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetAllowTakeoffRequest(const SetAllowTakeoffRequest& from); @@ -273,6 +325,13 @@ class SetAllowTakeoffRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -310,7 +369,7 @@ class SetAllowTakeoffRequest final : } void UnsafeArenaSwap(SetAllowTakeoffRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -322,33 +381,34 @@ class SetAllowTakeoffRequest final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetAllowTakeoffRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetAllowTakeoffRequest& from); + void MergeFrom( const SetAllowTakeoffRequest& from) { + SetAllowTakeoffRequest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetAllowTakeoffRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetAllowTakeoffRequest"; } protected: - explicit SetAllowTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetAllowTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -364,14 +424,15 @@ class SetAllowTakeoffRequest final : kAllowTakeoffFieldNumber = 1, }; // bool allow_takeoff = 1; - void clear_allow_takeoff(); + void clear_allow_takeoff() ; bool allow_takeoff() const; void set_allow_takeoff(bool value); + private: bool _internal_allow_takeoff() const; void _internal_set_allow_takeoff(bool value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowTakeoffRequest) private: class _Internal; @@ -379,17 +440,20 @@ class SetAllowTakeoffRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool allow_takeoff_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + bool allow_takeoff_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetArmableRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableRequest) */ { public: inline SetArmableRequest() : SetArmableRequest(nullptr) {} ~SetArmableRequest() override; + template explicit PROTOBUF_CONSTEXPR SetArmableRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetArmableRequest(const SetArmableRequest& from); @@ -416,6 +480,13 @@ class SetArmableRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -453,7 +524,7 @@ class SetArmableRequest final : } void UnsafeArenaSwap(SetArmableRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -465,33 +536,34 @@ class SetArmableRequest final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetArmableRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetArmableRequest& from); + void MergeFrom( const SetArmableRequest& from) { + SetArmableRequest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetArmableRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetArmableRequest"; } protected: - explicit SetArmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetArmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -508,23 +580,25 @@ class SetArmableRequest final : kForceArmableFieldNumber = 2, }; // bool armable = 1; - void clear_armable(); + void clear_armable() ; bool armable() const; void set_armable(bool value); + private: bool _internal_armable() const; void _internal_set_armable(bool value); - public: + public: // bool force_armable = 2; - void clear_force_armable(); + void clear_force_armable() ; bool force_armable() const; void set_force_armable(bool value); + private: bool _internal_force_armable() const; void _internal_set_force_armable(bool value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetArmableRequest) private: class _Internal; @@ -532,18 +606,21 @@ class SetArmableRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool armable_; - bool force_armable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + bool armable_; + bool force_armable_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetDisarmableRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableRequest) */ { public: inline SetDisarmableRequest() : SetDisarmableRequest(nullptr) {} ~SetDisarmableRequest() override; + template explicit PROTOBUF_CONSTEXPR SetDisarmableRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetDisarmableRequest(const SetDisarmableRequest& from); @@ -570,6 +647,13 @@ class SetDisarmableRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -607,7 +691,7 @@ class SetDisarmableRequest final : } void UnsafeArenaSwap(SetDisarmableRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -619,33 +703,34 @@ class SetDisarmableRequest final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetDisarmableRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetDisarmableRequest& from); + void MergeFrom( const SetDisarmableRequest& from) { + SetDisarmableRequest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetDisarmableRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetDisarmableRequest"; } protected: - explicit SetDisarmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetDisarmableRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -662,23 +747,25 @@ class SetDisarmableRequest final : kForceDisarmableFieldNumber = 2, }; // bool disarmable = 1; - void clear_disarmable(); + void clear_disarmable() ; bool disarmable() const; void set_disarmable(bool value); + private: bool _internal_disarmable() const; void _internal_set_disarmable(bool value); - public: + public: // bool force_disarmable = 2; - void clear_force_disarmable(); + void clear_force_disarmable() ; bool force_disarmable() const; void set_force_disarmable(bool value); + private: bool _internal_force_disarmable() const; void _internal_set_force_disarmable(bool value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetDisarmableRequest) private: class _Internal; @@ -686,18 +773,21 @@ class SetDisarmableRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool disarmable_; - bool force_disarmable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + bool disarmable_; + bool force_disarmable_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetAllowableFlightModesRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) */ { public: inline SetAllowableFlightModesRequest() : SetAllowableFlightModesRequest(nullptr) {} ~SetAllowableFlightModesRequest() override; + template explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetAllowableFlightModesRequest(const SetAllowableFlightModesRequest& from); @@ -724,6 +814,13 @@ class SetAllowableFlightModesRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -761,7 +858,7 @@ class SetAllowableFlightModesRequest final : } void UnsafeArenaSwap(SetAllowableFlightModesRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -773,33 +870,34 @@ class SetAllowableFlightModesRequest final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetAllowableFlightModesRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetAllowableFlightModesRequest& from); + void MergeFrom( const SetAllowableFlightModesRequest& from) { + SetAllowableFlightModesRequest::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetAllowableFlightModesRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetAllowableFlightModesRequest"; } protected: - explicit SetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -816,10 +914,7 @@ class SetAllowableFlightModesRequest final : }; // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; bool has_flight_modes() const; - private: - bool _internal_has_flight_modes() const; - public: - void clear_flight_modes(); + void clear_flight_modes() ; const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::AllowableFlightModes* release_flight_modes(); ::mavsdk::rpc::action_server::AllowableFlightModes* mutable_flight_modes(); @@ -831,7 +926,6 @@ class SetAllowableFlightModesRequest final : void unsafe_arena_set_allocated_flight_modes( ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes); ::mavsdk::rpc::action_server::AllowableFlightModes* unsafe_arena_release_flight_modes(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesRequest) private: class _Internal; @@ -839,16 +933,20 @@ class SetAllowableFlightModesRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class GetAllowableFlightModesRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesRequest) */ { public: inline GetAllowableFlightModesRequest() : GetAllowableFlightModesRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetAllowableFlightModesRequest(const GetAllowableFlightModesRequest& from); @@ -875,6 +973,13 @@ class GetAllowableFlightModesRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -912,7 +1017,7 @@ class GetAllowableFlightModesRequest final : } void UnsafeArenaSwap(GetAllowableFlightModesRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -923,22 +1028,21 @@ class GetAllowableFlightModesRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const GetAllowableFlightModesRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const GetAllowableFlightModesRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.GetAllowableFlightModesRequest"; } protected: - explicit GetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit GetAllowableFlightModesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -957,14 +1061,16 @@ class GetAllowableFlightModesRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SubscribeArmDisarmRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeArmDisarmRequest) */ { public: inline SubscribeArmDisarmRequest() : SubscribeArmDisarmRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeArmDisarmRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeArmDisarmRequest(const SubscribeArmDisarmRequest& from); @@ -991,6 +1097,13 @@ class SubscribeArmDisarmRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1028,7 +1141,7 @@ class SubscribeArmDisarmRequest final : } void UnsafeArenaSwap(SubscribeArmDisarmRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1039,22 +1152,21 @@ class SubscribeArmDisarmRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeArmDisarmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeArmDisarmRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeArmDisarmRequest"; } protected: - explicit SubscribeArmDisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeArmDisarmRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1073,14 +1185,16 @@ class SubscribeArmDisarmRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SubscribeFlightModeChangeRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest) */ { public: inline SubscribeFlightModeChangeRequest() : SubscribeFlightModeChangeRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeFlightModeChangeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeFlightModeChangeRequest(const SubscribeFlightModeChangeRequest& from); @@ -1107,6 +1221,13 @@ class SubscribeFlightModeChangeRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1144,7 +1265,7 @@ class SubscribeFlightModeChangeRequest final : } void UnsafeArenaSwap(SubscribeFlightModeChangeRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1155,22 +1276,21 @@ class SubscribeFlightModeChangeRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeFlightModeChangeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeFlightModeChangeRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeFlightModeChangeRequest"; } protected: - explicit SubscribeFlightModeChangeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeFlightModeChangeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1189,14 +1309,16 @@ class SubscribeFlightModeChangeRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SubscribeTakeoffRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTakeoffRequest) */ { public: inline SubscribeTakeoffRequest() : SubscribeTakeoffRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeTakeoffRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeTakeoffRequest(const SubscribeTakeoffRequest& from); @@ -1223,6 +1345,13 @@ class SubscribeTakeoffRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1260,7 +1389,7 @@ class SubscribeTakeoffRequest final : } void UnsafeArenaSwap(SubscribeTakeoffRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1271,22 +1400,21 @@ class SubscribeTakeoffRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeTakeoffRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeTakeoffRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeTakeoffRequest"; } protected: - explicit SubscribeTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeTakeoffRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1305,14 +1433,16 @@ class SubscribeTakeoffRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SubscribeLandRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeLandRequest) */ { public: inline SubscribeLandRequest() : SubscribeLandRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeLandRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeLandRequest(const SubscribeLandRequest& from); @@ -1339,6 +1469,13 @@ class SubscribeLandRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1376,7 +1513,7 @@ class SubscribeLandRequest final : } void UnsafeArenaSwap(SubscribeLandRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1387,22 +1524,21 @@ class SubscribeLandRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeLandRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeLandRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeLandRequest"; } protected: - explicit SubscribeLandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeLandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1421,14 +1557,16 @@ class SubscribeLandRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SubscribeRebootRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeRebootRequest) */ { public: inline SubscribeRebootRequest() : SubscribeRebootRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeRebootRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeRebootRequest(const SubscribeRebootRequest& from); @@ -1455,6 +1593,13 @@ class SubscribeRebootRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1492,7 +1637,7 @@ class SubscribeRebootRequest final : } void UnsafeArenaSwap(SubscribeRebootRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1503,22 +1648,21 @@ class SubscribeRebootRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeRebootRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeRebootRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeRebootRequest"; } protected: - explicit SubscribeRebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeRebootRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1537,14 +1681,16 @@ class SubscribeRebootRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SubscribeShutdownRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeShutdownRequest) */ { public: inline SubscribeShutdownRequest() : SubscribeShutdownRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeShutdownRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeShutdownRequest(const SubscribeShutdownRequest& from); @@ -1571,6 +1717,13 @@ class SubscribeShutdownRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1608,7 +1761,7 @@ class SubscribeShutdownRequest final : } void UnsafeArenaSwap(SubscribeShutdownRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1619,22 +1772,21 @@ class SubscribeShutdownRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeShutdownRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeShutdownRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeShutdownRequest"; } protected: - explicit SubscribeShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeShutdownRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1653,14 +1805,16 @@ class SubscribeShutdownRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SubscribeTerminateRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SubscribeTerminateRequest) */ { public: inline SubscribeTerminateRequest() : SubscribeTerminateRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeTerminateRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeTerminateRequest(const SubscribeTerminateRequest& from); @@ -1687,6 +1841,13 @@ class SubscribeTerminateRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1724,7 +1885,7 @@ class SubscribeTerminateRequest final : } void UnsafeArenaSwap(SubscribeTerminateRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1735,22 +1896,21 @@ class SubscribeTerminateRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeTerminateRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeTerminateRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SubscribeTerminateRequest"; } protected: - explicit SubscribeTerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeTerminateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1769,15 +1929,17 @@ class SubscribeTerminateRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class ArmDisarmResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarmResponse) */ { public: inline ArmDisarmResponse() : ArmDisarmResponse(nullptr) {} ~ArmDisarmResponse() override; + template explicit PROTOBUF_CONSTEXPR ArmDisarmResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ArmDisarmResponse(const ArmDisarmResponse& from); @@ -1804,6 +1966,13 @@ class ArmDisarmResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1841,7 +2010,7 @@ class ArmDisarmResponse final : } void UnsafeArenaSwap(ArmDisarmResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1853,33 +2022,34 @@ class ArmDisarmResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ArmDisarmResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ArmDisarmResponse& from); + void MergeFrom( const ArmDisarmResponse& from) { + ArmDisarmResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ArmDisarmResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.ArmDisarmResponse"; } protected: - explicit ArmDisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ArmDisarmResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1897,10 +2067,7 @@ class ArmDisarmResponse final : }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; - private: - bool _internal_has_action_server_result() const; - public: - void clear_action_server_result(); + void clear_action_server_result() ; const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); @@ -1912,13 +2079,9 @@ class ArmDisarmResponse final : void unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // .mavsdk.rpc.action_server.ArmDisarm arm = 2; bool has_arm() const; - private: - bool _internal_has_arm() const; - public: - void clear_arm(); + void clear_arm() ; const ::mavsdk::rpc::action_server::ArmDisarm& arm() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ArmDisarm* release_arm(); ::mavsdk::rpc::action_server::ArmDisarm* mutable_arm(); @@ -1930,7 +2093,6 @@ class ArmDisarmResponse final : void unsafe_arena_set_allocated_arm( ::mavsdk::rpc::action_server::ArmDisarm* arm); ::mavsdk::rpc::action_server::ArmDisarm* unsafe_arena_release_arm(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ArmDisarmResponse) private: class _Internal; @@ -1938,18 +2100,22 @@ class ArmDisarmResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - ::mavsdk::rpc::action_server::ArmDisarm* arm_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + ::mavsdk::rpc::action_server::ArmDisarm* arm_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class FlightModeChangeResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.FlightModeChangeResponse) */ { public: inline FlightModeChangeResponse() : FlightModeChangeResponse(nullptr) {} ~FlightModeChangeResponse() override; + template explicit PROTOBUF_CONSTEXPR FlightModeChangeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); FlightModeChangeResponse(const FlightModeChangeResponse& from); @@ -1976,6 +2142,13 @@ class FlightModeChangeResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2013,7 +2186,7 @@ class FlightModeChangeResponse final : } void UnsafeArenaSwap(FlightModeChangeResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2025,33 +2198,34 @@ class FlightModeChangeResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const FlightModeChangeResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const FlightModeChangeResponse& from); + void MergeFrom( const FlightModeChangeResponse& from) { + FlightModeChangeResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(FlightModeChangeResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.FlightModeChangeResponse"; } protected: - explicit FlightModeChangeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit FlightModeChangeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2069,10 +2243,7 @@ class FlightModeChangeResponse final : }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; - private: - bool _internal_has_action_server_result() const; - public: - void clear_action_server_result(); + void clear_action_server_result() ; const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); @@ -2084,16 +2255,16 @@ class FlightModeChangeResponse final : void unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; - void clear_flight_mode(); + void clear_flight_mode() ; ::mavsdk::rpc::action_server::FlightMode flight_mode() const; void set_flight_mode(::mavsdk::rpc::action_server::FlightMode value); + private: ::mavsdk::rpc::action_server::FlightMode _internal_flight_mode() const; void _internal_set_flight_mode(::mavsdk::rpc::action_server::FlightMode value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.FlightModeChangeResponse) private: class _Internal; @@ -2101,18 +2272,22 @@ class FlightModeChangeResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - int flight_mode_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + int flight_mode_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class TakeoffResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TakeoffResponse) */ { public: inline TakeoffResponse() : TakeoffResponse(nullptr) {} ~TakeoffResponse() override; + template explicit PROTOBUF_CONSTEXPR TakeoffResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TakeoffResponse(const TakeoffResponse& from); @@ -2139,6 +2314,13 @@ class TakeoffResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2176,7 +2358,7 @@ class TakeoffResponse final : } void UnsafeArenaSwap(TakeoffResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2188,33 +2370,34 @@ class TakeoffResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const TakeoffResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const TakeoffResponse& from); + void MergeFrom( const TakeoffResponse& from) { + TakeoffResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TakeoffResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.TakeoffResponse"; } protected: - explicit TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit TakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2232,10 +2415,7 @@ class TakeoffResponse final : }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; - private: - bool _internal_has_action_server_result() const; - public: - void clear_action_server_result(); + void clear_action_server_result() ; const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); @@ -2247,16 +2427,16 @@ class TakeoffResponse final : void unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // bool takeoff = 2; - void clear_takeoff(); + void clear_takeoff() ; bool takeoff() const; void set_takeoff(bool value); + private: bool _internal_takeoff() const; void _internal_set_takeoff(bool value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.TakeoffResponse) private: class _Internal; @@ -2264,18 +2444,22 @@ class TakeoffResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - bool takeoff_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + bool takeoff_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class LandResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.LandResponse) */ { public: inline LandResponse() : LandResponse(nullptr) {} ~LandResponse() override; + template explicit PROTOBUF_CONSTEXPR LandResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); LandResponse(const LandResponse& from); @@ -2302,6 +2486,13 @@ class LandResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2339,7 +2530,7 @@ class LandResponse final : } void UnsafeArenaSwap(LandResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2351,33 +2542,34 @@ class LandResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const LandResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const LandResponse& from); + void MergeFrom( const LandResponse& from) { + LandResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(LandResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.LandResponse"; } protected: - explicit LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit LandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2395,10 +2587,7 @@ class LandResponse final : }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; - private: - bool _internal_has_action_server_result() const; - public: - void clear_action_server_result(); + void clear_action_server_result() ; const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); @@ -2410,16 +2599,16 @@ class LandResponse final : void unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // bool land = 2; - void clear_land(); + void clear_land() ; bool land() const; void set_land(bool value); + private: bool _internal_land() const; void _internal_set_land(bool value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.LandResponse) private: class _Internal; @@ -2427,18 +2616,22 @@ class LandResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - bool land_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + bool land_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class RebootResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.RebootResponse) */ { public: inline RebootResponse() : RebootResponse(nullptr) {} ~RebootResponse() override; + template explicit PROTOBUF_CONSTEXPR RebootResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); RebootResponse(const RebootResponse& from); @@ -2465,6 +2658,13 @@ class RebootResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2502,7 +2702,7 @@ class RebootResponse final : } void UnsafeArenaSwap(RebootResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2514,33 +2714,34 @@ class RebootResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const RebootResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const RebootResponse& from); + void MergeFrom( const RebootResponse& from) { + RebootResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(RebootResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.RebootResponse"; } protected: - explicit RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit RebootResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2558,10 +2759,7 @@ class RebootResponse final : }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; - private: - bool _internal_has_action_server_result() const; - public: - void clear_action_server_result(); + void clear_action_server_result() ; const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); @@ -2573,16 +2771,16 @@ class RebootResponse final : void unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // bool reboot = 2; - void clear_reboot(); + void clear_reboot() ; bool reboot() const; void set_reboot(bool value); + private: bool _internal_reboot() const; void _internal_set_reboot(bool value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.RebootResponse) private: class _Internal; @@ -2590,18 +2788,22 @@ class RebootResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - bool reboot_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + bool reboot_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class ShutdownResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ShutdownResponse) */ { public: inline ShutdownResponse() : ShutdownResponse(nullptr) {} ~ShutdownResponse() override; + template explicit PROTOBUF_CONSTEXPR ShutdownResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ShutdownResponse(const ShutdownResponse& from); @@ -2628,6 +2830,13 @@ class ShutdownResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2665,7 +2874,7 @@ class ShutdownResponse final : } void UnsafeArenaSwap(ShutdownResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2677,33 +2886,34 @@ class ShutdownResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ShutdownResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ShutdownResponse& from); + void MergeFrom( const ShutdownResponse& from) { + ShutdownResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ShutdownResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.ShutdownResponse"; } protected: - explicit ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ShutdownResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2721,10 +2931,7 @@ class ShutdownResponse final : }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; - private: - bool _internal_has_action_server_result() const; - public: - void clear_action_server_result(); + void clear_action_server_result() ; const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); @@ -2736,16 +2943,16 @@ class ShutdownResponse final : void unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // bool shutdown = 2; - void clear_shutdown(); + void clear_shutdown() ; bool shutdown() const; void set_shutdown(bool value); + private: bool _internal_shutdown() const; void _internal_set_shutdown(bool value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ShutdownResponse) private: class _Internal; @@ -2753,18 +2960,22 @@ class ShutdownResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - bool shutdown_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + bool shutdown_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class TerminateResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.TerminateResponse) */ { public: inline TerminateResponse() : TerminateResponse(nullptr) {} ~TerminateResponse() override; + template explicit PROTOBUF_CONSTEXPR TerminateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TerminateResponse(const TerminateResponse& from); @@ -2791,6 +3002,13 @@ class TerminateResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2828,7 +3046,7 @@ class TerminateResponse final : } void UnsafeArenaSwap(TerminateResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2840,33 +3058,34 @@ class TerminateResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const TerminateResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const TerminateResponse& from); + void MergeFrom( const TerminateResponse& from) { + TerminateResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TerminateResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.TerminateResponse"; } protected: - explicit TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit TerminateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2884,10 +3103,7 @@ class TerminateResponse final : }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; - private: - bool _internal_has_action_server_result() const; - public: - void clear_action_server_result(); + void clear_action_server_result() ; const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); @@ -2899,16 +3115,16 @@ class TerminateResponse final : void unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // bool terminate = 2; - void clear_terminate(); + void clear_terminate() ; bool terminate() const; void set_terminate(bool value); + private: bool _internal_terminate() const; void _internal_set_terminate(bool value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.TerminateResponse) private: class _Internal; @@ -2916,18 +3132,22 @@ class TerminateResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - bool terminate_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + bool terminate_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetArmableResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetArmableResponse) */ { public: inline SetArmableResponse() : SetArmableResponse(nullptr) {} ~SetArmableResponse() override; + template explicit PROTOBUF_CONSTEXPR SetArmableResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetArmableResponse(const SetArmableResponse& from); @@ -2954,6 +3174,13 @@ class SetArmableResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2991,7 +3218,7 @@ class SetArmableResponse final : } void UnsafeArenaSwap(SetArmableResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3003,33 +3230,34 @@ class SetArmableResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetArmableResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetArmableResponse& from); + void MergeFrom( const SetArmableResponse& from) { + SetArmableResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetArmableResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetArmableResponse"; } protected: - explicit SetArmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetArmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3046,10 +3274,7 @@ class SetArmableResponse final : }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; - private: - bool _internal_has_action_server_result() const; - public: - void clear_action_server_result(); + void clear_action_server_result() ; const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); @@ -3061,7 +3286,6 @@ class SetArmableResponse final : void unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetArmableResponse) private: class _Internal; @@ -3069,17 +3293,21 @@ class SetArmableResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetDisarmableResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetDisarmableResponse) */ { public: inline SetDisarmableResponse() : SetDisarmableResponse(nullptr) {} ~SetDisarmableResponse() override; + template explicit PROTOBUF_CONSTEXPR SetDisarmableResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetDisarmableResponse(const SetDisarmableResponse& from); @@ -3106,6 +3334,13 @@ class SetDisarmableResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3143,7 +3378,7 @@ class SetDisarmableResponse final : } void UnsafeArenaSwap(SetDisarmableResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3155,33 +3390,34 @@ class SetDisarmableResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetDisarmableResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetDisarmableResponse& from); + void MergeFrom( const SetDisarmableResponse& from) { + SetDisarmableResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetDisarmableResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetDisarmableResponse"; } protected: - explicit SetDisarmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetDisarmableResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3198,10 +3434,7 @@ class SetDisarmableResponse final : }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; - private: - bool _internal_has_action_server_result() const; - public: - void clear_action_server_result(); + void clear_action_server_result() ; const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); @@ -3213,7 +3446,6 @@ class SetDisarmableResponse final : void unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetDisarmableResponse) private: class _Internal; @@ -3221,17 +3453,21 @@ class SetDisarmableResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetAllowableFlightModesResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) */ { public: inline SetAllowableFlightModesResponse() : SetAllowableFlightModesResponse(nullptr) {} ~SetAllowableFlightModesResponse() override; + template explicit PROTOBUF_CONSTEXPR SetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetAllowableFlightModesResponse(const SetAllowableFlightModesResponse& from); @@ -3258,6 +3494,13 @@ class SetAllowableFlightModesResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3295,7 +3538,7 @@ class SetAllowableFlightModesResponse final : } void UnsafeArenaSwap(SetAllowableFlightModesResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3307,33 +3550,34 @@ class SetAllowableFlightModesResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetAllowableFlightModesResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetAllowableFlightModesResponse& from); + void MergeFrom( const SetAllowableFlightModesResponse& from) { + SetAllowableFlightModesResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetAllowableFlightModesResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetAllowableFlightModesResponse"; } protected: - explicit SetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3350,10 +3594,7 @@ class SetAllowableFlightModesResponse final : }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; - private: - bool _internal_has_action_server_result() const; - public: - void clear_action_server_result(); + void clear_action_server_result() ; const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); @@ -3365,7 +3606,6 @@ class SetAllowableFlightModesResponse final : void unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowableFlightModesResponse) private: class _Internal; @@ -3373,17 +3613,21 @@ class SetAllowableFlightModesResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SetAllowTakeoffResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.SetAllowTakeoffResponse) */ { public: inline SetAllowTakeoffResponse() : SetAllowTakeoffResponse(nullptr) {} ~SetAllowTakeoffResponse() override; + template explicit PROTOBUF_CONSTEXPR SetAllowTakeoffResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SetAllowTakeoffResponse(const SetAllowTakeoffResponse& from); @@ -3410,6 +3654,13 @@ class SetAllowTakeoffResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3447,7 +3698,7 @@ class SetAllowTakeoffResponse final : } void UnsafeArenaSwap(SetAllowTakeoffResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3459,33 +3710,34 @@ class SetAllowTakeoffResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SetAllowTakeoffResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const SetAllowTakeoffResponse& from); + void MergeFrom( const SetAllowTakeoffResponse& from) { + SetAllowTakeoffResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SetAllowTakeoffResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.SetAllowTakeoffResponse"; } protected: - explicit SetAllowTakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SetAllowTakeoffResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3502,10 +3754,7 @@ class SetAllowTakeoffResponse final : }; // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; bool has_action_server_result() const; - private: - bool _internal_has_action_server_result() const; - public: - void clear_action_server_result(); + void clear_action_server_result() ; const ::mavsdk::rpc::action_server::ActionServerResult& action_server_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::ActionServerResult* release_action_server_result(); ::mavsdk::rpc::action_server::ActionServerResult* mutable_action_server_result(); @@ -3517,7 +3766,6 @@ class SetAllowTakeoffResponse final : void unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result); ::mavsdk::rpc::action_server::ActionServerResult* unsafe_arena_release_action_server_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.SetAllowTakeoffResponse) private: class _Internal; @@ -3525,17 +3773,21 @@ class SetAllowTakeoffResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::ActionServerResult* action_server_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class GetAllowableFlightModesResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) */ { public: inline GetAllowableFlightModesResponse() : GetAllowableFlightModesResponse(nullptr) {} ~GetAllowableFlightModesResponse() override; + template explicit PROTOBUF_CONSTEXPR GetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GetAllowableFlightModesResponse(const GetAllowableFlightModesResponse& from); @@ -3562,6 +3814,13 @@ class GetAllowableFlightModesResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3599,7 +3858,7 @@ class GetAllowableFlightModesResponse final : } void UnsafeArenaSwap(GetAllowableFlightModesResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3611,33 +3870,34 @@ class GetAllowableFlightModesResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GetAllowableFlightModesResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetAllowableFlightModesResponse& from); + void MergeFrom( const GetAllowableFlightModesResponse& from) { + GetAllowableFlightModesResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GetAllowableFlightModesResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.GetAllowableFlightModesResponse"; } protected: - explicit GetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit GetAllowableFlightModesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3654,10 +3914,7 @@ class GetAllowableFlightModesResponse final : }; // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; bool has_flight_modes() const; - private: - bool _internal_has_flight_modes() const; - public: - void clear_flight_modes(); + void clear_flight_modes() ; const ::mavsdk::rpc::action_server::AllowableFlightModes& flight_modes() const; PROTOBUF_NODISCARD ::mavsdk::rpc::action_server::AllowableFlightModes* release_flight_modes(); ::mavsdk::rpc::action_server::AllowableFlightModes* mutable_flight_modes(); @@ -3669,7 +3926,6 @@ class GetAllowableFlightModesResponse final : void unsafe_arena_set_allocated_flight_modes( ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes); ::mavsdk::rpc::action_server::AllowableFlightModes* unsafe_arena_release_flight_modes(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.GetAllowableFlightModesResponse) private: class _Internal; @@ -3677,17 +3933,21 @@ class GetAllowableFlightModesResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class AllowableFlightModes final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.AllowableFlightModes) */ { public: inline AllowableFlightModes() : AllowableFlightModes(nullptr) {} ~AllowableFlightModes() override; + template explicit PROTOBUF_CONSTEXPR AllowableFlightModes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AllowableFlightModes(const AllowableFlightModes& from); @@ -3714,6 +3974,13 @@ class AllowableFlightModes final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3751,7 +4018,7 @@ class AllowableFlightModes final : } void UnsafeArenaSwap(AllowableFlightModes* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3763,33 +4030,34 @@ class AllowableFlightModes final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AllowableFlightModes& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const AllowableFlightModes& from); + void MergeFrom( const AllowableFlightModes& from) { + AllowableFlightModes::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AllowableFlightModes* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.AllowableFlightModes"; } protected: - explicit AllowableFlightModes(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit AllowableFlightModes(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3807,32 +4075,35 @@ class AllowableFlightModes final : kCanStabilizeModeFieldNumber = 3, }; // bool can_auto_mode = 1; - void clear_can_auto_mode(); + void clear_can_auto_mode() ; bool can_auto_mode() const; void set_can_auto_mode(bool value); + private: bool _internal_can_auto_mode() const; void _internal_set_can_auto_mode(bool value); - public: + public: // bool can_guided_mode = 2; - void clear_can_guided_mode(); + void clear_can_guided_mode() ; bool can_guided_mode() const; void set_can_guided_mode(bool value); + private: bool _internal_can_guided_mode() const; void _internal_set_can_guided_mode(bool value); - public: + public: // bool can_stabilize_mode = 3; - void clear_can_stabilize_mode(); + void clear_can_stabilize_mode() ; bool can_stabilize_mode() const; void set_can_stabilize_mode(bool value); + private: bool _internal_can_stabilize_mode() const; void _internal_set_can_stabilize_mode(bool value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.AllowableFlightModes) private: class _Internal; @@ -3840,19 +4111,22 @@ class AllowableFlightModes final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool can_auto_mode_; - bool can_guided_mode_; - bool can_stabilize_mode_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + bool can_auto_mode_; + bool can_guided_mode_; + bool can_stabilize_mode_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class ArmDisarm final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ArmDisarm) */ { public: inline ArmDisarm() : ArmDisarm(nullptr) {} ~ArmDisarm() override; + template explicit PROTOBUF_CONSTEXPR ArmDisarm(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ArmDisarm(const ArmDisarm& from); @@ -3879,6 +4153,13 @@ class ArmDisarm final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -3916,7 +4197,7 @@ class ArmDisarm final : } void UnsafeArenaSwap(ArmDisarm* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -3928,33 +4209,34 @@ class ArmDisarm final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ArmDisarm& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ArmDisarm& from); + void MergeFrom( const ArmDisarm& from) { + ArmDisarm::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ArmDisarm* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.ArmDisarm"; } protected: - explicit ArmDisarm(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ArmDisarm(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -3971,23 +4253,25 @@ class ArmDisarm final : kForceFieldNumber = 2, }; // bool arm = 1; - void clear_arm(); + void clear_arm() ; bool arm() const; void set_arm(bool value); + private: bool _internal_arm() const; void _internal_set_arm(bool value); - public: + public: // bool force = 2; - void clear_force(); + void clear_force() ; bool force() const; void set_force(bool value); + private: bool _internal_force() const; void _internal_set_force(bool value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ArmDisarm) private: class _Internal; @@ -3995,18 +4279,21 @@ class ArmDisarm final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool arm_; - bool force_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + bool arm_; + bool force_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class ActionServerResult final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action_server.ActionServerResult) */ { public: inline ActionServerResult() : ActionServerResult(nullptr) {} ~ActionServerResult() override; + template explicit PROTOBUF_CONSTEXPR ActionServerResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ActionServerResult(const ActionServerResult& from); @@ -4033,6 +4320,13 @@ class ActionServerResult final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -4070,7 +4364,7 @@ class ActionServerResult final : } void UnsafeArenaSwap(ActionServerResult* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -4082,33 +4376,34 @@ class ActionServerResult final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ActionServerResult& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ActionServerResult& from); + void MergeFrom( const ActionServerResult& from) { + ActionServerResult::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ActionServerResult* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.action_server.ActionServerResult"; } protected: - explicit ActionServerResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ActionServerResult(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -4118,55 +4413,34 @@ class ActionServerResult final : // nested types ---------------------------------------------------- - typedef ActionServerResult_Result Result; - static constexpr Result RESULT_UNKNOWN = - ActionServerResult_Result_RESULT_UNKNOWN; - static constexpr Result RESULT_SUCCESS = - ActionServerResult_Result_RESULT_SUCCESS; - static constexpr Result RESULT_NO_SYSTEM = - ActionServerResult_Result_RESULT_NO_SYSTEM; - static constexpr Result RESULT_CONNECTION_ERROR = - ActionServerResult_Result_RESULT_CONNECTION_ERROR; - static constexpr Result RESULT_BUSY = - ActionServerResult_Result_RESULT_BUSY; - static constexpr Result RESULT_COMMAND_DENIED = - ActionServerResult_Result_RESULT_COMMAND_DENIED; - static constexpr Result RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = - ActionServerResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN; - static constexpr Result RESULT_COMMAND_DENIED_NOT_LANDED = - ActionServerResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED; - static constexpr Result RESULT_TIMEOUT = - ActionServerResult_Result_RESULT_TIMEOUT; - static constexpr Result RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = - ActionServerResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN; - static constexpr Result RESULT_NO_VTOL_TRANSITION_SUPPORT = - ActionServerResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT; - static constexpr Result RESULT_PARAMETER_ERROR = - ActionServerResult_Result_RESULT_PARAMETER_ERROR; - static constexpr Result RESULT_NEXT = - ActionServerResult_Result_RESULT_NEXT; + using Result = ActionServerResult_Result; + static constexpr Result RESULT_UNKNOWN = ActionServerResult_Result_RESULT_UNKNOWN; + static constexpr Result RESULT_SUCCESS = ActionServerResult_Result_RESULT_SUCCESS; + static constexpr Result RESULT_NO_SYSTEM = ActionServerResult_Result_RESULT_NO_SYSTEM; + static constexpr Result RESULT_CONNECTION_ERROR = ActionServerResult_Result_RESULT_CONNECTION_ERROR; + static constexpr Result RESULT_BUSY = ActionServerResult_Result_RESULT_BUSY; + static constexpr Result RESULT_COMMAND_DENIED = ActionServerResult_Result_RESULT_COMMAND_DENIED; + static constexpr Result RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = ActionServerResult_Result_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN; + static constexpr Result RESULT_COMMAND_DENIED_NOT_LANDED = ActionServerResult_Result_RESULT_COMMAND_DENIED_NOT_LANDED; + static constexpr Result RESULT_TIMEOUT = ActionServerResult_Result_RESULT_TIMEOUT; + static constexpr Result RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = ActionServerResult_Result_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN; + static constexpr Result RESULT_NO_VTOL_TRANSITION_SUPPORT = ActionServerResult_Result_RESULT_NO_VTOL_TRANSITION_SUPPORT; + static constexpr Result RESULT_PARAMETER_ERROR = ActionServerResult_Result_RESULT_PARAMETER_ERROR; + static constexpr Result RESULT_NEXT = ActionServerResult_Result_RESULT_NEXT; static inline bool Result_IsValid(int value) { return ActionServerResult_Result_IsValid(value); } - static constexpr Result Result_MIN = - ActionServerResult_Result_Result_MIN; - static constexpr Result Result_MAX = - ActionServerResult_Result_Result_MAX; - static constexpr int Result_ARRAYSIZE = - ActionServerResult_Result_Result_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Result_descriptor() { + static constexpr Result Result_MIN = ActionServerResult_Result_Result_MIN; + static constexpr Result Result_MAX = ActionServerResult_Result_Result_MAX; + static constexpr int Result_ARRAYSIZE = ActionServerResult_Result_Result_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Result_descriptor() { return ActionServerResult_Result_descriptor(); } - template - static inline const std::string& Result_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Result_Name."); - return ActionServerResult_Result_Name(enum_t_value); + template + static inline const std::string& Result_Name(T value) { + return ActionServerResult_Result_Name(value); } - static inline bool Result_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Result* value) { + static inline bool Result_Parse(absl::string_view name, Result* value) { return ActionServerResult_Result_Parse(name, value); } @@ -4177,28 +4451,35 @@ class ActionServerResult final : kResultFieldNumber = 1, }; // string result_str = 2; - void clear_result_str(); + void clear_result_str() ; const std::string& result_str() const; - template - void set_result_str(ArgT0&& arg0, ArgT... args); + + + + + template + void set_result_str(Arg_&& arg, Args_... args); std::string* mutable_result_str(); PROTOBUF_NODISCARD std::string* release_result_str(); - void set_allocated_result_str(std::string* result_str); + void set_allocated_result_str(std::string* ptr); + private: const std::string& _internal_result_str() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str( + const std::string& value); std::string* _internal_mutable_result_str(); - public: + public: // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; - void clear_result(); + void clear_result() ; ::mavsdk::rpc::action_server::ActionServerResult_Result result() const; void set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value); + private: ::mavsdk::rpc::action_server::ActionServerResult_Result _internal_result() const; void _internal_set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.action_server.ActionServerResult) private: class _Internal; @@ -4206,41 +4487,50 @@ class ActionServerResult final : 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_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr result_str_; + int result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_action_5fserver_2faction_5fserver_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // SetAllowTakeoffRequest // bool allow_takeoff = 1; inline void SetAllowTakeoffRequest::clear_allow_takeoff() { - allow_takeoff_ = false; -} -inline bool SetAllowTakeoffRequest::_internal_allow_takeoff() const { - return allow_takeoff_; + _impl_.allow_takeoff_ = false; } inline bool SetAllowTakeoffRequest::allow_takeoff() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetAllowTakeoffRequest.allow_takeoff) return _internal_allow_takeoff(); } -inline void SetAllowTakeoffRequest::_internal_set_allow_takeoff(bool value) { - - allow_takeoff_ = value; -} inline void SetAllowTakeoffRequest::set_allow_takeoff(bool value) { _internal_set_allow_takeoff(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetAllowTakeoffRequest.allow_takeoff) } +inline bool SetAllowTakeoffRequest::_internal_allow_takeoff() const { + return _impl_.allow_takeoff_; +} +inline void SetAllowTakeoffRequest::_internal_set_allow_takeoff(bool value) { + ; + _impl_.allow_takeoff_ = value; +} // ------------------------------------------------------------------- @@ -4248,43 +4538,43 @@ inline void SetAllowTakeoffRequest::set_allow_takeoff(bool value) { // bool armable = 1; inline void SetArmableRequest::clear_armable() { - armable_ = false; -} -inline bool SetArmableRequest::_internal_armable() const { - return armable_; + _impl_.armable_ = false; } inline bool SetArmableRequest::armable() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetArmableRequest.armable) return _internal_armable(); } -inline void SetArmableRequest::_internal_set_armable(bool value) { - - armable_ = value; -} inline void SetArmableRequest::set_armable(bool value) { _internal_set_armable(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetArmableRequest.armable) } +inline bool SetArmableRequest::_internal_armable() const { + return _impl_.armable_; +} +inline void SetArmableRequest::_internal_set_armable(bool value) { + ; + _impl_.armable_ = value; +} // bool force_armable = 2; inline void SetArmableRequest::clear_force_armable() { - force_armable_ = false; -} -inline bool SetArmableRequest::_internal_force_armable() const { - return force_armable_; + _impl_.force_armable_ = false; } inline bool SetArmableRequest::force_armable() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetArmableRequest.force_armable) return _internal_force_armable(); } -inline void SetArmableRequest::_internal_set_force_armable(bool value) { - - force_armable_ = value; -} inline void SetArmableRequest::set_force_armable(bool value) { _internal_set_force_armable(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetArmableRequest.force_armable) } +inline bool SetArmableRequest::_internal_force_armable() const { + return _impl_.force_armable_; +} +inline void SetArmableRequest::_internal_set_force_armable(bool value) { + ; + _impl_.force_armable_ = value; +} // ------------------------------------------------------------------- @@ -4292,63 +4582,60 @@ inline void SetArmableRequest::set_force_armable(bool value) { // bool disarmable = 1; inline void SetDisarmableRequest::clear_disarmable() { - disarmable_ = false; -} -inline bool SetDisarmableRequest::_internal_disarmable() const { - return disarmable_; + _impl_.disarmable_ = false; } inline bool SetDisarmableRequest::disarmable() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetDisarmableRequest.disarmable) return _internal_disarmable(); } -inline void SetDisarmableRequest::_internal_set_disarmable(bool value) { - - disarmable_ = value; -} inline void SetDisarmableRequest::set_disarmable(bool value) { _internal_set_disarmable(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetDisarmableRequest.disarmable) } +inline bool SetDisarmableRequest::_internal_disarmable() const { + return _impl_.disarmable_; +} +inline void SetDisarmableRequest::_internal_set_disarmable(bool value) { + ; + _impl_.disarmable_ = value; +} // bool force_disarmable = 2; inline void SetDisarmableRequest::clear_force_disarmable() { - force_disarmable_ = false; -} -inline bool SetDisarmableRequest::_internal_force_disarmable() const { - return force_disarmable_; + _impl_.force_disarmable_ = false; } inline bool SetDisarmableRequest::force_disarmable() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.SetDisarmableRequest.force_disarmable) return _internal_force_disarmable(); } -inline void SetDisarmableRequest::_internal_set_force_disarmable(bool value) { - - force_disarmable_ = value; -} inline void SetDisarmableRequest::set_force_disarmable(bool value) { _internal_set_force_disarmable(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.SetDisarmableRequest.force_disarmable) } +inline bool SetDisarmableRequest::_internal_force_disarmable() const { + return _impl_.force_disarmable_; +} +inline void SetDisarmableRequest::_internal_set_force_disarmable(bool value) { + ; + _impl_.force_disarmable_ = value; +} // ------------------------------------------------------------------- // SetAllowableFlightModesRequest // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; -inline bool SetAllowableFlightModesRequest::_internal_has_flight_modes() const { - return this != internal_default_instance() && flight_modes_ != nullptr; -} inline bool SetAllowableFlightModesRequest::has_flight_modes() const { - return _internal_has_flight_modes(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.flight_modes_ != nullptr); + return value; } inline void SetAllowableFlightModesRequest::clear_flight_modes() { - if (GetArenaForAllocation() == nullptr && flight_modes_ != nullptr) { - delete flight_modes_; - } - flight_modes_ = nullptr; + if (_impl_.flight_modes_ != nullptr) _impl_.flight_modes_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::AllowableFlightModes& SetAllowableFlightModesRequest::_internal_flight_modes() const { - const ::mavsdk::rpc::action_server::AllowableFlightModes* p = flight_modes_; + const ::mavsdk::rpc::action_server::AllowableFlightModes* p = _impl_.flight_modes_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_); } @@ -4359,20 +4646,20 @@ inline const ::mavsdk::rpc::action_server::AllowableFlightModes& SetAllowableFli inline void SetAllowableFlightModesRequest::unsafe_arena_set_allocated_flight_modes( ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(flight_modes_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.flight_modes_); } - flight_modes_ = flight_modes; + _impl_.flight_modes_ = flight_modes; if (flight_modes) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) } inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightModesRequest::release_flight_modes() { - - ::mavsdk::rpc::action_server::AllowableFlightModes* temp = flight_modes_; - flight_modes_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::AllowableFlightModes* temp = _impl_.flight_modes_; + _impl_.flight_modes_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -4386,18 +4673,18 @@ inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightMod } inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightModesRequest::unsafe_arena_release_flight_modes() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) - - ::mavsdk::rpc::action_server::AllowableFlightModes* temp = flight_modes_; - flight_modes_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::AllowableFlightModes* temp = _impl_.flight_modes_; + _impl_.flight_modes_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightModesRequest::_internal_mutable_flight_modes() { - - if (flight_modes_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.flight_modes_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(GetArenaForAllocation()); - flight_modes_ = p; + _impl_.flight_modes_ = p; } - return flight_modes_; + return _impl_.flight_modes_; } inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightModesRequest::mutable_flight_modes() { ::mavsdk::rpc::action_server::AllowableFlightModes* _msg = _internal_mutable_flight_modes(); @@ -4407,7 +4694,7 @@ inline ::mavsdk::rpc::action_server::AllowableFlightModes* SetAllowableFlightMod inline void SetAllowableFlightModesRequest::set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete flight_modes_; + delete _impl_.flight_modes_; } if (flight_modes) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -4416,11 +4703,11 @@ inline void SetAllowableFlightModesRequest::set_allocated_flight_modes(::mavsdk: flight_modes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, flight_modes, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - flight_modes_ = flight_modes; + _impl_.flight_modes_ = flight_modes; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesRequest.flight_modes) } @@ -4461,20 +4748,17 @@ inline void SetAllowableFlightModesRequest::set_allocated_flight_modes(::mavsdk: // ArmDisarmResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool ArmDisarmResponse::_internal_has_action_server_result() const { - return this != internal_default_instance() && action_server_result_ != nullptr; -} inline bool ArmDisarmResponse::has_action_server_result() const { - return _internal_has_action_server_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; } inline void ArmDisarmResponse::clear_action_server_result() { - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; + if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& ArmDisarmResponse::_internal_action_server_result() const { - const ::mavsdk::rpc::action_server::ActionServerResult* p = action_server_result_; + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -4485,20 +4769,20 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& ArmDisarmResponse inline void ArmDisarmResponse::unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_server_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_server_result_); } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; if (action_server_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) } inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::release_action_server_result() { - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -4512,18 +4796,18 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::rele } inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::unsafe_arena_release_action_server_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::_internal_mutable_action_server_result() { - - if (action_server_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArenaForAllocation()); - action_server_result_ = p; + _impl_.action_server_result_ = p; } - return action_server_result_; + return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::mutable_action_server_result() { ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); @@ -4533,7 +4817,7 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* ArmDisarmResponse::muta inline void ArmDisarmResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_server_result_; + delete _impl_.action_server_result_; } if (action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -4542,29 +4826,26 @@ inline void ArmDisarmResponse::set_allocated_action_server_result(::mavsdk::rpc: action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_server_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.action_server_result) } // .mavsdk.rpc.action_server.ArmDisarm arm = 2; -inline bool ArmDisarmResponse::_internal_has_arm() const { - return this != internal_default_instance() && arm_ != nullptr; -} inline bool ArmDisarmResponse::has_arm() const { - return _internal_has_arm(); + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.arm_ != nullptr); + return value; } inline void ArmDisarmResponse::clear_arm() { - if (GetArenaForAllocation() == nullptr && arm_ != nullptr) { - delete arm_; - } - arm_ = nullptr; + if (_impl_.arm_ != nullptr) _impl_.arm_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::_internal_arm() const { - const ::mavsdk::rpc::action_server::ArmDisarm* p = arm_; + const ::mavsdk::rpc::action_server::ArmDisarm* p = _impl_.arm_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ArmDisarm_default_instance_); } @@ -4575,20 +4856,20 @@ inline const ::mavsdk::rpc::action_server::ArmDisarm& ArmDisarmResponse::arm() c inline void ArmDisarmResponse::unsafe_arena_set_allocated_arm( ::mavsdk::rpc::action_server::ArmDisarm* arm) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(arm_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arm_); } - arm_ = arm; + _impl_.arm_ = arm; if (arm) { - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.arm) } inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::release_arm() { - - ::mavsdk::rpc::action_server::ArmDisarm* temp = arm_; - arm_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::action_server::ArmDisarm* temp = _impl_.arm_; + _impl_.arm_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -4602,18 +4883,18 @@ inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::release_arm() } inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::unsafe_arena_release_arm() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ArmDisarmResponse.arm) - - ::mavsdk::rpc::action_server::ArmDisarm* temp = arm_; - arm_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::action_server::ArmDisarm* temp = _impl_.arm_; + _impl_.arm_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::_internal_mutable_arm() { - - if (arm_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.arm_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ArmDisarm>(GetArenaForAllocation()); - arm_ = p; + _impl_.arm_ = p; } - return arm_; + return _impl_.arm_; } inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::mutable_arm() { ::mavsdk::rpc::action_server::ArmDisarm* _msg = _internal_mutable_arm(); @@ -4623,7 +4904,7 @@ inline ::mavsdk::rpc::action_server::ArmDisarm* ArmDisarmResponse::mutable_arm() inline void ArmDisarmResponse::set_allocated_arm(::mavsdk::rpc::action_server::ArmDisarm* arm) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete arm_; + delete _impl_.arm_; } if (arm) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -4632,11 +4913,11 @@ inline void ArmDisarmResponse::set_allocated_arm(::mavsdk::rpc::action_server::A arm = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, arm, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } - arm_ = arm; + _impl_.arm_ = arm; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ArmDisarmResponse.arm) } @@ -4645,20 +4926,17 @@ inline void ArmDisarmResponse::set_allocated_arm(::mavsdk::rpc::action_server::A // FlightModeChangeResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool FlightModeChangeResponse::_internal_has_action_server_result() const { - return this != internal_default_instance() && action_server_result_ != nullptr; -} inline bool FlightModeChangeResponse::has_action_server_result() const { - return _internal_has_action_server_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; } inline void FlightModeChangeResponse::clear_action_server_result() { - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; + if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& FlightModeChangeResponse::_internal_action_server_result() const { - const ::mavsdk::rpc::action_server::ActionServerResult* p = action_server_result_; + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -4669,20 +4947,20 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& FlightModeChangeR inline void FlightModeChangeResponse::unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_server_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_server_result_); } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; if (action_server_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) } inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeResponse::release_action_server_result() { - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -4696,18 +4974,18 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeRespons } inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeResponse::unsafe_arena_release_action_server_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeResponse::_internal_mutable_action_server_result() { - - if (action_server_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArenaForAllocation()); - action_server_result_ = p; + _impl_.action_server_result_ = p; } - return action_server_result_; + return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeResponse::mutable_action_server_result() { ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); @@ -4717,7 +4995,7 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* FlightModeChangeRespons inline void FlightModeChangeResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_server_result_; + delete _impl_.action_server_result_; } if (action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -4726,53 +5004,50 @@ inline void FlightModeChangeResponse::set_allocated_action_server_result(::mavsd action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_server_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.FlightModeChangeResponse.action_server_result) } // .mavsdk.rpc.action_server.FlightMode flight_mode = 2; inline void FlightModeChangeResponse::clear_flight_mode() { - flight_mode_ = 0; -} -inline ::mavsdk::rpc::action_server::FlightMode FlightModeChangeResponse::_internal_flight_mode() const { - return static_cast< ::mavsdk::rpc::action_server::FlightMode >(flight_mode_); + _impl_.flight_mode_ = 0; } inline ::mavsdk::rpc::action_server::FlightMode FlightModeChangeResponse::flight_mode() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.FlightModeChangeResponse.flight_mode) return _internal_flight_mode(); } -inline void FlightModeChangeResponse::_internal_set_flight_mode(::mavsdk::rpc::action_server::FlightMode value) { - - flight_mode_ = value; -} inline void FlightModeChangeResponse::set_flight_mode(::mavsdk::rpc::action_server::FlightMode value) { - _internal_set_flight_mode(value); + _internal_set_flight_mode(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.FlightModeChangeResponse.flight_mode) } +inline ::mavsdk::rpc::action_server::FlightMode FlightModeChangeResponse::_internal_flight_mode() const { + return static_cast<::mavsdk::rpc::action_server::FlightMode>(_impl_.flight_mode_); +} +inline void FlightModeChangeResponse::_internal_set_flight_mode(::mavsdk::rpc::action_server::FlightMode value) { + ; + _impl_.flight_mode_ = value; +} // ------------------------------------------------------------------- // TakeoffResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool TakeoffResponse::_internal_has_action_server_result() const { - return this != internal_default_instance() && action_server_result_ != nullptr; -} inline bool TakeoffResponse::has_action_server_result() const { - return _internal_has_action_server_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; } inline void TakeoffResponse::clear_action_server_result() { - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; + if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& TakeoffResponse::_internal_action_server_result() const { - const ::mavsdk::rpc::action_server::ActionServerResult* p = action_server_result_; + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -4783,20 +5058,20 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& TakeoffResponse:: inline void TakeoffResponse::unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_server_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_server_result_); } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; if (action_server_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) } inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::release_action_server_result() { - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -4810,18 +5085,18 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::releas } inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::unsafe_arena_release_action_server_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::_internal_mutable_action_server_result() { - - if (action_server_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArenaForAllocation()); - action_server_result_ = p; + _impl_.action_server_result_ = p; } - return action_server_result_; + return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::mutable_action_server_result() { ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); @@ -4831,7 +5106,7 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* TakeoffResponse::mutabl inline void TakeoffResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_server_result_; + delete _impl_.action_server_result_; } if (action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -4840,53 +5115,50 @@ inline void TakeoffResponse::set_allocated_action_server_result(::mavsdk::rpc::a action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_server_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.TakeoffResponse.action_server_result) } // bool takeoff = 2; inline void TakeoffResponse::clear_takeoff() { - takeoff_ = false; -} -inline bool TakeoffResponse::_internal_takeoff() const { - return takeoff_; + _impl_.takeoff_ = false; } inline bool TakeoffResponse::takeoff() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.TakeoffResponse.takeoff) return _internal_takeoff(); } -inline void TakeoffResponse::_internal_set_takeoff(bool value) { - - takeoff_ = value; -} inline void TakeoffResponse::set_takeoff(bool value) { _internal_set_takeoff(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.TakeoffResponse.takeoff) } +inline bool TakeoffResponse::_internal_takeoff() const { + return _impl_.takeoff_; +} +inline void TakeoffResponse::_internal_set_takeoff(bool value) { + ; + _impl_.takeoff_ = value; +} // ------------------------------------------------------------------- // LandResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool LandResponse::_internal_has_action_server_result() const { - return this != internal_default_instance() && action_server_result_ != nullptr; -} inline bool LandResponse::has_action_server_result() const { - return _internal_has_action_server_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; } inline void LandResponse::clear_action_server_result() { - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; + if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& LandResponse::_internal_action_server_result() const { - const ::mavsdk::rpc::action_server::ActionServerResult* p = action_server_result_; + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -4897,20 +5169,20 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& LandResponse::act inline void LandResponse::unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_server_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_server_result_); } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; if (action_server_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.LandResponse.action_server_result) } inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::release_action_server_result() { - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -4924,18 +5196,18 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::release_a } inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::unsafe_arena_release_action_server_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.LandResponse.action_server_result) - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::_internal_mutable_action_server_result() { - - if (action_server_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArenaForAllocation()); - action_server_result_ = p; + _impl_.action_server_result_ = p; } - return action_server_result_; + return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::mutable_action_server_result() { ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); @@ -4945,7 +5217,7 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* LandResponse::mutable_a inline void LandResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_server_result_; + delete _impl_.action_server_result_; } if (action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -4954,53 +5226,50 @@ inline void LandResponse::set_allocated_action_server_result(::mavsdk::rpc::acti action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_server_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.LandResponse.action_server_result) } // bool land = 2; inline void LandResponse::clear_land() { - land_ = false; -} -inline bool LandResponse::_internal_land() const { - return land_; + _impl_.land_ = false; } inline bool LandResponse::land() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.LandResponse.land) return _internal_land(); } -inline void LandResponse::_internal_set_land(bool value) { - - land_ = value; -} inline void LandResponse::set_land(bool value) { _internal_set_land(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.LandResponse.land) } +inline bool LandResponse::_internal_land() const { + return _impl_.land_; +} +inline void LandResponse::_internal_set_land(bool value) { + ; + _impl_.land_ = value; +} // ------------------------------------------------------------------- // RebootResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool RebootResponse::_internal_has_action_server_result() const { - return this != internal_default_instance() && action_server_result_ != nullptr; -} inline bool RebootResponse::has_action_server_result() const { - return _internal_has_action_server_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; } inline void RebootResponse::clear_action_server_result() { - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; + if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& RebootResponse::_internal_action_server_result() const { - const ::mavsdk::rpc::action_server::ActionServerResult* p = action_server_result_; + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5011,20 +5280,20 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& RebootResponse::a inline void RebootResponse::unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_server_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_server_result_); } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; if (action_server_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.RebootResponse.action_server_result) } inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::release_action_server_result() { - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5038,18 +5307,18 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::release } inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::unsafe_arena_release_action_server_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.RebootResponse.action_server_result) - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::_internal_mutable_action_server_result() { - - if (action_server_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArenaForAllocation()); - action_server_result_ = p; + _impl_.action_server_result_ = p; } - return action_server_result_; + return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::mutable_action_server_result() { ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); @@ -5059,7 +5328,7 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* RebootResponse::mutable inline void RebootResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_server_result_; + delete _impl_.action_server_result_; } if (action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -5068,53 +5337,50 @@ inline void RebootResponse::set_allocated_action_server_result(::mavsdk::rpc::ac action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_server_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.RebootResponse.action_server_result) } // bool reboot = 2; inline void RebootResponse::clear_reboot() { - reboot_ = false; -} -inline bool RebootResponse::_internal_reboot() const { - return reboot_; + _impl_.reboot_ = false; } inline bool RebootResponse::reboot() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.RebootResponse.reboot) return _internal_reboot(); } -inline void RebootResponse::_internal_set_reboot(bool value) { - - reboot_ = value; -} inline void RebootResponse::set_reboot(bool value) { _internal_set_reboot(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.RebootResponse.reboot) } +inline bool RebootResponse::_internal_reboot() const { + return _impl_.reboot_; +} +inline void RebootResponse::_internal_set_reboot(bool value) { + ; + _impl_.reboot_ = value; +} // ------------------------------------------------------------------- // ShutdownResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool ShutdownResponse::_internal_has_action_server_result() const { - return this != internal_default_instance() && action_server_result_ != nullptr; -} inline bool ShutdownResponse::has_action_server_result() const { - return _internal_has_action_server_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; } inline void ShutdownResponse::clear_action_server_result() { - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; + if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& ShutdownResponse::_internal_action_server_result() const { - const ::mavsdk::rpc::action_server::ActionServerResult* p = action_server_result_; + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5125,20 +5391,20 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& ShutdownResponse: inline void ShutdownResponse::unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_server_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_server_result_); } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; if (action_server_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) } inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::release_action_server_result() { - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5152,18 +5418,18 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::relea } inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::unsafe_arena_release_action_server_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::_internal_mutable_action_server_result() { - - if (action_server_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArenaForAllocation()); - action_server_result_ = p; + _impl_.action_server_result_ = p; } - return action_server_result_; + return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::mutable_action_server_result() { ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); @@ -5173,7 +5439,7 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* ShutdownResponse::mutab inline void ShutdownResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_server_result_; + delete _impl_.action_server_result_; } if (action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -5182,53 +5448,50 @@ inline void ShutdownResponse::set_allocated_action_server_result(::mavsdk::rpc:: action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_server_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ShutdownResponse.action_server_result) } // bool shutdown = 2; inline void ShutdownResponse::clear_shutdown() { - shutdown_ = false; -} -inline bool ShutdownResponse::_internal_shutdown() const { - return shutdown_; + _impl_.shutdown_ = false; } inline bool ShutdownResponse::shutdown() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ShutdownResponse.shutdown) return _internal_shutdown(); } -inline void ShutdownResponse::_internal_set_shutdown(bool value) { - - shutdown_ = value; -} inline void ShutdownResponse::set_shutdown(bool value) { _internal_set_shutdown(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ShutdownResponse.shutdown) } +inline bool ShutdownResponse::_internal_shutdown() const { + return _impl_.shutdown_; +} +inline void ShutdownResponse::_internal_set_shutdown(bool value) { + ; + _impl_.shutdown_ = value; +} // ------------------------------------------------------------------- // TerminateResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool TerminateResponse::_internal_has_action_server_result() const { - return this != internal_default_instance() && action_server_result_ != nullptr; -} inline bool TerminateResponse::has_action_server_result() const { - return _internal_has_action_server_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; } inline void TerminateResponse::clear_action_server_result() { - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; + if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& TerminateResponse::_internal_action_server_result() const { - const ::mavsdk::rpc::action_server::ActionServerResult* p = action_server_result_; + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5239,20 +5502,20 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& TerminateResponse inline void TerminateResponse::unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_server_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_server_result_); } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; if (action_server_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.TerminateResponse.action_server_result) } inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::release_action_server_result() { - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5266,18 +5529,18 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::rele } inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::unsafe_arena_release_action_server_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.TerminateResponse.action_server_result) - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::_internal_mutable_action_server_result() { - - if (action_server_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArenaForAllocation()); - action_server_result_ = p; + _impl_.action_server_result_ = p; } - return action_server_result_; + return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::mutable_action_server_result() { ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); @@ -5287,7 +5550,7 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* TerminateResponse::muta inline void TerminateResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_server_result_; + delete _impl_.action_server_result_; } if (action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -5296,53 +5559,50 @@ inline void TerminateResponse::set_allocated_action_server_result(::mavsdk::rpc: action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_server_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.TerminateResponse.action_server_result) } // bool terminate = 2; inline void TerminateResponse::clear_terminate() { - terminate_ = false; -} -inline bool TerminateResponse::_internal_terminate() const { - return terminate_; + _impl_.terminate_ = false; } inline bool TerminateResponse::terminate() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.TerminateResponse.terminate) return _internal_terminate(); } -inline void TerminateResponse::_internal_set_terminate(bool value) { - - terminate_ = value; -} inline void TerminateResponse::set_terminate(bool value) { _internal_set_terminate(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.TerminateResponse.terminate) } +inline bool TerminateResponse::_internal_terminate() const { + return _impl_.terminate_; +} +inline void TerminateResponse::_internal_set_terminate(bool value) { + ; + _impl_.terminate_ = value; +} // ------------------------------------------------------------------- // SetArmableResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool SetArmableResponse::_internal_has_action_server_result() const { - return this != internal_default_instance() && action_server_result_ != nullptr; -} inline bool SetArmableResponse::has_action_server_result() const { - return _internal_has_action_server_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; } inline void SetArmableResponse::clear_action_server_result() { - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; + if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& SetArmableResponse::_internal_action_server_result() const { - const ::mavsdk::rpc::action_server::ActionServerResult* p = action_server_result_; + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5353,20 +5613,20 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& SetArmableRespons inline void SetArmableResponse::unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_server_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_server_result_); } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; if (action_server_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) } inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::release_action_server_result() { - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5380,18 +5640,18 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::rel } inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::unsafe_arena_release_action_server_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::_internal_mutable_action_server_result() { - - if (action_server_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArenaForAllocation()); - action_server_result_ = p; + _impl_.action_server_result_ = p; } - return action_server_result_; + return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::mutable_action_server_result() { ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); @@ -5401,7 +5661,7 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetArmableResponse::mut inline void SetArmableResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_server_result_; + delete _impl_.action_server_result_; } if (action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -5410,11 +5670,11 @@ inline void SetArmableResponse::set_allocated_action_server_result(::mavsdk::rpc action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_server_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetArmableResponse.action_server_result) } @@ -5423,20 +5683,17 @@ inline void SetArmableResponse::set_allocated_action_server_result(::mavsdk::rpc // SetDisarmableResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool SetDisarmableResponse::_internal_has_action_server_result() const { - return this != internal_default_instance() && action_server_result_ != nullptr; -} inline bool SetDisarmableResponse::has_action_server_result() const { - return _internal_has_action_server_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; } inline void SetDisarmableResponse::clear_action_server_result() { - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; + if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& SetDisarmableResponse::_internal_action_server_result() const { - const ::mavsdk::rpc::action_server::ActionServerResult* p = action_server_result_; + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5447,20 +5704,20 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& SetDisarmableResp inline void SetDisarmableResponse::unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_server_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_server_result_); } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; if (action_server_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) } inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse::release_action_server_result() { - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5474,18 +5731,18 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse:: } inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse::unsafe_arena_release_action_server_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse::_internal_mutable_action_server_result() { - - if (action_server_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArenaForAllocation()); - action_server_result_ = p; + _impl_.action_server_result_ = p; } - return action_server_result_; + return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse::mutable_action_server_result() { ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); @@ -5495,7 +5752,7 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetDisarmableResponse:: inline void SetDisarmableResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_server_result_; + delete _impl_.action_server_result_; } if (action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -5504,11 +5761,11 @@ inline void SetDisarmableResponse::set_allocated_action_server_result(::mavsdk:: action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_server_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetDisarmableResponse.action_server_result) } @@ -5517,20 +5774,17 @@ inline void SetDisarmableResponse::set_allocated_action_server_result(::mavsdk:: // SetAllowableFlightModesResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool SetAllowableFlightModesResponse::_internal_has_action_server_result() const { - return this != internal_default_instance() && action_server_result_ != nullptr; -} inline bool SetAllowableFlightModesResponse::has_action_server_result() const { - return _internal_has_action_server_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; } inline void SetAllowableFlightModesResponse::clear_action_server_result() { - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; + if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowableFlightModesResponse::_internal_action_server_result() const { - const ::mavsdk::rpc::action_server::ActionServerResult* p = action_server_result_; + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5541,20 +5795,20 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowableFligh inline void SetAllowableFlightModesResponse::unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_server_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_server_result_); } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; if (action_server_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModesResponse::release_action_server_result() { - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5568,18 +5822,18 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModes } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModesResponse::unsafe_arena_release_action_server_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModesResponse::_internal_mutable_action_server_result() { - - if (action_server_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArenaForAllocation()); - action_server_result_ = p; + _impl_.action_server_result_ = p; } - return action_server_result_; + return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModesResponse::mutable_action_server_result() { ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); @@ -5589,7 +5843,7 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowableFlightModes inline void SetAllowableFlightModesResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_server_result_; + delete _impl_.action_server_result_; } if (action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -5598,11 +5852,11 @@ inline void SetAllowableFlightModesResponse::set_allocated_action_server_result( action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_server_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetAllowableFlightModesResponse.action_server_result) } @@ -5611,20 +5865,17 @@ inline void SetAllowableFlightModesResponse::set_allocated_action_server_result( // SetAllowTakeoffResponse // .mavsdk.rpc.action_server.ActionServerResult action_server_result = 1; -inline bool SetAllowTakeoffResponse::_internal_has_action_server_result() const { - return this != internal_default_instance() && action_server_result_ != nullptr; -} inline bool SetAllowTakeoffResponse::has_action_server_result() const { - return _internal_has_action_server_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.action_server_result_ != nullptr); + return value; } inline void SetAllowTakeoffResponse::clear_action_server_result() { - if (GetArenaForAllocation() == nullptr && action_server_result_ != nullptr) { - delete action_server_result_; - } - action_server_result_ = nullptr; + if (_impl_.action_server_result_ != nullptr) _impl_.action_server_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowTakeoffResponse::_internal_action_server_result() const { - const ::mavsdk::rpc::action_server::ActionServerResult* p = action_server_result_; + const ::mavsdk::rpc::action_server::ActionServerResult* p = _impl_.action_server_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_ActionServerResult_default_instance_); } @@ -5635,20 +5886,20 @@ inline const ::mavsdk::rpc::action_server::ActionServerResult& SetAllowTakeoffRe inline void SetAllowTakeoffResponse::unsafe_arena_set_allocated_action_server_result( ::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action_server_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_server_result_); } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; if (action_server_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse::release_action_server_result() { - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5662,18 +5913,18 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse::unsafe_arena_release_action_server_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) - - ::mavsdk::rpc::action_server::ActionServerResult* temp = action_server_result_; - action_server_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::ActionServerResult* temp = _impl_.action_server_result_; + _impl_.action_server_result_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse::_internal_mutable_action_server_result() { - - if (action_server_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.action_server_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::ActionServerResult>(GetArenaForAllocation()); - action_server_result_ = p; + _impl_.action_server_result_ = p; } - return action_server_result_; + return _impl_.action_server_result_; } inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse::mutable_action_server_result() { ::mavsdk::rpc::action_server::ActionServerResult* _msg = _internal_mutable_action_server_result(); @@ -5683,7 +5934,7 @@ inline ::mavsdk::rpc::action_server::ActionServerResult* SetAllowTakeoffResponse inline void SetAllowTakeoffResponse::set_allocated_action_server_result(::mavsdk::rpc::action_server::ActionServerResult* action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete action_server_result_; + delete _impl_.action_server_result_; } if (action_server_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -5692,11 +5943,11 @@ inline void SetAllowTakeoffResponse::set_allocated_action_server_result(::mavsdk action_server_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, action_server_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - action_server_result_ = action_server_result; + _impl_.action_server_result_ = action_server_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.SetAllowTakeoffResponse.action_server_result) } @@ -5705,20 +5956,17 @@ inline void SetAllowTakeoffResponse::set_allocated_action_server_result(::mavsdk // GetAllowableFlightModesResponse // .mavsdk.rpc.action_server.AllowableFlightModes flight_modes = 1; -inline bool GetAllowableFlightModesResponse::_internal_has_flight_modes() const { - return this != internal_default_instance() && flight_modes_ != nullptr; -} inline bool GetAllowableFlightModesResponse::has_flight_modes() const { - return _internal_has_flight_modes(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.flight_modes_ != nullptr); + return value; } inline void GetAllowableFlightModesResponse::clear_flight_modes() { - if (GetArenaForAllocation() == nullptr && flight_modes_ != nullptr) { - delete flight_modes_; - } - flight_modes_ = nullptr; + if (_impl_.flight_modes_ != nullptr) _impl_.flight_modes_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::action_server::AllowableFlightModes& GetAllowableFlightModesResponse::_internal_flight_modes() const { - const ::mavsdk::rpc::action_server::AllowableFlightModes* p = flight_modes_; + const ::mavsdk::rpc::action_server::AllowableFlightModes* p = _impl_.flight_modes_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::action_server::_AllowableFlightModes_default_instance_); } @@ -5729,20 +5977,20 @@ inline const ::mavsdk::rpc::action_server::AllowableFlightModes& GetAllowableFli inline void GetAllowableFlightModesResponse::unsafe_arena_set_allocated_flight_modes( ::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(flight_modes_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.flight_modes_); } - flight_modes_ = flight_modes; + _impl_.flight_modes_ = flight_modes; if (flight_modes) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) } inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightModesResponse::release_flight_modes() { - - ::mavsdk::rpc::action_server::AllowableFlightModes* temp = flight_modes_; - flight_modes_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::AllowableFlightModes* temp = _impl_.flight_modes_; + _impl_.flight_modes_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5756,18 +6004,18 @@ inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightMod } inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightModesResponse::unsafe_arena_release_flight_modes() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) - - ::mavsdk::rpc::action_server::AllowableFlightModes* temp = flight_modes_; - flight_modes_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::action_server::AllowableFlightModes* temp = _impl_.flight_modes_; + _impl_.flight_modes_ = nullptr; return temp; } inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightModesResponse::_internal_mutable_flight_modes() { - - if (flight_modes_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.flight_modes_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::action_server::AllowableFlightModes>(GetArenaForAllocation()); - flight_modes_ = p; + _impl_.flight_modes_ = p; } - return flight_modes_; + return _impl_.flight_modes_; } inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightModesResponse::mutable_flight_modes() { ::mavsdk::rpc::action_server::AllowableFlightModes* _msg = _internal_mutable_flight_modes(); @@ -5777,7 +6025,7 @@ inline ::mavsdk::rpc::action_server::AllowableFlightModes* GetAllowableFlightMod inline void GetAllowableFlightModesResponse::set_allocated_flight_modes(::mavsdk::rpc::action_server::AllowableFlightModes* flight_modes) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete flight_modes_; + delete _impl_.flight_modes_; } if (flight_modes) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -5786,11 +6034,11 @@ inline void GetAllowableFlightModesResponse::set_allocated_flight_modes(::mavsdk flight_modes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, flight_modes, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - flight_modes_ = flight_modes; + _impl_.flight_modes_ = flight_modes; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.GetAllowableFlightModesResponse.flight_modes) } @@ -5800,63 +6048,63 @@ inline void GetAllowableFlightModesResponse::set_allocated_flight_modes(::mavsdk // bool can_auto_mode = 1; inline void AllowableFlightModes::clear_can_auto_mode() { - can_auto_mode_ = false; -} -inline bool AllowableFlightModes::_internal_can_auto_mode() const { - return can_auto_mode_; + _impl_.can_auto_mode_ = false; } inline bool AllowableFlightModes::can_auto_mode() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.AllowableFlightModes.can_auto_mode) return _internal_can_auto_mode(); } -inline void AllowableFlightModes::_internal_set_can_auto_mode(bool value) { - - can_auto_mode_ = value; -} inline void AllowableFlightModes::set_can_auto_mode(bool value) { _internal_set_can_auto_mode(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.AllowableFlightModes.can_auto_mode) } +inline bool AllowableFlightModes::_internal_can_auto_mode() const { + return _impl_.can_auto_mode_; +} +inline void AllowableFlightModes::_internal_set_can_auto_mode(bool value) { + ; + _impl_.can_auto_mode_ = value; +} // bool can_guided_mode = 2; inline void AllowableFlightModes::clear_can_guided_mode() { - can_guided_mode_ = false; -} -inline bool AllowableFlightModes::_internal_can_guided_mode() const { - return can_guided_mode_; + _impl_.can_guided_mode_ = false; } inline bool AllowableFlightModes::can_guided_mode() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.AllowableFlightModes.can_guided_mode) return _internal_can_guided_mode(); } -inline void AllowableFlightModes::_internal_set_can_guided_mode(bool value) { - - can_guided_mode_ = value; -} inline void AllowableFlightModes::set_can_guided_mode(bool value) { _internal_set_can_guided_mode(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.AllowableFlightModes.can_guided_mode) } +inline bool AllowableFlightModes::_internal_can_guided_mode() const { + return _impl_.can_guided_mode_; +} +inline void AllowableFlightModes::_internal_set_can_guided_mode(bool value) { + ; + _impl_.can_guided_mode_ = value; +} // bool can_stabilize_mode = 3; inline void AllowableFlightModes::clear_can_stabilize_mode() { - can_stabilize_mode_ = false; -} -inline bool AllowableFlightModes::_internal_can_stabilize_mode() const { - return can_stabilize_mode_; + _impl_.can_stabilize_mode_ = false; } inline bool AllowableFlightModes::can_stabilize_mode() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.AllowableFlightModes.can_stabilize_mode) return _internal_can_stabilize_mode(); } -inline void AllowableFlightModes::_internal_set_can_stabilize_mode(bool value) { - - can_stabilize_mode_ = value; -} inline void AllowableFlightModes::set_can_stabilize_mode(bool value) { _internal_set_can_stabilize_mode(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.AllowableFlightModes.can_stabilize_mode) } +inline bool AllowableFlightModes::_internal_can_stabilize_mode() const { + return _impl_.can_stabilize_mode_; +} +inline void AllowableFlightModes::_internal_set_can_stabilize_mode(bool value) { + ; + _impl_.can_stabilize_mode_ = value; +} // ------------------------------------------------------------------- @@ -5864,43 +6112,43 @@ inline void AllowableFlightModes::set_can_stabilize_mode(bool value) { // bool arm = 1; inline void ArmDisarm::clear_arm() { - arm_ = false; -} -inline bool ArmDisarm::_internal_arm() const { - return arm_; + _impl_.arm_ = false; } inline bool ArmDisarm::arm() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ArmDisarm.arm) return _internal_arm(); } -inline void ArmDisarm::_internal_set_arm(bool value) { - - arm_ = value; -} inline void ArmDisarm::set_arm(bool value) { _internal_set_arm(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ArmDisarm.arm) } +inline bool ArmDisarm::_internal_arm() const { + return _impl_.arm_; +} +inline void ArmDisarm::_internal_set_arm(bool value) { + ; + _impl_.arm_ = value; +} // bool force = 2; inline void ArmDisarm::clear_force() { - force_ = false; -} -inline bool ArmDisarm::_internal_force() const { - return force_; + _impl_.force_ = false; } inline bool ArmDisarm::force() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ArmDisarm.force) return _internal_force(); } -inline void ArmDisarm::_internal_set_force(bool value) { - - force_ = value; -} inline void ArmDisarm::set_force(bool value) { _internal_set_force(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ArmDisarm.force) } +inline bool ArmDisarm::_internal_force() const { + return _impl_.force_; +} +inline void ArmDisarm::_internal_set_force(bool value) { + ; + _impl_.force_ = value; +} // ------------------------------------------------------------------- @@ -5908,37 +6156,37 @@ inline void ArmDisarm::set_force(bool value) { // .mavsdk.rpc.action_server.ActionServerResult.Result result = 1; inline void ActionServerResult::clear_result() { - result_ = 0; -} -inline ::mavsdk::rpc::action_server::ActionServerResult_Result ActionServerResult::_internal_result() const { - return static_cast< ::mavsdk::rpc::action_server::ActionServerResult_Result >(result_); + _impl_.result_ = 0; } inline ::mavsdk::rpc::action_server::ActionServerResult_Result ActionServerResult::result() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ActionServerResult.result) return _internal_result(); } -inline void ActionServerResult::_internal_set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value) { - - result_ = value; -} inline void ActionServerResult::set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value) { - _internal_set_result(value); + _internal_set_result(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ActionServerResult.result) } +inline ::mavsdk::rpc::action_server::ActionServerResult_Result ActionServerResult::_internal_result() const { + return static_cast<::mavsdk::rpc::action_server::ActionServerResult_Result>(_impl_.result_); +} +inline void ActionServerResult::_internal_set_result(::mavsdk::rpc::action_server::ActionServerResult_Result value) { + ; + _impl_.result_ = value; +} // string result_str = 2; inline void ActionServerResult::clear_result_str() { - result_str_.ClearToEmpty(); + _impl_.result_str_.ClearToEmpty(); } inline const std::string& ActionServerResult::result_str() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.action_server.ActionServerResult.result_str) return _internal_result_str(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ActionServerResult::set_result_str(ArgT0&& arg0, ArgT... args) { - - result_str_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ActionServerResult::set_result_str(Arg_&& arg, + Args_... args) { + ; + _impl_.result_str_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:mavsdk.rpc.action_server.ActionServerResult.result_str) } inline std::string* ActionServerResult::mutable_result_str() { @@ -5947,107 +6195,54 @@ inline std::string* ActionServerResult::mutable_result_str() { return _s; } inline const std::string& ActionServerResult::_internal_result_str() const { - return result_str_.Get(); + return _impl_.result_str_.Get(); } inline void ActionServerResult::_internal_set_result_str(const std::string& value) { - - result_str_.Set(value, GetArenaForAllocation()); + ; + + + _impl_.result_str_.Set(value, GetArenaForAllocation()); } inline std::string* ActionServerResult::_internal_mutable_result_str() { - - return result_str_.Mutable(GetArenaForAllocation()); + ; + return _impl_.result_str_.Mutable( GetArenaForAllocation()); } inline std::string* ActionServerResult::release_result_str() { // @@protoc_insertion_point(field_release:mavsdk.rpc.action_server.ActionServerResult.result_str) - return result_str_.Release(); -} -inline void ActionServerResult::set_allocated_result_str(std::string* result_str) { - if (result_str != nullptr) { - - } else { - - } - result_str_.SetAllocated(result_str, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (result_str_.IsDefault()) { - result_str_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return _impl_.result_str_.Release(); +} +inline void ActionServerResult::set_allocated_result_str(std::string* value) { + _impl_.result_str_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.result_str_.IsDefault()) { + _impl_.result_str_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action_server.ActionServerResult.result_str) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace action_server } // namespace rpc } // namespace mavsdk + PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::mavsdk::rpc::action_server::ActionServerResult_Result> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::mavsdk::rpc::action_server::ActionServerResult_Result>() { +struct is_proto_enum<::mavsdk::rpc::action_server::ActionServerResult_Result> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action_server::ActionServerResult_Result>() { return ::mavsdk::rpc::action_server::ActionServerResult_Result_descriptor(); } -template <> struct is_proto_enum< ::mavsdk::rpc::action_server::FlightMode> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::mavsdk::rpc::action_server::FlightMode>() { +struct is_proto_enum<::mavsdk::rpc::action_server::FlightMode> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::action_server::FlightMode>() { return ::mavsdk::rpc::action_server::FlightMode_descriptor(); } @@ -6055,5 +6250,6 @@ PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // GOOGLE_PROTOBUF_INCLUDED_action_5fserver_2faction_5fserver_2eproto_2epb_2eh diff --git a/src/mavsdk_server/src/generated/calibration/calibration.grpc.pb.cc b/src/mavsdk_server/src/generated/calibration/calibration.grpc.pb.cc index babcf4350e..a403ae0953 100644 --- a/src/mavsdk_server/src/generated/calibration/calibration.grpc.pb.cc +++ b/src/mavsdk_server/src/generated/calibration/calibration.grpc.pb.cc @@ -6,19 +6,19 @@ #include "calibration/calibration.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace mavsdk { namespace rpc { namespace calibration { diff --git a/src/mavsdk_server/src/generated/calibration/calibration.grpc.pb.h b/src/mavsdk_server/src/generated/calibration/calibration.grpc.pb.h index 60bce1a645..a24a506850 100644 --- a/src/mavsdk_server/src/generated/calibration/calibration.grpc.pb.h +++ b/src/mavsdk_server/src/generated/calibration/calibration.grpc.pb.h @@ -7,23 +7,23 @@ #include "calibration/calibration.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace mavsdk { namespace rpc { diff --git a/src/mavsdk_server/src/generated/calibration/calibration.pb.cc b/src/mavsdk_server/src/generated/calibration/calibration.pb.cc index c65730f916..4a04d83657 100644 --- a/src/mavsdk_server/src/generated/calibration/calibration.pb.cc +++ b/src/mavsdk_server/src/generated/calibration/calibration.pb.cc @@ -4,430 +4,542 @@ #include "calibration/calibration.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/descriptor.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/reflection_ops.h" +#include "google/protobuf/wire_format.h" // @@protoc_insertion_point(includes) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; namespace mavsdk { namespace rpc { namespace calibration { +template PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeCalibrateGyroRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateGyroRequestDefaultTypeInternal() {} union { SubscribeCalibrateGyroRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateGyroRequestDefaultTypeInternal _SubscribeCalibrateGyroRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateGyroRequestDefaultTypeInternal _SubscribeCalibrateGyroRequest_default_instance_; +template PROTOBUF_CONSTEXPR CalibrateGyroResponse::CalibrateGyroResponse( - ::_pbi::ConstantInitialized) - : calibration_result_(nullptr) - , progress_data_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.calibration_result_)*/nullptr + , /*decltype(_impl_.progress_data_)*/nullptr} {} struct CalibrateGyroResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateGyroResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CalibrateGyroResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateGyroResponseDefaultTypeInternal() {} union { CalibrateGyroResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateGyroResponseDefaultTypeInternal _CalibrateGyroResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateGyroResponseDefaultTypeInternal _CalibrateGyroResponse_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeCalibrateAccelerometerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateAccelerometerRequestDefaultTypeInternal() {} union { SubscribeCalibrateAccelerometerRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateAccelerometerRequestDefaultTypeInternal _SubscribeCalibrateAccelerometerRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateAccelerometerRequestDefaultTypeInternal _SubscribeCalibrateAccelerometerRequest_default_instance_; +template PROTOBUF_CONSTEXPR CalibrateAccelerometerResponse::CalibrateAccelerometerResponse( - ::_pbi::ConstantInitialized) - : calibration_result_(nullptr) - , progress_data_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.calibration_result_)*/nullptr + , /*decltype(_impl_.progress_data_)*/nullptr} {} struct CalibrateAccelerometerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateAccelerometerResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CalibrateAccelerometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateAccelerometerResponseDefaultTypeInternal() {} union { CalibrateAccelerometerResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateAccelerometerResponseDefaultTypeInternal _CalibrateAccelerometerResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateAccelerometerResponseDefaultTypeInternal _CalibrateAccelerometerResponse_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeCalibrateMagnetometerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateMagnetometerRequestDefaultTypeInternal() {} union { SubscribeCalibrateMagnetometerRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateMagnetometerRequestDefaultTypeInternal _SubscribeCalibrateMagnetometerRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateMagnetometerRequestDefaultTypeInternal _SubscribeCalibrateMagnetometerRequest_default_instance_; +template PROTOBUF_CONSTEXPR CalibrateMagnetometerResponse::CalibrateMagnetometerResponse( - ::_pbi::ConstantInitialized) - : calibration_result_(nullptr) - , progress_data_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.calibration_result_)*/nullptr + , /*decltype(_impl_.progress_data_)*/nullptr} {} struct CalibrateMagnetometerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateMagnetometerResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CalibrateMagnetometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateMagnetometerResponseDefaultTypeInternal() {} union { CalibrateMagnetometerResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateMagnetometerResponseDefaultTypeInternal _CalibrateMagnetometerResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateMagnetometerResponseDefaultTypeInternal _CalibrateMagnetometerResponse_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal() {} union { SubscribeCalibrateLevelHorizonRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal _SubscribeCalibrateLevelHorizonRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateLevelHorizonRequestDefaultTypeInternal _SubscribeCalibrateLevelHorizonRequest_default_instance_; +template PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse( - ::_pbi::ConstantInitialized) - : calibration_result_(nullptr) - , progress_data_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.calibration_result_)*/nullptr + , /*decltype(_impl_.progress_data_)*/nullptr} {} struct CalibrateLevelHorizonResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateLevelHorizonResponseDefaultTypeInternal() {} union { CalibrateLevelHorizonResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateLevelHorizonResponseDefaultTypeInternal _CalibrateLevelHorizonResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateLevelHorizonResponseDefaultTypeInternal _CalibrateLevelHorizonResponse_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal() {} union { SubscribeCalibrateGimbalAccelerometerRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal _SubscribeCalibrateGimbalAccelerometerRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCalibrateGimbalAccelerometerRequestDefaultTypeInternal _SubscribeCalibrateGimbalAccelerometerRequest_default_instance_; +template PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse( - ::_pbi::ConstantInitialized) - : calibration_result_(nullptr) - , progress_data_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.calibration_result_)*/nullptr + , /*decltype(_impl_.progress_data_)*/nullptr} {} struct CalibrateGimbalAccelerometerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrateGimbalAccelerometerResponseDefaultTypeInternal() {} union { CalibrateGimbalAccelerometerResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateGimbalAccelerometerResponseDefaultTypeInternal _CalibrateGimbalAccelerometerResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrateGimbalAccelerometerResponseDefaultTypeInternal _CalibrateGimbalAccelerometerResponse_default_instance_; +template PROTOBUF_CONSTEXPR CancelRequest::CancelRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct CancelRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CancelRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CancelRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CancelRequestDefaultTypeInternal() {} union { CancelRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelRequestDefaultTypeInternal _CancelRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelRequestDefaultTypeInternal _CancelRequest_default_instance_; +template PROTOBUF_CONSTEXPR CancelResponse::CancelResponse( - ::_pbi::ConstantInitialized) - : calibration_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.calibration_result_)*/nullptr} {} struct CancelResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CancelResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CancelResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CancelResponseDefaultTypeInternal() {} union { CancelResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelResponseDefaultTypeInternal _CancelResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelResponseDefaultTypeInternal _CancelResponse_default_instance_; +template PROTOBUF_CONSTEXPR CalibrationResult::CalibrationResult( - ::_pbi::ConstantInitialized) - : result_str_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , result_(0) -{} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.result_str_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.result_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct CalibrationResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR CalibrationResultDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CalibrationResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CalibrationResultDefaultTypeInternal() {} union { CalibrationResult _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrationResultDefaultTypeInternal _CalibrationResult_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CalibrationResultDefaultTypeInternal _CalibrationResult_default_instance_; +template PROTOBUF_CONSTEXPR ProgressData::ProgressData( - ::_pbi::ConstantInitialized) - : status_text_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , progress_(0) - , has_progress_(false) - , has_status_text_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.status_text_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.progress_)*/ 0 + + , /*decltype(_impl_.has_progress_)*/ false + + , /*decltype(_impl_.has_status_text_)*/ false + + , /*decltype(_impl_._cached_size_)*/{}} {} struct ProgressDataDefaultTypeInternal { - PROTOBUF_CONSTEXPR ProgressDataDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ProgressDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ProgressDataDefaultTypeInternal() {} union { ProgressData _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProgressDataDefaultTypeInternal _ProgressData_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProgressDataDefaultTypeInternal _ProgressData_default_instance_; } // namespace calibration } // namespace rpc } // namespace mavsdk static ::_pb::Metadata file_level_metadata_calibration_2fcalibration_2eproto[14]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_calibration_2fcalibration_2eproto[1]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_calibration_2fcalibration_2eproto = nullptr; - -const uint32_t TableStruct_calibration_2fcalibration_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, progress_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, progress_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, progress_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, progress_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, calibration_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, progress_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, calibration_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, result_str_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, has_progress_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, progress_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, has_status_text_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, status_text_), +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_calibration_2fcalibration_2eproto = nullptr; +const ::uint32_t TableStruct_calibration_2fcalibration_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGyroResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse, _impl_.progress_data_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CancelResponse, _impl_.calibration_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::CalibrationResult, _impl_.result_str_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.has_progress_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.progress_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.has_status_text_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::calibration::ProgressData, _impl_.status_text_), }; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest)}, - { 6, -1, -1, sizeof(::mavsdk::rpc::calibration::CalibrateGyroResponse)}, - { 14, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest)}, - { 20, -1, -1, sizeof(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse)}, - { 28, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest)}, - { 34, -1, -1, sizeof(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse)}, - { 42, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest)}, - { 48, -1, -1, sizeof(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse)}, - { 56, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest)}, - { 62, -1, -1, sizeof(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse)}, - { 70, -1, -1, sizeof(::mavsdk::rpc::calibration::CancelRequest)}, - { 76, -1, -1, sizeof(::mavsdk::rpc::calibration::CancelResponse)}, - { 83, -1, -1, sizeof(::mavsdk::rpc::calibration::CalibrationResult)}, - { 91, -1, -1, sizeof(::mavsdk::rpc::calibration::ProgressData)}, + +static const ::_pbi::MigrationSchema + schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest)}, + { 8, 18, -1, sizeof(::mavsdk::rpc::calibration::CalibrateGyroResponse)}, + { 20, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest)}, + { 28, 38, -1, sizeof(::mavsdk::rpc::calibration::CalibrateAccelerometerResponse)}, + { 40, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest)}, + { 48, 58, -1, sizeof(::mavsdk::rpc::calibration::CalibrateMagnetometerResponse)}, + { 60, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest)}, + { 68, 78, -1, sizeof(::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse)}, + { 80, -1, -1, sizeof(::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest)}, + { 88, 98, -1, sizeof(::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse)}, + { 100, -1, -1, sizeof(::mavsdk::rpc::calibration::CancelRequest)}, + { 108, 117, -1, sizeof(::mavsdk::rpc::calibration::CancelResponse)}, + { 118, -1, -1, sizeof(::mavsdk::rpc::calibration::CalibrationResult)}, + { 128, -1, -1, sizeof(::mavsdk::rpc::calibration::ProgressData)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::mavsdk::rpc::calibration::_SubscribeCalibrateGyroRequest_default_instance_._instance, - &::mavsdk::rpc::calibration::_CalibrateGyroResponse_default_instance_._instance, - &::mavsdk::rpc::calibration::_SubscribeCalibrateAccelerometerRequest_default_instance_._instance, - &::mavsdk::rpc::calibration::_CalibrateAccelerometerResponse_default_instance_._instance, - &::mavsdk::rpc::calibration::_SubscribeCalibrateMagnetometerRequest_default_instance_._instance, - &::mavsdk::rpc::calibration::_CalibrateMagnetometerResponse_default_instance_._instance, - &::mavsdk::rpc::calibration::_SubscribeCalibrateLevelHorizonRequest_default_instance_._instance, - &::mavsdk::rpc::calibration::_CalibrateLevelHorizonResponse_default_instance_._instance, - &::mavsdk::rpc::calibration::_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_._instance, - &::mavsdk::rpc::calibration::_CalibrateGimbalAccelerometerResponse_default_instance_._instance, - &::mavsdk::rpc::calibration::_CancelRequest_default_instance_._instance, - &::mavsdk::rpc::calibration::_CancelResponse_default_instance_._instance, - &::mavsdk::rpc::calibration::_CalibrationResult_default_instance_._instance, - &::mavsdk::rpc::calibration::_ProgressData_default_instance_._instance, + &::mavsdk::rpc::calibration::_SubscribeCalibrateGyroRequest_default_instance_._instance, + &::mavsdk::rpc::calibration::_CalibrateGyroResponse_default_instance_._instance, + &::mavsdk::rpc::calibration::_SubscribeCalibrateAccelerometerRequest_default_instance_._instance, + &::mavsdk::rpc::calibration::_CalibrateAccelerometerResponse_default_instance_._instance, + &::mavsdk::rpc::calibration::_SubscribeCalibrateMagnetometerRequest_default_instance_._instance, + &::mavsdk::rpc::calibration::_CalibrateMagnetometerResponse_default_instance_._instance, + &::mavsdk::rpc::calibration::_SubscribeCalibrateLevelHorizonRequest_default_instance_._instance, + &::mavsdk::rpc::calibration::_CalibrateLevelHorizonResponse_default_instance_._instance, + &::mavsdk::rpc::calibration::_SubscribeCalibrateGimbalAccelerometerRequest_default_instance_._instance, + &::mavsdk::rpc::calibration::_CalibrateGimbalAccelerometerResponse_default_instance_._instance, + &::mavsdk::rpc::calibration::_CancelRequest_default_instance_._instance, + &::mavsdk::rpc::calibration::_CancelResponse_default_instance_._instance, + &::mavsdk::rpc::calibration::_CalibrationResult_default_instance_._instance, + &::mavsdk::rpc::calibration::_ProgressData_default_instance_._instance, }; - -const char descriptor_table_protodef_calibration_2fcalibration_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\035calibration/calibration.proto\022\026mavsdk." - "rpc.calibration\032\024mavsdk_options.proto\"\037\n" - "\035SubscribeCalibrateGyroRequest\"\233\001\n\025Calib" - "rateGyroResponse\022E\n\022calibration_result\030\001" - " \001(\0132).mavsdk.rpc.calibration.Calibratio" - "nResult\022;\n\rprogress_data\030\002 \001(\0132$.mavsdk." - "rpc.calibration.ProgressData\"(\n&Subscrib" - "eCalibrateAccelerometerRequest\"\244\001\n\036Calib" - "rateAccelerometerResponse\022E\n\022calibration" - "_result\030\001 \001(\0132).mavsdk.rpc.calibration.C" - "alibrationResult\022;\n\rprogress_data\030\002 \001(\0132" - "$.mavsdk.rpc.calibration.ProgressData\"\'\n" - "%SubscribeCalibrateMagnetometerRequest\"\243" - "\001\n\035CalibrateMagnetometerResponse\022E\n\022cali" - "bration_result\030\001 \001(\0132).mavsdk.rpc.calibr" - "ation.CalibrationResult\022;\n\rprogress_data" - "\030\002 \001(\0132$.mavsdk.rpc.calibration.Progress" - "Data\"\'\n%SubscribeCalibrateLevelHorizonRe" - "quest\"\243\001\n\035CalibrateLevelHorizonResponse\022" - "E\n\022calibration_result\030\001 \001(\0132).mavsdk.rpc" - ".calibration.CalibrationResult\022;\n\rprogre" - "ss_data\030\002 \001(\0132$.mavsdk.rpc.calibration.P" - "rogressData\".\n,SubscribeCalibrateGimbalA" - "ccelerometerRequest\"\252\001\n$CalibrateGimbalA" - "ccelerometerResponse\022E\n\022calibration_resu" - "lt\030\001 \001(\0132).mavsdk.rpc.calibration.Calibr" - "ationResult\022;\n\rprogress_data\030\002 \001(\0132$.mav" - "sdk.rpc.calibration.ProgressData\"\017\n\rCanc" - "elRequest\"W\n\016CancelResponse\022E\n\022calibrati" - "on_result\030\001 \001(\0132).mavsdk.rpc.calibration" - ".CalibrationResult\"\372\002\n\021CalibrationResult" - "\022@\n\006result\030\001 \001(\01620.mavsdk.rpc.calibratio" - "n.CalibrationResult.Result\022\022\n\nresult_str" - "\030\002 \001(\t\"\216\002\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000\022\022\n" - "\016RESULT_SUCCESS\020\001\022\017\n\013RESULT_NEXT\020\002\022\021\n\rRE" - "SULT_FAILED\020\003\022\024\n\020RESULT_NO_SYSTEM\020\004\022\033\n\027R" - "ESULT_CONNECTION_ERROR\020\005\022\017\n\013RESULT_BUSY\020" - "\006\022\031\n\025RESULT_COMMAND_DENIED\020\007\022\022\n\016RESULT_T" - "IMEOUT\020\010\022\024\n\020RESULT_CANCELLED\020\t\022\027\n\023RESULT" - "_FAILED_ARMED\020\n\022\026\n\022RESULT_UNSUPPORTED\020\013\"" - "\203\001\n\014ProgressData\022\037\n\014has_progress\030\001 \001(\010B\t" - "\202\265\030\005false\022\031\n\010progress\030\002 \001(\002B\007\202\265\030\003NaN\022\"\n\017" - "has_status_text\030\003 \001(\010B\t\202\265\030\005false\022\023\n\013stat" - "us_text\030\004 \001(\t2\254\007\n\022CalibrationService\022\212\001\n" - "\026SubscribeCalibrateGyro\0225.mavsdk.rpc.cal" - "ibration.SubscribeCalibrateGyroRequest\032-" - ".mavsdk.rpc.calibration.CalibrateGyroRes" - "ponse\"\010\200\265\030\000\210\265\030\0010\001\022\245\001\n\037SubscribeCalibrate" - "Accelerometer\022>.mavsdk.rpc.calibration.S" - "ubscribeCalibrateAccelerometerRequest\0326." - "mavsdk.rpc.calibration.CalibrateAccelero" - "meterResponse\"\010\200\265\030\000\210\265\030\0010\001\022\242\001\n\036SubscribeC" - "alibrateMagnetometer\022=.mavsdk.rpc.calibr" - "ation.SubscribeCalibrateMagnetometerRequ" - "est\0325.mavsdk.rpc.calibration.CalibrateMa" - "gnetometerResponse\"\010\200\265\030\000\210\265\030\0010\001\022\242\001\n\036Subsc" - "ribeCalibrateLevelHorizon\022=.mavsdk.rpc.c" - "alibration.SubscribeCalibrateLevelHorizo" - "nRequest\0325.mavsdk.rpc.calibration.Calibr" - "ateLevelHorizonResponse\"\010\200\265\030\000\210\265\030\0010\001\022\267\001\n%" - "SubscribeCalibrateGimbalAccelerometer\022D." - "mavsdk.rpc.calibration.SubscribeCalibrat" - "eGimbalAccelerometerRequest\032<.mavsdk.rpc" - ".calibration.CalibrateGimbalAcceleromete" - "rResponse\"\010\200\265\030\000\210\265\030\0010\001\022]\n\006Cancel\022%.mavsdk" - ".rpc.calibration.CancelRequest\032&.mavsdk." - "rpc.calibration.CancelResponse\"\004\200\265\030\001B)\n\025" - "io.mavsdk.calibrationB\020CalibrationProtob" - "\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_calibration_2fcalibration_2eproto_deps[1] = { - &::descriptor_table_mavsdk_5foptions_2eproto, +const char descriptor_table_protodef_calibration_2fcalibration_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + "\n\035calibration/calibration.proto\022\026mavsdk." + "rpc.calibration\032\024mavsdk_options.proto\"\037\n" + "\035SubscribeCalibrateGyroRequest\"\233\001\n\025Calib" + "rateGyroResponse\022E\n\022calibration_result\030\001" + " \001(\0132).mavsdk.rpc.calibration.Calibratio" + "nResult\022;\n\rprogress_data\030\002 \001(\0132$.mavsdk." + "rpc.calibration.ProgressData\"(\n&Subscrib" + "eCalibrateAccelerometerRequest\"\244\001\n\036Calib" + "rateAccelerometerResponse\022E\n\022calibration" + "_result\030\001 \001(\0132).mavsdk.rpc.calibration.C" + "alibrationResult\022;\n\rprogress_data\030\002 \001(\0132" + "$.mavsdk.rpc.calibration.ProgressData\"\'\n" + "%SubscribeCalibrateMagnetometerRequest\"\243" + "\001\n\035CalibrateMagnetometerResponse\022E\n\022cali" + "bration_result\030\001 \001(\0132).mavsdk.rpc.calibr" + "ation.CalibrationResult\022;\n\rprogress_data" + "\030\002 \001(\0132$.mavsdk.rpc.calibration.Progress" + "Data\"\'\n%SubscribeCalibrateLevelHorizonRe" + "quest\"\243\001\n\035CalibrateLevelHorizonResponse\022" + "E\n\022calibration_result\030\001 \001(\0132).mavsdk.rpc" + ".calibration.CalibrationResult\022;\n\rprogre" + "ss_data\030\002 \001(\0132$.mavsdk.rpc.calibration.P" + "rogressData\".\n,SubscribeCalibrateGimbalA" + "ccelerometerRequest\"\252\001\n$CalibrateGimbalA" + "ccelerometerResponse\022E\n\022calibration_resu" + "lt\030\001 \001(\0132).mavsdk.rpc.calibration.Calibr" + "ationResult\022;\n\rprogress_data\030\002 \001(\0132$.mav" + "sdk.rpc.calibration.ProgressData\"\017\n\rCanc" + "elRequest\"W\n\016CancelResponse\022E\n\022calibrati" + "on_result\030\001 \001(\0132).mavsdk.rpc.calibration" + ".CalibrationResult\"\372\002\n\021CalibrationResult" + "\022@\n\006result\030\001 \001(\01620.mavsdk.rpc.calibratio" + "n.CalibrationResult.Result\022\022\n\nresult_str" + "\030\002 \001(\t\"\216\002\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000\022\022\n" + "\016RESULT_SUCCESS\020\001\022\017\n\013RESULT_NEXT\020\002\022\021\n\rRE" + "SULT_FAILED\020\003\022\024\n\020RESULT_NO_SYSTEM\020\004\022\033\n\027R" + "ESULT_CONNECTION_ERROR\020\005\022\017\n\013RESULT_BUSY\020" + "\006\022\031\n\025RESULT_COMMAND_DENIED\020\007\022\022\n\016RESULT_T" + "IMEOUT\020\010\022\024\n\020RESULT_CANCELLED\020\t\022\027\n\023RESULT" + "_FAILED_ARMED\020\n\022\026\n\022RESULT_UNSUPPORTED\020\013\"" + "\203\001\n\014ProgressData\022\037\n\014has_progress\030\001 \001(\010B\t" + "\202\265\030\005false\022\031\n\010progress\030\002 \001(\002B\007\202\265\030\003NaN\022\"\n\017" + "has_status_text\030\003 \001(\010B\t\202\265\030\005false\022\023\n\013stat" + "us_text\030\004 \001(\t2\254\007\n\022CalibrationService\022\212\001\n" + "\026SubscribeCalibrateGyro\0225.mavsdk.rpc.cal" + "ibration.SubscribeCalibrateGyroRequest\032-" + ".mavsdk.rpc.calibration.CalibrateGyroRes" + "ponse\"\010\200\265\030\000\210\265\030\0010\001\022\245\001\n\037SubscribeCalibrate" + "Accelerometer\022>.mavsdk.rpc.calibration.S" + "ubscribeCalibrateAccelerometerRequest\0326." + "mavsdk.rpc.calibration.CalibrateAccelero" + "meterResponse\"\010\200\265\030\000\210\265\030\0010\001\022\242\001\n\036SubscribeC" + "alibrateMagnetometer\022=.mavsdk.rpc.calibr" + "ation.SubscribeCalibrateMagnetometerRequ" + "est\0325.mavsdk.rpc.calibration.CalibrateMa" + "gnetometerResponse\"\010\200\265\030\000\210\265\030\0010\001\022\242\001\n\036Subsc" + "ribeCalibrateLevelHorizon\022=.mavsdk.rpc.c" + "alibration.SubscribeCalibrateLevelHorizo" + "nRequest\0325.mavsdk.rpc.calibration.Calibr" + "ateLevelHorizonResponse\"\010\200\265\030\000\210\265\030\0010\001\022\267\001\n%" + "SubscribeCalibrateGimbalAccelerometer\022D." + "mavsdk.rpc.calibration.SubscribeCalibrat" + "eGimbalAccelerometerRequest\032<.mavsdk.rpc" + ".calibration.CalibrateGimbalAcceleromete" + "rResponse\"\010\200\265\030\000\210\265\030\0010\001\022]\n\006Cancel\022%.mavsdk" + ".rpc.calibration.CancelRequest\032&.mavsdk." + "rpc.calibration.CancelResponse\"\004\200\265\030\001B)\n\025" + "io.mavsdk.calibrationB\020CalibrationProtob" + "\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_calibration_2fcalibration_2eproto_deps[1] = + { + &::descriptor_table_mavsdk_5foptions_2eproto, }; -static ::_pbi::once_flag descriptor_table_calibration_2fcalibration_2eproto_once; +static ::absl::once_flag descriptor_table_calibration_2fcalibration_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_calibration_2fcalibration_2eproto = { - false, false, 2727, descriptor_table_protodef_calibration_2fcalibration_2eproto, + false, + false, + 2727, + descriptor_table_protodef_calibration_2fcalibration_2eproto, "calibration/calibration.proto", - &descriptor_table_calibration_2fcalibration_2eproto_once, descriptor_table_calibration_2fcalibration_2eproto_deps, 1, 14, - schemas, file_default_instances, TableStruct_calibration_2fcalibration_2eproto::offsets, - file_level_metadata_calibration_2fcalibration_2eproto, file_level_enum_descriptors_calibration_2fcalibration_2eproto, + &descriptor_table_calibration_2fcalibration_2eproto_once, + descriptor_table_calibration_2fcalibration_2eproto_deps, + 1, + 14, + schemas, + file_default_instances, + TableStruct_calibration_2fcalibration_2eproto::offsets, + file_level_metadata_calibration_2fcalibration_2eproto, + file_level_enum_descriptors_calibration_2fcalibration_2eproto, file_level_service_descriptors_calibration_2fcalibration_2eproto, }; + +// This function exists to be marked as weak. +// It can significantly speed up compilation by breaking up LLVM's SCC +// in the .pb.cc translation units. Large translation units see a +// reduction of more than 35% of walltime for optimized builds. Without +// the weak attribute all the messages in the file, including all the +// vtables and everything they use become part of the same SCC through +// a cycle like: +// GetMetadata -> descriptor table -> default instances -> +// vtables -> GetMetadata +// By adding a weak function here we break the connection from the +// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_calibration_2fcalibration_2eproto_getter() { return &descriptor_table_calibration_2fcalibration_2eproto; } - // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_calibration_2fcalibration_2eproto(&descriptor_table_calibration_2fcalibration_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_calibration_2fcalibration_2eproto(&descriptor_table_calibration_2fcalibration_2eproto); namespace mavsdk { namespace rpc { namespace calibration { @@ -454,8 +566,9 @@ bool CalibrationResult_Result_IsValid(int value) { return false; } } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr CalibrationResult_Result CalibrationResult::RESULT_UNKNOWN; constexpr CalibrationResult_Result CalibrationResult::RESULT_SUCCESS; constexpr CalibrationResult_Result CalibrationResult::RESULT_NEXT; @@ -471,21 +584,22 @@ constexpr CalibrationResult_Result CalibrationResult::RESULT_UNSUPPORTED; constexpr CalibrationResult_Result CalibrationResult::Result_MIN; constexpr CalibrationResult_Result CalibrationResult::Result_MAX; constexpr int CalibrationResult::Result_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== class SubscribeCalibrateGyroRequest::_Internal { public: }; -SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) } SubscribeCalibrateGyroRequest::SubscribeCalibrateGyroRequest(const SubscribeCalibrateGyroRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeCalibrateGyroRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) } @@ -511,50 +625,63 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCalibrateGyroRequest::GetMetadata() c &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[0]); } - // =================================================================== class CalibrateGyroResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_._has_bits_); static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateGyroResponse* msg); + static void set_has_calibration_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateGyroResponse* msg); + static void set_has_progress_data(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } }; const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGyroResponse::_Internal::calibration_result(const CalibrateGyroResponse* msg) { - return *msg->calibration_result_; + return *msg->_impl_.calibration_result_; } const ::mavsdk::rpc::calibration::ProgressData& CalibrateGyroResponse::_Internal::progress_data(const CalibrateGyroResponse* msg) { - return *msg->progress_data_; + return *msg->_impl_.progress_data_; } -CalibrateGyroResponse::CalibrateGyroResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +CalibrateGyroResponse::CalibrateGyroResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateGyroResponse) } CalibrateGyroResponse::CalibrateGyroResponse(const CalibrateGyroResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CalibrateGyroResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr} + , decltype(_impl_.progress_data_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_calibration_result()) { - calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from.calibration_result_); - } else { - calibration_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); } - if (from._internal_has_progress_data()) { - progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from.progress_data_); - } else { - progress_data_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from._impl_.progress_data_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateGyroResponse) } -inline void CalibrateGyroResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&calibration_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&progress_data_) - - reinterpret_cast(&calibration_result_)) + sizeof(progress_data_)); +inline void CalibrateGyroResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr} + , decltype(_impl_.progress_data_){nullptr} + }; } CalibrateGyroResponse::~CalibrateGyroResponse() { @@ -567,53 +694,60 @@ CalibrateGyroResponse::~CalibrateGyroResponse() { } inline void CalibrateGyroResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete calibration_result_; - if (this != internal_default_instance()) delete progress_data_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.calibration_result_; + if (this != internal_default_instance()) delete _impl_.progress_data_; } void CalibrateGyroResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CalibrateGyroResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; - } - calibration_result_ = nullptr; - if (GetArenaForAllocation() == nullptr && progress_data_ != nullptr) { - delete progress_data_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); + } } - progress_data_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CalibrateGyroResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.calibration.ProgressData progress_data = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_progress_data(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -631,6 +765,7 @@ const char* CalibrateGyroResponse::_InternalParse(const char* ptr, ::_pbi::Parse CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -638,21 +773,22 @@ const char* CalibrateGyroResponse::_InternalParse(const char* ptr, ::_pbi::Parse #undef CHK_ } -uint8_t* CalibrateGyroResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* CalibrateGyroResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::calibration_result(this), _Internal::calibration_result(this).GetCachedSize(), target, stream); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (this->_internal_has_progress_data()) { + if (cached_has_bits & 0x00000002u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::progress_data(this), _Internal::progress_data(this).GetCachedSize(), target, stream); @@ -666,57 +802,61 @@ uint8_t* CalibrateGyroResponse::_InternalSerialize( return target; } -size_t CalibrateGyroResponse::ByteSizeLong() const { +::size_t CalibrateGyroResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *calibration_result_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.calibration_result_); + } - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (this->_internal_has_progress_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *progress_data_); - } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.progress_data_); + } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrateGyroResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CalibrateGyroResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrateGyroResponse::GetClassData() const { return &_class_data_; } -void CalibrateGyroResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void CalibrateGyroResponse::MergeFrom(const CalibrateGyroResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateGyroResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void CalibrateGyroResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateGyroResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_calibration_result()) { - _internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom(from._internal_calibration_result()); - } - if (from._internal_has_progress_data()) { - _internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom(from._internal_progress_data()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( + from._internal_calibration_result()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( + from._internal_progress_data()); + } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CalibrateGyroResponse::CopyFrom(const CalibrateGyroResponse& from) { @@ -733,12 +873,13 @@ bool CalibrateGyroResponse::IsInitialized() const { void CalibrateGyroResponse::InternalSwap(CalibrateGyroResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, progress_data_) - + sizeof(CalibrateGyroResponse::progress_data_) - - PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, calibration_result_)>( - reinterpret_cast(&calibration_result_), - reinterpret_cast(&other->calibration_result_)); + PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.progress_data_) + + sizeof(CalibrateGyroResponse::_impl_.progress_data_) + - PROTOBUF_FIELD_OFFSET(CalibrateGyroResponse, _impl_.calibration_result_)>( + reinterpret_cast(&_impl_.calibration_result_), + reinterpret_cast(&other->_impl_.calibration_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CalibrateGyroResponse::GetMetadata() const { @@ -746,20 +887,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CalibrateGyroResponse::GetMetadata() const { &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[1]); } - // =================================================================== class SubscribeCalibrateAccelerometerRequest::_Internal { public: }; -SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) } SubscribeCalibrateAccelerometerRequest::SubscribeCalibrateAccelerometerRequest(const SubscribeCalibrateAccelerometerRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeCalibrateAccelerometerRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) } @@ -785,50 +925,63 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCalibrateAccelerometerRequest::GetMet &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[2]); } - // =================================================================== class CalibrateAccelerometerResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_._has_bits_); static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateAccelerometerResponse* msg); + static void set_has_calibration_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateAccelerometerResponse* msg); + static void set_has_progress_data(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } }; const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateAccelerometerResponse::_Internal::calibration_result(const CalibrateAccelerometerResponse* msg) { - return *msg->calibration_result_; + return *msg->_impl_.calibration_result_; } const ::mavsdk::rpc::calibration::ProgressData& CalibrateAccelerometerResponse::_Internal::progress_data(const CalibrateAccelerometerResponse* msg) { - return *msg->progress_data_; + return *msg->_impl_.progress_data_; } -CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) } CalibrateAccelerometerResponse::CalibrateAccelerometerResponse(const CalibrateAccelerometerResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CalibrateAccelerometerResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr} + , decltype(_impl_.progress_data_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_calibration_result()) { - calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from.calibration_result_); - } else { - calibration_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); } - if (from._internal_has_progress_data()) { - progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from.progress_data_); - } else { - progress_data_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from._impl_.progress_data_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) } -inline void CalibrateAccelerometerResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&calibration_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&progress_data_) - - reinterpret_cast(&calibration_result_)) + sizeof(progress_data_)); +inline void CalibrateAccelerometerResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr} + , decltype(_impl_.progress_data_){nullptr} + }; } CalibrateAccelerometerResponse::~CalibrateAccelerometerResponse() { @@ -841,53 +994,60 @@ CalibrateAccelerometerResponse::~CalibrateAccelerometerResponse() { } inline void CalibrateAccelerometerResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete calibration_result_; - if (this != internal_default_instance()) delete progress_data_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.calibration_result_; + if (this != internal_default_instance()) delete _impl_.progress_data_; } void CalibrateAccelerometerResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CalibrateAccelerometerResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; - } - calibration_result_ = nullptr; - if (GetArenaForAllocation() == nullptr && progress_data_ != nullptr) { - delete progress_data_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); + } } - progress_data_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CalibrateAccelerometerResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.calibration.ProgressData progress_data = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_progress_data(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -905,6 +1065,7 @@ const char* CalibrateAccelerometerResponse::_InternalParse(const char* ptr, ::_p CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -912,21 +1073,22 @@ const char* CalibrateAccelerometerResponse::_InternalParse(const char* ptr, ::_p #undef CHK_ } -uint8_t* CalibrateAccelerometerResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* CalibrateAccelerometerResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::calibration_result(this), _Internal::calibration_result(this).GetCachedSize(), target, stream); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (this->_internal_has_progress_data()) { + if (cached_has_bits & 0x00000002u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::progress_data(this), _Internal::progress_data(this).GetCachedSize(), target, stream); @@ -940,57 +1102,61 @@ uint8_t* CalibrateAccelerometerResponse::_InternalSerialize( return target; } -size_t CalibrateAccelerometerResponse::ByteSizeLong() const { +::size_t CalibrateAccelerometerResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *calibration_result_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.calibration_result_); + } - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (this->_internal_has_progress_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *progress_data_); - } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.progress_data_); + } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrateAccelerometerResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CalibrateAccelerometerResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrateAccelerometerResponse::GetClassData() const { return &_class_data_; } -void CalibrateAccelerometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void CalibrateAccelerometerResponse::MergeFrom(const CalibrateAccelerometerResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void CalibrateAccelerometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_calibration_result()) { - _internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom(from._internal_calibration_result()); - } - if (from._internal_has_progress_data()) { - _internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom(from._internal_progress_data()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( + from._internal_calibration_result()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( + from._internal_progress_data()); + } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CalibrateAccelerometerResponse::CopyFrom(const CalibrateAccelerometerResponse& from) { @@ -1007,12 +1173,13 @@ bool CalibrateAccelerometerResponse::IsInitialized() const { void CalibrateAccelerometerResponse::InternalSwap(CalibrateAccelerometerResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, progress_data_) - + sizeof(CalibrateAccelerometerResponse::progress_data_) - - PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, calibration_result_)>( - reinterpret_cast(&calibration_result_), - reinterpret_cast(&other->calibration_result_)); + PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.progress_data_) + + sizeof(CalibrateAccelerometerResponse::_impl_.progress_data_) + - PROTOBUF_FIELD_OFFSET(CalibrateAccelerometerResponse, _impl_.calibration_result_)>( + reinterpret_cast(&_impl_.calibration_result_), + reinterpret_cast(&other->_impl_.calibration_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CalibrateAccelerometerResponse::GetMetadata() const { @@ -1020,20 +1187,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CalibrateAccelerometerResponse::GetMetadata() &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[3]); } - // =================================================================== class SubscribeCalibrateMagnetometerRequest::_Internal { public: }; -SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) } SubscribeCalibrateMagnetometerRequest::SubscribeCalibrateMagnetometerRequest(const SubscribeCalibrateMagnetometerRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeCalibrateMagnetometerRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) } @@ -1059,50 +1225,63 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCalibrateMagnetometerRequest::GetMeta &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[4]); } - // =================================================================== class CalibrateMagnetometerResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_._has_bits_); static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateMagnetometerResponse* msg); + static void set_has_calibration_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateMagnetometerResponse* msg); + static void set_has_progress_data(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } }; const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateMagnetometerResponse::_Internal::calibration_result(const CalibrateMagnetometerResponse* msg) { - return *msg->calibration_result_; + return *msg->_impl_.calibration_result_; } const ::mavsdk::rpc::calibration::ProgressData& CalibrateMagnetometerResponse::_Internal::progress_data(const CalibrateMagnetometerResponse* msg) { - return *msg->progress_data_; + return *msg->_impl_.progress_data_; } -CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) } CalibrateMagnetometerResponse::CalibrateMagnetometerResponse(const CalibrateMagnetometerResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CalibrateMagnetometerResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr} + , decltype(_impl_.progress_data_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_calibration_result()) { - calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from.calibration_result_); - } else { - calibration_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); } - if (from._internal_has_progress_data()) { - progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from.progress_data_); - } else { - progress_data_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from._impl_.progress_data_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) } -inline void CalibrateMagnetometerResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&calibration_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&progress_data_) - - reinterpret_cast(&calibration_result_)) + sizeof(progress_data_)); +inline void CalibrateMagnetometerResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr} + , decltype(_impl_.progress_data_){nullptr} + }; } CalibrateMagnetometerResponse::~CalibrateMagnetometerResponse() { @@ -1115,53 +1294,60 @@ CalibrateMagnetometerResponse::~CalibrateMagnetometerResponse() { } inline void CalibrateMagnetometerResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete calibration_result_; - if (this != internal_default_instance()) delete progress_data_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.calibration_result_; + if (this != internal_default_instance()) delete _impl_.progress_data_; } void CalibrateMagnetometerResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CalibrateMagnetometerResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; - } - calibration_result_ = nullptr; - if (GetArenaForAllocation() == nullptr && progress_data_ != nullptr) { - delete progress_data_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); + } } - progress_data_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CalibrateMagnetometerResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.calibration.ProgressData progress_data = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_progress_data(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1179,6 +1365,7 @@ const char* CalibrateMagnetometerResponse::_InternalParse(const char* ptr, ::_pb CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1186,21 +1373,22 @@ const char* CalibrateMagnetometerResponse::_InternalParse(const char* ptr, ::_pb #undef CHK_ } -uint8_t* CalibrateMagnetometerResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* CalibrateMagnetometerResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::calibration_result(this), _Internal::calibration_result(this).GetCachedSize(), target, stream); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (this->_internal_has_progress_data()) { + if (cached_has_bits & 0x00000002u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::progress_data(this), _Internal::progress_data(this).GetCachedSize(), target, stream); @@ -1214,57 +1402,61 @@ uint8_t* CalibrateMagnetometerResponse::_InternalSerialize( return target; } -size_t CalibrateMagnetometerResponse::ByteSizeLong() const { +::size_t CalibrateMagnetometerResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *calibration_result_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.calibration_result_); + } - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (this->_internal_has_progress_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *progress_data_); - } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.progress_data_); + } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrateMagnetometerResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CalibrateMagnetometerResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrateMagnetometerResponse::GetClassData() const { return &_class_data_; } -void CalibrateMagnetometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void CalibrateMagnetometerResponse::MergeFrom(const CalibrateMagnetometerResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void CalibrateMagnetometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_calibration_result()) { - _internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom(from._internal_calibration_result()); - } - if (from._internal_has_progress_data()) { - _internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom(from._internal_progress_data()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( + from._internal_calibration_result()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( + from._internal_progress_data()); + } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CalibrateMagnetometerResponse::CopyFrom(const CalibrateMagnetometerResponse& from) { @@ -1281,12 +1473,13 @@ bool CalibrateMagnetometerResponse::IsInitialized() const { void CalibrateMagnetometerResponse::InternalSwap(CalibrateMagnetometerResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, progress_data_) - + sizeof(CalibrateMagnetometerResponse::progress_data_) - - PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, calibration_result_)>( - reinterpret_cast(&calibration_result_), - reinterpret_cast(&other->calibration_result_)); + PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.progress_data_) + + sizeof(CalibrateMagnetometerResponse::_impl_.progress_data_) + - PROTOBUF_FIELD_OFFSET(CalibrateMagnetometerResponse, _impl_.calibration_result_)>( + reinterpret_cast(&_impl_.calibration_result_), + reinterpret_cast(&other->_impl_.calibration_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CalibrateMagnetometerResponse::GetMetadata() const { @@ -1294,20 +1487,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CalibrateMagnetometerResponse::GetMetadata() c &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[5]); } - // =================================================================== class SubscribeCalibrateLevelHorizonRequest::_Internal { public: }; -SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) } SubscribeCalibrateLevelHorizonRequest::SubscribeCalibrateLevelHorizonRequest(const SubscribeCalibrateLevelHorizonRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeCalibrateLevelHorizonRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) } @@ -1333,50 +1525,63 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCalibrateLevelHorizonRequest::GetMeta &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[6]); } - // =================================================================== class CalibrateLevelHorizonResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_._has_bits_); static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateLevelHorizonResponse* msg); + static void set_has_calibration_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateLevelHorizonResponse* msg); + static void set_has_progress_data(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } }; const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateLevelHorizonResponse::_Internal::calibration_result(const CalibrateLevelHorizonResponse* msg) { - return *msg->calibration_result_; + return *msg->_impl_.calibration_result_; } const ::mavsdk::rpc::calibration::ProgressData& CalibrateLevelHorizonResponse::_Internal::progress_data(const CalibrateLevelHorizonResponse* msg) { - return *msg->progress_data_; + return *msg->_impl_.progress_data_; } -CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) } CalibrateLevelHorizonResponse::CalibrateLevelHorizonResponse(const CalibrateLevelHorizonResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CalibrateLevelHorizonResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr} + , decltype(_impl_.progress_data_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_calibration_result()) { - calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from.calibration_result_); - } else { - calibration_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); } - if (from._internal_has_progress_data()) { - progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from.progress_data_); - } else { - progress_data_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from._impl_.progress_data_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) } -inline void CalibrateLevelHorizonResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&calibration_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&progress_data_) - - reinterpret_cast(&calibration_result_)) + sizeof(progress_data_)); +inline void CalibrateLevelHorizonResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr} + , decltype(_impl_.progress_data_){nullptr} + }; } CalibrateLevelHorizonResponse::~CalibrateLevelHorizonResponse() { @@ -1389,53 +1594,60 @@ CalibrateLevelHorizonResponse::~CalibrateLevelHorizonResponse() { } inline void CalibrateLevelHorizonResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete calibration_result_; - if (this != internal_default_instance()) delete progress_data_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.calibration_result_; + if (this != internal_default_instance()) delete _impl_.progress_data_; } void CalibrateLevelHorizonResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CalibrateLevelHorizonResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; - } - calibration_result_ = nullptr; - if (GetArenaForAllocation() == nullptr && progress_data_ != nullptr) { - delete progress_data_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); + } } - progress_data_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CalibrateLevelHorizonResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.calibration.ProgressData progress_data = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_progress_data(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1453,6 +1665,7 @@ const char* CalibrateLevelHorizonResponse::_InternalParse(const char* ptr, ::_pb CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1460,21 +1673,22 @@ const char* CalibrateLevelHorizonResponse::_InternalParse(const char* ptr, ::_pb #undef CHK_ } -uint8_t* CalibrateLevelHorizonResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* CalibrateLevelHorizonResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::calibration_result(this), _Internal::calibration_result(this).GetCachedSize(), target, stream); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (this->_internal_has_progress_data()) { + if (cached_has_bits & 0x00000002u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::progress_data(this), _Internal::progress_data(this).GetCachedSize(), target, stream); @@ -1488,57 +1702,61 @@ uint8_t* CalibrateLevelHorizonResponse::_InternalSerialize( return target; } -size_t CalibrateLevelHorizonResponse::ByteSizeLong() const { +::size_t CalibrateLevelHorizonResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *calibration_result_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.calibration_result_); + } - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (this->_internal_has_progress_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *progress_data_); - } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.progress_data_); + } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrateLevelHorizonResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CalibrateLevelHorizonResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrateLevelHorizonResponse::GetClassData() const { return &_class_data_; } -void CalibrateLevelHorizonResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void CalibrateLevelHorizonResponse::MergeFrom(const CalibrateLevelHorizonResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void CalibrateLevelHorizonResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_calibration_result()) { - _internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom(from._internal_calibration_result()); - } - if (from._internal_has_progress_data()) { - _internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom(from._internal_progress_data()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( + from._internal_calibration_result()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( + from._internal_progress_data()); + } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CalibrateLevelHorizonResponse::CopyFrom(const CalibrateLevelHorizonResponse& from) { @@ -1555,12 +1773,13 @@ bool CalibrateLevelHorizonResponse::IsInitialized() const { void CalibrateLevelHorizonResponse::InternalSwap(CalibrateLevelHorizonResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, progress_data_) - + sizeof(CalibrateLevelHorizonResponse::progress_data_) - - PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, calibration_result_)>( - reinterpret_cast(&calibration_result_), - reinterpret_cast(&other->calibration_result_)); + PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.progress_data_) + + sizeof(CalibrateLevelHorizonResponse::_impl_.progress_data_) + - PROTOBUF_FIELD_OFFSET(CalibrateLevelHorizonResponse, _impl_.calibration_result_)>( + reinterpret_cast(&_impl_.calibration_result_), + reinterpret_cast(&other->_impl_.calibration_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CalibrateLevelHorizonResponse::GetMetadata() const { @@ -1568,20 +1787,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CalibrateLevelHorizonResponse::GetMetadata() c &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[7]); } - // =================================================================== class SubscribeCalibrateGimbalAccelerometerRequest::_Internal { public: }; -SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) } SubscribeCalibrateGimbalAccelerometerRequest::SubscribeCalibrateGimbalAccelerometerRequest(const SubscribeCalibrateGimbalAccelerometerRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeCalibrateGimbalAccelerometerRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) } @@ -1607,50 +1825,63 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCalibrateGimbalAccelerometerRequest:: &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[8]); } - // =================================================================== class CalibrateGimbalAccelerometerResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_._has_bits_); static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CalibrateGimbalAccelerometerResponse* msg); + static void set_has_calibration_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } static const ::mavsdk::rpc::calibration::ProgressData& progress_data(const CalibrateGimbalAccelerometerResponse* msg); + static void set_has_progress_data(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } }; const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGimbalAccelerometerResponse::_Internal::calibration_result(const CalibrateGimbalAccelerometerResponse* msg) { - return *msg->calibration_result_; + return *msg->_impl_.calibration_result_; } const ::mavsdk::rpc::calibration::ProgressData& CalibrateGimbalAccelerometerResponse::_Internal::progress_data(const CalibrateGimbalAccelerometerResponse* msg) { - return *msg->progress_data_; + return *msg->_impl_.progress_data_; } -CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) } CalibrateGimbalAccelerometerResponse::CalibrateGimbalAccelerometerResponse(const CalibrateGimbalAccelerometerResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CalibrateGimbalAccelerometerResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr} + , decltype(_impl_.progress_data_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_calibration_result()) { - calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from.calibration_result_); - } else { - calibration_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); } - if (from._internal_has_progress_data()) { - progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from.progress_data_); - } else { - progress_data_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.progress_data_ = new ::mavsdk::rpc::calibration::ProgressData(*from._impl_.progress_data_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) } -inline void CalibrateGimbalAccelerometerResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&calibration_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&progress_data_) - - reinterpret_cast(&calibration_result_)) + sizeof(progress_data_)); +inline void CalibrateGimbalAccelerometerResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr} + , decltype(_impl_.progress_data_){nullptr} + }; } CalibrateGimbalAccelerometerResponse::~CalibrateGimbalAccelerometerResponse() { @@ -1663,53 +1894,60 @@ CalibrateGimbalAccelerometerResponse::~CalibrateGimbalAccelerometerResponse() { } inline void CalibrateGimbalAccelerometerResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete calibration_result_; - if (this != internal_default_instance()) delete progress_data_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.calibration_result_; + if (this != internal_default_instance()) delete _impl_.progress_data_; } void CalibrateGimbalAccelerometerResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CalibrateGimbalAccelerometerResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; - } - calibration_result_ = nullptr; - if (GetArenaForAllocation() == nullptr && progress_data_ != nullptr) { - delete progress_data_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.progress_data_ != nullptr); + _impl_.progress_data_->Clear(); + } } - progress_data_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CalibrateGimbalAccelerometerResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.calibration.ProgressData progress_data = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_progress_data(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1727,6 +1965,7 @@ const char* CalibrateGimbalAccelerometerResponse::_InternalParse(const char* ptr CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1734,21 +1973,22 @@ const char* CalibrateGimbalAccelerometerResponse::_InternalParse(const char* ptr #undef CHK_ } -uint8_t* CalibrateGimbalAccelerometerResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* CalibrateGimbalAccelerometerResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::calibration_result(this), _Internal::calibration_result(this).GetCachedSize(), target, stream); } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (this->_internal_has_progress_data()) { + if (cached_has_bits & 0x00000002u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::progress_data(this), _Internal::progress_data(this).GetCachedSize(), target, stream); @@ -1762,57 +2002,61 @@ uint8_t* CalibrateGimbalAccelerometerResponse::_InternalSerialize( return target; } -size_t CalibrateGimbalAccelerometerResponse::ByteSizeLong() const { +::size_t CalibrateGimbalAccelerometerResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *calibration_result_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.calibration_result_); + } - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; - if (this->_internal_has_progress_data()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *progress_data_); - } + // .mavsdk.rpc.calibration.ProgressData progress_data = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.progress_data_); + } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrateGimbalAccelerometerResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CalibrateGimbalAccelerometerResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrateGimbalAccelerometerResponse::GetClassData() const { return &_class_data_; } -void CalibrateGimbalAccelerometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void CalibrateGimbalAccelerometerResponse::MergeFrom(const CalibrateGimbalAccelerometerResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void CalibrateGimbalAccelerometerResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_calibration_result()) { - _internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom(from._internal_calibration_result()); - } - if (from._internal_has_progress_data()) { - _internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom(from._internal_progress_data()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( + from._internal_calibration_result()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_progress_data()->::mavsdk::rpc::calibration::ProgressData::MergeFrom( + from._internal_progress_data()); + } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CalibrateGimbalAccelerometerResponse::CopyFrom(const CalibrateGimbalAccelerometerResponse& from) { @@ -1829,12 +2073,13 @@ bool CalibrateGimbalAccelerometerResponse::IsInitialized() const { void CalibrateGimbalAccelerometerResponse::InternalSwap(CalibrateGimbalAccelerometerResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, progress_data_) - + sizeof(CalibrateGimbalAccelerometerResponse::progress_data_) - - PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, calibration_result_)>( - reinterpret_cast(&calibration_result_), - reinterpret_cast(&other->calibration_result_)); + PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.progress_data_) + + sizeof(CalibrateGimbalAccelerometerResponse::_impl_.progress_data_) + - PROTOBUF_FIELD_OFFSET(CalibrateGimbalAccelerometerResponse, _impl_.calibration_result_)>( + reinterpret_cast(&_impl_.calibration_result_), + reinterpret_cast(&other->_impl_.calibration_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CalibrateGimbalAccelerometerResponse::GetMetadata() const { @@ -1842,20 +2087,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CalibrateGimbalAccelerometerResponse::GetMetad &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[9]); } - // =================================================================== class CancelRequest::_Internal { public: }; -CancelRequest::CancelRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +CancelRequest::CancelRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CancelRequest) } CancelRequest::CancelRequest(const CancelRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + CancelRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CancelRequest) } @@ -1881,37 +2125,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CancelRequest::GetMetadata() const { &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[10]); } - // =================================================================== class CancelResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CancelResponse, _impl_._has_bits_); static const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result(const CancelResponse* msg); + static void set_has_calibration_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::calibration::CalibrationResult& CancelResponse::_Internal::calibration_result(const CancelResponse* msg) { - return *msg->calibration_result_; + return *msg->_impl_.calibration_result_; } -CancelResponse::CancelResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +CancelResponse::CancelResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CancelResponse) } CancelResponse::CancelResponse(const CancelResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CancelResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_calibration_result()) { - calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from.calibration_result_); - } else { - calibration_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.calibration_result_ = new ::mavsdk::rpc::calibration::CalibrationResult(*from._impl_.calibration_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CancelResponse) } -inline void CancelResponse::SharedCtor() { -calibration_result_ = nullptr; +inline void CancelResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.calibration_result_){nullptr} + }; } CancelResponse::~CancelResponse() { @@ -1924,40 +2181,44 @@ CancelResponse::~CancelResponse() { } inline void CancelResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete calibration_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.calibration_result_; } void CancelResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CancelResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CancelResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.calibration_result_ != nullptr); + _impl_.calibration_result_->Clear(); } - calibration_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CancelResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_calibration_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1975,6 +2236,7 @@ const char* CancelResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1982,14 +2244,15 @@ const char* CancelResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* CancelResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* CancelResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CancelResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::calibration_result(this), _Internal::calibration_result(this).GetCachedSize(), target, stream); @@ -2003,47 +2266,45 @@ uint8_t* CancelResponse::_InternalSerialize( return target; } -size_t CancelResponse::ByteSizeLong() const { +::size_t CancelResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CancelResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; - if (this->_internal_has_calibration_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *calibration_result_); + *_impl_.calibration_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CancelResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CancelResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CancelResponse::GetClassData() const { return &_class_data_; } -void CancelResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void CancelResponse::MergeFrom(const CancelResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CancelResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void CancelResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CancelResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_calibration_result()) { - _internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom(from._internal_calibration_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_calibration_result()->::mavsdk::rpc::calibration::CalibrationResult::MergeFrom( + from._internal_calibration_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CancelResponse::CopyFrom(const CancelResponse& from) { @@ -2060,7 +2321,8 @@ bool CancelResponse::IsInitialized() const { void CancelResponse::InternalSwap(CancelResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(calibration_result_, other->calibration_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.calibration_result_, other->_impl_.calibration_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata CancelResponse::GetMetadata() const { @@ -2068,40 +2330,52 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CancelResponse::GetMetadata() const { &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[11]); } - // =================================================================== class CalibrationResult::_Internal { public: }; -CalibrationResult::CalibrationResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +CalibrationResult::CalibrationResult(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.CalibrationResult) } CalibrationResult::CalibrationResult(const CalibrationResult& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CalibrationResult* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.result_str_) {} + + , decltype(_impl_.result_) {} + + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - result_str_.InitDefault(); + _impl_.result_str_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.result_str_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_result_str().empty()) { - result_str_.Set(from._internal_result_str(), - GetArenaForAllocation()); + _this->_impl_.result_str_.Set(from._internal_result_str(), _this->GetArenaForAllocation()); } - result_ = from.result_; + _this->_impl_.result_ = from._impl_.result_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.CalibrationResult) } -inline void CalibrationResult::SharedCtor() { -result_str_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - result_str_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -result_ = 0; +inline void CalibrationResult::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.result_str_) {} + + , decltype(_impl_.result_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.result_str_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.result_str_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } CalibrationResult::~CalibrationResult() { @@ -2114,49 +2388,51 @@ CalibrationResult::~CalibrationResult() { } inline void CalibrationResult::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - result_str_.Destroy(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.result_str_.Destroy(); } void CalibrationResult::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CalibrationResult::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.CalibrationResult) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - result_str_.ClearToEmpty(); - result_ = 0; + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CalibrationResult::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_result(static_cast<::mavsdk::rpc::calibration::CalibrationResult_Result>(val)); - } else + } else { goto handle_unusual; + } continue; // string result_str = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { auto str = _internal_mutable_result_str(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.calibration.CalibrationResult.result_str")); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2181,27 +2457,25 @@ const char* CalibrationResult::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* CalibrationResult::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* CalibrationResult::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.CalibrationResult) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; if (this->_internal_result() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); + 1, this->_internal_result(), target); } // string result_str = 2; if (!this->_internal_result_str().empty()) { + const std::string& _s = this->_internal_result_str(); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_result_str().data(), static_cast(this->_internal_result_str().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.calibration.CalibrationResult.result_str"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_result_str(), target); + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.calibration.CalibrationResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2212,56 +2486,51 @@ uint8_t* CalibrationResult::_InternalSerialize( return target; } -size_t CalibrationResult::ByteSizeLong() const { +::size_t CalibrationResult::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.CalibrationResult) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string result_str = 2; if (!this->_internal_result_str().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_result_str()); + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_result_str()); } // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; if (this->_internal_result() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalibrationResult::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CalibrationResult::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalibrationResult::GetClassData() const { return &_class_data_; } -void CalibrationResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void CalibrationResult::MergeFrom(const CalibrationResult& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrationResult) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void CalibrationResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.CalibrationResult) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_result_str().empty()) { - _internal_set_result_str(from._internal_result_str()); + _this->_internal_set_result_str(from._internal_result_str()); } if (from._internal_result() != 0) { - _internal_set_result(from._internal_result()); + _this->_internal_set_result(from._internal_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CalibrationResult::CopyFrom(const CalibrationResult& from) { @@ -2280,11 +2549,9 @@ void CalibrationResult::InternalSwap(CalibrationResult* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &result_str_, lhs_arena, - &other->result_str_, rhs_arena - ); - swap(result_, other->result_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, lhs_arena, + &other->_impl_.result_str_, rhs_arena); + swap(_impl_.result_, other->_impl_.result_); } ::PROTOBUF_NAMESPACE_ID::Metadata CalibrationResult::GetMetadata() const { @@ -2292,45 +2559,62 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CalibrationResult::GetMetadata() const { &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[12]); } - // =================================================================== class ProgressData::_Internal { public: }; -ProgressData::ProgressData(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +ProgressData::ProgressData(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.calibration.ProgressData) } ProgressData::ProgressData(const ProgressData& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + ProgressData* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.status_text_) {} + + , decltype(_impl_.progress_) {} + + , decltype(_impl_.has_progress_) {} + + , decltype(_impl_.has_status_text_) {} + + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - status_text_.InitDefault(); + _impl_.status_text_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - status_text_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.status_text_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_status_text().empty()) { - status_text_.Set(from._internal_status_text(), - GetArenaForAllocation()); + _this->_impl_.status_text_.Set(from._internal_status_text(), _this->GetArenaForAllocation()); } - ::memcpy(&progress_, &from.progress_, - static_cast(reinterpret_cast(&has_status_text_) - - reinterpret_cast(&progress_)) + sizeof(has_status_text_)); + ::memcpy(&_impl_.progress_, &from._impl_.progress_, + static_cast<::size_t>(reinterpret_cast(&_impl_.has_status_text_) - + reinterpret_cast(&_impl_.progress_)) + sizeof(_impl_.has_status_text_)); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.calibration.ProgressData) } -inline void ProgressData::SharedCtor() { -status_text_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - status_text_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&progress_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&has_status_text_) - - reinterpret_cast(&progress_)) + sizeof(has_status_text_)); +inline void ProgressData::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.status_text_) {} + + , decltype(_impl_.progress_) { 0 } + + , decltype(_impl_.has_progress_) { false } + + , decltype(_impl_.has_status_text_) { false } + + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.status_text_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.status_text_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ProgressData::~ProgressData() { @@ -2343,66 +2627,70 @@ ProgressData::~ProgressData() { } inline void ProgressData::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - status_text_.Destroy(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.status_text_.Destroy(); } void ProgressData::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ProgressData::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.calibration.ProgressData) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - status_text_.ClearToEmpty(); - ::memset(&progress_, 0, static_cast( - reinterpret_cast(&has_status_text_) - - reinterpret_cast(&progress_)) + sizeof(has_status_text_)); + _impl_.status_text_.ClearToEmpty(); + ::memset(&_impl_.progress_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.has_status_text_) - + reinterpret_cast(&_impl_.progress_)) + sizeof(_impl_.has_status_text_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ProgressData::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - has_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + _impl_.has_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - progress_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { + _impl_.progress_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - has_status_text_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { + _impl_.has_status_text_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // string status_text = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { auto str = _internal_mutable_status_text(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.calibration.ProgressData.status_text")); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2427,42 +2715,43 @@ const char* ProgressData::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* ProgressData::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ProgressData::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.calibration.ProgressData) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; if (this->_internal_has_progress() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_has_progress(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this->_internal_has_progress(), target); } // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_progress = this->_internal_progress(); - uint32_t raw_progress; + ::uint32_t raw_progress; memcpy(&raw_progress, &tmp_progress, sizeof(tmp_progress)); if (raw_progress != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_progress(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this->_internal_progress(), target); } // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; if (this->_internal_has_status_text() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_has_status_text(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this->_internal_has_status_text(), target); } // string status_text = 4; if (!this->_internal_status_text().empty()) { + const std::string& _s = this->_internal_status_text(); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_status_text().data(), static_cast(this->_internal_status_text().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.calibration.ProgressData.status_text"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_status_text(), target); + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.calibration.ProgressData.status_text"); + target = stream->WriteStringMaybeAliased(4, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2473,79 +2762,74 @@ uint8_t* ProgressData::_InternalSerialize( return target; } -size_t ProgressData::ByteSizeLong() const { +::size_t ProgressData::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.calibration.ProgressData) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string status_text = 4; if (!this->_internal_status_text().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_status_text()); + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_status_text()); } // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_progress = this->_internal_progress(); - uint32_t raw_progress; + ::uint32_t raw_progress; memcpy(&raw_progress, &tmp_progress, sizeof(tmp_progress)); if (raw_progress != 0) { - total_size += 1 + 4; + total_size += 5; } // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; if (this->_internal_has_progress() != 0) { - total_size += 1 + 1; + total_size += 2; } // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; if (this->_internal_has_status_text() != 0) { - total_size += 1 + 1; + total_size += 2; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProgressData::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ProgressData::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProgressData::GetClassData() const { return &_class_data_; } -void ProgressData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ProgressData::MergeFrom(const ProgressData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.ProgressData) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ProgressData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.calibration.ProgressData) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_status_text().empty()) { - _internal_set_status_text(from._internal_status_text()); + _this->_internal_set_status_text(from._internal_status_text()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_progress = from._internal_progress(); - uint32_t raw_progress; + ::uint32_t raw_progress; memcpy(&raw_progress, &tmp_progress, sizeof(tmp_progress)); if (raw_progress != 0) { - _internal_set_progress(from._internal_progress()); + _this->_internal_set_progress(from._internal_progress()); } if (from._internal_has_progress() != 0) { - _internal_set_has_progress(from._internal_has_progress()); + _this->_internal_set_has_progress(from._internal_has_progress()); } if (from._internal_has_status_text() != 0) { - _internal_set_has_status_text(from._internal_has_status_text()); + _this->_internal_set_has_status_text(from._internal_has_status_text()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ProgressData::CopyFrom(const ProgressData& from) { @@ -2564,16 +2848,14 @@ void ProgressData::InternalSwap(ProgressData* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &status_text_, lhs_arena, - &other->status_text_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.status_text_, lhs_arena, + &other->_impl_.status_text_, rhs_arena); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ProgressData, has_status_text_) - + sizeof(ProgressData::has_status_text_) - - PROTOBUF_FIELD_OFFSET(ProgressData, progress_)>( - reinterpret_cast(&progress_), - reinterpret_cast(&other->progress_)); + PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.has_status_text_) + + sizeof(ProgressData::_impl_.has_status_text_) + - PROTOBUF_FIELD_OFFSET(ProgressData, _impl_.progress_)>( + reinterpret_cast(&_impl_.progress_), + reinterpret_cast(&other->_impl_.progress_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ProgressData::GetMetadata() const { @@ -2581,7 +2863,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ProgressData::GetMetadata() const { &descriptor_table_calibration_2fcalibration_2eproto_getter, &descriptor_table_calibration_2fcalibration_2eproto_once, file_level_metadata_calibration_2fcalibration_2eproto[13]); } - // @@protoc_insertion_point(namespace_scope) } // namespace calibration } // namespace rpc @@ -2644,6 +2925,5 @@ Arena::CreateMaybeMessage< ::mavsdk::rpc::calibration::ProgressData >(Arena* are return Arena::CreateMessageInternal< ::mavsdk::rpc::calibration::ProgressData >(arena); } PROTOBUF_NAMESPACE_CLOSE - // @@protoc_insertion_point(global_scope) -#include +#include "google/protobuf/port_undef.inc" diff --git a/src/mavsdk_server/src/generated/calibration/calibration.pb.h b/src/mavsdk_server/src/generated/calibration/calibration.pb.h index 5b1d3106b7..6f8712524d 100644 --- a/src/mavsdk_server/src/generated/calibration/calibration.pb.h +++ b/src/mavsdk_server/src/generated/calibration/calibration.pb.h @@ -1,41 +1,46 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: calibration/calibration.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3020000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3020001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include +#include + +#include "google/protobuf/port_def.inc" +#if PROTOBUF_VERSION < 4023000 +#error "This file was generated by a newer version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please update" +#error "your headers." +#endif // PROTOBUF_VERSION + +#if 4023002 < PROTOBUF_MIN_PROTOC_VERSION +#error "This file was generated by an older version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please" +#error "regenerate this file with a newer version of protoc." +#endif // PROTOBUF_MIN_PROTOC_VERSION +#include "google/protobuf/port_undef.inc" +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_bases.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_reflection.h" +#include "google/protobuf/unknown_field_set.h" #include "mavsdk_options.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_calibration_2fcalibration_2eproto + PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; @@ -44,9 +49,10 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_calibration_2fcalibration_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_calibration_2fcalibration_2eproto; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable + descriptor_table_calibration_2fcalibration_2eproto; namespace mavsdk { namespace rpc { namespace calibration { @@ -96,25 +102,39 @@ extern SubscribeCalibrateMagnetometerRequestDefaultTypeInternal _SubscribeCalibr } // namespace rpc } // namespace mavsdk PROTOBUF_NAMESPACE_OPEN -template<> ::mavsdk::rpc::calibration::CalibrateAccelerometerResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateAccelerometerResponse>(Arena*); -template<> ::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse>(Arena*); -template<> ::mavsdk::rpc::calibration::CalibrateGyroResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateGyroResponse>(Arena*); -template<> ::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse>(Arena*); -template<> ::mavsdk::rpc::calibration::CalibrateMagnetometerResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateMagnetometerResponse>(Arena*); -template<> ::mavsdk::rpc::calibration::CalibrationResult* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(Arena*); -template<> ::mavsdk::rpc::calibration::CancelRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CancelRequest>(Arena*); -template<> ::mavsdk::rpc::calibration::CancelResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CancelResponse>(Arena*); -template<> ::mavsdk::rpc::calibration::ProgressData* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(Arena*); -template<> ::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest>(Arena*); -template<> ::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest>(Arena*); -template<> ::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest>(Arena*); -template<> ::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest>(Arena*); -template<> ::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest>(Arena*); +template <> +::mavsdk::rpc::calibration::CalibrateAccelerometerResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateAccelerometerResponse>(Arena*); +template <> +::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateGimbalAccelerometerResponse>(Arena*); +template <> +::mavsdk::rpc::calibration::CalibrateGyroResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateGyroResponse>(Arena*); +template <> +::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateLevelHorizonResponse>(Arena*); +template <> +::mavsdk::rpc::calibration::CalibrateMagnetometerResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrateMagnetometerResponse>(Arena*); +template <> +::mavsdk::rpc::calibration::CalibrationResult* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(Arena*); +template <> +::mavsdk::rpc::calibration::CancelRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CancelRequest>(Arena*); +template <> +::mavsdk::rpc::calibration::CancelResponse* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::CancelResponse>(Arena*); +template <> +::mavsdk::rpc::calibration::ProgressData* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(Arena*); +template <> +::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateAccelerometerRequest>(Arena*); +template <> +::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateGimbalAccelerometerRequest>(Arena*); +template <> +::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateGyroRequest>(Arena*); +template <> +::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateLevelHorizonRequest>(Arena*); +template <> +::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest* Arena::CreateMaybeMessage<::mavsdk::rpc::calibration::SubscribeCalibrateMagnetometerRequest>(Arena*); PROTOBUF_NAMESPACE_CLOSE + namespace mavsdk { namespace rpc { namespace calibration { - enum CalibrationResult_Result : int { CalibrationResult_Result_RESULT_UNKNOWN = 0, CalibrationResult_Result_RESULT_SUCCESS = 1, @@ -128,34 +148,46 @@ enum CalibrationResult_Result : int { CalibrationResult_Result_RESULT_CANCELLED = 9, CalibrationResult_Result_RESULT_FAILED_ARMED = 10, CalibrationResult_Result_RESULT_UNSUPPORTED = 11, - CalibrationResult_Result_CalibrationResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - CalibrationResult_Result_CalibrationResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + CalibrationResult_Result_CalibrationResult_Result_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + CalibrationResult_Result_CalibrationResult_Result_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + bool CalibrationResult_Result_IsValid(int value); -constexpr CalibrationResult_Result CalibrationResult_Result_Result_MIN = CalibrationResult_Result_RESULT_UNKNOWN; -constexpr CalibrationResult_Result CalibrationResult_Result_Result_MAX = CalibrationResult_Result_RESULT_UNSUPPORTED; -constexpr int CalibrationResult_Result_Result_ARRAYSIZE = CalibrationResult_Result_Result_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CalibrationResult_Result_descriptor(); -template -inline const std::string& CalibrationResult_Result_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CalibrationResult_Result_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - CalibrationResult_Result_descriptor(), enum_t_value); -} -inline bool CalibrationResult_Result_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CalibrationResult_Result* value) { +constexpr CalibrationResult_Result CalibrationResult_Result_Result_MIN = static_cast(0); +constexpr CalibrationResult_Result CalibrationResult_Result_Result_MAX = static_cast(11); +constexpr int CalibrationResult_Result_Result_ARRAYSIZE = 11 + 1; +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +CalibrationResult_Result_descriptor(); +template +const std::string& CalibrationResult_Result_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Result_Name()."); + return CalibrationResult_Result_Name(static_cast(value)); +} +template <> +inline const std::string& CalibrationResult_Result_Name(CalibrationResult_Result value) { + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool CalibrationResult_Result_Parse(absl::string_view name, CalibrationResult_Result* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - CalibrationResult_Result_descriptor(), name, value); + CalibrationResult_Result_descriptor(), name, value); } + // =================================================================== + +// ------------------------------------------------------------------- + class SubscribeCalibrateGyroRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest) */ { public: inline SubscribeCalibrateGyroRequest() : SubscribeCalibrateGyroRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGyroRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeCalibrateGyroRequest(const SubscribeCalibrateGyroRequest& from); @@ -182,6 +214,13 @@ class SubscribeCalibrateGyroRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -219,7 +258,7 @@ class SubscribeCalibrateGyroRequest final : } void UnsafeArenaSwap(SubscribeCalibrateGyroRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -230,22 +269,21 @@ class SubscribeCalibrateGyroRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeCalibrateGyroRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeCalibrateGyroRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest"; } protected: - explicit SubscribeCalibrateGyroRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeCalibrateGyroRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -264,15 +302,17 @@ class SubscribeCalibrateGyroRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class CalibrateGyroResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGyroResponse) */ { public: inline CalibrateGyroResponse() : CalibrateGyroResponse(nullptr) {} ~CalibrateGyroResponse() override; + template explicit PROTOBUF_CONSTEXPR CalibrateGyroResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CalibrateGyroResponse(const CalibrateGyroResponse& from); @@ -299,6 +339,13 @@ class CalibrateGyroResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -336,7 +383,7 @@ class CalibrateGyroResponse final : } void UnsafeArenaSwap(CalibrateGyroResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -348,33 +395,34 @@ class CalibrateGyroResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CalibrateGyroResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CalibrateGyroResponse& from); + void MergeFrom( const CalibrateGyroResponse& from) { + CalibrateGyroResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CalibrateGyroResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrateGyroResponse"; } protected: - explicit CalibrateGyroResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit CalibrateGyroResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -392,10 +440,7 @@ class CalibrateGyroResponse final : }; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; bool has_calibration_result() const; - private: - bool _internal_has_calibration_result() const; - public: - void clear_calibration_result(); + void clear_calibration_result() ; const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); @@ -407,13 +452,9 @@ class CalibrateGyroResponse final : void unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; bool has_progress_data() const; - private: - bool _internal_has_progress_data() const; - public: - void clear_progress_data(); + void clear_progress_data() ; const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); @@ -425,7 +466,6 @@ class CalibrateGyroResponse final : void unsafe_arena_set_allocated_progress_data( ::mavsdk::rpc::calibration::ProgressData* progress_data); ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateGyroResponse) private: class _Internal; @@ -433,17 +473,21 @@ class CalibrateGyroResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + ::mavsdk::rpc::calibration::ProgressData* progress_data_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SubscribeCalibrateAccelerometerRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest) */ { public: inline SubscribeCalibrateAccelerometerRequest() : SubscribeCalibrateAccelerometerRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeCalibrateAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeCalibrateAccelerometerRequest(const SubscribeCalibrateAccelerometerRequest& from); @@ -470,6 +514,13 @@ class SubscribeCalibrateAccelerometerRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -507,7 +558,7 @@ class SubscribeCalibrateAccelerometerRequest final : } void UnsafeArenaSwap(SubscribeCalibrateAccelerometerRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -518,22 +569,21 @@ class SubscribeCalibrateAccelerometerRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeCalibrateAccelerometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeCalibrateAccelerometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest"; } protected: - explicit SubscribeCalibrateAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeCalibrateAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -552,15 +602,17 @@ class SubscribeCalibrateAccelerometerRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class CalibrateAccelerometerResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) */ { public: inline CalibrateAccelerometerResponse() : CalibrateAccelerometerResponse(nullptr) {} ~CalibrateAccelerometerResponse() override; + template explicit PROTOBUF_CONSTEXPR CalibrateAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CalibrateAccelerometerResponse(const CalibrateAccelerometerResponse& from); @@ -587,6 +639,13 @@ class CalibrateAccelerometerResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -624,7 +683,7 @@ class CalibrateAccelerometerResponse final : } void UnsafeArenaSwap(CalibrateAccelerometerResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -636,33 +695,34 @@ class CalibrateAccelerometerResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CalibrateAccelerometerResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CalibrateAccelerometerResponse& from); + void MergeFrom( const CalibrateAccelerometerResponse& from) { + CalibrateAccelerometerResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CalibrateAccelerometerResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrateAccelerometerResponse"; } protected: - explicit CalibrateAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit CalibrateAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -680,10 +740,7 @@ class CalibrateAccelerometerResponse final : }; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; bool has_calibration_result() const; - private: - bool _internal_has_calibration_result() const; - public: - void clear_calibration_result(); + void clear_calibration_result() ; const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); @@ -695,13 +752,9 @@ class CalibrateAccelerometerResponse final : void unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; bool has_progress_data() const; - private: - bool _internal_has_progress_data() const; - public: - void clear_progress_data(); + void clear_progress_data() ; const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); @@ -713,7 +766,6 @@ class CalibrateAccelerometerResponse final : void unsafe_arena_set_allocated_progress_data( ::mavsdk::rpc::calibration::ProgressData* progress_data); ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateAccelerometerResponse) private: class _Internal; @@ -721,17 +773,21 @@ class CalibrateAccelerometerResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + ::mavsdk::rpc::calibration::ProgressData* progress_data_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SubscribeCalibrateMagnetometerRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest) */ { public: inline SubscribeCalibrateMagnetometerRequest() : SubscribeCalibrateMagnetometerRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeCalibrateMagnetometerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeCalibrateMagnetometerRequest(const SubscribeCalibrateMagnetometerRequest& from); @@ -758,6 +814,13 @@ class SubscribeCalibrateMagnetometerRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -795,7 +858,7 @@ class SubscribeCalibrateMagnetometerRequest final : } void UnsafeArenaSwap(SubscribeCalibrateMagnetometerRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -806,22 +869,21 @@ class SubscribeCalibrateMagnetometerRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeCalibrateMagnetometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeCalibrateMagnetometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest"; } protected: - explicit SubscribeCalibrateMagnetometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeCalibrateMagnetometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -840,15 +902,17 @@ class SubscribeCalibrateMagnetometerRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class CalibrateMagnetometerResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) */ { public: inline CalibrateMagnetometerResponse() : CalibrateMagnetometerResponse(nullptr) {} ~CalibrateMagnetometerResponse() override; + template explicit PROTOBUF_CONSTEXPR CalibrateMagnetometerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CalibrateMagnetometerResponse(const CalibrateMagnetometerResponse& from); @@ -875,6 +939,13 @@ class CalibrateMagnetometerResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -912,7 +983,7 @@ class CalibrateMagnetometerResponse final : } void UnsafeArenaSwap(CalibrateMagnetometerResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -924,33 +995,34 @@ class CalibrateMagnetometerResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CalibrateMagnetometerResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CalibrateMagnetometerResponse& from); + void MergeFrom( const CalibrateMagnetometerResponse& from) { + CalibrateMagnetometerResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CalibrateMagnetometerResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrateMagnetometerResponse"; } protected: - explicit CalibrateMagnetometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit CalibrateMagnetometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -968,10 +1040,7 @@ class CalibrateMagnetometerResponse final : }; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; bool has_calibration_result() const; - private: - bool _internal_has_calibration_result() const; - public: - void clear_calibration_result(); + void clear_calibration_result() ; const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); @@ -983,13 +1052,9 @@ class CalibrateMagnetometerResponse final : void unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; bool has_progress_data() const; - private: - bool _internal_has_progress_data() const; - public: - void clear_progress_data(); + void clear_progress_data() ; const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); @@ -1001,7 +1066,6 @@ class CalibrateMagnetometerResponse final : void unsafe_arena_set_allocated_progress_data( ::mavsdk::rpc::calibration::ProgressData* progress_data); ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateMagnetometerResponse) private: class _Internal; @@ -1009,17 +1073,21 @@ class CalibrateMagnetometerResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + ::mavsdk::rpc::calibration::ProgressData* progress_data_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SubscribeCalibrateLevelHorizonRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest) */ { public: inline SubscribeCalibrateLevelHorizonRequest() : SubscribeCalibrateLevelHorizonRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeCalibrateLevelHorizonRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeCalibrateLevelHorizonRequest(const SubscribeCalibrateLevelHorizonRequest& from); @@ -1046,6 +1114,13 @@ class SubscribeCalibrateLevelHorizonRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1083,7 +1158,7 @@ class SubscribeCalibrateLevelHorizonRequest final : } void UnsafeArenaSwap(SubscribeCalibrateLevelHorizonRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1094,22 +1169,21 @@ class SubscribeCalibrateLevelHorizonRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeCalibrateLevelHorizonRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeCalibrateLevelHorizonRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest"; } protected: - explicit SubscribeCalibrateLevelHorizonRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeCalibrateLevelHorizonRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1128,15 +1202,17 @@ class SubscribeCalibrateLevelHorizonRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class CalibrateLevelHorizonResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) */ { public: inline CalibrateLevelHorizonResponse() : CalibrateLevelHorizonResponse(nullptr) {} ~CalibrateLevelHorizonResponse() override; + template explicit PROTOBUF_CONSTEXPR CalibrateLevelHorizonResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CalibrateLevelHorizonResponse(const CalibrateLevelHorizonResponse& from); @@ -1163,6 +1239,13 @@ class CalibrateLevelHorizonResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1200,7 +1283,7 @@ class CalibrateLevelHorizonResponse final : } void UnsafeArenaSwap(CalibrateLevelHorizonResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1212,33 +1295,34 @@ class CalibrateLevelHorizonResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CalibrateLevelHorizonResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CalibrateLevelHorizonResponse& from); + void MergeFrom( const CalibrateLevelHorizonResponse& from) { + CalibrateLevelHorizonResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CalibrateLevelHorizonResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrateLevelHorizonResponse"; } protected: - explicit CalibrateLevelHorizonResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit CalibrateLevelHorizonResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1256,10 +1340,7 @@ class CalibrateLevelHorizonResponse final : }; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; bool has_calibration_result() const; - private: - bool _internal_has_calibration_result() const; - public: - void clear_calibration_result(); + void clear_calibration_result() ; const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); @@ -1271,13 +1352,9 @@ class CalibrateLevelHorizonResponse final : void unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; bool has_progress_data() const; - private: - bool _internal_has_progress_data() const; - public: - void clear_progress_data(); + void clear_progress_data() ; const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); @@ -1289,7 +1366,6 @@ class CalibrateLevelHorizonResponse final : void unsafe_arena_set_allocated_progress_data( ::mavsdk::rpc::calibration::ProgressData* progress_data); ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse) private: class _Internal; @@ -1297,17 +1373,21 @@ class CalibrateLevelHorizonResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + ::mavsdk::rpc::calibration::ProgressData* progress_data_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class SubscribeCalibrateGimbalAccelerometerRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest) */ { public: inline SubscribeCalibrateGimbalAccelerometerRequest() : SubscribeCalibrateGimbalAccelerometerRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR SubscribeCalibrateGimbalAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SubscribeCalibrateGimbalAccelerometerRequest(const SubscribeCalibrateGimbalAccelerometerRequest& from); @@ -1334,6 +1414,13 @@ class SubscribeCalibrateGimbalAccelerometerRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1371,7 +1458,7 @@ class SubscribeCalibrateGimbalAccelerometerRequest final : } void UnsafeArenaSwap(SubscribeCalibrateGimbalAccelerometerRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1382,22 +1469,21 @@ class SubscribeCalibrateGimbalAccelerometerRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const SubscribeCalibrateGimbalAccelerometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const SubscribeCalibrateGimbalAccelerometerRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest"; } protected: - explicit SubscribeCalibrateGimbalAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SubscribeCalibrateGimbalAccelerometerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1416,15 +1502,17 @@ class SubscribeCalibrateGimbalAccelerometerRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class CalibrateGimbalAccelerometerResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) */ { public: inline CalibrateGimbalAccelerometerResponse() : CalibrateGimbalAccelerometerResponse(nullptr) {} ~CalibrateGimbalAccelerometerResponse() override; + template explicit PROTOBUF_CONSTEXPR CalibrateGimbalAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CalibrateGimbalAccelerometerResponse(const CalibrateGimbalAccelerometerResponse& from); @@ -1451,6 +1539,13 @@ class CalibrateGimbalAccelerometerResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1488,7 +1583,7 @@ class CalibrateGimbalAccelerometerResponse final : } void UnsafeArenaSwap(CalibrateGimbalAccelerometerResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1500,33 +1595,34 @@ class CalibrateGimbalAccelerometerResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CalibrateGimbalAccelerometerResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CalibrateGimbalAccelerometerResponse& from); + void MergeFrom( const CalibrateGimbalAccelerometerResponse& from) { + CalibrateGimbalAccelerometerResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CalibrateGimbalAccelerometerResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse"; } protected: - explicit CalibrateGimbalAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit CalibrateGimbalAccelerometerResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1544,10 +1640,7 @@ class CalibrateGimbalAccelerometerResponse final : }; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; bool has_calibration_result() const; - private: - bool _internal_has_calibration_result() const; - public: - void clear_calibration_result(); + void clear_calibration_result() ; const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); @@ -1559,13 +1652,9 @@ class CalibrateGimbalAccelerometerResponse final : void unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - // .mavsdk.rpc.calibration.ProgressData progress_data = 2; bool has_progress_data() const; - private: - bool _internal_has_progress_data() const; - public: - void clear_progress_data(); + void clear_progress_data() ; const ::mavsdk::rpc::calibration::ProgressData& progress_data() const; PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::ProgressData* release_progress_data(); ::mavsdk::rpc::calibration::ProgressData* mutable_progress_data(); @@ -1577,7 +1666,6 @@ class CalibrateGimbalAccelerometerResponse final : void unsafe_arena_set_allocated_progress_data( ::mavsdk::rpc::calibration::ProgressData* progress_data); ::mavsdk::rpc::calibration::ProgressData* unsafe_arena_release_progress_data(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse) private: class _Internal; @@ -1585,17 +1673,21 @@ class CalibrateGimbalAccelerometerResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - ::mavsdk::rpc::calibration::ProgressData* progress_data_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + ::mavsdk::rpc::calibration::ProgressData* progress_data_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class CancelRequest final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelRequest) */ { public: inline CancelRequest() : CancelRequest(nullptr) {} + template explicit PROTOBUF_CONSTEXPR CancelRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CancelRequest(const CancelRequest& from); @@ -1622,6 +1714,13 @@ class CancelRequest final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1659,7 +1758,7 @@ class CancelRequest final : } void UnsafeArenaSwap(CancelRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1670,22 +1769,21 @@ class CancelRequest final : } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; inline void CopyFrom(const CancelRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; void MergeFrom(const CancelRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CancelRequest"; } protected: - explicit CancelRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit CancelRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1704,15 +1802,17 @@ class CancelRequest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + struct Impl_ { + }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class CancelResponse final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CancelResponse) */ { public: inline CancelResponse() : CancelResponse(nullptr) {} ~CancelResponse() override; + template explicit PROTOBUF_CONSTEXPR CancelResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CancelResponse(const CancelResponse& from); @@ -1739,6 +1839,13 @@ class CancelResponse final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1776,7 +1883,7 @@ class CancelResponse final : } void UnsafeArenaSwap(CancelResponse* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1788,33 +1895,34 @@ class CancelResponse final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CancelResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CancelResponse& from); + void MergeFrom( const CancelResponse& from) { + CancelResponse::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CancelResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CancelResponse"; } protected: - explicit CancelResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit CancelResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1831,10 +1939,7 @@ class CancelResponse final : }; // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; bool has_calibration_result() const; - private: - bool _internal_has_calibration_result() const; - public: - void clear_calibration_result(); + void clear_calibration_result() ; const ::mavsdk::rpc::calibration::CalibrationResult& calibration_result() const; PROTOBUF_NODISCARD ::mavsdk::rpc::calibration::CalibrationResult* release_calibration_result(); ::mavsdk::rpc::calibration::CalibrationResult* mutable_calibration_result(); @@ -1846,7 +1951,6 @@ class CancelResponse final : void unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result); ::mavsdk::rpc::calibration::CalibrationResult* unsafe_arena_release_calibration_result(); - // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CancelResponse) private: class _Internal; @@ -1854,17 +1958,21 @@ class CancelResponse final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::mavsdk::rpc::calibration::CalibrationResult* calibration_result_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class CalibrationResult final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.CalibrationResult) */ { public: inline CalibrationResult() : CalibrationResult(nullptr) {} ~CalibrationResult() override; + template explicit PROTOBUF_CONSTEXPR CalibrationResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CalibrationResult(const CalibrationResult& from); @@ -1891,6 +1999,13 @@ class CalibrationResult final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -1928,7 +2043,7 @@ class CalibrationResult final : } void UnsafeArenaSwap(CalibrationResult* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -1940,33 +2055,34 @@ class CalibrationResult final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CalibrationResult& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const CalibrationResult& from); + void MergeFrom( const CalibrationResult& from) { + CalibrationResult::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CalibrationResult* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.CalibrationResult"; } protected: - explicit CalibrationResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit CalibrationResult(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -1976,53 +2092,33 @@ class CalibrationResult final : // nested types ---------------------------------------------------- - typedef CalibrationResult_Result Result; - static constexpr Result RESULT_UNKNOWN = - CalibrationResult_Result_RESULT_UNKNOWN; - static constexpr Result RESULT_SUCCESS = - CalibrationResult_Result_RESULT_SUCCESS; - static constexpr Result RESULT_NEXT = - CalibrationResult_Result_RESULT_NEXT; - static constexpr Result RESULT_FAILED = - CalibrationResult_Result_RESULT_FAILED; - static constexpr Result RESULT_NO_SYSTEM = - CalibrationResult_Result_RESULT_NO_SYSTEM; - static constexpr Result RESULT_CONNECTION_ERROR = - CalibrationResult_Result_RESULT_CONNECTION_ERROR; - static constexpr Result RESULT_BUSY = - CalibrationResult_Result_RESULT_BUSY; - static constexpr Result RESULT_COMMAND_DENIED = - CalibrationResult_Result_RESULT_COMMAND_DENIED; - static constexpr Result RESULT_TIMEOUT = - CalibrationResult_Result_RESULT_TIMEOUT; - static constexpr Result RESULT_CANCELLED = - CalibrationResult_Result_RESULT_CANCELLED; - static constexpr Result RESULT_FAILED_ARMED = - CalibrationResult_Result_RESULT_FAILED_ARMED; - static constexpr Result RESULT_UNSUPPORTED = - CalibrationResult_Result_RESULT_UNSUPPORTED; + using Result = CalibrationResult_Result; + static constexpr Result RESULT_UNKNOWN = CalibrationResult_Result_RESULT_UNKNOWN; + static constexpr Result RESULT_SUCCESS = CalibrationResult_Result_RESULT_SUCCESS; + static constexpr Result RESULT_NEXT = CalibrationResult_Result_RESULT_NEXT; + static constexpr Result RESULT_FAILED = CalibrationResult_Result_RESULT_FAILED; + static constexpr Result RESULT_NO_SYSTEM = CalibrationResult_Result_RESULT_NO_SYSTEM; + static constexpr Result RESULT_CONNECTION_ERROR = CalibrationResult_Result_RESULT_CONNECTION_ERROR; + static constexpr Result RESULT_BUSY = CalibrationResult_Result_RESULT_BUSY; + static constexpr Result RESULT_COMMAND_DENIED = CalibrationResult_Result_RESULT_COMMAND_DENIED; + static constexpr Result RESULT_TIMEOUT = CalibrationResult_Result_RESULT_TIMEOUT; + static constexpr Result RESULT_CANCELLED = CalibrationResult_Result_RESULT_CANCELLED; + static constexpr Result RESULT_FAILED_ARMED = CalibrationResult_Result_RESULT_FAILED_ARMED; + static constexpr Result RESULT_UNSUPPORTED = CalibrationResult_Result_RESULT_UNSUPPORTED; static inline bool Result_IsValid(int value) { return CalibrationResult_Result_IsValid(value); } - static constexpr Result Result_MIN = - CalibrationResult_Result_Result_MIN; - static constexpr Result Result_MAX = - CalibrationResult_Result_Result_MAX; - static constexpr int Result_ARRAYSIZE = - CalibrationResult_Result_Result_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Result_descriptor() { + static constexpr Result Result_MIN = CalibrationResult_Result_Result_MIN; + static constexpr Result Result_MAX = CalibrationResult_Result_Result_MAX; + static constexpr int Result_ARRAYSIZE = CalibrationResult_Result_Result_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Result_descriptor() { return CalibrationResult_Result_descriptor(); } - template - static inline const std::string& Result_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Result_Name."); - return CalibrationResult_Result_Name(enum_t_value); + template + static inline const std::string& Result_Name(T value) { + return CalibrationResult_Result_Name(value); } - static inline bool Result_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Result* value) { + static inline bool Result_Parse(absl::string_view name, Result* value) { return CalibrationResult_Result_Parse(name, value); } @@ -2033,28 +2129,35 @@ class CalibrationResult final : kResultFieldNumber = 1, }; // string result_str = 2; - void clear_result_str(); + void clear_result_str() ; const std::string& result_str() const; - template - void set_result_str(ArgT0&& arg0, ArgT... args); + + + + + template + void set_result_str(Arg_&& arg, Args_... args); std::string* mutable_result_str(); PROTOBUF_NODISCARD std::string* release_result_str(); - void set_allocated_result_str(std::string* result_str); + void set_allocated_result_str(std::string* ptr); + private: const std::string& _internal_result_str() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_result_str( + const std::string& value); std::string* _internal_mutable_result_str(); - public: + public: // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; - void clear_result(); + void clear_result() ; ::mavsdk::rpc::calibration::CalibrationResult_Result result() const; void set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value); + private: ::mavsdk::rpc::calibration::CalibrationResult_Result _internal_result() const; void _internal_set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.CalibrationResult) private: class _Internal; @@ -2062,18 +2165,21 @@ class CalibrationResult final : 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_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr result_str_; + int result_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; -}; -// ------------------------------------------------------------------- +};// ------------------------------------------------------------------- class ProgressData final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.calibration.ProgressData) */ { public: inline ProgressData() : ProgressData(nullptr) {} ~ProgressData() override; + template explicit PROTOBUF_CONSTEXPR ProgressData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ProgressData(const ProgressData& from); @@ -2100,6 +2206,13 @@ class ProgressData final : return *this; } + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } @@ -2137,7 +2250,7 @@ class ProgressData final : } void UnsafeArenaSwap(ProgressData* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } @@ -2149,33 +2262,34 @@ class ProgressData final : using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ProgressData& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ProgressData& from); + void MergeFrom( const ProgressData& from) { + ProgressData::MergeImpl(*this, from); + } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; - size_t ByteSizeLong() const final; + ::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(); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - void SharedCtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ProgressData* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + static ::absl::string_view FullMessageName() { return "mavsdk.rpc.calibration.ProgressData"; } protected: - explicit ProgressData(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ProgressData(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: static const ClassData _class_data_; @@ -2194,46 +2308,55 @@ class ProgressData final : kHasStatusTextFieldNumber = 3, }; // string status_text = 4; - void clear_status_text(); + void clear_status_text() ; const std::string& status_text() const; - template - void set_status_text(ArgT0&& arg0, ArgT... args); + + + + + template + void set_status_text(Arg_&& arg, Args_... args); std::string* mutable_status_text(); PROTOBUF_NODISCARD std::string* release_status_text(); - void set_allocated_status_text(std::string* status_text); + void set_allocated_status_text(std::string* ptr); + private: const std::string& _internal_status_text() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_status_text(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_status_text( + const std::string& value); std::string* _internal_mutable_status_text(); - public: + public: // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; - void clear_progress(); + void clear_progress() ; float progress() const; void set_progress(float value); + private: float _internal_progress() const; void _internal_set_progress(float value); - public: + public: // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; - void clear_has_progress(); + void clear_has_progress() ; bool has_progress() const; void set_has_progress(bool value); + private: bool _internal_has_progress() const; void _internal_set_has_progress(bool value); - public: + public: // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; - void clear_has_status_text(); + void clear_has_status_text() ; bool has_status_text() const; void set_has_status_text(bool value); + private: bool _internal_has_status_text() const; void _internal_set_has_status_text(bool value); - public: + public: // @@protoc_insertion_point(class_scope:mavsdk.rpc.calibration.ProgressData) private: class _Internal; @@ -2241,22 +2364,31 @@ class ProgressData final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr status_text_; - float progress_; - bool has_progress_; - bool has_status_text_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr status_text_; + float progress_; + bool has_progress_; + bool has_status_text_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_calibration_2fcalibration_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // SubscribeCalibrateGyroRequest // ------------------------------------------------------------------- @@ -2264,20 +2396,17 @@ class ProgressData final : // CalibrateGyroResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CalibrateGyroResponse::_internal_has_calibration_result() const { - return this != internal_default_instance() && calibration_result_ != nullptr; -} inline bool CalibrateGyroResponse::has_calibration_result() const { - return _internal_has_calibration_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; } inline void CalibrateGyroResponse::clear_calibration_result() { - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; - } - calibration_result_ = nullptr; + if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGyroResponse::_internal_calibration_result() const { - const ::mavsdk::rpc::calibration::CalibrationResult* p = calibration_result_; + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -2288,20 +2417,20 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGyroRespons inline void CalibrateGyroResponse::unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(calibration_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.calibration_result_); } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; if (calibration_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::release_calibration_result() { - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -2315,18 +2444,18 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::rel } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::unsafe_arena_release_calibration_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::_internal_mutable_calibration_result() { - - if (calibration_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.calibration_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArenaForAllocation()); - calibration_result_ = p; + _impl_.calibration_result_ = p; } - return calibration_result_; + return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::mutable_calibration_result() { ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); @@ -2336,7 +2465,7 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGyroResponse::mut inline void CalibrateGyroResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete calibration_result_; + delete _impl_.calibration_result_; } if (calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -2345,29 +2474,26 @@ inline void CalibrateGyroResponse::set_allocated_calibration_result(::mavsdk::rp calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, calibration_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.calibration_result) } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; -inline bool CalibrateGyroResponse::_internal_has_progress_data() const { - return this != internal_default_instance() && progress_data_ != nullptr; -} inline bool CalibrateGyroResponse::has_progress_data() const { - return _internal_has_progress_data(); + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); + return value; } inline void CalibrateGyroResponse::clear_progress_data() { - if (GetArenaForAllocation() == nullptr && progress_data_ != nullptr) { - delete progress_data_; - } - progress_data_ = nullptr; + if (_impl_.progress_data_ != nullptr) _impl_.progress_data_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGyroResponse::_internal_progress_data() const { - const ::mavsdk::rpc::calibration::ProgressData* p = progress_data_; + const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::calibration::_ProgressData_default_instance_); } @@ -2378,20 +2504,20 @@ inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGyroResponse::pr inline void CalibrateGyroResponse::unsafe_arena_set_allocated_progress_data( ::mavsdk::rpc::calibration::ProgressData* progress_data) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(progress_data_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.progress_data_); } - progress_data_ = progress_data; + _impl_.progress_data_ = progress_data; if (progress_data) { - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::release_progress_data() { - - ::mavsdk::rpc::calibration::ProgressData* temp = progress_data_; - progress_data_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -2405,18 +2531,18 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::release_ } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::unsafe_arena_release_progress_data() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) - - ::mavsdk::rpc::calibration::ProgressData* temp = progress_data_; - progress_data_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; return temp; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::_internal_mutable_progress_data() { - - if (progress_data_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.progress_data_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArenaForAllocation()); - progress_data_ = p; + _impl_.progress_data_ = p; } - return progress_data_; + return _impl_.progress_data_; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::mutable_progress_data() { ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); @@ -2426,7 +2552,7 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGyroResponse::mutable_ inline void CalibrateGyroResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* progress_data) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete progress_data_; + delete _impl_.progress_data_; } if (progress_data) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -2435,11 +2561,11 @@ inline void CalibrateGyroResponse::set_allocated_progress_data(::mavsdk::rpc::ca progress_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, progress_data, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } - progress_data_ = progress_data; + _impl_.progress_data_ = progress_data; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGyroResponse.progress_data) } @@ -2452,20 +2578,17 @@ inline void CalibrateGyroResponse::set_allocated_progress_data(::mavsdk::rpc::ca // CalibrateAccelerometerResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CalibrateAccelerometerResponse::_internal_has_calibration_result() const { - return this != internal_default_instance() && calibration_result_ != nullptr; -} inline bool CalibrateAccelerometerResponse::has_calibration_result() const { - return _internal_has_calibration_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; } inline void CalibrateAccelerometerResponse::clear_calibration_result() { - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; - } - calibration_result_ = nullptr; + if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateAccelerometerResponse::_internal_calibration_result() const { - const ::mavsdk::rpc::calibration::CalibrationResult* p = calibration_result_; + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -2476,20 +2599,20 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateAcceleromet inline void CalibrateAccelerometerResponse::unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(calibration_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.calibration_result_); } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; if (calibration_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResponse::release_calibration_result() { - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -2503,18 +2626,18 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResp } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResponse::unsafe_arena_release_calibration_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResponse::_internal_mutable_calibration_result() { - - if (calibration_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.calibration_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArenaForAllocation()); - calibration_result_ = p; + _impl_.calibration_result_ = p; } - return calibration_result_; + return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResponse::mutable_calibration_result() { ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); @@ -2524,7 +2647,7 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateAccelerometerResp inline void CalibrateAccelerometerResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete calibration_result_; + delete _impl_.calibration_result_; } if (calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -2533,29 +2656,26 @@ inline void CalibrateAccelerometerResponse::set_allocated_calibration_result(::m calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, calibration_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.calibration_result) } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; -inline bool CalibrateAccelerometerResponse::_internal_has_progress_data() const { - return this != internal_default_instance() && progress_data_ != nullptr; -} inline bool CalibrateAccelerometerResponse::has_progress_data() const { - return _internal_has_progress_data(); + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); + return value; } inline void CalibrateAccelerometerResponse::clear_progress_data() { - if (GetArenaForAllocation() == nullptr && progress_data_ != nullptr) { - delete progress_data_; - } - progress_data_ = nullptr; + if (_impl_.progress_data_ != nullptr) _impl_.progress_data_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateAccelerometerResponse::_internal_progress_data() const { - const ::mavsdk::rpc::calibration::ProgressData* p = progress_data_; + const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::calibration::_ProgressData_default_instance_); } @@ -2566,20 +2686,20 @@ inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateAccelerometerRes inline void CalibrateAccelerometerResponse::unsafe_arena_set_allocated_progress_data( ::mavsdk::rpc::calibration::ProgressData* progress_data) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(progress_data_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.progress_data_); } - progress_data_ = progress_data; + _impl_.progress_data_ = progress_data; if (progress_data) { - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse::release_progress_data() { - - ::mavsdk::rpc::calibration::ProgressData* temp = progress_data_; - progress_data_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -2593,18 +2713,18 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse: } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse::unsafe_arena_release_progress_data() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) - - ::mavsdk::rpc::calibration::ProgressData* temp = progress_data_; - progress_data_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; return temp; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse::_internal_mutable_progress_data() { - - if (progress_data_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.progress_data_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArenaForAllocation()); - progress_data_ = p; + _impl_.progress_data_ = p; } - return progress_data_; + return _impl_.progress_data_; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse::mutable_progress_data() { ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); @@ -2614,7 +2734,7 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateAccelerometerResponse: inline void CalibrateAccelerometerResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* progress_data) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete progress_data_; + delete _impl_.progress_data_; } if (progress_data) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -2623,11 +2743,11 @@ inline void CalibrateAccelerometerResponse::set_allocated_progress_data(::mavsdk progress_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, progress_data, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } - progress_data_ = progress_data; + _impl_.progress_data_ = progress_data; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateAccelerometerResponse.progress_data) } @@ -2640,20 +2760,17 @@ inline void CalibrateAccelerometerResponse::set_allocated_progress_data(::mavsdk // CalibrateMagnetometerResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CalibrateMagnetometerResponse::_internal_has_calibration_result() const { - return this != internal_default_instance() && calibration_result_ != nullptr; -} inline bool CalibrateMagnetometerResponse::has_calibration_result() const { - return _internal_has_calibration_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; } inline void CalibrateMagnetometerResponse::clear_calibration_result() { - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; - } - calibration_result_ = nullptr; + if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateMagnetometerResponse::_internal_calibration_result() const { - const ::mavsdk::rpc::calibration::CalibrationResult* p = calibration_result_; + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -2664,20 +2781,20 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateMagnetomete inline void CalibrateMagnetometerResponse::unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(calibration_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.calibration_result_); } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; if (calibration_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerResponse::release_calibration_result() { - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -2691,18 +2808,18 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerRespo } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerResponse::unsafe_arena_release_calibration_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerResponse::_internal_mutable_calibration_result() { - - if (calibration_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.calibration_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArenaForAllocation()); - calibration_result_ = p; + _impl_.calibration_result_ = p; } - return calibration_result_; + return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerResponse::mutable_calibration_result() { ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); @@ -2712,7 +2829,7 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateMagnetometerRespo inline void CalibrateMagnetometerResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete calibration_result_; + delete _impl_.calibration_result_; } if (calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -2721,29 +2838,26 @@ inline void CalibrateMagnetometerResponse::set_allocated_calibration_result(::ma calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, calibration_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.calibration_result) } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; -inline bool CalibrateMagnetometerResponse::_internal_has_progress_data() const { - return this != internal_default_instance() && progress_data_ != nullptr; -} inline bool CalibrateMagnetometerResponse::has_progress_data() const { - return _internal_has_progress_data(); + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); + return value; } inline void CalibrateMagnetometerResponse::clear_progress_data() { - if (GetArenaForAllocation() == nullptr && progress_data_ != nullptr) { - delete progress_data_; - } - progress_data_ = nullptr; + if (_impl_.progress_data_ != nullptr) _impl_.progress_data_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateMagnetometerResponse::_internal_progress_data() const { - const ::mavsdk::rpc::calibration::ProgressData* p = progress_data_; + const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::calibration::_ProgressData_default_instance_); } @@ -2754,20 +2868,20 @@ inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateMagnetometerResp inline void CalibrateMagnetometerResponse::unsafe_arena_set_allocated_progress_data( ::mavsdk::rpc::calibration::ProgressData* progress_data) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(progress_data_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.progress_data_); } - progress_data_ = progress_data; + _impl_.progress_data_ = progress_data; if (progress_data) { - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse::release_progress_data() { - - ::mavsdk::rpc::calibration::ProgressData* temp = progress_data_; - progress_data_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -2781,18 +2895,18 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse:: } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse::unsafe_arena_release_progress_data() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) - - ::mavsdk::rpc::calibration::ProgressData* temp = progress_data_; - progress_data_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; return temp; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse::_internal_mutable_progress_data() { - - if (progress_data_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.progress_data_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArenaForAllocation()); - progress_data_ = p; + _impl_.progress_data_ = p; } - return progress_data_; + return _impl_.progress_data_; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse::mutable_progress_data() { ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); @@ -2802,7 +2916,7 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateMagnetometerResponse:: inline void CalibrateMagnetometerResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* progress_data) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete progress_data_; + delete _impl_.progress_data_; } if (progress_data) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -2811,11 +2925,11 @@ inline void CalibrateMagnetometerResponse::set_allocated_progress_data(::mavsdk: progress_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, progress_data, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } - progress_data_ = progress_data; + _impl_.progress_data_ = progress_data; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateMagnetometerResponse.progress_data) } @@ -2828,20 +2942,17 @@ inline void CalibrateMagnetometerResponse::set_allocated_progress_data(::mavsdk: // CalibrateLevelHorizonResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CalibrateLevelHorizonResponse::_internal_has_calibration_result() const { - return this != internal_default_instance() && calibration_result_ != nullptr; -} inline bool CalibrateLevelHorizonResponse::has_calibration_result() const { - return _internal_has_calibration_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; } inline void CalibrateLevelHorizonResponse::clear_calibration_result() { - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; - } - calibration_result_ = nullptr; + if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateLevelHorizonResponse::_internal_calibration_result() const { - const ::mavsdk::rpc::calibration::CalibrationResult* p = calibration_result_; + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -2852,20 +2963,20 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateLevelHorizo inline void CalibrateLevelHorizonResponse::unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(calibration_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.calibration_result_); } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; if (calibration_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonResponse::release_calibration_result() { - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -2879,18 +2990,18 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonRespo } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonResponse::unsafe_arena_release_calibration_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonResponse::_internal_mutable_calibration_result() { - - if (calibration_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.calibration_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArenaForAllocation()); - calibration_result_ = p; + _impl_.calibration_result_ = p; } - return calibration_result_; + return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonResponse::mutable_calibration_result() { ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); @@ -2900,7 +3011,7 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateLevelHorizonRespo inline void CalibrateLevelHorizonResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete calibration_result_; + delete _impl_.calibration_result_; } if (calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -2909,29 +3020,26 @@ inline void CalibrateLevelHorizonResponse::set_allocated_calibration_result(::ma calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, calibration_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.calibration_result) } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; -inline bool CalibrateLevelHorizonResponse::_internal_has_progress_data() const { - return this != internal_default_instance() && progress_data_ != nullptr; -} inline bool CalibrateLevelHorizonResponse::has_progress_data() const { - return _internal_has_progress_data(); + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); + return value; } inline void CalibrateLevelHorizonResponse::clear_progress_data() { - if (GetArenaForAllocation() == nullptr && progress_data_ != nullptr) { - delete progress_data_; - } - progress_data_ = nullptr; + if (_impl_.progress_data_ != nullptr) _impl_.progress_data_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateLevelHorizonResponse::_internal_progress_data() const { - const ::mavsdk::rpc::calibration::ProgressData* p = progress_data_; + const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::calibration::_ProgressData_default_instance_); } @@ -2942,20 +3050,20 @@ inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateLevelHorizonResp inline void CalibrateLevelHorizonResponse::unsafe_arena_set_allocated_progress_data( ::mavsdk::rpc::calibration::ProgressData* progress_data) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(progress_data_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.progress_data_); } - progress_data_ = progress_data; + _impl_.progress_data_ = progress_data; if (progress_data) { - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse::release_progress_data() { - - ::mavsdk::rpc::calibration::ProgressData* temp = progress_data_; - progress_data_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -2969,18 +3077,18 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse:: } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse::unsafe_arena_release_progress_data() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) - - ::mavsdk::rpc::calibration::ProgressData* temp = progress_data_; - progress_data_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; return temp; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse::_internal_mutable_progress_data() { - - if (progress_data_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.progress_data_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArenaForAllocation()); - progress_data_ = p; + _impl_.progress_data_ = p; } - return progress_data_; + return _impl_.progress_data_; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse::mutable_progress_data() { ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); @@ -2990,7 +3098,7 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateLevelHorizonResponse:: inline void CalibrateLevelHorizonResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* progress_data) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete progress_data_; + delete _impl_.progress_data_; } if (progress_data) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -2999,11 +3107,11 @@ inline void CalibrateLevelHorizonResponse::set_allocated_progress_data(::mavsdk: progress_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, progress_data, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } - progress_data_ = progress_data; + _impl_.progress_data_ = progress_data; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.progress_data) } @@ -3016,20 +3124,17 @@ inline void CalibrateLevelHorizonResponse::set_allocated_progress_data(::mavsdk: // CalibrateGimbalAccelerometerResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CalibrateGimbalAccelerometerResponse::_internal_has_calibration_result() const { - return this != internal_default_instance() && calibration_result_ != nullptr; -} inline bool CalibrateGimbalAccelerometerResponse::has_calibration_result() const { - return _internal_has_calibration_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; } inline void CalibrateGimbalAccelerometerResponse::clear_calibration_result() { - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; - } - calibration_result_ = nullptr; + if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGimbalAccelerometerResponse::_internal_calibration_result() const { - const ::mavsdk::rpc::calibration::CalibrationResult* p = calibration_result_; + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -3040,20 +3145,20 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CalibrateGimbalAccel inline void CalibrateGimbalAccelerometerResponse::unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(calibration_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.calibration_result_); } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; if (calibration_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAccelerometerResponse::release_calibration_result() { - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -3067,18 +3172,18 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAcceleromet } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAccelerometerResponse::unsafe_arena_release_calibration_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAccelerometerResponse::_internal_mutable_calibration_result() { - - if (calibration_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.calibration_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArenaForAllocation()); - calibration_result_ = p; + _impl_.calibration_result_ = p; } - return calibration_result_; + return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAccelerometerResponse::mutable_calibration_result() { ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); @@ -3088,7 +3193,7 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CalibrateGimbalAcceleromet inline void CalibrateGimbalAccelerometerResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete calibration_result_; + delete _impl_.calibration_result_; } if (calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -3097,29 +3202,26 @@ inline void CalibrateGimbalAccelerometerResponse::set_allocated_calibration_resu calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, calibration_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.calibration_result) } // .mavsdk.rpc.calibration.ProgressData progress_data = 2; -inline bool CalibrateGimbalAccelerometerResponse::_internal_has_progress_data() const { - return this != internal_default_instance() && progress_data_ != nullptr; -} inline bool CalibrateGimbalAccelerometerResponse::has_progress_data() const { - return _internal_has_progress_data(); + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || _impl_.progress_data_ != nullptr); + return value; } inline void CalibrateGimbalAccelerometerResponse::clear_progress_data() { - if (GetArenaForAllocation() == nullptr && progress_data_ != nullptr) { - delete progress_data_; - } - progress_data_ = nullptr; + if (_impl_.progress_data_ != nullptr) _impl_.progress_data_->Clear(); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGimbalAccelerometerResponse::_internal_progress_data() const { - const ::mavsdk::rpc::calibration::ProgressData* p = progress_data_; + const ::mavsdk::rpc::calibration::ProgressData* p = _impl_.progress_data_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::calibration::_ProgressData_default_instance_); } @@ -3130,20 +3232,20 @@ inline const ::mavsdk::rpc::calibration::ProgressData& CalibrateGimbalAccelerome inline void CalibrateGimbalAccelerometerResponse::unsafe_arena_set_allocated_progress_data( ::mavsdk::rpc::calibration::ProgressData* progress_data) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(progress_data_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.progress_data_); } - progress_data_ = progress_data; + _impl_.progress_data_ = progress_data; if (progress_data) { - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerResponse::release_progress_data() { - - ::mavsdk::rpc::calibration::ProgressData* temp = progress_data_; - progress_data_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -3157,18 +3259,18 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerRes } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerResponse::unsafe_arena_release_progress_data() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) - - ::mavsdk::rpc::calibration::ProgressData* temp = progress_data_; - progress_data_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000002u; + ::mavsdk::rpc::calibration::ProgressData* temp = _impl_.progress_data_; + _impl_.progress_data_ = nullptr; return temp; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerResponse::_internal_mutable_progress_data() { - - if (progress_data_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.progress_data_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::ProgressData>(GetArenaForAllocation()); - progress_data_ = p; + _impl_.progress_data_ = p; } - return progress_data_; + return _impl_.progress_data_; } inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerResponse::mutable_progress_data() { ::mavsdk::rpc::calibration::ProgressData* _msg = _internal_mutable_progress_data(); @@ -3178,7 +3280,7 @@ inline ::mavsdk::rpc::calibration::ProgressData* CalibrateGimbalAccelerometerRes inline void CalibrateGimbalAccelerometerResponse::set_allocated_progress_data(::mavsdk::rpc::calibration::ProgressData* progress_data) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete progress_data_; + delete _impl_.progress_data_; } if (progress_data) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -3187,11 +3289,11 @@ inline void CalibrateGimbalAccelerometerResponse::set_allocated_progress_data(:: progress_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, progress_data, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000002u; } else { - + _impl_._has_bits_[0] &= ~0x00000002u; } - progress_data_ = progress_data; + _impl_.progress_data_ = progress_data; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.progress_data) } @@ -3204,20 +3306,17 @@ inline void CalibrateGimbalAccelerometerResponse::set_allocated_progress_data(:: // CancelResponse // .mavsdk.rpc.calibration.CalibrationResult calibration_result = 1; -inline bool CancelResponse::_internal_has_calibration_result() const { - return this != internal_default_instance() && calibration_result_ != nullptr; -} inline bool CancelResponse::has_calibration_result() const { - return _internal_has_calibration_result(); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || _impl_.calibration_result_ != nullptr); + return value; } inline void CancelResponse::clear_calibration_result() { - if (GetArenaForAllocation() == nullptr && calibration_result_ != nullptr) { - delete calibration_result_; - } - calibration_result_ = nullptr; + if (_impl_.calibration_result_ != nullptr) _impl_.calibration_result_->Clear(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::mavsdk::rpc::calibration::CalibrationResult& CancelResponse::_internal_calibration_result() const { - const ::mavsdk::rpc::calibration::CalibrationResult* p = calibration_result_; + const ::mavsdk::rpc::calibration::CalibrationResult* p = _impl_.calibration_result_; return p != nullptr ? *p : reinterpret_cast( ::mavsdk::rpc::calibration::_CalibrationResult_default_instance_); } @@ -3228,20 +3327,20 @@ inline const ::mavsdk::rpc::calibration::CalibrationResult& CancelResponse::cali inline void CancelResponse::unsafe_arena_set_allocated_calibration_result( ::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(calibration_result_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.calibration_result_); } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; if (calibration_result) { - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.calibration.CancelResponse.calibration_result) } inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::release_calibration_result() { - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -3255,18 +3354,18 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::release_ca } inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::unsafe_arena_release_calibration_result() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CancelResponse.calibration_result) - - ::mavsdk::rpc::calibration::CalibrationResult* temp = calibration_result_; - calibration_result_ = nullptr; + _impl_._has_bits_[0] &= ~0x00000001u; + ::mavsdk::rpc::calibration::CalibrationResult* temp = _impl_.calibration_result_; + _impl_.calibration_result_ = nullptr; return temp; } inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::_internal_mutable_calibration_result() { - - if (calibration_result_ == nullptr) { + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.calibration_result_ == nullptr) { auto* p = CreateMaybeMessage<::mavsdk::rpc::calibration::CalibrationResult>(GetArenaForAllocation()); - calibration_result_ = p; + _impl_.calibration_result_ = p; } - return calibration_result_; + return _impl_.calibration_result_; } inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::mutable_calibration_result() { ::mavsdk::rpc::calibration::CalibrationResult* _msg = _internal_mutable_calibration_result(); @@ -3276,7 +3375,7 @@ inline ::mavsdk::rpc::calibration::CalibrationResult* CancelResponse::mutable_ca inline void CancelResponse::set_allocated_calibration_result(::mavsdk::rpc::calibration::CalibrationResult* calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete calibration_result_; + delete _impl_.calibration_result_; } if (calibration_result) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = @@ -3285,11 +3384,11 @@ inline void CancelResponse::set_allocated_calibration_result(::mavsdk::rpc::cali calibration_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, calibration_result, submessage_arena); } - + _impl_._has_bits_[0] |= 0x00000001u; } else { - + _impl_._has_bits_[0] &= ~0x00000001u; } - calibration_result_ = calibration_result; + _impl_.calibration_result_ = calibration_result; // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CancelResponse.calibration_result) } @@ -3299,37 +3398,37 @@ inline void CancelResponse::set_allocated_calibration_result(::mavsdk::rpc::cali // .mavsdk.rpc.calibration.CalibrationResult.Result result = 1; inline void CalibrationResult::clear_result() { - result_ = 0; -} -inline ::mavsdk::rpc::calibration::CalibrationResult_Result CalibrationResult::_internal_result() const { - return static_cast< ::mavsdk::rpc::calibration::CalibrationResult_Result >(result_); + _impl_.result_ = 0; } inline ::mavsdk::rpc::calibration::CalibrationResult_Result CalibrationResult::result() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrationResult.result) return _internal_result(); } -inline void CalibrationResult::_internal_set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value) { - - result_ = value; -} inline void CalibrationResult::set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value) { - _internal_set_result(value); + _internal_set_result(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.CalibrationResult.result) } +inline ::mavsdk::rpc::calibration::CalibrationResult_Result CalibrationResult::_internal_result() const { + return static_cast<::mavsdk::rpc::calibration::CalibrationResult_Result>(_impl_.result_); +} +inline void CalibrationResult::_internal_set_result(::mavsdk::rpc::calibration::CalibrationResult_Result value) { + ; + _impl_.result_ = value; +} // string result_str = 2; inline void CalibrationResult::clear_result_str() { - result_str_.ClearToEmpty(); + _impl_.result_str_.ClearToEmpty(); } inline const std::string& CalibrationResult::result_str() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.CalibrationResult.result_str) return _internal_result_str(); } -template -inline PROTOBUF_ALWAYS_INLINE -void CalibrationResult::set_result_str(ArgT0&& arg0, ArgT... args) { - - result_str_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void CalibrationResult::set_result_str(Arg_&& arg, + Args_... args) { + ; + _impl_.result_str_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.CalibrationResult.result_str) } inline std::string* CalibrationResult::mutable_result_str() { @@ -3338,32 +3437,29 @@ inline std::string* CalibrationResult::mutable_result_str() { return _s; } inline const std::string& CalibrationResult::_internal_result_str() const { - return result_str_.Get(); + return _impl_.result_str_.Get(); } inline void CalibrationResult::_internal_set_result_str(const std::string& value) { - - result_str_.Set(value, GetArenaForAllocation()); + ; + + + _impl_.result_str_.Set(value, GetArenaForAllocation()); } inline std::string* CalibrationResult::_internal_mutable_result_str() { - - return result_str_.Mutable(GetArenaForAllocation()); + ; + return _impl_.result_str_.Mutable( GetArenaForAllocation()); } inline std::string* CalibrationResult::release_result_str() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.CalibrationResult.result_str) - return result_str_.Release(); -} -inline void CalibrationResult::set_allocated_result_str(std::string* result_str) { - if (result_str != nullptr) { - - } else { - - } - result_str_.SetAllocated(result_str, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (result_str_.IsDefault()) { - result_str_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return _impl_.result_str_.Release(); +} +inline void CalibrationResult::set_allocated_result_str(std::string* value) { + _impl_.result_str_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.result_str_.IsDefault()) { + _impl_.result_str_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.CalibrationResult.result_str) } @@ -3373,77 +3469,77 @@ inline void CalibrationResult::set_allocated_result_str(std::string* result_str) // bool has_progress = 1 [(.mavsdk.options.default_value) = "false"]; inline void ProgressData::clear_has_progress() { - has_progress_ = false; -} -inline bool ProgressData::_internal_has_progress() const { - return has_progress_; + _impl_.has_progress_ = false; } inline bool ProgressData::has_progress() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.has_progress) return _internal_has_progress(); } -inline void ProgressData::_internal_set_has_progress(bool value) { - - has_progress_ = value; -} inline void ProgressData::set_has_progress(bool value) { _internal_set_has_progress(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.has_progress) } +inline bool ProgressData::_internal_has_progress() const { + return _impl_.has_progress_; +} +inline void ProgressData::_internal_set_has_progress(bool value) { + ; + _impl_.has_progress_ = value; +} // float progress = 2 [(.mavsdk.options.default_value) = "NaN"]; inline void ProgressData::clear_progress() { - progress_ = 0; -} -inline float ProgressData::_internal_progress() const { - return progress_; + _impl_.progress_ = 0; } inline float ProgressData::progress() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.progress) return _internal_progress(); } -inline void ProgressData::_internal_set_progress(float value) { - - progress_ = value; -} inline void ProgressData::set_progress(float value) { _internal_set_progress(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.progress) } +inline float ProgressData::_internal_progress() const { + return _impl_.progress_; +} +inline void ProgressData::_internal_set_progress(float value) { + ; + _impl_.progress_ = value; +} // bool has_status_text = 3 [(.mavsdk.options.default_value) = "false"]; inline void ProgressData::clear_has_status_text() { - has_status_text_ = false; -} -inline bool ProgressData::_internal_has_status_text() const { - return has_status_text_; + _impl_.has_status_text_ = false; } inline bool ProgressData::has_status_text() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.has_status_text) return _internal_has_status_text(); } -inline void ProgressData::_internal_set_has_status_text(bool value) { - - has_status_text_ = value; -} inline void ProgressData::set_has_status_text(bool value) { _internal_set_has_status_text(value); // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.has_status_text) } +inline bool ProgressData::_internal_has_status_text() const { + return _impl_.has_status_text_; +} +inline void ProgressData::_internal_set_has_status_text(bool value) { + ; + _impl_.has_status_text_ = value; +} // string status_text = 4; inline void ProgressData::clear_status_text() { - status_text_.ClearToEmpty(); + _impl_.status_text_.ClearToEmpty(); } inline const std::string& ProgressData::status_text() const { // @@protoc_insertion_point(field_get:mavsdk.rpc.calibration.ProgressData.status_text) return _internal_status_text(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ProgressData::set_status_text(ArgT0&& arg0, ArgT... args) { - - status_text_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ProgressData::set_status_text(Arg_&& arg, + Args_... args) { + ; + _impl_.status_text_.Set(static_cast(arg), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:mavsdk.rpc.calibration.ProgressData.status_text) } inline std::string* ProgressData::mutable_status_text() { @@ -3452,76 +3548,48 @@ inline std::string* ProgressData::mutable_status_text() { return _s; } inline const std::string& ProgressData::_internal_status_text() const { - return status_text_.Get(); + return _impl_.status_text_.Get(); } inline void ProgressData::_internal_set_status_text(const std::string& value) { - - status_text_.Set(value, GetArenaForAllocation()); + ; + + + _impl_.status_text_.Set(value, GetArenaForAllocation()); } inline std::string* ProgressData::_internal_mutable_status_text() { - - return status_text_.Mutable(GetArenaForAllocation()); + ; + return _impl_.status_text_.Mutable( GetArenaForAllocation()); } inline std::string* ProgressData::release_status_text() { // @@protoc_insertion_point(field_release:mavsdk.rpc.calibration.ProgressData.status_text) - return status_text_.Release(); -} -inline void ProgressData::set_allocated_status_text(std::string* status_text) { - if (status_text != nullptr) { - - } else { - - } - status_text_.SetAllocated(status_text, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (status_text_.IsDefault()) { - status_text_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return _impl_.status_text_.Release(); +} +inline void ProgressData::set_allocated_status_text(std::string* value) { + _impl_.status_text_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.status_text_.IsDefault()) { + _impl_.status_text_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.calibration.ProgressData.status_text) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace calibration } // namespace rpc } // namespace mavsdk + PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::mavsdk::rpc::calibration::CalibrationResult_Result> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::mavsdk::rpc::calibration::CalibrationResult_Result>() { +struct is_proto_enum<::mavsdk::rpc::calibration::CalibrationResult_Result> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::mavsdk::rpc::calibration::CalibrationResult_Result>() { return ::mavsdk::rpc::calibration::CalibrationResult_Result_descriptor(); } @@ -3529,5 +3597,6 @@ PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // GOOGLE_PROTOBUF_INCLUDED_calibration_2fcalibration_2eproto_2epb_2eh diff --git a/src/mavsdk_server/src/generated/camera/camera.grpc.pb.cc b/src/mavsdk_server/src/generated/camera/camera.grpc.pb.cc index 82c7b8803e..3808ce2d5a 100644 --- a/src/mavsdk_server/src/generated/camera/camera.grpc.pb.cc +++ b/src/mavsdk_server/src/generated/camera/camera.grpc.pb.cc @@ -6,19 +6,19 @@ #include "camera/camera.grpc.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace mavsdk { namespace rpc { namespace camera { diff --git a/src/mavsdk_server/src/generated/camera/camera.grpc.pb.h b/src/mavsdk_server/src/generated/camera/camera.grpc.pb.h index a5114b1bce..a9e3e76791 100644 --- a/src/mavsdk_server/src/generated/camera/camera.grpc.pb.h +++ b/src/mavsdk_server/src/generated/camera/camera.grpc.pb.h @@ -7,23 +7,23 @@ #include "camera/camera.pb.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace mavsdk { namespace rpc { diff --git a/src/mavsdk_server/src/generated/camera/camera.pb.cc b/src/mavsdk_server/src/generated/camera/camera.pb.cc index 76873f43f2..e593ae70c8 100644 --- a/src/mavsdk_server/src/generated/camera/camera.pb.cc +++ b/src/mavsdk_server/src/generated/camera/camera.pb.cc @@ -4,1458 +4,1866 @@ #include "camera/camera.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/descriptor.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/reflection_ops.h" +#include "google/protobuf/wire_format.h" // @@protoc_insertion_point(includes) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; namespace mavsdk { namespace rpc { namespace camera { +template PROTOBUF_CONSTEXPR PrepareRequest::PrepareRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct PrepareRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR PrepareRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PrepareRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PrepareRequestDefaultTypeInternal() {} union { PrepareRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrepareRequestDefaultTypeInternal _PrepareRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrepareRequestDefaultTypeInternal _PrepareRequest_default_instance_; +template PROTOBUF_CONSTEXPR PrepareResponse::PrepareResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct PrepareResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR PrepareResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PrepareResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PrepareResponseDefaultTypeInternal() {} union { PrepareResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrepareResponseDefaultTypeInternal _PrepareResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrepareResponseDefaultTypeInternal _PrepareResponse_default_instance_; +template PROTOBUF_CONSTEXPR TakePhotoRequest::TakePhotoRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct TakePhotoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakePhotoRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TakePhotoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakePhotoRequestDefaultTypeInternal() {} union { TakePhotoRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakePhotoRequestDefaultTypeInternal _TakePhotoRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakePhotoRequestDefaultTypeInternal _TakePhotoRequest_default_instance_; +template PROTOBUF_CONSTEXPR TakePhotoResponse::TakePhotoResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct TakePhotoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TakePhotoResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TakePhotoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~TakePhotoResponseDefaultTypeInternal() {} union { TakePhotoResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakePhotoResponseDefaultTypeInternal _TakePhotoResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TakePhotoResponseDefaultTypeInternal _TakePhotoResponse_default_instance_; +template PROTOBUF_CONSTEXPR StartPhotoIntervalRequest::StartPhotoIntervalRequest( - ::_pbi::ConstantInitialized) - : interval_s_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.interval_s_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct StartPhotoIntervalRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartPhotoIntervalRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StartPhotoIntervalRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartPhotoIntervalRequestDefaultTypeInternal() {} union { StartPhotoIntervalRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartPhotoIntervalRequestDefaultTypeInternal _StartPhotoIntervalRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartPhotoIntervalRequestDefaultTypeInternal _StartPhotoIntervalRequest_default_instance_; +template PROTOBUF_CONSTEXPR StartPhotoIntervalResponse::StartPhotoIntervalResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct StartPhotoIntervalResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartPhotoIntervalResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StartPhotoIntervalResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartPhotoIntervalResponseDefaultTypeInternal() {} union { StartPhotoIntervalResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartPhotoIntervalResponseDefaultTypeInternal _StartPhotoIntervalResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartPhotoIntervalResponseDefaultTypeInternal _StartPhotoIntervalResponse_default_instance_; +template PROTOBUF_CONSTEXPR StopPhotoIntervalRequest::StopPhotoIntervalRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct StopPhotoIntervalRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopPhotoIntervalRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopPhotoIntervalRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopPhotoIntervalRequestDefaultTypeInternal() {} union { StopPhotoIntervalRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPhotoIntervalRequestDefaultTypeInternal _StopPhotoIntervalRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPhotoIntervalRequestDefaultTypeInternal _StopPhotoIntervalRequest_default_instance_; +template PROTOBUF_CONSTEXPR StopPhotoIntervalResponse::StopPhotoIntervalResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct StopPhotoIntervalResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopPhotoIntervalResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopPhotoIntervalResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopPhotoIntervalResponseDefaultTypeInternal() {} union { StopPhotoIntervalResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPhotoIntervalResponseDefaultTypeInternal _StopPhotoIntervalResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopPhotoIntervalResponseDefaultTypeInternal _StopPhotoIntervalResponse_default_instance_; +template PROTOBUF_CONSTEXPR StartVideoRequest::StartVideoRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct StartVideoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartVideoRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StartVideoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartVideoRequestDefaultTypeInternal() {} union { StartVideoRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoRequestDefaultTypeInternal _StartVideoRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoRequestDefaultTypeInternal _StartVideoRequest_default_instance_; +template PROTOBUF_CONSTEXPR StartVideoResponse::StartVideoResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct StartVideoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartVideoResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StartVideoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartVideoResponseDefaultTypeInternal() {} union { StartVideoResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoResponseDefaultTypeInternal _StartVideoResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoResponseDefaultTypeInternal _StartVideoResponse_default_instance_; +template PROTOBUF_CONSTEXPR StopVideoRequest::StopVideoRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct StopVideoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopVideoRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopVideoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopVideoRequestDefaultTypeInternal() {} union { StopVideoRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoRequestDefaultTypeInternal _StopVideoRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoRequestDefaultTypeInternal _StopVideoRequest_default_instance_; +template PROTOBUF_CONSTEXPR StopVideoResponse::StopVideoResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct StopVideoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopVideoResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopVideoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopVideoResponseDefaultTypeInternal() {} union { StopVideoResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoResponseDefaultTypeInternal _StopVideoResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoResponseDefaultTypeInternal _StopVideoResponse_default_instance_; +template PROTOBUF_CONSTEXPR StartVideoStreamingRequest::StartVideoStreamingRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct StartVideoStreamingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartVideoStreamingRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StartVideoStreamingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartVideoStreamingRequestDefaultTypeInternal() {} union { StartVideoStreamingRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoStreamingRequestDefaultTypeInternal _StartVideoStreamingRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoStreamingRequestDefaultTypeInternal _StartVideoStreamingRequest_default_instance_; +template PROTOBUF_CONSTEXPR StartVideoStreamingResponse::StartVideoStreamingResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct StartVideoStreamingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StartVideoStreamingResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StartVideoStreamingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StartVideoStreamingResponseDefaultTypeInternal() {} union { StartVideoStreamingResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoStreamingResponseDefaultTypeInternal _StartVideoStreamingResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StartVideoStreamingResponseDefaultTypeInternal _StartVideoStreamingResponse_default_instance_; +template PROTOBUF_CONSTEXPR StopVideoStreamingRequest::StopVideoStreamingRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct StopVideoStreamingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopVideoStreamingRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopVideoStreamingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopVideoStreamingRequestDefaultTypeInternal() {} union { StopVideoStreamingRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoStreamingRequestDefaultTypeInternal _StopVideoStreamingRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoStreamingRequestDefaultTypeInternal _StopVideoStreamingRequest_default_instance_; +template PROTOBUF_CONSTEXPR StopVideoStreamingResponse::StopVideoStreamingResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct StopVideoStreamingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StopVideoStreamingResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StopVideoStreamingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StopVideoStreamingResponseDefaultTypeInternal() {} union { StopVideoStreamingResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoStreamingResponseDefaultTypeInternal _StopVideoStreamingResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StopVideoStreamingResponseDefaultTypeInternal _StopVideoStreamingResponse_default_instance_; +template PROTOBUF_CONSTEXPR SetModeRequest::SetModeRequest( - ::_pbi::ConstantInitialized) - : mode_(0) -{} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.mode_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct SetModeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetModeRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetModeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetModeRequestDefaultTypeInternal() {} union { SetModeRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeRequestDefaultTypeInternal _SetModeRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeRequestDefaultTypeInternal _SetModeRequest_default_instance_; +template PROTOBUF_CONSTEXPR SetModeResponse::SetModeResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct SetModeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetModeResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetModeResponseDefaultTypeInternal() {} union { SetModeResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeResponseDefaultTypeInternal _SetModeResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetModeResponseDefaultTypeInternal _SetModeResponse_default_instance_; +template PROTOBUF_CONSTEXPR ListPhotosRequest::ListPhotosRequest( - ::_pbi::ConstantInitialized) - : photos_range_(0) -{} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.photos_range_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct ListPhotosRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListPhotosRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ListPhotosRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListPhotosRequestDefaultTypeInternal() {} union { ListPhotosRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPhotosRequestDefaultTypeInternal _ListPhotosRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPhotosRequestDefaultTypeInternal _ListPhotosRequest_default_instance_; +template PROTOBUF_CONSTEXPR ListPhotosResponse::ListPhotosResponse( - ::_pbi::ConstantInitialized) - : capture_infos_() - , camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.capture_infos_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct ListPhotosResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListPhotosResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ListPhotosResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ListPhotosResponseDefaultTypeInternal() {} union { ListPhotosResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPhotosResponseDefaultTypeInternal _ListPhotosResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListPhotosResponseDefaultTypeInternal _ListPhotosResponse_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeInformationRequest::SubscribeInformationRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeInformationRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeInformationRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeInformationRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeInformationRequestDefaultTypeInternal() {} union { SubscribeInformationRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeInformationRequestDefaultTypeInternal _SubscribeInformationRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeInformationRequestDefaultTypeInternal _SubscribeInformationRequest_default_instance_; +template PROTOBUF_CONSTEXPR InformationResponse::InformationResponse( - ::_pbi::ConstantInitialized) - : information_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.information_)*/nullptr} {} struct InformationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR InformationResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR InformationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~InformationResponseDefaultTypeInternal() {} union { InformationResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InformationResponseDefaultTypeInternal _InformationResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InformationResponseDefaultTypeInternal _InformationResponse_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeModeRequest::SubscribeModeRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeModeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeModeRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeModeRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeModeRequestDefaultTypeInternal() {} union { SubscribeModeRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeModeRequestDefaultTypeInternal _SubscribeModeRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeModeRequestDefaultTypeInternal _SubscribeModeRequest_default_instance_; +template PROTOBUF_CONSTEXPR ModeResponse::ModeResponse( - ::_pbi::ConstantInitialized) - : mode_(0) -{} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.mode_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct ModeResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ModeResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ModeResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ModeResponseDefaultTypeInternal() {} union { ModeResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModeResponseDefaultTypeInternal _ModeResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModeResponseDefaultTypeInternal _ModeResponse_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeVideoStreamInfoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeVideoStreamInfoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeVideoStreamInfoRequestDefaultTypeInternal() {} union { SubscribeVideoStreamInfoRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeVideoStreamInfoRequestDefaultTypeInternal _SubscribeVideoStreamInfoRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeVideoStreamInfoRequestDefaultTypeInternal _SubscribeVideoStreamInfoRequest_default_instance_; +template PROTOBUF_CONSTEXPR VideoStreamInfoResponse::VideoStreamInfoResponse( - ::_pbi::ConstantInitialized) - : video_stream_info_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.video_stream_info_)*/nullptr} {} struct VideoStreamInfoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR VideoStreamInfoResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR VideoStreamInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~VideoStreamInfoResponseDefaultTypeInternal() {} union { VideoStreamInfoResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamInfoResponseDefaultTypeInternal _VideoStreamInfoResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamInfoResponseDefaultTypeInternal _VideoStreamInfoResponse_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeCaptureInfoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeCaptureInfoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCaptureInfoRequestDefaultTypeInternal() {} union { SubscribeCaptureInfoRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCaptureInfoRequestDefaultTypeInternal _SubscribeCaptureInfoRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCaptureInfoRequestDefaultTypeInternal _SubscribeCaptureInfoRequest_default_instance_; +template PROTOBUF_CONSTEXPR CaptureInfoResponse::CaptureInfoResponse( - ::_pbi::ConstantInitialized) - : capture_info_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.capture_info_)*/nullptr} {} struct CaptureInfoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CaptureInfoResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CaptureInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CaptureInfoResponseDefaultTypeInternal() {} union { CaptureInfoResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureInfoResponseDefaultTypeInternal _CaptureInfoResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureInfoResponseDefaultTypeInternal _CaptureInfoResponse_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeStatusRequest::SubscribeStatusRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeStatusRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeStatusRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeStatusRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeStatusRequestDefaultTypeInternal() {} union { SubscribeStatusRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeStatusRequestDefaultTypeInternal _SubscribeStatusRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeStatusRequestDefaultTypeInternal _SubscribeStatusRequest_default_instance_; +template PROTOBUF_CONSTEXPR StatusResponse::StatusResponse( - ::_pbi::ConstantInitialized) - : camera_status_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_status_)*/nullptr} {} struct StatusResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StatusResponseDefaultTypeInternal() {} union { StatusResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusResponseDefaultTypeInternal _StatusResponse_default_instance_; +template PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribeCurrentSettingsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribeCurrentSettingsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribeCurrentSettingsRequestDefaultTypeInternal() {} union { SubscribeCurrentSettingsRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCurrentSettingsRequestDefaultTypeInternal _SubscribeCurrentSettingsRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribeCurrentSettingsRequestDefaultTypeInternal _SubscribeCurrentSettingsRequest_default_instance_; +template PROTOBUF_CONSTEXPR CurrentSettingsResponse::CurrentSettingsResponse( - ::_pbi::ConstantInitialized) - : current_settings_(){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.current_settings_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} struct CurrentSettingsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CurrentSettingsResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CurrentSettingsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CurrentSettingsResponseDefaultTypeInternal() {} union { CurrentSettingsResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CurrentSettingsResponseDefaultTypeInternal _CurrentSettingsResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CurrentSettingsResponseDefaultTypeInternal _CurrentSettingsResponse_default_instance_; +template PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct SubscribePossibleSettingOptionsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SubscribePossibleSettingOptionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SubscribePossibleSettingOptionsRequestDefaultTypeInternal() {} union { SubscribePossibleSettingOptionsRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribePossibleSettingOptionsRequestDefaultTypeInternal _SubscribePossibleSettingOptionsRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribePossibleSettingOptionsRequestDefaultTypeInternal _SubscribePossibleSettingOptionsRequest_default_instance_; +template PROTOBUF_CONSTEXPR PossibleSettingOptionsResponse::PossibleSettingOptionsResponse( - ::_pbi::ConstantInitialized) - : setting_options_(){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.setting_options_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} struct PossibleSettingOptionsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR PossibleSettingOptionsResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PossibleSettingOptionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PossibleSettingOptionsResponseDefaultTypeInternal() {} union { PossibleSettingOptionsResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PossibleSettingOptionsResponseDefaultTypeInternal _PossibleSettingOptionsResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PossibleSettingOptionsResponseDefaultTypeInternal _PossibleSettingOptionsResponse_default_instance_; +template PROTOBUF_CONSTEXPR SetSettingRequest::SetSettingRequest( - ::_pbi::ConstantInitialized) - : setting_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.setting_)*/nullptr} {} struct SetSettingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetSettingRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetSettingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetSettingRequestDefaultTypeInternal() {} union { SetSettingRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetSettingRequestDefaultTypeInternal _SetSettingRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetSettingRequestDefaultTypeInternal _SetSettingRequest_default_instance_; +template PROTOBUF_CONSTEXPR SetSettingResponse::SetSettingResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct SetSettingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetSettingResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SetSettingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SetSettingResponseDefaultTypeInternal() {} union { SetSettingResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetSettingResponseDefaultTypeInternal _SetSettingResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetSettingResponseDefaultTypeInternal _SetSettingResponse_default_instance_; +template PROTOBUF_CONSTEXPR GetSettingRequest::GetSettingRequest( - ::_pbi::ConstantInitialized) - : setting_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.setting_)*/nullptr} {} struct GetSettingRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSettingRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetSettingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetSettingRequestDefaultTypeInternal() {} union { GetSettingRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSettingRequestDefaultTypeInternal _GetSettingRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSettingRequestDefaultTypeInternal _GetSettingRequest_default_instance_; +template PROTOBUF_CONSTEXPR GetSettingResponse::GetSettingResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr) - , setting_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr + , /*decltype(_impl_.setting_)*/nullptr} {} struct GetSettingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSettingResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GetSettingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetSettingResponseDefaultTypeInternal() {} union { GetSettingResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSettingResponseDefaultTypeInternal _GetSettingResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSettingResponseDefaultTypeInternal _GetSettingResponse_default_instance_; +template PROTOBUF_CONSTEXPR FormatStorageRequest::FormatStorageRequest( - ::_pbi::ConstantInitialized){} + ::_pbi::ConstantInitialized) {} struct FormatStorageRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR FormatStorageRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FormatStorageRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FormatStorageRequestDefaultTypeInternal() {} union { FormatStorageRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FormatStorageRequestDefaultTypeInternal _FormatStorageRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FormatStorageRequestDefaultTypeInternal _FormatStorageRequest_default_instance_; +template PROTOBUF_CONSTEXPR FormatStorageResponse::FormatStorageResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct FormatStorageResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FormatStorageResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FormatStorageResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FormatStorageResponseDefaultTypeInternal() {} union { FormatStorageResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FormatStorageResponseDefaultTypeInternal _FormatStorageResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FormatStorageResponseDefaultTypeInternal _FormatStorageResponse_default_instance_; +template PROTOBUF_CONSTEXPR SelectCameraResponse::SelectCameraResponse( - ::_pbi::ConstantInitialized) - : camera_result_(nullptr){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.camera_result_)*/nullptr} {} struct SelectCameraResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SelectCameraResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SelectCameraResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SelectCameraResponseDefaultTypeInternal() {} union { SelectCameraResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectCameraResponseDefaultTypeInternal _SelectCameraResponse_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectCameraResponseDefaultTypeInternal _SelectCameraResponse_default_instance_; +template PROTOBUF_CONSTEXPR SelectCameraRequest::SelectCameraRequest( - ::_pbi::ConstantInitialized) - : camera_id_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.camera_id_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct SelectCameraRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SelectCameraRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SelectCameraRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SelectCameraRequestDefaultTypeInternal() {} union { SelectCameraRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectCameraRequestDefaultTypeInternal _SelectCameraRequest_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SelectCameraRequestDefaultTypeInternal _SelectCameraRequest_default_instance_; +template PROTOBUF_CONSTEXPR CameraResult::CameraResult( - ::_pbi::ConstantInitialized) - : result_str_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , result_(0) -{} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.result_str_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.result_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct CameraResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR CameraResultDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CameraResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CameraResultDefaultTypeInternal() {} union { CameraResult _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CameraResultDefaultTypeInternal _CameraResult_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CameraResultDefaultTypeInternal _CameraResult_default_instance_; +template PROTOBUF_CONSTEXPR Position::Position( - ::_pbi::ConstantInitialized) - : latitude_deg_(0) - , longitude_deg_(0) - , absolute_altitude_m_(0) - , relative_altitude_m_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.latitude_deg_)*/ 0 + + , /*decltype(_impl_.longitude_deg_)*/ 0 + + , /*decltype(_impl_.absolute_altitude_m_)*/ 0 + + , /*decltype(_impl_.relative_altitude_m_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct PositionDefaultTypeInternal { - PROTOBUF_CONSTEXPR PositionDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PositionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PositionDefaultTypeInternal() {} union { Position _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PositionDefaultTypeInternal _Position_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PositionDefaultTypeInternal _Position_default_instance_; +template PROTOBUF_CONSTEXPR Quaternion::Quaternion( - ::_pbi::ConstantInitialized) - : w_(0) - , x_(0) - , y_(0) - , z_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.w_)*/ 0 + + , /*decltype(_impl_.x_)*/ 0 + + , /*decltype(_impl_.y_)*/ 0 + + , /*decltype(_impl_.z_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct QuaternionDefaultTypeInternal { - PROTOBUF_CONSTEXPR QuaternionDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR QuaternionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~QuaternionDefaultTypeInternal() {} union { Quaternion _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuaternionDefaultTypeInternal _Quaternion_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuaternionDefaultTypeInternal _Quaternion_default_instance_; +template PROTOBUF_CONSTEXPR EulerAngle::EulerAngle( - ::_pbi::ConstantInitialized) - : roll_deg_(0) - , pitch_deg_(0) - , yaw_deg_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.roll_deg_)*/ 0 + + , /*decltype(_impl_.pitch_deg_)*/ 0 + + , /*decltype(_impl_.yaw_deg_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct EulerAngleDefaultTypeInternal { - PROTOBUF_CONSTEXPR EulerAngleDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EulerAngleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EulerAngleDefaultTypeInternal() {} union { EulerAngle _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EulerAngleDefaultTypeInternal _EulerAngle_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EulerAngleDefaultTypeInternal _EulerAngle_default_instance_; +template PROTOBUF_CONSTEXPR CaptureInfo::CaptureInfo( - ::_pbi::ConstantInitialized) - : file_url_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , position_(nullptr) - , attitude_quaternion_(nullptr) - , attitude_euler_angle_(nullptr) - , time_utc_us_(uint64_t{0u}) - , is_success_(false) - , index_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.file_url_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.position_)*/nullptr + , /*decltype(_impl_.attitude_quaternion_)*/nullptr + , /*decltype(_impl_.attitude_euler_angle_)*/nullptr + , /*decltype(_impl_.time_utc_us_)*/ ::uint64_t{0u} + + , /*decltype(_impl_.is_success_)*/ false + + , /*decltype(_impl_.index_)*/ 0 +} {} struct CaptureInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR CaptureInfoDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CaptureInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CaptureInfoDefaultTypeInternal() {} union { CaptureInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureInfoDefaultTypeInternal _CaptureInfo_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CaptureInfoDefaultTypeInternal _CaptureInfo_default_instance_; +template PROTOBUF_CONSTEXPR VideoStreamSettings::VideoStreamSettings( - ::_pbi::ConstantInitialized) - : uri_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , frame_rate_hz_(0) - , horizontal_resolution_pix_(0u) - , vertical_resolution_pix_(0u) - , bit_rate_b_s_(0u) - , rotation_deg_(0u) - , horizontal_fov_deg_(0){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.uri_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.frame_rate_hz_)*/ 0 + + , /*decltype(_impl_.horizontal_resolution_pix_)*/ 0u + + , /*decltype(_impl_.vertical_resolution_pix_)*/ 0u + + , /*decltype(_impl_.bit_rate_b_s_)*/ 0u + + , /*decltype(_impl_.rotation_deg_)*/ 0u + + , /*decltype(_impl_.horizontal_fov_deg_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct VideoStreamSettingsDefaultTypeInternal { - PROTOBUF_CONSTEXPR VideoStreamSettingsDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR VideoStreamSettingsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~VideoStreamSettingsDefaultTypeInternal() {} union { VideoStreamSettings _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamSettingsDefaultTypeInternal _VideoStreamSettings_default_instance_; -PROTOBUF_CONSTEXPR VideoStreamInfo::VideoStreamInfo( - ::_pbi::ConstantInitialized) - : settings_(nullptr) - , status_(0) - , spectrum_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamSettingsDefaultTypeInternal _VideoStreamSettings_default_instance_; +template +PROTOBUF_CONSTEXPR VideoStreamInfo::VideoStreamInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.settings_)*/nullptr + , /*decltype(_impl_.status_)*/ 0 + + , /*decltype(_impl_.spectrum_)*/ 0 +} {} struct VideoStreamInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR VideoStreamInfoDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR VideoStreamInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~VideoStreamInfoDefaultTypeInternal() {} union { VideoStreamInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamInfoDefaultTypeInternal _VideoStreamInfo_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoStreamInfoDefaultTypeInternal _VideoStreamInfo_default_instance_; +template PROTOBUF_CONSTEXPR Status::Status( - ::_pbi::ConstantInitialized) - : media_folder_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , video_on_(false) - , photo_interval_on_(false) - , used_storage_mib_(0) - , available_storage_mib_(0) - , total_storage_mib_(0) - , recording_time_s_(0) - , storage_status_(0) - - , storage_id_(0u) - , storage_type_(0) -{} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.media_folder_name_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.video_on_)*/ false + + , /*decltype(_impl_.photo_interval_on_)*/ false + + , /*decltype(_impl_.used_storage_mib_)*/ 0 + + , /*decltype(_impl_.available_storage_mib_)*/ 0 + + , /*decltype(_impl_.total_storage_mib_)*/ 0 + + , /*decltype(_impl_.recording_time_s_)*/ 0 + + , /*decltype(_impl_.storage_status_)*/ 0 + + , /*decltype(_impl_.storage_id_)*/ 0u + + , /*decltype(_impl_.storage_type_)*/ 0 + + , /*decltype(_impl_._cached_size_)*/{}} {} struct StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StatusDefaultTypeInternal() {} union { Status _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatusDefaultTypeInternal _Status_default_instance_; +template PROTOBUF_CONSTEXPR Option::Option( - ::_pbi::ConstantInitialized) - : option_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , option_description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.option_id_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.option_description_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_._cached_size_)*/{}} {} struct OptionDefaultTypeInternal { - PROTOBUF_CONSTEXPR OptionDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR OptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~OptionDefaultTypeInternal() {} union { Option _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionDefaultTypeInternal _Option_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionDefaultTypeInternal _Option_default_instance_; +template PROTOBUF_CONSTEXPR Setting::Setting( - ::_pbi::ConstantInitialized) - : setting_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , setting_description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , option_(nullptr) - , is_range_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.setting_id_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.setting_description_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.option_)*/nullptr + , /*decltype(_impl_.is_range_)*/ false +} {} struct SettingDefaultTypeInternal { - PROTOBUF_CONSTEXPR SettingDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SettingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SettingDefaultTypeInternal() {} union { Setting _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SettingDefaultTypeInternal _Setting_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SettingDefaultTypeInternal _Setting_default_instance_; +template PROTOBUF_CONSTEXPR SettingOptions::SettingOptions( - ::_pbi::ConstantInitialized) - : options_() - , setting_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , setting_description_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , is_range_(false){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.options_)*/{} + , /*decltype(_impl_.setting_id_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.setting_description_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.is_range_)*/ false + + , /*decltype(_impl_._cached_size_)*/{}} {} struct SettingOptionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR SettingOptionsDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SettingOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SettingOptionsDefaultTypeInternal() {} union { SettingOptions _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SettingOptionsDefaultTypeInternal _SettingOptions_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SettingOptionsDefaultTypeInternal _SettingOptions_default_instance_; +template PROTOBUF_CONSTEXPR Information::Information( - ::_pbi::ConstantInitialized) - : vendor_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , model_name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , focal_length_mm_(0) - , horizontal_sensor_size_mm_(0) - , vertical_sensor_size_mm_(0) - , horizontal_resolution_px_(0u) - , vertical_resolution_px_(0u){} + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.vendor_name_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.model_name_)*/ { + &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} + } + + , /*decltype(_impl_.focal_length_mm_)*/ 0 + + , /*decltype(_impl_.horizontal_sensor_size_mm_)*/ 0 + + , /*decltype(_impl_.vertical_sensor_size_mm_)*/ 0 + + , /*decltype(_impl_.horizontal_resolution_px_)*/ 0u + + , /*decltype(_impl_.vertical_resolution_px_)*/ 0u + + , /*decltype(_impl_._cached_size_)*/{}} {} struct InformationDefaultTypeInternal { - PROTOBUF_CONSTEXPR InformationDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR InformationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~InformationDefaultTypeInternal() {} union { Information _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InformationDefaultTypeInternal _Information_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InformationDefaultTypeInternal _Information_default_instance_; } // namespace camera } // namespace rpc } // namespace mavsdk static ::_pb::Metadata file_level_metadata_camera_2fcamera_2eproto[54]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_camera_2fcamera_2eproto[7]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_camera_2fcamera_2eproto = nullptr; - -const uint32_t TableStruct_camera_2fcamera_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalRequest, interval_s_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeRequest, mode_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosRequest, photos_range_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, camera_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, capture_infos_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeInformationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, information_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeModeRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ModeResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ModeResponse, mode_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, video_stream_info_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeCaptureInfoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, capture_info_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeStatusRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, camera_status_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CurrentSettingsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CurrentSettingsResponse, current_settings_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PossibleSettingOptionsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PossibleSettingOptionsResponse, setting_options_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, setting_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, setting_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, camera_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, setting_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, camera_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraRequest, camera_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, result_str_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, latitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, longitude_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, absolute_altitude_m_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, relative_altitude_m_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, w_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, x_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, y_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, z_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, roll_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, pitch_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, yaw_deg_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, position_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, attitude_quaternion_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, attitude_euler_angle_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, time_utc_us_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, is_success_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, index_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, file_url_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, frame_rate_hz_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, horizontal_resolution_pix_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, vertical_resolution_pix_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, bit_rate_b_s_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, rotation_deg_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, uri_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, horizontal_fov_deg_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, settings_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, status_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, spectrum_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, video_on_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, photo_interval_on_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, used_storage_mib_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, available_storage_mib_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, total_storage_mib_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, recording_time_s_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, media_folder_name_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, storage_status_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, storage_id_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, storage_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, option_id_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, option_description_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, setting_id_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, setting_description_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, option_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, is_range_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, setting_id_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, setting_description_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, options_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, is_range_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, vendor_name_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, model_name_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, focal_length_mm_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, horizontal_sensor_size_mm_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, vertical_sensor_size_mm_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, horizontal_resolution_px_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, vertical_resolution_px_), -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::mavsdk::rpc::camera::PrepareRequest)}, - { 6, -1, -1, sizeof(::mavsdk::rpc::camera::PrepareResponse)}, - { 13, -1, -1, sizeof(::mavsdk::rpc::camera::TakePhotoRequest)}, - { 19, -1, -1, sizeof(::mavsdk::rpc::camera::TakePhotoResponse)}, - { 26, -1, -1, sizeof(::mavsdk::rpc::camera::StartPhotoIntervalRequest)}, - { 33, -1, -1, sizeof(::mavsdk::rpc::camera::StartPhotoIntervalResponse)}, - { 40, -1, -1, sizeof(::mavsdk::rpc::camera::StopPhotoIntervalRequest)}, - { 46, -1, -1, sizeof(::mavsdk::rpc::camera::StopPhotoIntervalResponse)}, - { 53, -1, -1, sizeof(::mavsdk::rpc::camera::StartVideoRequest)}, - { 59, -1, -1, sizeof(::mavsdk::rpc::camera::StartVideoResponse)}, - { 66, -1, -1, sizeof(::mavsdk::rpc::camera::StopVideoRequest)}, - { 72, -1, -1, sizeof(::mavsdk::rpc::camera::StopVideoResponse)}, - { 79, -1, -1, sizeof(::mavsdk::rpc::camera::StartVideoStreamingRequest)}, - { 85, -1, -1, sizeof(::mavsdk::rpc::camera::StartVideoStreamingResponse)}, - { 92, -1, -1, sizeof(::mavsdk::rpc::camera::StopVideoStreamingRequest)}, - { 98, -1, -1, sizeof(::mavsdk::rpc::camera::StopVideoStreamingResponse)}, - { 105, -1, -1, sizeof(::mavsdk::rpc::camera::SetModeRequest)}, - { 112, -1, -1, sizeof(::mavsdk::rpc::camera::SetModeResponse)}, - { 119, -1, -1, sizeof(::mavsdk::rpc::camera::ListPhotosRequest)}, - { 126, -1, -1, sizeof(::mavsdk::rpc::camera::ListPhotosResponse)}, - { 134, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeInformationRequest)}, - { 140, -1, -1, sizeof(::mavsdk::rpc::camera::InformationResponse)}, - { 147, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeModeRequest)}, - { 153, -1, -1, sizeof(::mavsdk::rpc::camera::ModeResponse)}, - { 160, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest)}, - { 166, -1, -1, sizeof(::mavsdk::rpc::camera::VideoStreamInfoResponse)}, - { 173, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeCaptureInfoRequest)}, - { 179, -1, -1, sizeof(::mavsdk::rpc::camera::CaptureInfoResponse)}, - { 186, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeStatusRequest)}, - { 192, -1, -1, sizeof(::mavsdk::rpc::camera::StatusResponse)}, - { 199, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest)}, - { 205, -1, -1, sizeof(::mavsdk::rpc::camera::CurrentSettingsResponse)}, - { 212, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest)}, - { 218, -1, -1, sizeof(::mavsdk::rpc::camera::PossibleSettingOptionsResponse)}, - { 225, -1, -1, sizeof(::mavsdk::rpc::camera::SetSettingRequest)}, - { 232, -1, -1, sizeof(::mavsdk::rpc::camera::SetSettingResponse)}, - { 239, -1, -1, sizeof(::mavsdk::rpc::camera::GetSettingRequest)}, - { 246, -1, -1, sizeof(::mavsdk::rpc::camera::GetSettingResponse)}, - { 254, -1, -1, sizeof(::mavsdk::rpc::camera::FormatStorageRequest)}, - { 260, -1, -1, sizeof(::mavsdk::rpc::camera::FormatStorageResponse)}, - { 267, -1, -1, sizeof(::mavsdk::rpc::camera::SelectCameraResponse)}, - { 274, -1, -1, sizeof(::mavsdk::rpc::camera::SelectCameraRequest)}, - { 281, -1, -1, sizeof(::mavsdk::rpc::camera::CameraResult)}, - { 289, -1, -1, sizeof(::mavsdk::rpc::camera::Position)}, - { 299, -1, -1, sizeof(::mavsdk::rpc::camera::Quaternion)}, - { 309, -1, -1, sizeof(::mavsdk::rpc::camera::EulerAngle)}, - { 318, -1, -1, sizeof(::mavsdk::rpc::camera::CaptureInfo)}, - { 331, -1, -1, sizeof(::mavsdk::rpc::camera::VideoStreamSettings)}, - { 344, -1, -1, sizeof(::mavsdk::rpc::camera::VideoStreamInfo)}, - { 353, -1, -1, sizeof(::mavsdk::rpc::camera::Status)}, - { 369, -1, -1, sizeof(::mavsdk::rpc::camera::Option)}, - { 377, -1, -1, sizeof(::mavsdk::rpc::camera::Setting)}, - { 387, -1, -1, sizeof(::mavsdk::rpc::camera::SettingOptions)}, - { 397, -1, -1, sizeof(::mavsdk::rpc::camera::Information)}, +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_camera_2fcamera_2eproto = nullptr; +const ::uint32_t TableStruct_camera_2fcamera_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PrepareResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::TakePhotoResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalRequest, _impl_.interval_s_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartPhotoIntervalResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopPhotoIntervalResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StartVideoStreamingResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StopVideoStreamingResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeRequest, _impl_.mode_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetModeResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosRequest, _impl_.photos_range_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_.camera_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ListPhotosResponse, _impl_.capture_infos_), + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeInformationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::InformationResponse, _impl_.information_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeModeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ModeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::ModeResponse, _impl_.mode_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfoResponse, _impl_.video_stream_info_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeCaptureInfoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfoResponse, _impl_.capture_info_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeStatusRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::StatusResponse, _impl_.camera_status_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CurrentSettingsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CurrentSettingsResponse, _impl_.current_settings_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PossibleSettingOptionsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::PossibleSettingOptionsResponse, _impl_.setting_options_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingRequest, _impl_.setting_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SetSettingResponse, _impl_.camera_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingRequest, _impl_.setting_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_.camera_result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::GetSettingResponse, _impl_.setting_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::FormatStorageResponse, _impl_.camera_result_), + 0, + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraResponse, _impl_.camera_result_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SelectCameraRequest, _impl_.camera_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _impl_.result_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CameraResult, _impl_.result_str_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.latitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.longitude_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.absolute_altitude_m_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Position, _impl_.relative_altitude_m_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.w_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Quaternion, _impl_.z_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.roll_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.pitch_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::EulerAngle, _impl_.yaw_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.position_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.attitude_quaternion_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.attitude_euler_angle_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.time_utc_us_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.is_success_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.index_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::CaptureInfo, _impl_.file_url_), + 0, + 1, + 2, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.frame_rate_hz_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.horizontal_resolution_pix_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.vertical_resolution_pix_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.bit_rate_b_s_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.rotation_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.uri_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamSettings, _impl_.horizontal_fov_deg_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.settings_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.status_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::VideoStreamInfo, _impl_.spectrum_), + 0, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.video_on_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.photo_interval_on_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.used_storage_mib_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.available_storage_mib_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.total_storage_mib_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.recording_time_s_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.media_folder_name_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_status_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_id_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Status, _impl_.storage_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _impl_.option_id_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Option, _impl_.option_description_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.setting_id_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.setting_description_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.option_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Setting, _impl_.is_range_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.setting_id_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.setting_description_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.options_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::SettingOptions, _impl_.is_range_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.vendor_name_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.model_name_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.focal_length_mm_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.horizontal_sensor_size_mm_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.vertical_sensor_size_mm_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.horizontal_resolution_px_), + PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::camera::Information, _impl_.vertical_resolution_px_), +}; + +static const ::_pbi::MigrationSchema + schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::mavsdk::rpc::camera::PrepareRequest)}, + { 8, 17, -1, sizeof(::mavsdk::rpc::camera::PrepareResponse)}, + { 18, -1, -1, sizeof(::mavsdk::rpc::camera::TakePhotoRequest)}, + { 26, 35, -1, sizeof(::mavsdk::rpc::camera::TakePhotoResponse)}, + { 36, -1, -1, sizeof(::mavsdk::rpc::camera::StartPhotoIntervalRequest)}, + { 45, 54, -1, sizeof(::mavsdk::rpc::camera::StartPhotoIntervalResponse)}, + { 55, -1, -1, sizeof(::mavsdk::rpc::camera::StopPhotoIntervalRequest)}, + { 63, 72, -1, sizeof(::mavsdk::rpc::camera::StopPhotoIntervalResponse)}, + { 73, -1, -1, sizeof(::mavsdk::rpc::camera::StartVideoRequest)}, + { 81, 90, -1, sizeof(::mavsdk::rpc::camera::StartVideoResponse)}, + { 91, -1, -1, sizeof(::mavsdk::rpc::camera::StopVideoRequest)}, + { 99, 108, -1, sizeof(::mavsdk::rpc::camera::StopVideoResponse)}, + { 109, -1, -1, sizeof(::mavsdk::rpc::camera::StartVideoStreamingRequest)}, + { 117, 126, -1, sizeof(::mavsdk::rpc::camera::StartVideoStreamingResponse)}, + { 127, -1, -1, sizeof(::mavsdk::rpc::camera::StopVideoStreamingRequest)}, + { 135, 144, -1, sizeof(::mavsdk::rpc::camera::StopVideoStreamingResponse)}, + { 145, -1, -1, sizeof(::mavsdk::rpc::camera::SetModeRequest)}, + { 154, 163, -1, sizeof(::mavsdk::rpc::camera::SetModeResponse)}, + { 164, -1, -1, sizeof(::mavsdk::rpc::camera::ListPhotosRequest)}, + { 173, 183, -1, sizeof(::mavsdk::rpc::camera::ListPhotosResponse)}, + { 185, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeInformationRequest)}, + { 193, 202, -1, sizeof(::mavsdk::rpc::camera::InformationResponse)}, + { 203, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeModeRequest)}, + { 211, -1, -1, sizeof(::mavsdk::rpc::camera::ModeResponse)}, + { 220, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeVideoStreamInfoRequest)}, + { 228, 237, -1, sizeof(::mavsdk::rpc::camera::VideoStreamInfoResponse)}, + { 238, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeCaptureInfoRequest)}, + { 246, 255, -1, sizeof(::mavsdk::rpc::camera::CaptureInfoResponse)}, + { 256, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeStatusRequest)}, + { 264, 273, -1, sizeof(::mavsdk::rpc::camera::StatusResponse)}, + { 274, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribeCurrentSettingsRequest)}, + { 282, -1, -1, sizeof(::mavsdk::rpc::camera::CurrentSettingsResponse)}, + { 291, -1, -1, sizeof(::mavsdk::rpc::camera::SubscribePossibleSettingOptionsRequest)}, + { 299, -1, -1, sizeof(::mavsdk::rpc::camera::PossibleSettingOptionsResponse)}, + { 308, 317, -1, sizeof(::mavsdk::rpc::camera::SetSettingRequest)}, + { 318, 327, -1, sizeof(::mavsdk::rpc::camera::SetSettingResponse)}, + { 328, 337, -1, sizeof(::mavsdk::rpc::camera::GetSettingRequest)}, + { 338, 348, -1, sizeof(::mavsdk::rpc::camera::GetSettingResponse)}, + { 350, -1, -1, sizeof(::mavsdk::rpc::camera::FormatStorageRequest)}, + { 358, 367, -1, sizeof(::mavsdk::rpc::camera::FormatStorageResponse)}, + { 368, 377, -1, sizeof(::mavsdk::rpc::camera::SelectCameraResponse)}, + { 378, -1, -1, sizeof(::mavsdk::rpc::camera::SelectCameraRequest)}, + { 387, -1, -1, sizeof(::mavsdk::rpc::camera::CameraResult)}, + { 397, -1, -1, sizeof(::mavsdk::rpc::camera::Position)}, + { 409, -1, -1, sizeof(::mavsdk::rpc::camera::Quaternion)}, + { 421, -1, -1, sizeof(::mavsdk::rpc::camera::EulerAngle)}, + { 432, 447, -1, sizeof(::mavsdk::rpc::camera::CaptureInfo)}, + { 454, -1, -1, sizeof(::mavsdk::rpc::camera::VideoStreamSettings)}, + { 469, 480, -1, sizeof(::mavsdk::rpc::camera::VideoStreamInfo)}, + { 483, -1, -1, sizeof(::mavsdk::rpc::camera::Status)}, + { 501, -1, -1, sizeof(::mavsdk::rpc::camera::Option)}, + { 511, 523, -1, sizeof(::mavsdk::rpc::camera::Setting)}, + { 527, -1, -1, sizeof(::mavsdk::rpc::camera::SettingOptions)}, + { 539, -1, -1, sizeof(::mavsdk::rpc::camera::Information)}, }; static const ::_pb::Message* const file_default_instances[] = { - &::mavsdk::rpc::camera::_PrepareRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_PrepareResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_TakePhotoRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_TakePhotoResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_StartPhotoIntervalRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_StartPhotoIntervalResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_StopPhotoIntervalRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_StopPhotoIntervalResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_StartVideoRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_StartVideoResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_StopVideoRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_StopVideoResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_StartVideoStreamingRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_StartVideoStreamingResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_StopVideoStreamingRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_StopVideoStreamingResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_SetModeRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_SetModeResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_ListPhotosRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_ListPhotosResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_SubscribeInformationRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_InformationResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_SubscribeModeRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_ModeResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_SubscribeVideoStreamInfoRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_VideoStreamInfoResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_SubscribeCaptureInfoRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_CaptureInfoResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_SubscribeStatusRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_StatusResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_SubscribeCurrentSettingsRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_CurrentSettingsResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_SubscribePossibleSettingOptionsRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_PossibleSettingOptionsResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_SetSettingRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_SetSettingResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_GetSettingRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_GetSettingResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_FormatStorageRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_FormatStorageResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_SelectCameraResponse_default_instance_._instance, - &::mavsdk::rpc::camera::_SelectCameraRequest_default_instance_._instance, - &::mavsdk::rpc::camera::_CameraResult_default_instance_._instance, - &::mavsdk::rpc::camera::_Position_default_instance_._instance, - &::mavsdk::rpc::camera::_Quaternion_default_instance_._instance, - &::mavsdk::rpc::camera::_EulerAngle_default_instance_._instance, - &::mavsdk::rpc::camera::_CaptureInfo_default_instance_._instance, - &::mavsdk::rpc::camera::_VideoStreamSettings_default_instance_._instance, - &::mavsdk::rpc::camera::_VideoStreamInfo_default_instance_._instance, - &::mavsdk::rpc::camera::_Status_default_instance_._instance, - &::mavsdk::rpc::camera::_Option_default_instance_._instance, - &::mavsdk::rpc::camera::_Setting_default_instance_._instance, - &::mavsdk::rpc::camera::_SettingOptions_default_instance_._instance, - &::mavsdk::rpc::camera::_Information_default_instance_._instance, -}; - -const char descriptor_table_protodef_camera_2fcamera_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\023camera/camera.proto\022\021mavsdk.rpc.camera" - "\032\024mavsdk_options.proto\"\020\n\016PrepareRequest" - "\"I\n\017PrepareResponse\0226\n\rcamera_result\030\001 \001" - "(\0132\037.mavsdk.rpc.camera.CameraResult\"\022\n\020T" - "akePhotoRequest\"K\n\021TakePhotoResponse\0226\n\r" - "camera_result\030\001 \001(\0132\037.mavsdk.rpc.camera." - "CameraResult\"/\n\031StartPhotoIntervalReques" - "t\022\022\n\ninterval_s\030\001 \001(\002\"T\n\032StartPhotoInter" - "valResponse\0226\n\rcamera_result\030\001 \001(\0132\037.mav" - "sdk.rpc.camera.CameraResult\"\032\n\030StopPhoto" - "IntervalRequest\"S\n\031StopPhotoIntervalResp" - "onse\0226\n\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc" - ".camera.CameraResult\"\023\n\021StartVideoReques" - "t\"L\n\022StartVideoResponse\0226\n\rcamera_result" - "\030\001 \001(\0132\037.mavsdk.rpc.camera.CameraResult\"" - "\022\n\020StopVideoRequest\"K\n\021StopVideoResponse" - "\0226\n\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc.cam" - "era.CameraResult\"\034\n\032StartVideoStreamingR" - "equest\"U\n\033StartVideoStreamingResponse\0226\n" - "\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc.camera" - ".CameraResult\"\033\n\031StopVideoStreamingReque" - "st\"T\n\032StopVideoStreamingResponse\0226\n\rcame" - "ra_result\030\001 \001(\0132\037.mavsdk.rpc.camera.Came" - "raResult\"7\n\016SetModeRequest\022%\n\004mode\030\001 \001(\016" - "2\027.mavsdk.rpc.camera.Mode\"I\n\017SetModeResp" - "onse\0226\n\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc" - ".camera.CameraResult\"I\n\021ListPhotosReques" - "t\0224\n\014photos_range\030\001 \001(\0162\036.mavsdk.rpc.cam" - "era.PhotosRange\"\203\001\n\022ListPhotosResponse\0226" - "\n\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc.camer" - "a.CameraResult\0225\n\rcapture_infos\030\002 \003(\0132\036." - "mavsdk.rpc.camera.CaptureInfo\"\035\n\033Subscri" - "beInformationRequest\"J\n\023InformationRespo" - "nse\0223\n\013information\030\001 \001(\0132\036.mavsdk.rpc.ca" - "mera.Information\"\026\n\024SubscribeModeRequest" - "\"5\n\014ModeResponse\022%\n\004mode\030\001 \001(\0162\027.mavsdk." - "rpc.camera.Mode\"!\n\037SubscribeVideoStreamI" - "nfoRequest\"X\n\027VideoStreamInfoResponse\022=\n" - "\021video_stream_info\030\001 \001(\0132\".mavsdk.rpc.ca" - "mera.VideoStreamInfo\"\035\n\033SubscribeCapture" - "InfoRequest\"K\n\023CaptureInfoResponse\0224\n\014ca" - "pture_info\030\001 \001(\0132\036.mavsdk.rpc.camera.Cap" - "tureInfo\"\030\n\026SubscribeStatusRequest\"B\n\016St" - "atusResponse\0220\n\rcamera_status\030\001 \001(\0132\031.ma" - "vsdk.rpc.camera.Status\"!\n\037SubscribeCurre" - "ntSettingsRequest\"O\n\027CurrentSettingsResp" - "onse\0224\n\020current_settings\030\001 \003(\0132\032.mavsdk." - "rpc.camera.Setting\"(\n&SubscribePossibleS" - "ettingOptionsRequest\"\\\n\036PossibleSettingO" - "ptionsResponse\022:\n\017setting_options\030\001 \003(\0132" - "!.mavsdk.rpc.camera.SettingOptions\"@\n\021Se" - "tSettingRequest\022+\n\007setting\030\001 \001(\0132\032.mavsd" - "k.rpc.camera.Setting\"L\n\022SetSettingRespon" - "se\0226\n\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc.c" - "amera.CameraResult\"@\n\021GetSettingRequest\022" - "+\n\007setting\030\001 \001(\0132\032.mavsdk.rpc.camera.Set" - "ting\"y\n\022GetSettingResponse\0226\n\rcamera_res" - "ult\030\001 \001(\0132\037.mavsdk.rpc.camera.CameraResu" - "lt\022+\n\007setting\030\002 \001(\0132\032.mavsdk.rpc.camera." - "Setting\"\026\n\024FormatStorageRequest\"O\n\025Forma" - "tStorageResponse\0226\n\rcamera_result\030\001 \001(\0132" - "\037.mavsdk.rpc.camera.CameraResult\"N\n\024Sele" - "ctCameraResponse\0226\n\rcamera_result\030\001 \001(\0132" - "\037.mavsdk.rpc.camera.CameraResult\"(\n\023Sele" - "ctCameraRequest\022\021\n\tcamera_id\030\001 \001(\005\"\301\002\n\014C" - "ameraResult\0226\n\006result\030\001 \001(\0162&.mavsdk.rpc" - ".camera.CameraResult.Result\022\022\n\nresult_st" - "r\030\002 \001(\t\"\344\001\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000\022\022" - "\n\016RESULT_SUCCESS\020\001\022\026\n\022RESULT_IN_PROGRESS" - "\020\002\022\017\n\013RESULT_BUSY\020\003\022\021\n\rRESULT_DENIED\020\004\022\020" - "\n\014RESULT_ERROR\020\005\022\022\n\016RESULT_TIMEOUT\020\006\022\031\n\025" - "RESULT_WRONG_ARGUMENT\020\007\022\024\n\020RESULT_NO_SYS" - "TEM\020\010\022\037\n\033RESULT_PROTOCOL_UNSUPPORTED\020\t\"q" - "\n\010Position\022\024\n\014latitude_deg\030\001 \001(\001\022\025\n\rlong" - "itude_deg\030\002 \001(\001\022\033\n\023absolute_altitude_m\030\003" - " \001(\002\022\033\n\023relative_altitude_m\030\004 \001(\002\"8\n\nQua" - "ternion\022\t\n\001w\030\001 \001(\002\022\t\n\001x\030\002 \001(\002\022\t\n\001y\030\003 \001(\002" - "\022\t\n\001z\030\004 \001(\002\"B\n\nEulerAngle\022\020\n\010roll_deg\030\001 " - "\001(\002\022\021\n\tpitch_deg\030\002 \001(\002\022\017\n\007yaw_deg\030\003 \001(\002\"" - "\377\001\n\013CaptureInfo\022-\n\010position\030\001 \001(\0132\033.mavs" - "dk.rpc.camera.Position\022:\n\023attitude_quate" - "rnion\030\002 \001(\0132\035.mavsdk.rpc.camera.Quaterni" - "on\022;\n\024attitude_euler_angle\030\003 \001(\0132\035.mavsd" - "k.rpc.camera.EulerAngle\022\023\n\013time_utc_us\030\004" - " \001(\004\022\022\n\nis_success\030\005 \001(\010\022\r\n\005index\030\006 \001(\005\022" - "\020\n\010file_url\030\007 \001(\t\"\305\001\n\023VideoStreamSetting" - "s\022\025\n\rframe_rate_hz\030\001 \001(\002\022!\n\031horizontal_r" - "esolution_pix\030\002 \001(\r\022\037\n\027vertical_resoluti" - "on_pix\030\003 \001(\r\022\024\n\014bit_rate_b_s\030\004 \001(\r\022\024\n\014ro" - "tation_deg\030\005 \001(\r\022\013\n\003uri\030\006 \001(\t\022\032\n\022horizon" - "tal_fov_deg\030\007 \001(\002\"\302\003\n\017VideoStreamInfo\0228\n" - "\010settings\030\001 \001(\0132&.mavsdk.rpc.camera.Vide" - "oStreamSettings\022D\n\006status\030\002 \001(\01624.mavsdk" - ".rpc.camera.VideoStreamInfo.VideoStreamS" - "tatus\022H\n\010spectrum\030\003 \001(\01626.mavsdk.rpc.cam" - "era.VideoStreamInfo.VideoStreamSpectrum\"" - "]\n\021VideoStreamStatus\022#\n\037VIDEO_STREAM_STA" - "TUS_NOT_RUNNING\020\000\022#\n\037VIDEO_STREAM_STATUS" - "_IN_PROGRESS\020\001\"\205\001\n\023VideoStreamSpectrum\022!" - "\n\035VIDEO_STREAM_SPECTRUM_UNKNOWN\020\000\022\'\n#VID" - "EO_STREAM_SPECTRUM_VISIBLE_LIGHT\020\001\022\"\n\036VI" - "DEO_STREAM_SPECTRUM_INFRARED\020\002\"\207\005\n\006Statu" - "s\022\020\n\010video_on\030\001 \001(\010\022\031\n\021photo_interval_on" - "\030\002 \001(\010\022\030\n\020used_storage_mib\030\003 \001(\002\022\035\n\025avai" - "lable_storage_mib\030\004 \001(\002\022\031\n\021total_storage" - "_mib\030\005 \001(\002\022\030\n\020recording_time_s\030\006 \001(\002\022\031\n\021" - "media_folder_name\030\007 \001(\t\022\?\n\016storage_statu" - "s\030\010 \001(\0162\'.mavsdk.rpc.camera.Status.Stora" - "geStatus\022\022\n\nstorage_id\030\t \001(\r\022;\n\014storage_" - "type\030\n \001(\0162%.mavsdk.rpc.camera.Status.St" - "orageType\"\221\001\n\rStorageStatus\022 \n\034STORAGE_S" - "TATUS_NOT_AVAILABLE\020\000\022\036\n\032STORAGE_STATUS_" - "UNFORMATTED\020\001\022\034\n\030STORAGE_STATUS_FORMATTE" - "D\020\002\022 \n\034STORAGE_STATUS_NOT_SUPPORTED\020\003\"\240\001" - "\n\013StorageType\022\030\n\024STORAGE_TYPE_UNKNOWN\020\000\022" - "\032\n\026STORAGE_TYPE_USB_STICK\020\001\022\023\n\017STORAGE_T" - "YPE_SD\020\002\022\030\n\024STORAGE_TYPE_MICROSD\020\003\022\023\n\017ST" - "ORAGE_TYPE_HD\020\007\022\027\n\022STORAGE_TYPE_OTHER\020\376\001" - "\"7\n\006Option\022\021\n\toption_id\030\001 \001(\t\022\032\n\022option_" - "description\030\002 \001(\t\"w\n\007Setting\022\022\n\nsetting_" - "id\030\001 \001(\t\022\033\n\023setting_description\030\002 \001(\t\022)\n" - "\006option\030\003 \001(\0132\031.mavsdk.rpc.camera.Option" - "\022\020\n\010is_range\030\004 \001(\010\"\177\n\016SettingOptions\022\022\n\n" - "setting_id\030\001 \001(\t\022\033\n\023setting_description\030" - "\002 \001(\t\022*\n\007options\030\003 \003(\0132\031.mavsdk.rpc.came" - "ra.Option\022\020\n\010is_range\030\004 \001(\010\"\325\001\n\013Informat" - "ion\022\023\n\013vendor_name\030\001 \001(\t\022\022\n\nmodel_name\030\002" - " \001(\t\022\027\n\017focal_length_mm\030\003 \001(\002\022!\n\031horizon" - "tal_sensor_size_mm\030\004 \001(\002\022\037\n\027vertical_sen" - "sor_size_mm\030\005 \001(\002\022 \n\030horizontal_resoluti" - "on_px\030\006 \001(\r\022\036\n\026vertical_resolution_px\030\007 " - "\001(\r*8\n\004Mode\022\020\n\014MODE_UNKNOWN\020\000\022\016\n\nMODE_PH" - "OTO\020\001\022\016\n\nMODE_VIDEO\020\002*F\n\013PhotosRange\022\024\n\020" - "PHOTOS_RANGE_ALL\020\000\022!\n\035PHOTOS_RANGE_SINCE" - "_CONNECTION\020\0012\323\021\n\rCameraService\022R\n\007Prepa" - "re\022!.mavsdk.rpc.camera.PrepareRequest\032\"." - "mavsdk.rpc.camera.PrepareResponse\"\000\022X\n\tT" - "akePhoto\022#.mavsdk.rpc.camera.TakePhotoRe" - "quest\032$.mavsdk.rpc.camera.TakePhotoRespo" - "nse\"\000\022s\n\022StartPhotoInterval\022,.mavsdk.rpc" - ".camera.StartPhotoIntervalRequest\032-.mavs" - "dk.rpc.camera.StartPhotoIntervalResponse" - "\"\000\022p\n\021StopPhotoInterval\022+.mavsdk.rpc.cam" - "era.StopPhotoIntervalRequest\032,.mavsdk.rp" - "c.camera.StopPhotoIntervalResponse\"\000\022[\n\n" - "StartVideo\022$.mavsdk.rpc.camera.StartVide" - "oRequest\032%.mavsdk.rpc.camera.StartVideoR" - "esponse\"\000\022X\n\tStopVideo\022#.mavsdk.rpc.came" - "ra.StopVideoRequest\032$.mavsdk.rpc.camera." - "StopVideoResponse\"\000\022z\n\023StartVideoStreami" - "ng\022-.mavsdk.rpc.camera.StartVideoStreami" - "ngRequest\032..mavsdk.rpc.camera.StartVideo" - "StreamingResponse\"\004\200\265\030\001\022w\n\022StopVideoStre" - "aming\022,.mavsdk.rpc.camera.StopVideoStrea" - "mingRequest\032-.mavsdk.rpc.camera.StopVide" - "oStreamingResponse\"\004\200\265\030\001\022R\n\007SetMode\022!.ma" - "vsdk.rpc.camera.SetModeRequest\032\".mavsdk." - "rpc.camera.SetModeResponse\"\000\022[\n\nListPhot" - "os\022$.mavsdk.rpc.camera.ListPhotosRequest" - "\032%.mavsdk.rpc.camera.ListPhotosResponse\"" - "\000\022]\n\rSubscribeMode\022\'.mavsdk.rpc.camera.S" - "ubscribeModeRequest\032\037.mavsdk.rpc.camera." - "ModeResponse\"\0000\001\022r\n\024SubscribeInformation" - "\022..mavsdk.rpc.camera.SubscribeInformatio" - "nRequest\032&.mavsdk.rpc.camera.Information" - "Response\"\0000\001\022~\n\030SubscribeVideoStreamInfo" - "\0222.mavsdk.rpc.camera.SubscribeVideoStrea" - "mInfoRequest\032*.mavsdk.rpc.camera.VideoSt" - "reamInfoResponse\"\0000\001\022v\n\024SubscribeCapture" - "Info\022..mavsdk.rpc.camera.SubscribeCaptur" - "eInfoRequest\032&.mavsdk.rpc.camera.Capture" - "InfoResponse\"\004\200\265\030\0000\001\022c\n\017SubscribeStatus\022" - ").mavsdk.rpc.camera.SubscribeStatusReque" - "st\032!.mavsdk.rpc.camera.StatusResponse\"\0000" - "\001\022\202\001\n\030SubscribeCurrentSettings\0222.mavsdk." - "rpc.camera.SubscribeCurrentSettingsReque" - "st\032*.mavsdk.rpc.camera.CurrentSettingsRe" - "sponse\"\004\200\265\030\0000\001\022\223\001\n\037SubscribePossibleSett" - "ingOptions\0229.mavsdk.rpc.camera.Subscribe" - "PossibleSettingOptionsRequest\0321.mavsdk.r" - "pc.camera.PossibleSettingOptionsResponse" - "\"\0000\001\022[\n\nSetSetting\022$.mavsdk.rpc.camera.S" - "etSettingRequest\032%.mavsdk.rpc.camera.Set" - "SettingResponse\"\000\022[\n\nGetSetting\022$.mavsdk" - ".rpc.camera.GetSettingRequest\032%.mavsdk.r" - "pc.camera.GetSettingResponse\"\000\022d\n\rFormat" - "Storage\022\'.mavsdk.rpc.camera.FormatStorag" - "eRequest\032(.mavsdk.rpc.camera.FormatStora" - "geResponse\"\000\022e\n\014SelectCamera\022&.mavsdk.rp" - "c.camera.SelectCameraRequest\032\'.mavsdk.rp" - "c.camera.SelectCameraResponse\"\004\200\265\030\001B\037\n\020i" - "o.mavsdk.cameraB\013CameraProtob\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_camera_2fcamera_2eproto_deps[1] = { - &::descriptor_table_mavsdk_5foptions_2eproto, -}; -static ::_pbi::once_flag descriptor_table_camera_2fcamera_2eproto_once; + &::mavsdk::rpc::camera::_PrepareRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_PrepareResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_TakePhotoRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_TakePhotoResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_StartPhotoIntervalRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_StartPhotoIntervalResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_StopPhotoIntervalRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_StopPhotoIntervalResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_StartVideoRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_StartVideoResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_StopVideoRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_StopVideoResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_StartVideoStreamingRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_StartVideoStreamingResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_StopVideoStreamingRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_StopVideoStreamingResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_SetModeRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_SetModeResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_ListPhotosRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_ListPhotosResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_SubscribeInformationRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_InformationResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_SubscribeModeRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_ModeResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_SubscribeVideoStreamInfoRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_VideoStreamInfoResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_SubscribeCaptureInfoRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_CaptureInfoResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_SubscribeStatusRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_StatusResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_SubscribeCurrentSettingsRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_CurrentSettingsResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_SubscribePossibleSettingOptionsRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_PossibleSettingOptionsResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_SetSettingRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_SetSettingResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_GetSettingRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_GetSettingResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_FormatStorageRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_FormatStorageResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_SelectCameraResponse_default_instance_._instance, + &::mavsdk::rpc::camera::_SelectCameraRequest_default_instance_._instance, + &::mavsdk::rpc::camera::_CameraResult_default_instance_._instance, + &::mavsdk::rpc::camera::_Position_default_instance_._instance, + &::mavsdk::rpc::camera::_Quaternion_default_instance_._instance, + &::mavsdk::rpc::camera::_EulerAngle_default_instance_._instance, + &::mavsdk::rpc::camera::_CaptureInfo_default_instance_._instance, + &::mavsdk::rpc::camera::_VideoStreamSettings_default_instance_._instance, + &::mavsdk::rpc::camera::_VideoStreamInfo_default_instance_._instance, + &::mavsdk::rpc::camera::_Status_default_instance_._instance, + &::mavsdk::rpc::camera::_Option_default_instance_._instance, + &::mavsdk::rpc::camera::_Setting_default_instance_._instance, + &::mavsdk::rpc::camera::_SettingOptions_default_instance_._instance, + &::mavsdk::rpc::camera::_Information_default_instance_._instance, +}; +const char descriptor_table_protodef_camera_2fcamera_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + "\n\023camera/camera.proto\022\021mavsdk.rpc.camera" + "\032\024mavsdk_options.proto\"\020\n\016PrepareRequest" + "\"I\n\017PrepareResponse\0226\n\rcamera_result\030\001 \001" + "(\0132\037.mavsdk.rpc.camera.CameraResult\"\022\n\020T" + "akePhotoRequest\"K\n\021TakePhotoResponse\0226\n\r" + "camera_result\030\001 \001(\0132\037.mavsdk.rpc.camera." + "CameraResult\"/\n\031StartPhotoIntervalReques" + "t\022\022\n\ninterval_s\030\001 \001(\002\"T\n\032StartPhotoInter" + "valResponse\0226\n\rcamera_result\030\001 \001(\0132\037.mav" + "sdk.rpc.camera.CameraResult\"\032\n\030StopPhoto" + "IntervalRequest\"S\n\031StopPhotoIntervalResp" + "onse\0226\n\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc" + ".camera.CameraResult\"\023\n\021StartVideoReques" + "t\"L\n\022StartVideoResponse\0226\n\rcamera_result" + "\030\001 \001(\0132\037.mavsdk.rpc.camera.CameraResult\"" + "\022\n\020StopVideoRequest\"K\n\021StopVideoResponse" + "\0226\n\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc.cam" + "era.CameraResult\"\034\n\032StartVideoStreamingR" + "equest\"U\n\033StartVideoStreamingResponse\0226\n" + "\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc.camera" + ".CameraResult\"\033\n\031StopVideoStreamingReque" + "st\"T\n\032StopVideoStreamingResponse\0226\n\rcame" + "ra_result\030\001 \001(\0132\037.mavsdk.rpc.camera.Came" + "raResult\"7\n\016SetModeRequest\022%\n\004mode\030\001 \001(\016" + "2\027.mavsdk.rpc.camera.Mode\"I\n\017SetModeResp" + "onse\0226\n\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc" + ".camera.CameraResult\"I\n\021ListPhotosReques" + "t\0224\n\014photos_range\030\001 \001(\0162\036.mavsdk.rpc.cam" + "era.PhotosRange\"\203\001\n\022ListPhotosResponse\0226" + "\n\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc.camer" + "a.CameraResult\0225\n\rcapture_infos\030\002 \003(\0132\036." + "mavsdk.rpc.camera.CaptureInfo\"\035\n\033Subscri" + "beInformationRequest\"J\n\023InformationRespo" + "nse\0223\n\013information\030\001 \001(\0132\036.mavsdk.rpc.ca" + "mera.Information\"\026\n\024SubscribeModeRequest" + "\"5\n\014ModeResponse\022%\n\004mode\030\001 \001(\0162\027.mavsdk." + "rpc.camera.Mode\"!\n\037SubscribeVideoStreamI" + "nfoRequest\"X\n\027VideoStreamInfoResponse\022=\n" + "\021video_stream_info\030\001 \001(\0132\".mavsdk.rpc.ca" + "mera.VideoStreamInfo\"\035\n\033SubscribeCapture" + "InfoRequest\"K\n\023CaptureInfoResponse\0224\n\014ca" + "pture_info\030\001 \001(\0132\036.mavsdk.rpc.camera.Cap" + "tureInfo\"\030\n\026SubscribeStatusRequest\"B\n\016St" + "atusResponse\0220\n\rcamera_status\030\001 \001(\0132\031.ma" + "vsdk.rpc.camera.Status\"!\n\037SubscribeCurre" + "ntSettingsRequest\"O\n\027CurrentSettingsResp" + "onse\0224\n\020current_settings\030\001 \003(\0132\032.mavsdk." + "rpc.camera.Setting\"(\n&SubscribePossibleS" + "ettingOptionsRequest\"\\\n\036PossibleSettingO" + "ptionsResponse\022:\n\017setting_options\030\001 \003(\0132" + "!.mavsdk.rpc.camera.SettingOptions\"@\n\021Se" + "tSettingRequest\022+\n\007setting\030\001 \001(\0132\032.mavsd" + "k.rpc.camera.Setting\"L\n\022SetSettingRespon" + "se\0226\n\rcamera_result\030\001 \001(\0132\037.mavsdk.rpc.c" + "amera.CameraResult\"@\n\021GetSettingRequest\022" + "+\n\007setting\030\001 \001(\0132\032.mavsdk.rpc.camera.Set" + "ting\"y\n\022GetSettingResponse\0226\n\rcamera_res" + "ult\030\001 \001(\0132\037.mavsdk.rpc.camera.CameraResu" + "lt\022+\n\007setting\030\002 \001(\0132\032.mavsdk.rpc.camera." + "Setting\"\026\n\024FormatStorageRequest\"O\n\025Forma" + "tStorageResponse\0226\n\rcamera_result\030\001 \001(\0132" + "\037.mavsdk.rpc.camera.CameraResult\"N\n\024Sele" + "ctCameraResponse\0226\n\rcamera_result\030\001 \001(\0132" + "\037.mavsdk.rpc.camera.CameraResult\"(\n\023Sele" + "ctCameraRequest\022\021\n\tcamera_id\030\001 \001(\005\"\301\002\n\014C" + "ameraResult\0226\n\006result\030\001 \001(\0162&.mavsdk.rpc" + ".camera.CameraResult.Result\022\022\n\nresult_st" + "r\030\002 \001(\t\"\344\001\n\006Result\022\022\n\016RESULT_UNKNOWN\020\000\022\022" + "\n\016RESULT_SUCCESS\020\001\022\026\n\022RESULT_IN_PROGRESS" + "\020\002\022\017\n\013RESULT_BUSY\020\003\022\021\n\rRESULT_DENIED\020\004\022\020" + "\n\014RESULT_ERROR\020\005\022\022\n\016RESULT_TIMEOUT\020\006\022\031\n\025" + "RESULT_WRONG_ARGUMENT\020\007\022\024\n\020RESULT_NO_SYS" + "TEM\020\010\022\037\n\033RESULT_PROTOCOL_UNSUPPORTED\020\t\"q" + "\n\010Position\022\024\n\014latitude_deg\030\001 \001(\001\022\025\n\rlong" + "itude_deg\030\002 \001(\001\022\033\n\023absolute_altitude_m\030\003" + " \001(\002\022\033\n\023relative_altitude_m\030\004 \001(\002\"8\n\nQua" + "ternion\022\t\n\001w\030\001 \001(\002\022\t\n\001x\030\002 \001(\002\022\t\n\001y\030\003 \001(\002" + "\022\t\n\001z\030\004 \001(\002\"B\n\nEulerAngle\022\020\n\010roll_deg\030\001 " + "\001(\002\022\021\n\tpitch_deg\030\002 \001(\002\022\017\n\007yaw_deg\030\003 \001(\002\"" + "\377\001\n\013CaptureInfo\022-\n\010position\030\001 \001(\0132\033.mavs" + "dk.rpc.camera.Position\022:\n\023attitude_quate" + "rnion\030\002 \001(\0132\035.mavsdk.rpc.camera.Quaterni" + "on\022;\n\024attitude_euler_angle\030\003 \001(\0132\035.mavsd" + "k.rpc.camera.EulerAngle\022\023\n\013time_utc_us\030\004" + " \001(\004\022\022\n\nis_success\030\005 \001(\010\022\r\n\005index\030\006 \001(\005\022" + "\020\n\010file_url\030\007 \001(\t\"\305\001\n\023VideoStreamSetting" + "s\022\025\n\rframe_rate_hz\030\001 \001(\002\022!\n\031horizontal_r" + "esolution_pix\030\002 \001(\r\022\037\n\027vertical_resoluti" + "on_pix\030\003 \001(\r\022\024\n\014bit_rate_b_s\030\004 \001(\r\022\024\n\014ro" + "tation_deg\030\005 \001(\r\022\013\n\003uri\030\006 \001(\t\022\032\n\022horizon" + "tal_fov_deg\030\007 \001(\002\"\302\003\n\017VideoStreamInfo\0228\n" + "\010settings\030\001 \001(\0132&.mavsdk.rpc.camera.Vide" + "oStreamSettings\022D\n\006status\030\002 \001(\01624.mavsdk" + ".rpc.camera.VideoStreamInfo.VideoStreamS" + "tatus\022H\n\010spectrum\030\003 \001(\01626.mavsdk.rpc.cam" + "era.VideoStreamInfo.VideoStreamSpectrum\"" + "]\n\021VideoStreamStatus\022#\n\037VIDEO_STREAM_STA" + "TUS_NOT_RUNNING\020\000\022#\n\037VIDEO_STREAM_STATUS" + "_IN_PROGRESS\020\001\"\205\001\n\023VideoStreamSpectrum\022!" + "\n\035VIDEO_STREAM_SPECTRUM_UNKNOWN\020\000\022\'\n#VID" + "EO_STREAM_SPECTRUM_VISIBLE_LIGHT\020\001\022\"\n\036VI" + "DEO_STREAM_SPECTRUM_INFRARED\020\002\"\207\005\n\006Statu" + "s\022\020\n\010video_on\030\001 \001(\010\022\031\n\021photo_interval_on" + "\030\002 \001(\010\022\030\n\020used_storage_mib\030\003 \001(\002\022\035\n\025avai" + "lable_storage_mib\030\004 \001(\002\022\031\n\021total_storage" + "_mib\030\005 \001(\002\022\030\n\020recording_time_s\030\006 \001(\002\022\031\n\021" + "media_folder_name\030\007 \001(\t\022\?\n\016storage_statu" + "s\030\010 \001(\0162\'.mavsdk.rpc.camera.Status.Stora" + "geStatus\022\022\n\nstorage_id\030\t \001(\r\022;\n\014storage_" + "type\030\n \001(\0162%.mavsdk.rpc.camera.Status.St" + "orageType\"\221\001\n\rStorageStatus\022 \n\034STORAGE_S" + "TATUS_NOT_AVAILABLE\020\000\022\036\n\032STORAGE_STATUS_" + "UNFORMATTED\020\001\022\034\n\030STORAGE_STATUS_FORMATTE" + "D\020\002\022 \n\034STORAGE_STATUS_NOT_SUPPORTED\020\003\"\240\001" + "\n\013StorageType\022\030\n\024STORAGE_TYPE_UNKNOWN\020\000\022" + "\032\n\026STORAGE_TYPE_USB_STICK\020\001\022\023\n\017STORAGE_T" + "YPE_SD\020\002\022\030\n\024STORAGE_TYPE_MICROSD\020\003\022\023\n\017ST" + "ORAGE_TYPE_HD\020\007\022\027\n\022STORAGE_TYPE_OTHER\020\376\001" + "\"7\n\006Option\022\021\n\toption_id\030\001 \001(\t\022\032\n\022option_" + "description\030\002 \001(\t\"w\n\007Setting\022\022\n\nsetting_" + "id\030\001 \001(\t\022\033\n\023setting_description\030\002 \001(\t\022)\n" + "\006option\030\003 \001(\0132\031.mavsdk.rpc.camera.Option" + "\022\020\n\010is_range\030\004 \001(\010\"\177\n\016SettingOptions\022\022\n\n" + "setting_id\030\001 \001(\t\022\033\n\023setting_description\030" + "\002 \001(\t\022*\n\007options\030\003 \003(\0132\031.mavsdk.rpc.came" + "ra.Option\022\020\n\010is_range\030\004 \001(\010\"\325\001\n\013Informat" + "ion\022\023\n\013vendor_name\030\001 \001(\t\022\022\n\nmodel_name\030\002" + " \001(\t\022\027\n\017focal_length_mm\030\003 \001(\002\022!\n\031horizon" + "tal_sensor_size_mm\030\004 \001(\002\022\037\n\027vertical_sen" + "sor_size_mm\030\005 \001(\002\022 \n\030horizontal_resoluti" + "on_px\030\006 \001(\r\022\036\n\026vertical_resolution_px\030\007 " + "\001(\r*8\n\004Mode\022\020\n\014MODE_UNKNOWN\020\000\022\016\n\nMODE_PH" + "OTO\020\001\022\016\n\nMODE_VIDEO\020\002*F\n\013PhotosRange\022\024\n\020" + "PHOTOS_RANGE_ALL\020\000\022!\n\035PHOTOS_RANGE_SINCE" + "_CONNECTION\020\0012\323\021\n\rCameraService\022R\n\007Prepa" + "re\022!.mavsdk.rpc.camera.PrepareRequest\032\"." + "mavsdk.rpc.camera.PrepareResponse\"\000\022X\n\tT" + "akePhoto\022#.mavsdk.rpc.camera.TakePhotoRe" + "quest\032$.mavsdk.rpc.camera.TakePhotoRespo" + "nse\"\000\022s\n\022StartPhotoInterval\022,.mavsdk.rpc" + ".camera.StartPhotoIntervalRequest\032-.mavs" + "dk.rpc.camera.StartPhotoIntervalResponse" + "\"\000\022p\n\021StopPhotoInterval\022+.mavsdk.rpc.cam" + "era.StopPhotoIntervalRequest\032,.mavsdk.rp" + "c.camera.StopPhotoIntervalResponse\"\000\022[\n\n" + "StartVideo\022$.mavsdk.rpc.camera.StartVide" + "oRequest\032%.mavsdk.rpc.camera.StartVideoR" + "esponse\"\000\022X\n\tStopVideo\022#.mavsdk.rpc.came" + "ra.StopVideoRequest\032$.mavsdk.rpc.camera." + "StopVideoResponse\"\000\022z\n\023StartVideoStreami" + "ng\022-.mavsdk.rpc.camera.StartVideoStreami" + "ngRequest\032..mavsdk.rpc.camera.StartVideo" + "StreamingResponse\"\004\200\265\030\001\022w\n\022StopVideoStre" + "aming\022,.mavsdk.rpc.camera.StopVideoStrea" + "mingRequest\032-.mavsdk.rpc.camera.StopVide" + "oStreamingResponse\"\004\200\265\030\001\022R\n\007SetMode\022!.ma" + "vsdk.rpc.camera.SetModeRequest\032\".mavsdk." + "rpc.camera.SetModeResponse\"\000\022[\n\nListPhot" + "os\022$.mavsdk.rpc.camera.ListPhotosRequest" + "\032%.mavsdk.rpc.camera.ListPhotosResponse\"" + "\000\022]\n\rSubscribeMode\022\'.mavsdk.rpc.camera.S" + "ubscribeModeRequest\032\037.mavsdk.rpc.camera." + "ModeResponse\"\0000\001\022r\n\024SubscribeInformation" + "\022..mavsdk.rpc.camera.SubscribeInformatio" + "nRequest\032&.mavsdk.rpc.camera.Information" + "Response\"\0000\001\022~\n\030SubscribeVideoStreamInfo" + "\0222.mavsdk.rpc.camera.SubscribeVideoStrea" + "mInfoRequest\032*.mavsdk.rpc.camera.VideoSt" + "reamInfoResponse\"\0000\001\022v\n\024SubscribeCapture" + "Info\022..mavsdk.rpc.camera.SubscribeCaptur" + "eInfoRequest\032&.mavsdk.rpc.camera.Capture" + "InfoResponse\"\004\200\265\030\0000\001\022c\n\017SubscribeStatus\022" + ").mavsdk.rpc.camera.SubscribeStatusReque" + "st\032!.mavsdk.rpc.camera.StatusResponse\"\0000" + "\001\022\202\001\n\030SubscribeCurrentSettings\0222.mavsdk." + "rpc.camera.SubscribeCurrentSettingsReque" + "st\032*.mavsdk.rpc.camera.CurrentSettingsRe" + "sponse\"\004\200\265\030\0000\001\022\223\001\n\037SubscribePossibleSett" + "ingOptions\0229.mavsdk.rpc.camera.Subscribe" + "PossibleSettingOptionsRequest\0321.mavsdk.r" + "pc.camera.PossibleSettingOptionsResponse" + "\"\0000\001\022[\n\nSetSetting\022$.mavsdk.rpc.camera.S" + "etSettingRequest\032%.mavsdk.rpc.camera.Set" + "SettingResponse\"\000\022[\n\nGetSetting\022$.mavsdk" + ".rpc.camera.GetSettingRequest\032%.mavsdk.r" + "pc.camera.GetSettingResponse\"\000\022d\n\rFormat" + "Storage\022\'.mavsdk.rpc.camera.FormatStorag" + "eRequest\032(.mavsdk.rpc.camera.FormatStora" + "geResponse\"\000\022e\n\014SelectCamera\022&.mavsdk.rp" + "c.camera.SelectCameraRequest\032\'.mavsdk.rp" + "c.camera.SelectCameraResponse\"\004\200\265\030\001B\037\n\020i" + "o.mavsdk.cameraB\013CameraProtob\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_camera_2fcamera_2eproto_deps[1] = + { + &::descriptor_table_mavsdk_5foptions_2eproto, +}; +static ::absl::once_flag descriptor_table_camera_2fcamera_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_camera_2fcamera_2eproto = { - false, false, 7676, descriptor_table_protodef_camera_2fcamera_2eproto, + false, + false, + 7676, + descriptor_table_protodef_camera_2fcamera_2eproto, "camera/camera.proto", - &descriptor_table_camera_2fcamera_2eproto_once, descriptor_table_camera_2fcamera_2eproto_deps, 1, 54, - schemas, file_default_instances, TableStruct_camera_2fcamera_2eproto::offsets, - file_level_metadata_camera_2fcamera_2eproto, file_level_enum_descriptors_camera_2fcamera_2eproto, + &descriptor_table_camera_2fcamera_2eproto_once, + descriptor_table_camera_2fcamera_2eproto_deps, + 1, + 54, + schemas, + file_default_instances, + TableStruct_camera_2fcamera_2eproto::offsets, + file_level_metadata_camera_2fcamera_2eproto, + file_level_enum_descriptors_camera_2fcamera_2eproto, file_level_service_descriptors_camera_2fcamera_2eproto, }; + +// This function exists to be marked as weak. +// It can significantly speed up compilation by breaking up LLVM's SCC +// in the .pb.cc translation units. Large translation units see a +// reduction of more than 35% of walltime for optimized builds. Without +// the weak attribute all the messages in the file, including all the +// vtables and everything they use become part of the same SCC through +// a cycle like: +// GetMetadata -> descriptor table -> default instances -> +// vtables -> GetMetadata +// By adding a weak function here we break the connection from the +// individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_camera_2fcamera_2eproto_getter() { return &descriptor_table_camera_2fcamera_2eproto; } - // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_camera_2fcamera_2eproto(&descriptor_table_camera_2fcamera_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_camera_2fcamera_2eproto(&descriptor_table_camera_2fcamera_2eproto); namespace mavsdk { namespace rpc { namespace camera { @@ -1480,8 +1888,9 @@ bool CameraResult_Result_IsValid(int value) { return false; } } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr CameraResult_Result CameraResult::RESULT_UNKNOWN; constexpr CameraResult_Result CameraResult::RESULT_SUCCESS; constexpr CameraResult_Result CameraResult::RESULT_IN_PROGRESS; @@ -1495,7 +1904,9 @@ constexpr CameraResult_Result CameraResult::RESULT_PROTOCOL_UNSUPPORTED; constexpr CameraResult_Result CameraResult::Result_MIN; constexpr CameraResult_Result CameraResult::Result_MAX; constexpr int CameraResult::Result_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoStreamInfo_VideoStreamStatus_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); return file_level_enum_descriptors_camera_2fcamera_2eproto[1]; @@ -1509,14 +1920,17 @@ bool VideoStreamInfo_VideoStreamStatus_IsValid(int value) { return false; } } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr VideoStreamInfo_VideoStreamStatus VideoStreamInfo::VIDEO_STREAM_STATUS_NOT_RUNNING; constexpr VideoStreamInfo_VideoStreamStatus VideoStreamInfo::VIDEO_STREAM_STATUS_IN_PROGRESS; constexpr VideoStreamInfo_VideoStreamStatus VideoStreamInfo::VideoStreamStatus_MIN; constexpr VideoStreamInfo_VideoStreamStatus VideoStreamInfo::VideoStreamStatus_MAX; constexpr int VideoStreamInfo::VideoStreamStatus_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoStreamInfo_VideoStreamSpectrum_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); return file_level_enum_descriptors_camera_2fcamera_2eproto[2]; @@ -1531,15 +1945,18 @@ bool VideoStreamInfo_VideoStreamSpectrum_IsValid(int value) { return false; } } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr VideoStreamInfo_VideoStreamSpectrum VideoStreamInfo::VIDEO_STREAM_SPECTRUM_UNKNOWN; constexpr VideoStreamInfo_VideoStreamSpectrum VideoStreamInfo::VIDEO_STREAM_SPECTRUM_VISIBLE_LIGHT; constexpr VideoStreamInfo_VideoStreamSpectrum VideoStreamInfo::VIDEO_STREAM_SPECTRUM_INFRARED; constexpr VideoStreamInfo_VideoStreamSpectrum VideoStreamInfo::VideoStreamSpectrum_MIN; constexpr VideoStreamInfo_VideoStreamSpectrum VideoStreamInfo::VideoStreamSpectrum_MAX; constexpr int VideoStreamInfo::VideoStreamSpectrum_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Status_StorageStatus_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); return file_level_enum_descriptors_camera_2fcamera_2eproto[3]; @@ -1555,8 +1972,9 @@ bool Status_StorageStatus_IsValid(int value) { return false; } } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr Status_StorageStatus Status::STORAGE_STATUS_NOT_AVAILABLE; constexpr Status_StorageStatus Status::STORAGE_STATUS_UNFORMATTED; constexpr Status_StorageStatus Status::STORAGE_STATUS_FORMATTED; @@ -1564,7 +1982,9 @@ constexpr Status_StorageStatus Status::STORAGE_STATUS_NOT_SUPPORTED; constexpr Status_StorageStatus Status::StorageStatus_MIN; constexpr Status_StorageStatus Status::StorageStatus_MAX; constexpr int Status::StorageStatus_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Status_StorageType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); return file_level_enum_descriptors_camera_2fcamera_2eproto[4]; @@ -1582,8 +2002,9 @@ bool Status_StorageType_IsValid(int value) { return false; } } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr Status_StorageType Status::STORAGE_TYPE_UNKNOWN; constexpr Status_StorageType Status::STORAGE_TYPE_USB_STICK; constexpr Status_StorageType Status::STORAGE_TYPE_SD; @@ -1593,7 +2014,9 @@ constexpr Status_StorageType Status::STORAGE_TYPE_OTHER; constexpr Status_StorageType Status::StorageType_MIN; constexpr Status_StorageType Status::StorageType_MAX; constexpr int Status::StorageType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Mode_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); return file_level_enum_descriptors_camera_2fcamera_2eproto[5]; @@ -1608,7 +2031,6 @@ bool Mode_IsValid(int value) { return false; } } - const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PhotosRange_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_camera_2fcamera_2eproto); return file_level_enum_descriptors_camera_2fcamera_2eproto[6]; @@ -1622,21 +2044,19 @@ bool PhotosRange_IsValid(int value) { return false; } } - - // =================================================================== class PrepareRequest::_Internal { public: }; -PrepareRequest::PrepareRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +PrepareRequest::PrepareRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PrepareRequest) } PrepareRequest::PrepareRequest(const PrepareRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + PrepareRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PrepareRequest) } @@ -1662,37 +2082,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PrepareRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[0]); } - // =================================================================== class PrepareResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PrepareResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const PrepareResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& PrepareResponse::_Internal::camera_result(const PrepareResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -PrepareResponse::PrepareResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +PrepareResponse::PrepareResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PrepareResponse) } PrepareResponse::PrepareResponse(const PrepareResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + PrepareResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PrepareResponse) } -inline void PrepareResponse::SharedCtor() { -camera_result_ = nullptr; +inline void PrepareResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } PrepareResponse::~PrepareResponse() { @@ -1705,40 +2138,44 @@ PrepareResponse::~PrepareResponse() { } inline void PrepareResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void PrepareResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void PrepareResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.PrepareResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* PrepareResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1756,6 +2193,7 @@ const char* PrepareResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1763,14 +2201,15 @@ const char* PrepareResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex #undef CHK_ } -uint8_t* PrepareResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* PrepareResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.PrepareResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -1784,47 +2223,45 @@ uint8_t* PrepareResponse::_InternalSerialize( return target; } -size_t PrepareResponse::ByteSizeLong() const { +::size_t PrepareResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.PrepareResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrepareResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, PrepareResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrepareResponse::GetClassData() const { return &_class_data_; } -void PrepareResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void PrepareResponse::MergeFrom(const PrepareResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.PrepareResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void PrepareResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.PrepareResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PrepareResponse::CopyFrom(const PrepareResponse& from) { @@ -1841,7 +2278,8 @@ bool PrepareResponse::IsInitialized() const { void PrepareResponse::InternalSwap(PrepareResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata PrepareResponse::GetMetadata() const { @@ -1849,20 +2287,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PrepareResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[1]); } - // =================================================================== class TakePhotoRequest::_Internal { public: }; -TakePhotoRequest::TakePhotoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +TakePhotoRequest::TakePhotoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TakePhotoRequest) } TakePhotoRequest::TakePhotoRequest(const TakePhotoRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + TakePhotoRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TakePhotoRequest) } @@ -1888,37 +2325,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TakePhotoRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[2]); } - // =================================================================== class TakePhotoResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(TakePhotoResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const TakePhotoResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& TakePhotoResponse::_Internal::camera_result(const TakePhotoResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -TakePhotoResponse::TakePhotoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +TakePhotoResponse::TakePhotoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.TakePhotoResponse) } TakePhotoResponse::TakePhotoResponse(const TakePhotoResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + TakePhotoResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.TakePhotoResponse) } -inline void TakePhotoResponse::SharedCtor() { -camera_result_ = nullptr; +inline void TakePhotoResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } TakePhotoResponse::~TakePhotoResponse() { @@ -1931,40 +2381,44 @@ TakePhotoResponse::~TakePhotoResponse() { } inline void TakePhotoResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void TakePhotoResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void TakePhotoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.TakePhotoResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* TakePhotoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -1982,6 +2436,7 @@ const char* TakePhotoResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -1989,14 +2444,15 @@ const char* TakePhotoResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* TakePhotoResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* TakePhotoResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.TakePhotoResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -2010,47 +2466,45 @@ uint8_t* TakePhotoResponse::_InternalSerialize( return target; } -size_t TakePhotoResponse::ByteSizeLong() const { +::size_t TakePhotoResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.TakePhotoResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TakePhotoResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, TakePhotoResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TakePhotoResponse::GetClassData() const { return &_class_data_; } -void TakePhotoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void TakePhotoResponse::MergeFrom(const TakePhotoResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TakePhotoResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void TakePhotoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.TakePhotoResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TakePhotoResponse::CopyFrom(const TakePhotoResponse& from) { @@ -2067,7 +2521,8 @@ bool TakePhotoResponse::IsInitialized() const { void TakePhotoResponse::InternalSwap(TakePhotoResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata TakePhotoResponse::GetMetadata() const { @@ -2075,28 +2530,31 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TakePhotoResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[3]); } - // =================================================================== class StartPhotoIntervalRequest::_Internal { public: }; -StartPhotoIntervalRequest::StartPhotoIntervalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +StartPhotoIntervalRequest::StartPhotoIntervalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartPhotoIntervalRequest) } StartPhotoIntervalRequest::StartPhotoIntervalRequest(const StartPhotoIntervalRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - interval_s_ = from.interval_s_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartPhotoIntervalRequest) } -inline void StartPhotoIntervalRequest::SharedCtor() { -interval_s_ = 0; +inline void StartPhotoIntervalRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.interval_s_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } StartPhotoIntervalRequest::~StartPhotoIntervalRequest() { @@ -2109,36 +2567,37 @@ StartPhotoIntervalRequest::~StartPhotoIntervalRequest() { } inline void StartPhotoIntervalRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void StartPhotoIntervalRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void StartPhotoIntervalRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - interval_s_ = 0; + _impl_.interval_s_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* StartPhotoIntervalRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // float interval_s = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - interval_s_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { + _impl_.interval_s_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2163,20 +2622,21 @@ const char* StartPhotoIntervalRequest::_InternalParse(const char* ptr, ::_pbi::P #undef CHK_ } -uint8_t* StartPhotoIntervalRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* StartPhotoIntervalRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // float interval_s = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_interval_s = this->_internal_interval_s(); - uint32_t raw_interval_s; + ::uint32_t raw_interval_s; memcpy(&raw_interval_s, &tmp_interval_s, sizeof(tmp_interval_s)); if (raw_interval_s != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_interval_s(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this->_internal_interval_s(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2187,53 +2647,49 @@ uint8_t* StartPhotoIntervalRequest::_InternalSerialize( return target; } -size_t StartPhotoIntervalRequest::ByteSizeLong() const { +::size_t StartPhotoIntervalRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float interval_s = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_interval_s = this->_internal_interval_s(); - uint32_t raw_interval_s; + ::uint32_t raw_interval_s; memcpy(&raw_interval_s, &tmp_interval_s, sizeof(tmp_interval_s)); if (raw_interval_s != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartPhotoIntervalRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, StartPhotoIntervalRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartPhotoIntervalRequest::GetClassData() const { return &_class_data_; } -void StartPhotoIntervalRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void StartPhotoIntervalRequest::MergeFrom(const StartPhotoIntervalRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void StartPhotoIntervalRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartPhotoIntervalRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_interval_s = from._internal_interval_s(); - uint32_t raw_interval_s; + ::uint32_t raw_interval_s; memcpy(&raw_interval_s, &tmp_interval_s, sizeof(tmp_interval_s)); if (raw_interval_s != 0) { - _internal_set_interval_s(from._internal_interval_s()); + _this->_internal_set_interval_s(from._internal_interval_s()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StartPhotoIntervalRequest::CopyFrom(const StartPhotoIntervalRequest& from) { @@ -2250,7 +2706,8 @@ bool StartPhotoIntervalRequest::IsInitialized() const { void StartPhotoIntervalRequest::InternalSwap(StartPhotoIntervalRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(interval_s_, other->interval_s_); + + swap(_impl_.interval_s_, other->_impl_.interval_s_); } ::PROTOBUF_NAMESPACE_ID::Metadata StartPhotoIntervalRequest::GetMetadata() const { @@ -2258,37 +2715,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StartPhotoIntervalRequest::GetMetadata() const &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[4]); } - // =================================================================== class StartPhotoIntervalResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StartPhotoIntervalResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StartPhotoIntervalResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& StartPhotoIntervalResponse::_Internal::camera_result(const StartPhotoIntervalResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -StartPhotoIntervalResponse::StartPhotoIntervalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +StartPhotoIntervalResponse::StartPhotoIntervalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) } StartPhotoIntervalResponse::StartPhotoIntervalResponse(const StartPhotoIntervalResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + StartPhotoIntervalResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartPhotoIntervalResponse) } -inline void StartPhotoIntervalResponse::SharedCtor() { -camera_result_ = nullptr; +inline void StartPhotoIntervalResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } StartPhotoIntervalResponse::~StartPhotoIntervalResponse() { @@ -2301,40 +2771,44 @@ StartPhotoIntervalResponse::~StartPhotoIntervalResponse() { } inline void StartPhotoIntervalResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void StartPhotoIntervalResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void StartPhotoIntervalResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* StartPhotoIntervalResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2352,6 +2826,7 @@ const char* StartPhotoIntervalResponse::_InternalParse(const char* ptr, ::_pbi:: CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2359,14 +2834,15 @@ const char* StartPhotoIntervalResponse::_InternalParse(const char* ptr, ::_pbi:: #undef CHK_ } -uint8_t* StartPhotoIntervalResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* StartPhotoIntervalResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -2380,47 +2856,45 @@ uint8_t* StartPhotoIntervalResponse::_InternalSerialize( return target; } -size_t StartPhotoIntervalResponse::ByteSizeLong() const { +::size_t StartPhotoIntervalResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartPhotoIntervalResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, StartPhotoIntervalResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartPhotoIntervalResponse::GetClassData() const { return &_class_data_; } -void StartPhotoIntervalResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void StartPhotoIntervalResponse::MergeFrom(const StartPhotoIntervalResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void StartPhotoIntervalResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartPhotoIntervalResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StartPhotoIntervalResponse::CopyFrom(const StartPhotoIntervalResponse& from) { @@ -2437,7 +2911,8 @@ bool StartPhotoIntervalResponse::IsInitialized() const { void StartPhotoIntervalResponse::InternalSwap(StartPhotoIntervalResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata StartPhotoIntervalResponse::GetMetadata() const { @@ -2445,20 +2920,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StartPhotoIntervalResponse::GetMetadata() cons &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[5]); } - // =================================================================== class StopPhotoIntervalRequest::_Internal { public: }; -StopPhotoIntervalRequest::StopPhotoIntervalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +StopPhotoIntervalRequest::StopPhotoIntervalRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopPhotoIntervalRequest) } StopPhotoIntervalRequest::StopPhotoIntervalRequest(const StopPhotoIntervalRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StopPhotoIntervalRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopPhotoIntervalRequest) } @@ -2484,37 +2958,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StopPhotoIntervalRequest::GetMetadata() const &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[6]); } - // =================================================================== class StopPhotoIntervalResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StopPhotoIntervalResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StopPhotoIntervalResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& StopPhotoIntervalResponse::_Internal::camera_result(const StopPhotoIntervalResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -StopPhotoIntervalResponse::StopPhotoIntervalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +StopPhotoIntervalResponse::StopPhotoIntervalResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) } StopPhotoIntervalResponse::StopPhotoIntervalResponse(const StopPhotoIntervalResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + StopPhotoIntervalResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopPhotoIntervalResponse) } -inline void StopPhotoIntervalResponse::SharedCtor() { -camera_result_ = nullptr; +inline void StopPhotoIntervalResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } StopPhotoIntervalResponse::~StopPhotoIntervalResponse() { @@ -2527,40 +3014,44 @@ StopPhotoIntervalResponse::~StopPhotoIntervalResponse() { } inline void StopPhotoIntervalResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void StopPhotoIntervalResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void StopPhotoIntervalResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* StopPhotoIntervalResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2578,6 +3069,7 @@ const char* StopPhotoIntervalResponse::_InternalParse(const char* ptr, ::_pbi::P CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2585,14 +3077,15 @@ const char* StopPhotoIntervalResponse::_InternalParse(const char* ptr, ::_pbi::P #undef CHK_ } -uint8_t* StopPhotoIntervalResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* StopPhotoIntervalResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -2606,47 +3099,45 @@ uint8_t* StopPhotoIntervalResponse::_InternalSerialize( return target; } -size_t StopPhotoIntervalResponse::ByteSizeLong() const { +::size_t StopPhotoIntervalResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopPhotoIntervalResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, StopPhotoIntervalResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopPhotoIntervalResponse::GetClassData() const { return &_class_data_; } -void StopPhotoIntervalResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void StopPhotoIntervalResponse::MergeFrom(const StopPhotoIntervalResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void StopPhotoIntervalResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopPhotoIntervalResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopPhotoIntervalResponse::CopyFrom(const StopPhotoIntervalResponse& from) { @@ -2663,7 +3154,8 @@ bool StopPhotoIntervalResponse::IsInitialized() const { void StopPhotoIntervalResponse::InternalSwap(StopPhotoIntervalResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata StopPhotoIntervalResponse::GetMetadata() const { @@ -2671,20 +3163,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StopPhotoIntervalResponse::GetMetadata() const &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[7]); } - // =================================================================== class StartVideoRequest::_Internal { public: }; -StartVideoRequest::StartVideoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +StartVideoRequest::StartVideoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoRequest) } StartVideoRequest::StartVideoRequest(const StartVideoRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StartVideoRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoRequest) } @@ -2710,37 +3201,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StartVideoRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[8]); } - // =================================================================== class StartVideoResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StartVideoResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StartVideoResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& StartVideoResponse::_Internal::camera_result(const StartVideoResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -StartVideoResponse::StartVideoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +StartVideoResponse::StartVideoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoResponse) } StartVideoResponse::StartVideoResponse(const StartVideoResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + StartVideoResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoResponse) } -inline void StartVideoResponse::SharedCtor() { -camera_result_ = nullptr; +inline void StartVideoResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } StartVideoResponse::~StartVideoResponse() { @@ -2753,40 +3257,44 @@ StartVideoResponse::~StartVideoResponse() { } inline void StartVideoResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void StartVideoResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void StartVideoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* StartVideoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -2804,6 +3312,7 @@ const char* StartVideoResponse::_InternalParse(const char* ptr, ::_pbi::ParseCon CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -2811,14 +3320,15 @@ const char* StartVideoResponse::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* StartVideoResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* StartVideoResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -2832,47 +3342,45 @@ uint8_t* StartVideoResponse::_InternalSerialize( return target; } -size_t StartVideoResponse::ByteSizeLong() const { +::size_t StartVideoResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartVideoResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, StartVideoResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartVideoResponse::GetClassData() const { return &_class_data_; } -void StartVideoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void StartVideoResponse::MergeFrom(const StartVideoResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void StartVideoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StartVideoResponse::CopyFrom(const StartVideoResponse& from) { @@ -2889,7 +3397,8 @@ bool StartVideoResponse::IsInitialized() const { void StartVideoResponse::InternalSwap(StartVideoResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata StartVideoResponse::GetMetadata() const { @@ -2897,20 +3406,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StartVideoResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[9]); } - // =================================================================== class StopVideoRequest::_Internal { public: }; -StopVideoRequest::StopVideoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +StopVideoRequest::StopVideoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoRequest) } StopVideoRequest::StopVideoRequest(const StopVideoRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StopVideoRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoRequest) } @@ -2936,37 +3444,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StopVideoRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[10]); } - // =================================================================== class StopVideoResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StopVideoResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StopVideoResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& StopVideoResponse::_Internal::camera_result(const StopVideoResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -StopVideoResponse::StopVideoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +StopVideoResponse::StopVideoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoResponse) } StopVideoResponse::StopVideoResponse(const StopVideoResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + StopVideoResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoResponse) } -inline void StopVideoResponse::SharedCtor() { -camera_result_ = nullptr; +inline void StopVideoResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } StopVideoResponse::~StopVideoResponse() { @@ -2979,40 +3500,44 @@ StopVideoResponse::~StopVideoResponse() { } inline void StopVideoResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void StopVideoResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void StopVideoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* StopVideoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3030,6 +3555,7 @@ const char* StopVideoResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -3037,14 +3563,15 @@ const char* StopVideoResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* StopVideoResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* StopVideoResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -3058,47 +3585,45 @@ uint8_t* StopVideoResponse::_InternalSerialize( return target; } -size_t StopVideoResponse::ByteSizeLong() const { +::size_t StopVideoResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopVideoResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, StopVideoResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopVideoResponse::GetClassData() const { return &_class_data_; } -void StopVideoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void StopVideoResponse::MergeFrom(const StopVideoResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void StopVideoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopVideoResponse::CopyFrom(const StopVideoResponse& from) { @@ -3115,7 +3640,8 @@ bool StopVideoResponse::IsInitialized() const { void StopVideoResponse::InternalSwap(StopVideoResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata StopVideoResponse::GetMetadata() const { @@ -3123,20 +3649,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StopVideoResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[11]); } - // =================================================================== class StartVideoStreamingRequest::_Internal { public: }; -StartVideoStreamingRequest::StartVideoStreamingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +StartVideoStreamingRequest::StartVideoStreamingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoStreamingRequest) } StartVideoStreamingRequest::StartVideoStreamingRequest(const StartVideoStreamingRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StartVideoStreamingRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoStreamingRequest) } @@ -3162,37 +3687,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StartVideoStreamingRequest::GetMetadata() cons &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[12]); } - // =================================================================== class StartVideoStreamingResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StartVideoStreamingResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StartVideoStreamingResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& StartVideoStreamingResponse::_Internal::camera_result(const StartVideoStreamingResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -StartVideoStreamingResponse::StartVideoStreamingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +StartVideoStreamingResponse::StartVideoStreamingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StartVideoStreamingResponse) } StartVideoStreamingResponse::StartVideoStreamingResponse(const StartVideoStreamingResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + StartVideoStreamingResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StartVideoStreamingResponse) } -inline void StartVideoStreamingResponse::SharedCtor() { -camera_result_ = nullptr; +inline void StartVideoStreamingResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } StartVideoStreamingResponse::~StartVideoStreamingResponse() { @@ -3205,40 +3743,44 @@ StartVideoStreamingResponse::~StartVideoStreamingResponse() { } inline void StartVideoStreamingResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void StartVideoStreamingResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void StartVideoStreamingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* StartVideoStreamingResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3256,6 +3798,7 @@ const char* StartVideoStreamingResponse::_InternalParse(const char* ptr, ::_pbi: CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -3263,14 +3806,15 @@ const char* StartVideoStreamingResponse::_InternalParse(const char* ptr, ::_pbi: #undef CHK_ } -uint8_t* StartVideoStreamingResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* StartVideoStreamingResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -3284,47 +3828,45 @@ uint8_t* StartVideoStreamingResponse::_InternalSerialize( return target; } -size_t StartVideoStreamingResponse::ByteSizeLong() const { +::size_t StartVideoStreamingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StartVideoStreamingResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, StartVideoStreamingResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StartVideoStreamingResponse::GetClassData() const { return &_class_data_; } -void StartVideoStreamingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void StartVideoStreamingResponse::MergeFrom(const StartVideoStreamingResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoStreamingResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void StartVideoStreamingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StartVideoStreamingResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StartVideoStreamingResponse::CopyFrom(const StartVideoStreamingResponse& from) { @@ -3341,7 +3883,8 @@ bool StartVideoStreamingResponse::IsInitialized() const { void StartVideoStreamingResponse::InternalSwap(StartVideoStreamingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata StartVideoStreamingResponse::GetMetadata() const { @@ -3349,20 +3892,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StartVideoStreamingResponse::GetMetadata() con &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[13]); } - // =================================================================== class StopVideoStreamingRequest::_Internal { public: }; -StopVideoStreamingRequest::StopVideoStreamingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +StopVideoStreamingRequest::StopVideoStreamingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoStreamingRequest) } StopVideoStreamingRequest::StopVideoStreamingRequest(const StopVideoStreamingRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + StopVideoStreamingRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoStreamingRequest) } @@ -3388,37 +3930,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StopVideoStreamingRequest::GetMetadata() const &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[14]); } - // =================================================================== class StopVideoStreamingResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StopVideoStreamingResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const StopVideoStreamingResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& StopVideoStreamingResponse::_Internal::camera_result(const StopVideoStreamingResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -StopVideoStreamingResponse::StopVideoStreamingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +StopVideoStreamingResponse::StopVideoStreamingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StopVideoStreamingResponse) } StopVideoStreamingResponse::StopVideoStreamingResponse(const StopVideoStreamingResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + StopVideoStreamingResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StopVideoStreamingResponse) } -inline void StopVideoStreamingResponse::SharedCtor() { -camera_result_ = nullptr; +inline void StopVideoStreamingResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } StopVideoStreamingResponse::~StopVideoStreamingResponse() { @@ -3431,40 +3986,44 @@ StopVideoStreamingResponse::~StopVideoStreamingResponse() { } inline void StopVideoStreamingResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void StopVideoStreamingResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void StopVideoStreamingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* StopVideoStreamingResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3482,6 +4041,7 @@ const char* StopVideoStreamingResponse::_InternalParse(const char* ptr, ::_pbi:: CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -3489,14 +4049,15 @@ const char* StopVideoStreamingResponse::_InternalParse(const char* ptr, ::_pbi:: #undef CHK_ } -uint8_t* StopVideoStreamingResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* StopVideoStreamingResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -3510,47 +4071,45 @@ uint8_t* StopVideoStreamingResponse::_InternalSerialize( return target; } -size_t StopVideoStreamingResponse::ByteSizeLong() const { +::size_t StopVideoStreamingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StopVideoStreamingResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, StopVideoStreamingResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopVideoStreamingResponse::GetClassData() const { return &_class_data_; } -void StopVideoStreamingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void StopVideoStreamingResponse::MergeFrom(const StopVideoStreamingResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoStreamingResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void StopVideoStreamingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StopVideoStreamingResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StopVideoStreamingResponse::CopyFrom(const StopVideoStreamingResponse& from) { @@ -3567,7 +4126,8 @@ bool StopVideoStreamingResponse::IsInitialized() const { void StopVideoStreamingResponse::InternalSwap(StopVideoStreamingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata StopVideoStreamingResponse::GetMetadata() const { @@ -3575,28 +4135,31 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StopVideoStreamingResponse::GetMetadata() cons &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[15]); } - // =================================================================== class SetModeRequest::_Internal { public: }; -SetModeRequest::SetModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetModeRequest::SetModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetModeRequest) } SetModeRequest::SetModeRequest(const SetModeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - mode_ = from.mode_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetModeRequest) } -inline void SetModeRequest::SharedCtor() { -mode_ = 0; +inline void SetModeRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.mode_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } SetModeRequest::~SetModeRequest() { @@ -3609,37 +4172,38 @@ SetModeRequest::~SetModeRequest() { } inline void SetModeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void SetModeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetModeRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetModeRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - mode_ = 0; + _impl_.mode_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetModeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.Mode mode = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_mode(static_cast<::mavsdk::rpc::camera::Mode>(val)); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3664,17 +4228,17 @@ const char* SetModeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* SetModeRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetModeRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetModeRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // .mavsdk.rpc.camera.Mode mode = 1; if (this->_internal_mode() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_mode(), target); + 1, this->_internal_mode(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3685,46 +4249,42 @@ uint8_t* SetModeRequest::_InternalSerialize( return target; } -size_t SetModeRequest::ByteSizeLong() const { +::size_t SetModeRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetModeRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.Mode mode = 1; if (this->_internal_mode() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetModeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetModeRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetModeRequest::GetClassData() const { return &_class_data_; } -void SetModeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetModeRequest::MergeFrom(const SetModeRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetModeRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetModeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetModeRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_mode() != 0) { - _internal_set_mode(from._internal_mode()); + _this->_internal_set_mode(from._internal_mode()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetModeRequest::CopyFrom(const SetModeRequest& from) { @@ -3741,7 +4301,7 @@ bool SetModeRequest::IsInitialized() const { void SetModeRequest::InternalSwap(SetModeRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(mode_, other->mode_); + swap(_impl_.mode_, other->_impl_.mode_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetModeRequest::GetMetadata() const { @@ -3749,37 +4309,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetModeRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[16]); } - // =================================================================== class SetModeResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetModeResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const SetModeResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& SetModeResponse::_Internal::camera_result(const SetModeResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -SetModeResponse::SetModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetModeResponse::SetModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetModeResponse) } SetModeResponse::SetModeResponse(const SetModeResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetModeResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetModeResponse) } -inline void SetModeResponse::SharedCtor() { -camera_result_ = nullptr; +inline void SetModeResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } SetModeResponse::~SetModeResponse() { @@ -3792,40 +4365,44 @@ SetModeResponse::~SetModeResponse() { } inline void SetModeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void SetModeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetModeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetModeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetModeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -3843,6 +4420,7 @@ const char* SetModeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -3850,14 +4428,15 @@ const char* SetModeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex #undef CHK_ } -uint8_t* SetModeResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetModeResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetModeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -3871,47 +4450,45 @@ uint8_t* SetModeResponse::_InternalSerialize( return target; } -size_t SetModeResponse::ByteSizeLong() const { +::size_t SetModeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetModeResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetModeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetModeResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetModeResponse::GetClassData() const { return &_class_data_; } -void SetModeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetModeResponse::MergeFrom(const SetModeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetModeResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetModeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetModeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetModeResponse::CopyFrom(const SetModeResponse& from) { @@ -3928,7 +4505,8 @@ bool SetModeResponse::IsInitialized() const { void SetModeResponse::InternalSwap(SetModeResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetModeResponse::GetMetadata() const { @@ -3936,28 +4514,31 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetModeResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[17]); } - // =================================================================== class ListPhotosRequest::_Internal { public: }; -ListPhotosRequest::ListPhotosRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +ListPhotosRequest::ListPhotosRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ListPhotosRequest) } ListPhotosRequest::ListPhotosRequest(const ListPhotosRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - photos_range_ = from.photos_range_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ListPhotosRequest) } -inline void ListPhotosRequest::SharedCtor() { -photos_range_ = 0; +inline void ListPhotosRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.photos_range_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } ListPhotosRequest::~ListPhotosRequest() { @@ -3970,37 +4551,38 @@ ListPhotosRequest::~ListPhotosRequest() { } inline void ListPhotosRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void ListPhotosRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ListPhotosRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ListPhotosRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - photos_range_ = 0; + _impl_.photos_range_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ListPhotosRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.PhotosRange photos_range = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_photos_range(static_cast<::mavsdk::rpc::camera::PhotosRange>(val)); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4025,17 +4607,17 @@ const char* ListPhotosRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* ListPhotosRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ListPhotosRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ListPhotosRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // .mavsdk.rpc.camera.PhotosRange photos_range = 1; if (this->_internal_photos_range() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_photos_range(), target); + 1, this->_internal_photos_range(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4046,46 +4628,42 @@ uint8_t* ListPhotosRequest::_InternalSerialize( return target; } -size_t ListPhotosRequest::ByteSizeLong() const { +::size_t ListPhotosRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ListPhotosRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.PhotosRange photos_range = 1; if (this->_internal_photos_range() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_photos_range()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_photos_range()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListPhotosRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ListPhotosRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListPhotosRequest::GetClassData() const { return &_class_data_; } -void ListPhotosRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ListPhotosRequest::MergeFrom(const ListPhotosRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ListPhotosRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ListPhotosRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ListPhotosRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_photos_range() != 0) { - _internal_set_photos_range(from._internal_photos_range()); + _this->_internal_set_photos_range(from._internal_photos_range()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListPhotosRequest::CopyFrom(const ListPhotosRequest& from) { @@ -4102,7 +4680,7 @@ bool ListPhotosRequest::IsInitialized() const { void ListPhotosRequest::InternalSwap(ListPhotosRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(photos_range_, other->photos_range_); + swap(_impl_.photos_range_, other->_impl_.photos_range_); } ::PROTOBUF_NAMESPACE_ID::Metadata ListPhotosRequest::GetMetadata() const { @@ -4110,39 +4688,52 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ListPhotosRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[18]); } - // =================================================================== class ListPhotosResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ListPhotosResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const ListPhotosResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& ListPhotosResponse::_Internal::camera_result(const ListPhotosResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -ListPhotosResponse::ListPhotosResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - capture_infos_(arena) { - SharedCtor(); +ListPhotosResponse::ListPhotosResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ListPhotosResponse) } ListPhotosResponse::ListPhotosResponse(const ListPhotosResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - capture_infos_(from.capture_infos_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ListPhotosResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.capture_infos_){from._impl_.capture_infos_} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ListPhotosResponse) } -inline void ListPhotosResponse::SharedCtor() { -camera_result_ = nullptr; +inline void ListPhotosResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.capture_infos_){arena} + , decltype(_impl_.camera_result_){nullptr} + }; } ListPhotosResponse::~ListPhotosResponse() { @@ -4155,45 +4746,50 @@ ListPhotosResponse::~ListPhotosResponse() { } inline void ListPhotosResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_capture_infos()->~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void ListPhotosResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ListPhotosResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ListPhotosResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - capture_infos_.Clear(); - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + _internal_mutable_capture_infos()->Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ListPhotosResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { ptr -= 1; do { ptr += 1; @@ -4201,8 +4797,9 @@ const char* ListPhotosResponse::_InternalParse(const char* ptr, ::_pbi::ParseCon CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4220,6 +4817,7 @@ const char* ListPhotosResponse::_InternalParse(const char* ptr, ::_pbi::ParseCon CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -4227,14 +4825,15 @@ const char* ListPhotosResponse::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* ListPhotosResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ListPhotosResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ListPhotosResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -4256,55 +4855,53 @@ uint8_t* ListPhotosResponse::_InternalSerialize( return target; } -size_t ListPhotosResponse::ByteSizeLong() const { +::size_t ListPhotosResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ListPhotosResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .mavsdk.rpc.camera.CaptureInfo capture_infos = 2; total_size += 1UL * this->_internal_capture_infos_size(); - for (const auto& msg : this->capture_infos_) { + for (const auto& msg : this->_internal_capture_infos()) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListPhotosResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ListPhotosResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListPhotosResponse::GetClassData() const { return &_class_data_; } -void ListPhotosResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ListPhotosResponse::MergeFrom(const ListPhotosResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ListPhotosResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ListPhotosResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ListPhotosResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - capture_infos_.MergeFrom(from.capture_infos_); - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + _this->_internal_mutable_capture_infos()->MergeFrom(from._internal_capture_infos()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListPhotosResponse::CopyFrom(const ListPhotosResponse& from) { @@ -4321,8 +4918,9 @@ bool ListPhotosResponse::IsInitialized() const { void ListPhotosResponse::InternalSwap(ListPhotosResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - capture_infos_.InternalSwap(&other->capture_infos_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _internal_mutable_capture_infos()->InternalSwap(other->_internal_mutable_capture_infos()); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata ListPhotosResponse::GetMetadata() const { @@ -4330,20 +4928,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ListPhotosResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[19]); } - // =================================================================== class SubscribeInformationRequest::_Internal { public: }; -SubscribeInformationRequest::SubscribeInformationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeInformationRequest::SubscribeInformationRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeInformationRequest) } SubscribeInformationRequest::SubscribeInformationRequest(const SubscribeInformationRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeInformationRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeInformationRequest) } @@ -4369,37 +4966,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeInformationRequest::GetMetadata() con &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[20]); } - // =================================================================== class InformationResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(InformationResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::Information& information(const InformationResponse* msg); + static void set_has_information(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::Information& InformationResponse::_Internal::information(const InformationResponse* msg) { - return *msg->information_; + return *msg->_impl_.information_; } -InformationResponse::InformationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +InformationResponse::InformationResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.InformationResponse) } InformationResponse::InformationResponse(const InformationResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + InformationResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.information_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_information()) { - information_ = new ::mavsdk::rpc::camera::Information(*from.information_); - } else { - information_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.information_ = new ::mavsdk::rpc::camera::Information(*from._impl_.information_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.InformationResponse) } -inline void InformationResponse::SharedCtor() { -information_ = nullptr; +inline void InformationResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.information_){nullptr} + }; } InformationResponse::~InformationResponse() { @@ -4412,40 +5022,44 @@ InformationResponse::~InformationResponse() { } inline void InformationResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete information_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.information_; } void InformationResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void InformationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.InformationResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && information_ != nullptr) { - delete information_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.information_ != nullptr); + _impl_.information_->Clear(); } - information_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* InformationResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.Information information = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_information(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4463,6 +5077,7 @@ const char* InformationResponse::_InternalParse(const char* ptr, ::_pbi::ParseCo CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -4470,14 +5085,15 @@ const char* InformationResponse::_InternalParse(const char* ptr, ::_pbi::ParseCo #undef CHK_ } -uint8_t* InformationResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* InformationResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.InformationResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.Information information = 1; - if (this->_internal_has_information()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::information(this), _Internal::information(this).GetCachedSize(), target, stream); @@ -4491,47 +5107,45 @@ uint8_t* InformationResponse::_InternalSerialize( return target; } -size_t InformationResponse::ByteSizeLong() const { +::size_t InformationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.InformationResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.Information information = 1; - if (this->_internal_has_information()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *information_); + *_impl_.information_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InformationResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, InformationResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InformationResponse::GetClassData() const { return &_class_data_; } -void InformationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void InformationResponse::MergeFrom(const InformationResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.InformationResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void InformationResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.InformationResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_information()) { - _internal_mutable_information()->::mavsdk::rpc::camera::Information::MergeFrom(from._internal_information()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_information()->::mavsdk::rpc::camera::Information::MergeFrom( + from._internal_information()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void InformationResponse::CopyFrom(const InformationResponse& from) { @@ -4548,7 +5162,8 @@ bool InformationResponse::IsInitialized() const { void InformationResponse::InternalSwap(InformationResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(information_, other->information_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.information_, other->_impl_.information_); } ::PROTOBUF_NAMESPACE_ID::Metadata InformationResponse::GetMetadata() const { @@ -4556,20 +5171,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata InformationResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[21]); } - // =================================================================== class SubscribeModeRequest::_Internal { public: }; -SubscribeModeRequest::SubscribeModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeModeRequest::SubscribeModeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeModeRequest) } SubscribeModeRequest::SubscribeModeRequest(const SubscribeModeRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeModeRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeModeRequest) } @@ -4595,28 +5209,31 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeModeRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[22]); } - // =================================================================== class ModeResponse::_Internal { public: }; -ModeResponse::ModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +ModeResponse::ModeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.ModeResponse) } ModeResponse::ModeResponse(const ModeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - mode_ = from.mode_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.ModeResponse) } -inline void ModeResponse::SharedCtor() { -mode_ = 0; +inline void ModeResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.mode_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } ModeResponse::~ModeResponse() { @@ -4629,37 +5246,38 @@ ModeResponse::~ModeResponse() { } inline void ModeResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void ModeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ModeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.ModeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - mode_ = 0; + _impl_.mode_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ModeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.Mode mode = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_mode(static_cast<::mavsdk::rpc::camera::Mode>(val)); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4684,17 +5302,17 @@ const char* ModeResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* ModeResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* ModeResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.ModeResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // .mavsdk.rpc.camera.Mode mode = 1; if (this->_internal_mode() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_mode(), target); + 1, this->_internal_mode(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4705,46 +5323,42 @@ uint8_t* ModeResponse::_InternalSerialize( return target; } -size_t ModeResponse::ByteSizeLong() const { +::size_t ModeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.ModeResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.Mode mode = 1; if (this->_internal_mode() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_mode()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModeResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ModeResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModeResponse::GetClassData() const { return &_class_data_; } -void ModeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void ModeResponse::MergeFrom(const ModeResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ModeResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void ModeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.ModeResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_mode() != 0) { - _internal_set_mode(from._internal_mode()); + _this->_internal_set_mode(from._internal_mode()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ModeResponse::CopyFrom(const ModeResponse& from) { @@ -4761,7 +5375,7 @@ bool ModeResponse::IsInitialized() const { void ModeResponse::InternalSwap(ModeResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(mode_, other->mode_); + swap(_impl_.mode_, other->_impl_.mode_); } ::PROTOBUF_NAMESPACE_ID::Metadata ModeResponse::GetMetadata() const { @@ -4769,20 +5383,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ModeResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[23]); } - // =================================================================== class SubscribeVideoStreamInfoRequest::_Internal { public: }; -SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest) } SubscribeVideoStreamInfoRequest::SubscribeVideoStreamInfoRequest(const SubscribeVideoStreamInfoRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeVideoStreamInfoRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeVideoStreamInfoRequest) } @@ -4808,37 +5421,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeVideoStreamInfoRequest::GetMetadata() &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[24]); } - // =================================================================== class VideoStreamInfoResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(VideoStreamInfoResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::VideoStreamInfo& video_stream_info(const VideoStreamInfoResponse* msg); + static void set_has_video_stream_info(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::VideoStreamInfo& VideoStreamInfoResponse::_Internal::video_stream_info(const VideoStreamInfoResponse* msg) { - return *msg->video_stream_info_; + return *msg->_impl_.video_stream_info_; } -VideoStreamInfoResponse::VideoStreamInfoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +VideoStreamInfoResponse::VideoStreamInfoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamInfoResponse) } VideoStreamInfoResponse::VideoStreamInfoResponse(const VideoStreamInfoResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + VideoStreamInfoResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.video_stream_info_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_video_stream_info()) { - video_stream_info_ = new ::mavsdk::rpc::camera::VideoStreamInfo(*from.video_stream_info_); - } else { - video_stream_info_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.video_stream_info_ = new ::mavsdk::rpc::camera::VideoStreamInfo(*from._impl_.video_stream_info_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.VideoStreamInfoResponse) } -inline void VideoStreamInfoResponse::SharedCtor() { -video_stream_info_ = nullptr; +inline void VideoStreamInfoResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.video_stream_info_){nullptr} + }; } VideoStreamInfoResponse::~VideoStreamInfoResponse() { @@ -4851,40 +5477,44 @@ VideoStreamInfoResponse::~VideoStreamInfoResponse() { } inline void VideoStreamInfoResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete video_stream_info_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.video_stream_info_; } void VideoStreamInfoResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void VideoStreamInfoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && video_stream_info_ != nullptr) { - delete video_stream_info_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.video_stream_info_ != nullptr); + _impl_.video_stream_info_->Clear(); } - video_stream_info_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* VideoStreamInfoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_video_stream_info(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -4902,6 +5532,7 @@ const char* VideoStreamInfoResponse::_InternalParse(const char* ptr, ::_pbi::Par CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -4909,14 +5540,15 @@ const char* VideoStreamInfoResponse::_InternalParse(const char* ptr, ::_pbi::Par #undef CHK_ } -uint8_t* VideoStreamInfoResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* VideoStreamInfoResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; - if (this->_internal_has_video_stream_info()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::video_stream_info(this), _Internal::video_stream_info(this).GetCachedSize(), target, stream); @@ -4930,47 +5562,45 @@ uint8_t* VideoStreamInfoResponse::_InternalSerialize( return target; } -size_t VideoStreamInfoResponse::ByteSizeLong() const { +::size_t VideoStreamInfoResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.VideoStreamInfo video_stream_info = 1; - if (this->_internal_has_video_stream_info()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *video_stream_info_); + *_impl_.video_stream_info_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VideoStreamInfoResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, VideoStreamInfoResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VideoStreamInfoResponse::GetClassData() const { return &_class_data_; } -void VideoStreamInfoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void VideoStreamInfoResponse::MergeFrom(const VideoStreamInfoResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamInfoResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void VideoStreamInfoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamInfoResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_video_stream_info()) { - _internal_mutable_video_stream_info()->::mavsdk::rpc::camera::VideoStreamInfo::MergeFrom(from._internal_video_stream_info()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_video_stream_info()->::mavsdk::rpc::camera::VideoStreamInfo::MergeFrom( + from._internal_video_stream_info()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void VideoStreamInfoResponse::CopyFrom(const VideoStreamInfoResponse& from) { @@ -4987,7 +5617,8 @@ bool VideoStreamInfoResponse::IsInitialized() const { void VideoStreamInfoResponse::InternalSwap(VideoStreamInfoResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(video_stream_info_, other->video_stream_info_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.video_stream_info_, other->_impl_.video_stream_info_); } ::PROTOBUF_NAMESPACE_ID::Metadata VideoStreamInfoResponse::GetMetadata() const { @@ -4995,20 +5626,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata VideoStreamInfoResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[25]); } - // =================================================================== class SubscribeCaptureInfoRequest::_Internal { public: }; -SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeCaptureInfoRequest) } SubscribeCaptureInfoRequest::SubscribeCaptureInfoRequest(const SubscribeCaptureInfoRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeCaptureInfoRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeCaptureInfoRequest) } @@ -5034,37 +5664,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCaptureInfoRequest::GetMetadata() con &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[26]); } - // =================================================================== class CaptureInfoResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CaptureInfoResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CaptureInfo& capture_info(const CaptureInfoResponse* msg); + static void set_has_capture_info(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CaptureInfo& CaptureInfoResponse::_Internal::capture_info(const CaptureInfoResponse* msg) { - return *msg->capture_info_; + return *msg->_impl_.capture_info_; } -CaptureInfoResponse::CaptureInfoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +CaptureInfoResponse::CaptureInfoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CaptureInfoResponse) } CaptureInfoResponse::CaptureInfoResponse(const CaptureInfoResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CaptureInfoResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.capture_info_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_capture_info()) { - capture_info_ = new ::mavsdk::rpc::camera::CaptureInfo(*from.capture_info_); - } else { - capture_info_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.capture_info_ = new ::mavsdk::rpc::camera::CaptureInfo(*from._impl_.capture_info_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CaptureInfoResponse) } -inline void CaptureInfoResponse::SharedCtor() { -capture_info_ = nullptr; +inline void CaptureInfoResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.capture_info_){nullptr} + }; } CaptureInfoResponse::~CaptureInfoResponse() { @@ -5077,40 +5720,44 @@ CaptureInfoResponse::~CaptureInfoResponse() { } inline void CaptureInfoResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete capture_info_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.capture_info_; } void CaptureInfoResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CaptureInfoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CaptureInfoResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && capture_info_ != nullptr) { - delete capture_info_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.capture_info_ != nullptr); + _impl_.capture_info_->Clear(); } - capture_info_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CaptureInfoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_capture_info(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -5128,6 +5775,7 @@ const char* CaptureInfoResponse::_InternalParse(const char* ptr, ::_pbi::ParseCo CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -5135,14 +5783,15 @@ const char* CaptureInfoResponse::_InternalParse(const char* ptr, ::_pbi::ParseCo #undef CHK_ } -uint8_t* CaptureInfoResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* CaptureInfoResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CaptureInfoResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; - if (this->_internal_has_capture_info()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::capture_info(this), _Internal::capture_info(this).GetCachedSize(), target, stream); @@ -5156,47 +5805,45 @@ uint8_t* CaptureInfoResponse::_InternalSerialize( return target; } -size_t CaptureInfoResponse::ByteSizeLong() const { +::size_t CaptureInfoResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CaptureInfoResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CaptureInfo capture_info = 1; - if (this->_internal_has_capture_info()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *capture_info_); + *_impl_.capture_info_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CaptureInfoResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CaptureInfoResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CaptureInfoResponse::GetClassData() const { return &_class_data_; } -void CaptureInfoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void CaptureInfoResponse::MergeFrom(const CaptureInfoResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CaptureInfoResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void CaptureInfoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CaptureInfoResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_capture_info()) { - _internal_mutable_capture_info()->::mavsdk::rpc::camera::CaptureInfo::MergeFrom(from._internal_capture_info()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_capture_info()->::mavsdk::rpc::camera::CaptureInfo::MergeFrom( + from._internal_capture_info()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CaptureInfoResponse::CopyFrom(const CaptureInfoResponse& from) { @@ -5213,7 +5860,8 @@ bool CaptureInfoResponse::IsInitialized() const { void CaptureInfoResponse::InternalSwap(CaptureInfoResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(capture_info_, other->capture_info_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.capture_info_, other->_impl_.capture_info_); } ::PROTOBUF_NAMESPACE_ID::Metadata CaptureInfoResponse::GetMetadata() const { @@ -5221,20 +5869,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CaptureInfoResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[27]); } - // =================================================================== class SubscribeStatusRequest::_Internal { public: }; -SubscribeStatusRequest::SubscribeStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeStatusRequest::SubscribeStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeStatusRequest) } SubscribeStatusRequest::SubscribeStatusRequest(const SubscribeStatusRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeStatusRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeStatusRequest) } @@ -5260,37 +5907,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeStatusRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[28]); } - // =================================================================== class StatusResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StatusResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::Status& camera_status(const StatusResponse* msg); + static void set_has_camera_status(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::Status& StatusResponse::_Internal::camera_status(const StatusResponse* msg) { - return *msg->camera_status_; + return *msg->_impl_.camera_status_; } -StatusResponse::StatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +StatusResponse::StatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.StatusResponse) } StatusResponse::StatusResponse(const StatusResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + StatusResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_status_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_status()) { - camera_status_ = new ::mavsdk::rpc::camera::Status(*from.camera_status_); - } else { - camera_status_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_status_ = new ::mavsdk::rpc::camera::Status(*from._impl_.camera_status_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.StatusResponse) } -inline void StatusResponse::SharedCtor() { -camera_status_ = nullptr; +inline void StatusResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_status_){nullptr} + }; } StatusResponse::~StatusResponse() { @@ -5303,40 +5963,44 @@ StatusResponse::~StatusResponse() { } inline void StatusResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_status_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_status_; } void StatusResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void StatusResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.StatusResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_status_ != nullptr) { - delete camera_status_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_status_ != nullptr); + _impl_.camera_status_->Clear(); } - camera_status_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* StatusResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.Status camera_status = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_status(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -5354,6 +6018,7 @@ const char* StatusResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -5361,14 +6026,15 @@ const char* StatusResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext #undef CHK_ } -uint8_t* StatusResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* StatusResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.StatusResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.Status camera_status = 1; - if (this->_internal_has_camera_status()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_status(this), _Internal::camera_status(this).GetCachedSize(), target, stream); @@ -5382,47 +6048,45 @@ uint8_t* StatusResponse::_InternalSerialize( return target; } -size_t StatusResponse::ByteSizeLong() const { +::size_t StatusResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.StatusResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.Status camera_status = 1; - if (this->_internal_has_camera_status()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_status_); + *_impl_.camera_status_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StatusResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, StatusResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StatusResponse::GetClassData() const { return &_class_data_; } -void StatusResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void StatusResponse::MergeFrom(const StatusResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StatusResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void StatusResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.StatusResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_status()) { - _internal_mutable_camera_status()->::mavsdk::rpc::camera::Status::MergeFrom(from._internal_camera_status()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_status()->::mavsdk::rpc::camera::Status::MergeFrom( + from._internal_camera_status()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StatusResponse::CopyFrom(const StatusResponse& from) { @@ -5439,7 +6103,8 @@ bool StatusResponse::IsInitialized() const { void StatusResponse::InternalSwap(StatusResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_status_, other->camera_status_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_status_, other->_impl_.camera_status_); } ::PROTOBUF_NAMESPACE_ID::Metadata StatusResponse::GetMetadata() const { @@ -5447,20 +6112,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata StatusResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[29]); } - // =================================================================== class SubscribeCurrentSettingsRequest::_Internal { public: }; -SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribeCurrentSettingsRequest) } SubscribeCurrentSettingsRequest::SubscribeCurrentSettingsRequest(const SubscribeCurrentSettingsRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribeCurrentSettingsRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribeCurrentSettingsRequest) } @@ -5486,28 +6150,34 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribeCurrentSettingsRequest::GetMetadata() &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[30]); } - // =================================================================== class CurrentSettingsResponse::_Internal { public: }; -CurrentSettingsResponse::CurrentSettingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - current_settings_(arena) { - SharedCtor(); +CurrentSettingsResponse::CurrentSettingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CurrentSettingsResponse) } CurrentSettingsResponse::CurrentSettingsResponse(const CurrentSettingsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - current_settings_(from.current_settings_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + CurrentSettingsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.current_settings_){from._impl_.current_settings_} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CurrentSettingsResponse) } -inline void CurrentSettingsResponse::SharedCtor() { +inline void CurrentSettingsResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.current_settings_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; } CurrentSettingsResponse::~CurrentSettingsResponse() { @@ -5520,32 +6190,33 @@ CurrentSettingsResponse::~CurrentSettingsResponse() { } inline void CurrentSettingsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_current_settings()->~RepeatedPtrField(); } void CurrentSettingsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CurrentSettingsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CurrentSettingsResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - current_settings_.Clear(); + _internal_mutable_current_settings()->Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CurrentSettingsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .mavsdk.rpc.camera.Setting current_settings = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr -= 1; do { ptr += 1; @@ -5553,8 +6224,9 @@ const char* CurrentSettingsResponse::_InternalParse(const char* ptr, ::_pbi::Par CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -5579,10 +6251,10 @@ const char* CurrentSettingsResponse::_InternalParse(const char* ptr, ::_pbi::Par #undef CHK_ } -uint8_t* CurrentSettingsResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* CurrentSettingsResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CurrentSettingsResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .mavsdk.rpc.camera.Setting current_settings = 1; @@ -5601,45 +6273,41 @@ uint8_t* CurrentSettingsResponse::_InternalSerialize( return target; } -size_t CurrentSettingsResponse::ByteSizeLong() const { +::size_t CurrentSettingsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CurrentSettingsResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .mavsdk.rpc.camera.Setting current_settings = 1; total_size += 1UL * this->_internal_current_settings_size(); - for (const auto& msg : this->current_settings_) { + for (const auto& msg : this->_internal_current_settings()) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CurrentSettingsResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CurrentSettingsResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CurrentSettingsResponse::GetClassData() const { return &_class_data_; } -void CurrentSettingsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void CurrentSettingsResponse::MergeFrom(const CurrentSettingsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CurrentSettingsResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void CurrentSettingsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CurrentSettingsResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - current_settings_.MergeFrom(from.current_settings_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_mutable_current_settings()->MergeFrom(from._internal_current_settings()); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CurrentSettingsResponse::CopyFrom(const CurrentSettingsResponse& from) { @@ -5656,7 +6324,7 @@ bool CurrentSettingsResponse::IsInitialized() const { void CurrentSettingsResponse::InternalSwap(CurrentSettingsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - current_settings_.InternalSwap(&other->current_settings_); + _internal_mutable_current_settings()->InternalSwap(other->_internal_mutable_current_settings()); } ::PROTOBUF_NAMESPACE_ID::Metadata CurrentSettingsResponse::GetMetadata() const { @@ -5664,20 +6332,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CurrentSettingsResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[31]); } - // =================================================================== class SubscribePossibleSettingOptionsRequest::_Internal { public: }; -SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest) } SubscribePossibleSettingOptionsRequest::SubscribePossibleSettingOptionsRequest(const SubscribePossibleSettingOptionsRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + SubscribePossibleSettingOptionsRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SubscribePossibleSettingOptionsRequest) } @@ -5703,28 +6370,34 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubscribePossibleSettingOptionsRequest::GetMet &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[32]); } - // =================================================================== class PossibleSettingOptionsResponse::_Internal { public: }; -PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - setting_options_(arena) { - SharedCtor(); +PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) } PossibleSettingOptionsResponse::PossibleSettingOptionsResponse(const PossibleSettingOptionsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - setting_options_(from.setting_options_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + PossibleSettingOptionsResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.setting_options_){from._impl_.setting_options_} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.PossibleSettingOptionsResponse) } -inline void PossibleSettingOptionsResponse::SharedCtor() { +inline void PossibleSettingOptionsResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.setting_options_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; } PossibleSettingOptionsResponse::~PossibleSettingOptionsResponse() { @@ -5737,32 +6410,33 @@ PossibleSettingOptionsResponse::~PossibleSettingOptionsResponse() { } inline void PossibleSettingOptionsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _internal_mutable_setting_options()->~RepeatedPtrField(); } void PossibleSettingOptionsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void PossibleSettingOptionsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - setting_options_.Clear(); + _internal_mutable_setting_options()->Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* PossibleSettingOptionsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr -= 1; do { ptr += 1; @@ -5770,8 +6444,9 @@ const char* PossibleSettingOptionsResponse::_InternalParse(const char* ptr, ::_p CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -5796,10 +6471,10 @@ const char* PossibleSettingOptionsResponse::_InternalParse(const char* ptr, ::_p #undef CHK_ } -uint8_t* PossibleSettingOptionsResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* PossibleSettingOptionsResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; @@ -5818,45 +6493,41 @@ uint8_t* PossibleSettingOptionsResponse::_InternalSerialize( return target; } -size_t PossibleSettingOptionsResponse::ByteSizeLong() const { +::size_t PossibleSettingOptionsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .mavsdk.rpc.camera.SettingOptions setting_options = 1; total_size += 1UL * this->_internal_setting_options_size(); - for (const auto& msg : this->setting_options_) { + for (const auto& msg : this->_internal_setting_options()) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PossibleSettingOptionsResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, PossibleSettingOptionsResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PossibleSettingOptionsResponse::GetClassData() const { return &_class_data_; } -void PossibleSettingOptionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void PossibleSettingOptionsResponse::MergeFrom(const PossibleSettingOptionsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void PossibleSettingOptionsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.PossibleSettingOptionsResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - setting_options_.MergeFrom(from.setting_options_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_mutable_setting_options()->MergeFrom(from._internal_setting_options()); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PossibleSettingOptionsResponse::CopyFrom(const PossibleSettingOptionsResponse& from) { @@ -5873,7 +6544,7 @@ bool PossibleSettingOptionsResponse::IsInitialized() const { void PossibleSettingOptionsResponse::InternalSwap(PossibleSettingOptionsResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - setting_options_.InternalSwap(&other->setting_options_); + _internal_mutable_setting_options()->InternalSwap(other->_internal_mutable_setting_options()); } ::PROTOBUF_NAMESPACE_ID::Metadata PossibleSettingOptionsResponse::GetMetadata() const { @@ -5881,37 +6552,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PossibleSettingOptionsResponse::GetMetadata() &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[33]); } - // =================================================================== class SetSettingRequest::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetSettingRequest, _impl_._has_bits_); static const ::mavsdk::rpc::camera::Setting& setting(const SetSettingRequest* msg); + static void set_has_setting(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::Setting& SetSettingRequest::_Internal::setting(const SetSettingRequest* msg) { - return *msg->setting_; + return *msg->_impl_.setting_; } -SetSettingRequest::SetSettingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetSettingRequest::SetSettingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetSettingRequest) } SetSettingRequest::SetSettingRequest(const SetSettingRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetSettingRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.setting_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_setting()) { - setting_ = new ::mavsdk::rpc::camera::Setting(*from.setting_); - } else { - setting_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.setting_ = new ::mavsdk::rpc::camera::Setting(*from._impl_.setting_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetSettingRequest) } -inline void SetSettingRequest::SharedCtor() { -setting_ = nullptr; +inline void SetSettingRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.setting_){nullptr} + }; } SetSettingRequest::~SetSettingRequest() { @@ -5924,40 +6608,44 @@ SetSettingRequest::~SetSettingRequest() { } inline void SetSettingRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete setting_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.setting_; } void SetSettingRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetSettingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetSettingRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && setting_ != nullptr) { - delete setting_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.setting_ != nullptr); + _impl_.setting_->Clear(); } - setting_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetSettingRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.Setting setting = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_setting(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -5975,6 +6663,7 @@ const char* SetSettingRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -5982,14 +6671,15 @@ const char* SetSettingRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* SetSettingRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetSettingRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetSettingRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.Setting setting = 1; - if (this->_internal_has_setting()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::setting(this), _Internal::setting(this).GetCachedSize(), target, stream); @@ -6003,47 +6693,45 @@ uint8_t* SetSettingRequest::_InternalSerialize( return target; } -size_t SetSettingRequest::ByteSizeLong() const { +::size_t SetSettingRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetSettingRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.Setting setting = 1; - if (this->_internal_has_setting()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *setting_); + *_impl_.setting_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetSettingRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetSettingRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetSettingRequest::GetClassData() const { return &_class_data_; } -void SetSettingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetSettingRequest::MergeFrom(const SetSettingRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetSettingRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetSettingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetSettingRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_setting()) { - _internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom(from._internal_setting()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom( + from._internal_setting()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetSettingRequest::CopyFrom(const SetSettingRequest& from) { @@ -6060,7 +6748,8 @@ bool SetSettingRequest::IsInitialized() const { void SetSettingRequest::InternalSwap(SetSettingRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(setting_, other->setting_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.setting_, other->_impl_.setting_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetSettingRequest::GetMetadata() const { @@ -6068,37 +6757,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetSettingRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[34]); } - // =================================================================== class SetSettingResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SetSettingResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const SetSettingResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& SetSettingResponse::_Internal::camera_result(const SetSettingResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -SetSettingResponse::SetSettingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SetSettingResponse::SetSettingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SetSettingResponse) } SetSettingResponse::SetSettingResponse(const SetSettingResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SetSettingResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SetSettingResponse) } -inline void SetSettingResponse::SharedCtor() { -camera_result_ = nullptr; +inline void SetSettingResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } SetSettingResponse::~SetSettingResponse() { @@ -6111,40 +6813,44 @@ SetSettingResponse::~SetSettingResponse() { } inline void SetSettingResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void SetSettingResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SetSettingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SetSettingResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SetSettingResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -6162,6 +6868,7 @@ const char* SetSettingResponse::_InternalParse(const char* ptr, ::_pbi::ParseCon CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -6169,14 +6876,15 @@ const char* SetSettingResponse::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* SetSettingResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SetSettingResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SetSettingResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -6190,47 +6898,45 @@ uint8_t* SetSettingResponse::_InternalSerialize( return target; } -size_t SetSettingResponse::ByteSizeLong() const { +::size_t SetSettingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SetSettingResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetSettingResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SetSettingResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetSettingResponse::GetClassData() const { return &_class_data_; } -void SetSettingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SetSettingResponse::MergeFrom(const SetSettingResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetSettingResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SetSettingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SetSettingResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SetSettingResponse::CopyFrom(const SetSettingResponse& from) { @@ -6247,7 +6953,8 @@ bool SetSettingResponse::IsInitialized() const { void SetSettingResponse::InternalSwap(SetSettingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SetSettingResponse::GetMetadata() const { @@ -6255,37 +6962,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetSettingResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[35]); } - // =================================================================== class GetSettingRequest::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetSettingRequest, _impl_._has_bits_); static const ::mavsdk::rpc::camera::Setting& setting(const GetSettingRequest* msg); + static void set_has_setting(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::Setting& GetSettingRequest::_Internal::setting(const GetSettingRequest* msg) { - return *msg->setting_; + return *msg->_impl_.setting_; } -GetSettingRequest::GetSettingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +GetSettingRequest::GetSettingRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.GetSettingRequest) } GetSettingRequest::GetSettingRequest(const GetSettingRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + GetSettingRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.setting_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_setting()) { - setting_ = new ::mavsdk::rpc::camera::Setting(*from.setting_); - } else { - setting_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.setting_ = new ::mavsdk::rpc::camera::Setting(*from._impl_.setting_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.GetSettingRequest) } -inline void GetSettingRequest::SharedCtor() { -setting_ = nullptr; +inline void GetSettingRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.setting_){nullptr} + }; } GetSettingRequest::~GetSettingRequest() { @@ -6298,40 +7018,44 @@ GetSettingRequest::~GetSettingRequest() { } inline void GetSettingRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete setting_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.setting_; } void GetSettingRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GetSettingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.GetSettingRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && setting_ != nullptr) { - delete setting_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.setting_ != nullptr); + _impl_.setting_->Clear(); } - setting_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GetSettingRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.Setting setting = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_setting(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -6349,6 +7073,7 @@ const char* GetSettingRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -6356,14 +7081,15 @@ const char* GetSettingRequest::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* GetSettingRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* GetSettingRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.GetSettingRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.Setting setting = 1; - if (this->_internal_has_setting()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::setting(this), _Internal::setting(this).GetCachedSize(), target, stream); @@ -6377,47 +7103,45 @@ uint8_t* GetSettingRequest::_InternalSerialize( return target; } -size_t GetSettingRequest::ByteSizeLong() const { +::size_t GetSettingRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.GetSettingRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.Setting setting = 1; - if (this->_internal_has_setting()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *setting_); + *_impl_.setting_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSettingRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, GetSettingRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSettingRequest::GetClassData() const { return &_class_data_; } -void GetSettingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void GetSettingRequest::MergeFrom(const GetSettingRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.GetSettingRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void GetSettingRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.GetSettingRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_setting()) { - _internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom(from._internal_setting()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom( + from._internal_setting()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetSettingRequest::CopyFrom(const GetSettingRequest& from) { @@ -6434,7 +7158,8 @@ bool GetSettingRequest::IsInitialized() const { void GetSettingRequest::InternalSwap(GetSettingRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(setting_, other->setting_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.setting_, other->_impl_.setting_); } ::PROTOBUF_NAMESPACE_ID::Metadata GetSettingRequest::GetMetadata() const { @@ -6442,50 +7167,63 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetSettingRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[36]); } - // =================================================================== class GetSettingResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const GetSettingResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } static const ::mavsdk::rpc::camera::Setting& setting(const GetSettingResponse* msg); + static void set_has_setting(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } }; const ::mavsdk::rpc::camera::CameraResult& GetSettingResponse::_Internal::camera_result(const GetSettingResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } const ::mavsdk::rpc::camera::Setting& GetSettingResponse::_Internal::setting(const GetSettingResponse* msg) { - return *msg->setting_; + return *msg->_impl_.setting_; } -GetSettingResponse::GetSettingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +GetSettingResponse::GetSettingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.GetSettingResponse) } GetSettingResponse::GetSettingResponse(const GetSettingResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + GetSettingResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + , decltype(_impl_.setting_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } - if (from._internal_has_setting()) { - setting_ = new ::mavsdk::rpc::camera::Setting(*from.setting_); - } else { - setting_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.setting_ = new ::mavsdk::rpc::camera::Setting(*from._impl_.setting_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.GetSettingResponse) } -inline void GetSettingResponse::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&camera_result_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&setting_) - - reinterpret_cast(&camera_result_)) + sizeof(setting_)); +inline void GetSettingResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + , decltype(_impl_.setting_){nullptr} + }; } GetSettingResponse::~GetSettingResponse() { @@ -6498,53 +7236,60 @@ GetSettingResponse::~GetSettingResponse() { } inline void GetSettingResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; - if (this != internal_default_instance()) delete setting_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; + if (this != internal_default_instance()) delete _impl_.setting_; } void GetSettingResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GetSettingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.GetSettingResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; - } - camera_result_ = nullptr; - if (GetArenaForAllocation() == nullptr && setting_ != nullptr) { - delete setting_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.setting_ != nullptr); + _impl_.setting_->Clear(); + } } - setting_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GetSettingResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.camera.Setting setting = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_setting(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -6562,6 +7307,7 @@ const char* GetSettingResponse::_InternalParse(const char* ptr, ::_pbi::ParseCon CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -6569,21 +7315,22 @@ const char* GetSettingResponse::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* GetSettingResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* GetSettingResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.GetSettingResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); } // .mavsdk.rpc.camera.Setting setting = 2; - if (this->_internal_has_setting()) { + if (cached_has_bits & 0x00000002u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::setting(this), _Internal::setting(this).GetCachedSize(), target, stream); @@ -6597,57 +7344,61 @@ uint8_t* GetSettingResponse::_InternalSerialize( return target; } -size_t GetSettingResponse::ByteSizeLong() const { +::size_t GetSettingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.GetSettingResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // .mavsdk.rpc.camera.CameraResult camera_result = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.camera_result_); + } - // .mavsdk.rpc.camera.Setting setting = 2; - if (this->_internal_has_setting()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *setting_); - } + // .mavsdk.rpc.camera.Setting setting = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.setting_); + } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSettingResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, GetSettingResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSettingResponse::GetClassData() const { return &_class_data_; } -void GetSettingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void GetSettingResponse::MergeFrom(const GetSettingResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.GetSettingResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void GetSettingResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.GetSettingResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); - } - if (from._internal_has_setting()) { - _internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom(from._internal_setting()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_setting()->::mavsdk::rpc::camera::Setting::MergeFrom( + from._internal_setting()); + } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GetSettingResponse::CopyFrom(const GetSettingResponse& from) { @@ -6664,12 +7415,13 @@ bool GetSettingResponse::IsInitialized() const { void GetSettingResponse::InternalSwap(GetSettingResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetSettingResponse, setting_) - + sizeof(GetSettingResponse::setting_) - - PROTOBUF_FIELD_OFFSET(GetSettingResponse, camera_result_)>( - reinterpret_cast(&camera_result_), - reinterpret_cast(&other->camera_result_)); + PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.setting_) + + sizeof(GetSettingResponse::_impl_.setting_) + - PROTOBUF_FIELD_OFFSET(GetSettingResponse, _impl_.camera_result_)>( + reinterpret_cast(&_impl_.camera_result_), + reinterpret_cast(&other->_impl_.camera_result_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GetSettingResponse::GetMetadata() const { @@ -6677,20 +7429,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetSettingResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[37]); } - // =================================================================== class FormatStorageRequest::_Internal { public: }; -FormatStorageRequest::FormatStorageRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { +FormatStorageRequest::FormatStorageRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FormatStorageRequest) } FormatStorageRequest::FormatStorageRequest(const FormatStorageRequest& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + FormatStorageRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FormatStorageRequest) } @@ -6716,37 +7467,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata FormatStorageRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[38]); } - // =================================================================== class FormatStorageResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(FormatStorageResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const FormatStorageResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& FormatStorageResponse::_Internal::camera_result(const FormatStorageResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -FormatStorageResponse::FormatStorageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +FormatStorageResponse::FormatStorageResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.FormatStorageResponse) } FormatStorageResponse::FormatStorageResponse(const FormatStorageResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + FormatStorageResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.FormatStorageResponse) } -inline void FormatStorageResponse::SharedCtor() { -camera_result_ = nullptr; +inline void FormatStorageResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } FormatStorageResponse::~FormatStorageResponse() { @@ -6759,40 +7523,44 @@ FormatStorageResponse::~FormatStorageResponse() { } inline void FormatStorageResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void FormatStorageResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void FormatStorageResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.FormatStorageResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* FormatStorageResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -6810,6 +7578,7 @@ const char* FormatStorageResponse::_InternalParse(const char* ptr, ::_pbi::Parse CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -6817,14 +7586,15 @@ const char* FormatStorageResponse::_InternalParse(const char* ptr, ::_pbi::Parse #undef CHK_ } -uint8_t* FormatStorageResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* FormatStorageResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.FormatStorageResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -6838,47 +7608,45 @@ uint8_t* FormatStorageResponse::_InternalSerialize( return target; } -size_t FormatStorageResponse::ByteSizeLong() const { +::size_t FormatStorageResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.FormatStorageResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FormatStorageResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, FormatStorageResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FormatStorageResponse::GetClassData() const { return &_class_data_; } -void FormatStorageResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void FormatStorageResponse::MergeFrom(const FormatStorageResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FormatStorageResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void FormatStorageResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.FormatStorageResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FormatStorageResponse::CopyFrom(const FormatStorageResponse& from) { @@ -6895,7 +7663,8 @@ bool FormatStorageResponse::IsInitialized() const { void FormatStorageResponse::InternalSwap(FormatStorageResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata FormatStorageResponse::GetMetadata() const { @@ -6903,37 +7672,50 @@ ::PROTOBUF_NAMESPACE_ID::Metadata FormatStorageResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[39]); } - // =================================================================== class SelectCameraResponse::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SelectCameraResponse, _impl_._has_bits_); static const ::mavsdk::rpc::camera::CameraResult& camera_result(const SelectCameraResponse* msg); + static void set_has_camera_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::CameraResult& SelectCameraResponse::_Internal::camera_result(const SelectCameraResponse* msg) { - return *msg->camera_result_; + return *msg->_impl_.camera_result_; } -SelectCameraResponse::SelectCameraResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SelectCameraResponse::SelectCameraResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SelectCameraResponse) } SelectCameraResponse::SelectCameraResponse(const SelectCameraResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SelectCameraResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_camera_result()) { - camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from.camera_result_); - } else { - camera_result_ = nullptr; + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.camera_result_ = new ::mavsdk::rpc::camera::CameraResult(*from._impl_.camera_result_); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SelectCameraResponse) } -inline void SelectCameraResponse::SharedCtor() { -camera_result_ = nullptr; +inline void SelectCameraResponse::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.camera_result_){nullptr} + }; } SelectCameraResponse::~SelectCameraResponse() { @@ -6946,40 +7728,44 @@ SelectCameraResponse::~SelectCameraResponse() { } inline void SelectCameraResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete camera_result_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.camera_result_; } void SelectCameraResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SelectCameraResponse::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SelectCameraResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && camera_result_ != nullptr) { - delete camera_result_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.camera_result_ != nullptr); + _impl_.camera_result_->Clear(); } - camera_result_ = nullptr; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SelectCameraResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult camera_result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_camera_result(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -6997,6 +7783,7 @@ const char* SelectCameraResponse::_InternalParse(const char* ptr, ::_pbi::ParseC CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -7004,14 +7791,15 @@ const char* SelectCameraResponse::_InternalParse(const char* ptr, ::_pbi::ParseC #undef CHK_ } -uint8_t* SelectCameraResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SelectCameraResponse::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SelectCameraResponse) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::camera_result(this), _Internal::camera_result(this).GetCachedSize(), target, stream); @@ -7025,47 +7813,45 @@ uint8_t* SelectCameraResponse::_InternalSerialize( return target; } -size_t SelectCameraResponse::ByteSizeLong() const { +::size_t SelectCameraResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SelectCameraResponse) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult camera_result = 1; - if (this->_internal_has_camera_result()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *camera_result_); + *_impl_.camera_result_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SelectCameraResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SelectCameraResponse::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SelectCameraResponse::GetClassData() const { return &_class_data_; } -void SelectCameraResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SelectCameraResponse::MergeFrom(const SelectCameraResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SelectCameraResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SelectCameraResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SelectCameraResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_camera_result()) { - _internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom(from._internal_camera_result()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_camera_result()->::mavsdk::rpc::camera::CameraResult::MergeFrom( + from._internal_camera_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SelectCameraResponse::CopyFrom(const SelectCameraResponse& from) { @@ -7082,7 +7868,8 @@ bool SelectCameraResponse::IsInitialized() const { void SelectCameraResponse::InternalSwap(SelectCameraResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_result_, other->camera_result_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.camera_result_, other->_impl_.camera_result_); } ::PROTOBUF_NAMESPACE_ID::Metadata SelectCameraResponse::GetMetadata() const { @@ -7090,28 +7877,31 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SelectCameraResponse::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[40]); } - // =================================================================== class SelectCameraRequest::_Internal { public: }; -SelectCameraRequest::SelectCameraRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +SelectCameraRequest::SelectCameraRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.SelectCameraRequest) } SelectCameraRequest::SelectCameraRequest(const SelectCameraRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - camera_id_ = from.camera_id_; + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.SelectCameraRequest) } -inline void SelectCameraRequest::SharedCtor() { -camera_id_ = 0; +inline void SelectCameraRequest::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.camera_id_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } SelectCameraRequest::~SelectCameraRequest() { @@ -7124,36 +7914,37 @@ SelectCameraRequest::~SelectCameraRequest() { } inline void SelectCameraRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void SelectCameraRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SelectCameraRequest::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.SelectCameraRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - camera_id_ = 0; + _impl_.camera_id_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SelectCameraRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 camera_id = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - camera_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + _impl_.camera_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -7178,16 +7969,17 @@ const char* SelectCameraRequest::_InternalParse(const char* ptr, ::_pbi::ParseCo #undef CHK_ } -uint8_t* SelectCameraRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* SelectCameraRequest::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.SelectCameraRequest) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 camera_id = 1; if (this->_internal_camera_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_camera_id(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 1, this->_internal_camera_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -7198,45 +7990,42 @@ uint8_t* SelectCameraRequest::_InternalSerialize( return target; } -size_t SelectCameraRequest::ByteSizeLong() const { +::size_t SelectCameraRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.SelectCameraRequest) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 camera_id = 1; if (this->_internal_camera_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_camera_id()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_camera_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SelectCameraRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SelectCameraRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SelectCameraRequest::GetClassData() const { return &_class_data_; } -void SelectCameraRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void SelectCameraRequest::MergeFrom(const SelectCameraRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SelectCameraRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void SelectCameraRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.SelectCameraRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_camera_id() != 0) { - _internal_set_camera_id(from._internal_camera_id()); + _this->_internal_set_camera_id(from._internal_camera_id()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SelectCameraRequest::CopyFrom(const SelectCameraRequest& from) { @@ -7253,7 +8042,8 @@ bool SelectCameraRequest::IsInitialized() const { void SelectCameraRequest::InternalSwap(SelectCameraRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(camera_id_, other->camera_id_); + + swap(_impl_.camera_id_, other->_impl_.camera_id_); } ::PROTOBUF_NAMESPACE_ID::Metadata SelectCameraRequest::GetMetadata() const { @@ -7261,40 +8051,52 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SelectCameraRequest::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[41]); } - // =================================================================== class CameraResult::_Internal { public: }; -CameraResult::CameraResult(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +CameraResult::CameraResult(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CameraResult) } CameraResult::CameraResult(const CameraResult& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CameraResult* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.result_str_) {} + + , decltype(_impl_.result_) {} + + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - result_str_.InitDefault(); + _impl_.result_str_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - result_str_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.result_str_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_result_str().empty()) { - result_str_.Set(from._internal_result_str(), - GetArenaForAllocation()); + _this->_impl_.result_str_.Set(from._internal_result_str(), _this->GetArenaForAllocation()); } - result_ = from.result_; + _this->_impl_.result_ = from._impl_.result_; // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CameraResult) } -inline void CameraResult::SharedCtor() { -result_str_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - result_str_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -result_ = 0; +inline void CameraResult::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.result_str_) {} + + , decltype(_impl_.result_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.result_str_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.result_str_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } CameraResult::~CameraResult() { @@ -7307,49 +8109,51 @@ CameraResult::~CameraResult() { } inline void CameraResult::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - result_str_.Destroy(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.result_str_.Destroy(); } void CameraResult::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CameraResult::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CameraResult) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - result_str_.ClearToEmpty(); - result_ = 0; + _impl_.result_str_.ClearToEmpty(); + _impl_.result_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CameraResult::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.CameraResult.Result result = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_result(static_cast<::mavsdk::rpc::camera::CameraResult_Result>(val)); - } else + } else { goto handle_unusual; + } continue; // string result_str = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { auto str = _internal_mutable_result_str(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.CameraResult.result_str")); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -7374,27 +8178,25 @@ const char* CameraResult::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* CameraResult::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* CameraResult::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CameraResult) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // .mavsdk.rpc.camera.CameraResult.Result result = 1; if (this->_internal_result() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); + 1, this->_internal_result(), target); } // string result_str = 2; if (!this->_internal_result_str().empty()) { + const std::string& _s = this->_internal_result_str(); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_result_str().data(), static_cast(this->_internal_result_str().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.camera.CameraResult.result_str"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_result_str(), target); + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.CameraResult.result_str"); + target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -7405,56 +8207,51 @@ uint8_t* CameraResult::_InternalSerialize( return target; } -size_t CameraResult::ByteSizeLong() const { +::size_t CameraResult::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CameraResult) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string result_str = 2; if (!this->_internal_result_str().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_result_str()); + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_result_str()); } // .mavsdk.rpc.camera.CameraResult.Result result = 1; if (this->_internal_result() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CameraResult::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CameraResult::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CameraResult::GetClassData() const { return &_class_data_; } -void CameraResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void CameraResult::MergeFrom(const CameraResult& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CameraResult) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void CameraResult::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CameraResult) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_result_str().empty()) { - _internal_set_result_str(from._internal_result_str()); + _this->_internal_set_result_str(from._internal_result_str()); } if (from._internal_result() != 0) { - _internal_set_result(from._internal_result()); + _this->_internal_set_result(from._internal_result()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CameraResult::CopyFrom(const CameraResult& from) { @@ -7473,11 +8270,9 @@ void CameraResult::InternalSwap(CameraResult* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &result_str_, lhs_arena, - &other->result_str_, rhs_arena - ); - swap(result_, other->result_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.result_str_, lhs_arena, + &other->_impl_.result_str_, rhs_arena); + swap(_impl_.result_, other->_impl_.result_); } ::PROTOBUF_NAMESPACE_ID::Metadata CameraResult::GetMetadata() const { @@ -7485,33 +8280,37 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CameraResult::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[42]); } - // =================================================================== class Position::_Internal { public: }; -Position::Position(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +Position::Position(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Position) } Position::Position(const Position& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&latitude_deg_, &from.latitude_deg_, - static_cast(reinterpret_cast(&relative_altitude_m_) - - reinterpret_cast(&latitude_deg_)) + sizeof(relative_altitude_m_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.Position) } -inline void Position::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&latitude_deg_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&relative_altitude_m_) - - reinterpret_cast(&latitude_deg_)) + sizeof(relative_altitude_m_)); +inline void Position::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.latitude_deg_) { 0 } + + , decltype(_impl_.longitude_deg_) { 0 } + + , decltype(_impl_.absolute_altitude_m_) { 0 } + + , decltype(_impl_.relative_altitude_m_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } Position::~Position() { @@ -7524,62 +8323,66 @@ Position::~Position() { } inline void Position::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void Position::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Position::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Position) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&latitude_deg_, 0, static_cast( - reinterpret_cast(&relative_altitude_m_) - - reinterpret_cast(&latitude_deg_)) + sizeof(relative_altitude_m_)); + ::memset(&_impl_.latitude_deg_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.relative_altitude_m_) - + reinterpret_cast(&_impl_.latitude_deg_)) + sizeof(_impl_.relative_altitude_m_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Position::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // double latitude_deg = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { - latitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 9)) { + _impl_.latitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); - } else + } else { goto handle_unusual; + } continue; // double longitude_deg = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { - longitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 17)) { + _impl_.longitude_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); - } else + } else { goto handle_unusual; + } continue; // float absolute_altitude_m = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - absolute_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) { + _impl_.absolute_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // float relative_altitude_m = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - relative_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) { + _impl_.relative_altitude_m_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -7604,50 +8407,54 @@ const char* Position::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) #undef CHK_ } -uint8_t* Position::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* Position::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Position) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // double latitude_deg = 1; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_latitude_deg = this->_internal_latitude_deg(); - uint64_t raw_latitude_deg; + ::uint64_t raw_latitude_deg; memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); if (raw_latitude_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_latitude_deg(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 1, this->_internal_latitude_deg(), target); } // double longitude_deg = 2; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_longitude_deg = this->_internal_longitude_deg(); - uint64_t raw_longitude_deg; + ::uint64_t raw_longitude_deg; memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); if (raw_longitude_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_longitude_deg(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 2, this->_internal_longitude_deg(), target); } // float absolute_altitude_m = 3; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - uint32_t raw_absolute_altitude_m; + ::uint32_t raw_absolute_altitude_m; memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); if (raw_absolute_altitude_m != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_absolute_altitude_m(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this->_internal_absolute_altitude_m(), target); } // float relative_altitude_m = 4; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - uint32_t raw_relative_altitude_m; + ::uint32_t raw_relative_altitude_m; memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); if (raw_relative_altitude_m != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_relative_altitude_m(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this->_internal_relative_altitude_m(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -7658,101 +8465,97 @@ uint8_t* Position::_InternalSerialize( return target; } -size_t Position::ByteSizeLong() const { +::size_t Position::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Position) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // double latitude_deg = 1; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_latitude_deg = this->_internal_latitude_deg(); - uint64_t raw_latitude_deg; + ::uint64_t raw_latitude_deg; memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); if (raw_latitude_deg != 0) { - total_size += 1 + 8; + total_size += 9; } // double longitude_deg = 2; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_longitude_deg = this->_internal_longitude_deg(); - uint64_t raw_longitude_deg; + ::uint64_t raw_longitude_deg; memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); if (raw_longitude_deg != 0) { - total_size += 1 + 8; + total_size += 9; } // float absolute_altitude_m = 3; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_absolute_altitude_m = this->_internal_absolute_altitude_m(); - uint32_t raw_absolute_altitude_m; + ::uint32_t raw_absolute_altitude_m; memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); if (raw_absolute_altitude_m != 0) { - total_size += 1 + 4; + total_size += 5; } // float relative_altitude_m = 4; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - uint32_t raw_relative_altitude_m; + ::uint32_t raw_relative_altitude_m; memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); if (raw_relative_altitude_m != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Position::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Position::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Position::GetClassData() const { return &_class_data_; } -void Position::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void Position::MergeFrom(const Position& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Position) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void Position::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Position) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_latitude_deg = from._internal_latitude_deg(); - uint64_t raw_latitude_deg; + ::uint64_t raw_latitude_deg; memcpy(&raw_latitude_deg, &tmp_latitude_deg, sizeof(tmp_latitude_deg)); if (raw_latitude_deg != 0) { - _internal_set_latitude_deg(from._internal_latitude_deg()); + _this->_internal_set_latitude_deg(from._internal_latitude_deg()); } - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_longitude_deg = from._internal_longitude_deg(); - uint64_t raw_longitude_deg; + ::uint64_t raw_longitude_deg; memcpy(&raw_longitude_deg, &tmp_longitude_deg, sizeof(tmp_longitude_deg)); if (raw_longitude_deg != 0) { - _internal_set_longitude_deg(from._internal_longitude_deg()); + _this->_internal_set_longitude_deg(from._internal_longitude_deg()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_absolute_altitude_m = from._internal_absolute_altitude_m(); - uint32_t raw_absolute_altitude_m; + ::uint32_t raw_absolute_altitude_m; memcpy(&raw_absolute_altitude_m, &tmp_absolute_altitude_m, sizeof(tmp_absolute_altitude_m)); if (raw_absolute_altitude_m != 0) { - _internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); + _this->_internal_set_absolute_altitude_m(from._internal_absolute_altitude_m()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_relative_altitude_m = from._internal_relative_altitude_m(); - uint32_t raw_relative_altitude_m; + ::uint32_t raw_relative_altitude_m; memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); if (raw_relative_altitude_m != 0) { - _internal_set_relative_altitude_m(from._internal_relative_altitude_m()); + _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Position::CopyFrom(const Position& from) { @@ -7770,11 +8573,11 @@ void Position::InternalSwap(Position* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Position, relative_altitude_m_) - + sizeof(Position::relative_altitude_m_) - - PROTOBUF_FIELD_OFFSET(Position, latitude_deg_)>( - reinterpret_cast(&latitude_deg_), - reinterpret_cast(&other->latitude_deg_)); + PROTOBUF_FIELD_OFFSET(Position, _impl_.relative_altitude_m_) + + sizeof(Position::_impl_.relative_altitude_m_) + - PROTOBUF_FIELD_OFFSET(Position, _impl_.latitude_deg_)>( + reinterpret_cast(&_impl_.latitude_deg_), + reinterpret_cast(&other->_impl_.latitude_deg_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Position::GetMetadata() const { @@ -7782,33 +8585,37 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Position::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[43]); } - // =================================================================== class Quaternion::_Internal { public: }; -Quaternion::Quaternion(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +Quaternion::Quaternion(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Quaternion) } Quaternion::Quaternion(const Quaternion& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&w_, &from.w_, - static_cast(reinterpret_cast(&z_) - - reinterpret_cast(&w_)) + sizeof(z_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.Quaternion) } -inline void Quaternion::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&w_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&z_) - - reinterpret_cast(&w_)) + sizeof(z_)); +inline void Quaternion::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.w_) { 0 } + + , decltype(_impl_.x_) { 0 } + + , decltype(_impl_.y_) { 0 } + + , decltype(_impl_.z_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } Quaternion::~Quaternion() { @@ -7821,62 +8628,66 @@ Quaternion::~Quaternion() { } inline void Quaternion::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void Quaternion::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Quaternion::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Quaternion) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&w_, 0, static_cast( - reinterpret_cast(&z_) - - reinterpret_cast(&w_)) + sizeof(z_)); + ::memset(&_impl_.w_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.z_) - + reinterpret_cast(&_impl_.w_)) + sizeof(_impl_.z_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Quaternion::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // float w = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { + _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // float x = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // float y = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) { + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // float z = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) { + _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -7901,50 +8712,54 @@ const char* Quaternion::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct #undef CHK_ } -uint8_t* Quaternion::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* Quaternion::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Quaternion) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // float w = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_w = this->_internal_w(); - uint32_t raw_w; + ::uint32_t raw_w; memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); if (raw_w != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_w(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this->_internal_w(), target); } // float x = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_x = this->_internal_x(); - uint32_t raw_x; + ::uint32_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this->_internal_x(), target); } // float y = 3; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_y = this->_internal_y(); - uint32_t raw_y; + ::uint32_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this->_internal_y(), target); } // float z = 4; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_z = this->_internal_z(); - uint32_t raw_z; + ::uint32_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_z(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this->_internal_z(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -7955,101 +8770,97 @@ uint8_t* Quaternion::_InternalSerialize( return target; } -size_t Quaternion::ByteSizeLong() const { +::size_t Quaternion::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Quaternion) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float w = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_w = this->_internal_w(); - uint32_t raw_w; + ::uint32_t raw_w; memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); if (raw_w != 0) { - total_size += 1 + 4; + total_size += 5; } // float x = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_x = this->_internal_x(); - uint32_t raw_x; + ::uint32_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - total_size += 1 + 4; + total_size += 5; } // float y = 3; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_y = this->_internal_y(); - uint32_t raw_y; + ::uint32_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - total_size += 1 + 4; + total_size += 5; } // float z = 4; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_z = this->_internal_z(); - uint32_t raw_z; + ::uint32_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Quaternion::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Quaternion::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Quaternion::GetClassData() const { return &_class_data_; } -void Quaternion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void Quaternion::MergeFrom(const Quaternion& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Quaternion) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void Quaternion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Quaternion) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_w = from._internal_w(); - uint32_t raw_w; + ::uint32_t raw_w; memcpy(&raw_w, &tmp_w, sizeof(tmp_w)); if (raw_w != 0) { - _internal_set_w(from._internal_w()); + _this->_internal_set_w(from._internal_w()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_x = from._internal_x(); - uint32_t raw_x; + ::uint32_t raw_x; memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); if (raw_x != 0) { - _internal_set_x(from._internal_x()); + _this->_internal_set_x(from._internal_x()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_y = from._internal_y(); - uint32_t raw_y; + ::uint32_t raw_y; memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); if (raw_y != 0) { - _internal_set_y(from._internal_y()); + _this->_internal_set_y(from._internal_y()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_z = from._internal_z(); - uint32_t raw_z; + ::uint32_t raw_z; memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); if (raw_z != 0) { - _internal_set_z(from._internal_z()); + _this->_internal_set_z(from._internal_z()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Quaternion::CopyFrom(const Quaternion& from) { @@ -8067,11 +8878,11 @@ void Quaternion::InternalSwap(Quaternion* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Quaternion, z_) - + sizeof(Quaternion::z_) - - PROTOBUF_FIELD_OFFSET(Quaternion, w_)>( - reinterpret_cast(&w_), - reinterpret_cast(&other->w_)); + PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.z_) + + sizeof(Quaternion::_impl_.z_) + - PROTOBUF_FIELD_OFFSET(Quaternion, _impl_.w_)>( + reinterpret_cast(&_impl_.w_), + reinterpret_cast(&other->_impl_.w_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Quaternion::GetMetadata() const { @@ -8079,33 +8890,35 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Quaternion::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[44]); } - // =================================================================== class EulerAngle::_Internal { public: }; -EulerAngle::EulerAngle(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +EulerAngle::EulerAngle(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.EulerAngle) } EulerAngle::EulerAngle(const EulerAngle& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&roll_deg_, &from.roll_deg_, - static_cast(reinterpret_cast(&yaw_deg_) - - reinterpret_cast(&roll_deg_)) + sizeof(yaw_deg_)); + : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( + from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.EulerAngle) } -inline void EulerAngle::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&roll_deg_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&yaw_deg_) - - reinterpret_cast(&roll_deg_)) + sizeof(yaw_deg_)); +inline void EulerAngle::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.roll_deg_) { 0 } + + , decltype(_impl_.pitch_deg_) { 0 } + + , decltype(_impl_.yaw_deg_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; } EulerAngle::~EulerAngle() { @@ -8118,54 +8931,57 @@ EulerAngle::~EulerAngle() { } inline void EulerAngle::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); } void EulerAngle::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void EulerAngle::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.EulerAngle) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&roll_deg_, 0, static_cast( - reinterpret_cast(&yaw_deg_) - - reinterpret_cast(&roll_deg_)) + sizeof(yaw_deg_)); + ::memset(&_impl_.roll_deg_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.yaw_deg_) - + reinterpret_cast(&_impl_.roll_deg_)) + sizeof(_impl_.yaw_deg_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* EulerAngle::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // float roll_deg = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - roll_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { + _impl_.roll_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // float pitch_deg = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - pitch_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) { + _impl_.pitch_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // float yaw_deg = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - yaw_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) { + _impl_.yaw_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -8190,40 +9006,43 @@ const char* EulerAngle::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct #undef CHK_ } -uint8_t* EulerAngle::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* EulerAngle::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.EulerAngle) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // float roll_deg = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_roll_deg = this->_internal_roll_deg(); - uint32_t raw_roll_deg; + ::uint32_t raw_roll_deg; memcpy(&raw_roll_deg, &tmp_roll_deg, sizeof(tmp_roll_deg)); if (raw_roll_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_roll_deg(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this->_internal_roll_deg(), target); } // float pitch_deg = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_pitch_deg = this->_internal_pitch_deg(); - uint32_t raw_pitch_deg; + ::uint32_t raw_pitch_deg; memcpy(&raw_pitch_deg, &tmp_pitch_deg, sizeof(tmp_pitch_deg)); if (raw_pitch_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_pitch_deg(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this->_internal_pitch_deg(), target); } // float yaw_deg = 3; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_yaw_deg = this->_internal_yaw_deg(); - uint32_t raw_yaw_deg; + ::uint32_t raw_yaw_deg; memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); if (raw_yaw_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_yaw_deg(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this->_internal_yaw_deg(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -8234,85 +9053,81 @@ uint8_t* EulerAngle::_InternalSerialize( return target; } -size_t EulerAngle::ByteSizeLong() const { +::size_t EulerAngle::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.EulerAngle) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float roll_deg = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_roll_deg = this->_internal_roll_deg(); - uint32_t raw_roll_deg; + ::uint32_t raw_roll_deg; memcpy(&raw_roll_deg, &tmp_roll_deg, sizeof(tmp_roll_deg)); if (raw_roll_deg != 0) { - total_size += 1 + 4; + total_size += 5; } // float pitch_deg = 2; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_pitch_deg = this->_internal_pitch_deg(); - uint32_t raw_pitch_deg; + ::uint32_t raw_pitch_deg; memcpy(&raw_pitch_deg, &tmp_pitch_deg, sizeof(tmp_pitch_deg)); if (raw_pitch_deg != 0) { - total_size += 1 + 4; + total_size += 5; } // float yaw_deg = 3; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_yaw_deg = this->_internal_yaw_deg(); - uint32_t raw_yaw_deg; + ::uint32_t raw_yaw_deg; memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); if (raw_yaw_deg != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EulerAngle::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, EulerAngle::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EulerAngle::GetClassData() const { return &_class_data_; } -void EulerAngle::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void EulerAngle::MergeFrom(const EulerAngle& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.EulerAngle) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void EulerAngle::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.EulerAngle) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_roll_deg = from._internal_roll_deg(); - uint32_t raw_roll_deg; + ::uint32_t raw_roll_deg; memcpy(&raw_roll_deg, &tmp_roll_deg, sizeof(tmp_roll_deg)); if (raw_roll_deg != 0) { - _internal_set_roll_deg(from._internal_roll_deg()); + _this->_internal_set_roll_deg(from._internal_roll_deg()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_pitch_deg = from._internal_pitch_deg(); - uint32_t raw_pitch_deg; + ::uint32_t raw_pitch_deg; memcpy(&raw_pitch_deg, &tmp_pitch_deg, sizeof(tmp_pitch_deg)); if (raw_pitch_deg != 0) { - _internal_set_pitch_deg(from._internal_pitch_deg()); + _this->_internal_set_pitch_deg(from._internal_pitch_deg()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_yaw_deg = from._internal_yaw_deg(); - uint32_t raw_yaw_deg; + ::uint32_t raw_yaw_deg; memcpy(&raw_yaw_deg, &tmp_yaw_deg, sizeof(tmp_yaw_deg)); if (raw_yaw_deg != 0) { - _internal_set_yaw_deg(from._internal_yaw_deg()); + _this->_internal_set_yaw_deg(from._internal_yaw_deg()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EulerAngle::CopyFrom(const EulerAngle& from) { @@ -8330,11 +9145,11 @@ void EulerAngle::InternalSwap(EulerAngle* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(EulerAngle, yaw_deg_) - + sizeof(EulerAngle::yaw_deg_) - - PROTOBUF_FIELD_OFFSET(EulerAngle, roll_deg_)>( - reinterpret_cast(&roll_deg_), - reinterpret_cast(&other->roll_deg_)); + PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.yaw_deg_) + + sizeof(EulerAngle::_impl_.yaw_deg_) + - PROTOBUF_FIELD_OFFSET(EulerAngle, _impl_.roll_deg_)>( + reinterpret_cast(&_impl_.roll_deg_), + reinterpret_cast(&other->_impl_.roll_deg_)); } ::PROTOBUF_NAMESPACE_ID::Metadata EulerAngle::GetMetadata() const { @@ -8342,75 +9157,106 @@ ::PROTOBUF_NAMESPACE_ID::Metadata EulerAngle::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[45]); } - // =================================================================== class CaptureInfo::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_._has_bits_); static const ::mavsdk::rpc::camera::Position& position(const CaptureInfo* msg); + static void set_has_position(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } static const ::mavsdk::rpc::camera::Quaternion& attitude_quaternion(const CaptureInfo* msg); + static void set_has_attitude_quaternion(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } static const ::mavsdk::rpc::camera::EulerAngle& attitude_euler_angle(const CaptureInfo* msg); + static void set_has_attitude_euler_angle(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } }; const ::mavsdk::rpc::camera::Position& CaptureInfo::_Internal::position(const CaptureInfo* msg) { - return *msg->position_; + return *msg->_impl_.position_; } const ::mavsdk::rpc::camera::Quaternion& CaptureInfo::_Internal::attitude_quaternion(const CaptureInfo* msg) { - return *msg->attitude_quaternion_; + return *msg->_impl_.attitude_quaternion_; } const ::mavsdk::rpc::camera::EulerAngle& CaptureInfo::_Internal::attitude_euler_angle(const CaptureInfo* msg) { - return *msg->attitude_euler_angle_; + return *msg->_impl_.attitude_euler_angle_; } -CaptureInfo::CaptureInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +CaptureInfo::CaptureInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.CaptureInfo) } CaptureInfo::CaptureInfo(const CaptureInfo& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + CaptureInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.file_url_) {} + + , decltype(_impl_.position_){nullptr} + , decltype(_impl_.attitude_quaternion_){nullptr} + , decltype(_impl_.attitude_euler_angle_){nullptr} + , decltype(_impl_.time_utc_us_) {} + + , decltype(_impl_.is_success_) {} + + , decltype(_impl_.index_) {} + }; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - file_url_.InitDefault(); + _impl_.file_url_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - file_url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_file_url().empty()) { - file_url_.Set(from._internal_file_url(), - GetArenaForAllocation()); - } - if (from._internal_has_position()) { - position_ = new ::mavsdk::rpc::camera::Position(*from.position_); - } else { - position_ = nullptr; - } - if (from._internal_has_attitude_quaternion()) { - attitude_quaternion_ = new ::mavsdk::rpc::camera::Quaternion(*from.attitude_quaternion_); - } else { - attitude_quaternion_ = nullptr; - } - if (from._internal_has_attitude_euler_angle()) { - attitude_euler_angle_ = new ::mavsdk::rpc::camera::EulerAngle(*from.attitude_euler_angle_); - } else { - attitude_euler_angle_ = nullptr; - } - ::memcpy(&time_utc_us_, &from.time_utc_us_, - static_cast(reinterpret_cast(&index_) - - reinterpret_cast(&time_utc_us_)) + sizeof(index_)); + _this->_impl_.file_url_.Set(from._internal_file_url(), _this->GetArenaForAllocation()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.position_ = new ::mavsdk::rpc::camera::Position(*from._impl_.position_); + } + if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { + _this->_impl_.attitude_quaternion_ = new ::mavsdk::rpc::camera::Quaternion(*from._impl_.attitude_quaternion_); + } + if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) { + _this->_impl_.attitude_euler_angle_ = new ::mavsdk::rpc::camera::EulerAngle(*from._impl_.attitude_euler_angle_); + } + ::memcpy(&_impl_.time_utc_us_, &from._impl_.time_utc_us_, + static_cast<::size_t>(reinterpret_cast(&_impl_.index_) - + reinterpret_cast(&_impl_.time_utc_us_)) + sizeof(_impl_.index_)); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.CaptureInfo) } -inline void CaptureInfo::SharedCtor() { -file_url_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - file_url_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&position_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&index_) - - reinterpret_cast(&position_)) + sizeof(index_)); +inline void CaptureInfo::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.file_url_) {} + + , decltype(_impl_.position_){nullptr} + , decltype(_impl_.attitude_quaternion_){nullptr} + , decltype(_impl_.attitude_euler_angle_){nullptr} + , decltype(_impl_.time_utc_us_) { ::uint64_t{0u} } + + , decltype(_impl_.is_success_) { false } + + , decltype(_impl_.index_) { 0 } + + }; + _impl_.file_url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } CaptureInfo::~CaptureInfo() { @@ -8423,105 +9269,117 @@ CaptureInfo::~CaptureInfo() { } inline void CaptureInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - file_url_.Destroy(); - if (this != internal_default_instance()) delete position_; - if (this != internal_default_instance()) delete attitude_quaternion_; - if (this != internal_default_instance()) delete attitude_euler_angle_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.file_url_.Destroy(); + if (this != internal_default_instance()) delete _impl_.position_; + if (this != internal_default_instance()) delete _impl_.attitude_quaternion_; + if (this != internal_default_instance()) delete _impl_.attitude_euler_angle_; } void CaptureInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CaptureInfo::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.CaptureInfo) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - file_url_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && position_ != nullptr) { - delete position_; - } - position_ = nullptr; - if (GetArenaForAllocation() == nullptr && attitude_quaternion_ != nullptr) { - delete attitude_quaternion_; - } - attitude_quaternion_ = nullptr; - if (GetArenaForAllocation() == nullptr && attitude_euler_angle_ != nullptr) { - delete attitude_euler_angle_; + _impl_.file_url_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.position_ != nullptr); + _impl_.position_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + ABSL_DCHECK(_impl_.attitude_quaternion_ != nullptr); + _impl_.attitude_quaternion_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + ABSL_DCHECK(_impl_.attitude_euler_angle_ != nullptr); + _impl_.attitude_euler_angle_->Clear(); + } } - attitude_euler_angle_ = nullptr; - ::memset(&time_utc_us_, 0, static_cast( - reinterpret_cast(&index_) - - reinterpret_cast(&time_utc_us_)) + sizeof(index_)); + ::memset(&_impl_.time_utc_us_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.index_) - + reinterpret_cast(&_impl_.time_utc_us_)) + sizeof(_impl_.index_)); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CaptureInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.Position position = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_position(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_attitude_quaternion(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_attitude_euler_angle(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // uint64 time_utc_us = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - time_utc_us_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { + _impl_.time_utc_us_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool is_success = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - is_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { + _impl_.is_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // int32 index = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) { + _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // string file_url = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { auto str = _internal_mutable_file_url(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.CaptureInfo.file_url")); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -8539,6 +9397,7 @@ const char* CaptureInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* c CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -8546,28 +9405,29 @@ const char* CaptureInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* c #undef CHK_ } -uint8_t* CaptureInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* CaptureInfo::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.CaptureInfo) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.Position position = 1; - if (this->_internal_has_position()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::position(this), _Internal::position(this).GetCachedSize(), target, stream); } // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; - if (this->_internal_has_attitude_quaternion()) { + if (cached_has_bits & 0x00000002u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::attitude_quaternion(this), _Internal::attitude_quaternion(this).GetCachedSize(), target, stream); } // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; - if (this->_internal_has_attitude_euler_angle()) { + if (cached_has_bits & 0x00000004u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, _Internal::attitude_euler_angle(this), _Internal::attitude_euler_angle(this).GetCachedSize(), target, stream); @@ -8576,29 +9436,30 @@ uint8_t* CaptureInfo::_InternalSerialize( // uint64 time_utc_us = 4; if (this->_internal_time_utc_us() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_time_utc_us(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 4, this->_internal_time_utc_us(), target); } // bool is_success = 5; if (this->_internal_is_success() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_is_success(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this->_internal_is_success(), target); } // int32 index = 6; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_index(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 6, this->_internal_index(), target); } // string file_url = 7; if (!this->_internal_file_url().empty()) { + const std::string& _s = this->_internal_file_url(); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_file_url().data(), static_cast(this->_internal_file_url().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.camera.CaptureInfo.file_url"); - target = stream->WriteStringMaybeAliased( - 7, this->_internal_file_url(), target); + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.CaptureInfo.file_url"); + target = stream->WriteStringMaybeAliased(7, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -8609,101 +9470,107 @@ uint8_t* CaptureInfo::_InternalSerialize( return target; } -size_t CaptureInfo::ByteSizeLong() const { +::size_t CaptureInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.CaptureInfo) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string file_url = 7; if (!this->_internal_file_url().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_file_url()); + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_file_url()); } - // .mavsdk.rpc.camera.Position position = 1; - if (this->_internal_has_position()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *position_); - } + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // .mavsdk.rpc.camera.Position position = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.position_); + } - // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; - if (this->_internal_has_attitude_quaternion()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attitude_quaternion_); - } + // .mavsdk.rpc.camera.Quaternion attitude_quaternion = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.attitude_quaternion_); + } - // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; - if (this->_internal_has_attitude_euler_angle()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attitude_euler_angle_); - } + // .mavsdk.rpc.camera.EulerAngle attitude_euler_angle = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.attitude_euler_angle_); + } + } // uint64 time_utc_us = 4; if (this->_internal_time_utc_us() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_time_utc_us()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this->_internal_time_utc_us()); } // bool is_success = 5; if (this->_internal_is_success() != 0) { - total_size += 1 + 1; + total_size += 2; } // int32 index = 6; if (this->_internal_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_index()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_index()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CaptureInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CaptureInfo::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CaptureInfo::GetClassData() const { return &_class_data_; } -void CaptureInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void CaptureInfo::MergeFrom(const CaptureInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CaptureInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void CaptureInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.CaptureInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_file_url().empty()) { - _internal_set_file_url(from._internal_file_url()); - } - if (from._internal_has_position()) { - _internal_mutable_position()->::mavsdk::rpc::camera::Position::MergeFrom(from._internal_position()); + _this->_internal_set_file_url(from._internal_file_url()); } - if (from._internal_has_attitude_quaternion()) { - _internal_mutable_attitude_quaternion()->::mavsdk::rpc::camera::Quaternion::MergeFrom(from._internal_attitude_quaternion()); - } - if (from._internal_has_attitude_euler_angle()) { - _internal_mutable_attitude_euler_angle()->::mavsdk::rpc::camera::EulerAngle::MergeFrom(from._internal_attitude_euler_angle()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + _this->_internal_mutable_position()->::mavsdk::rpc::camera::Position::MergeFrom( + from._internal_position()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_attitude_quaternion()->::mavsdk::rpc::camera::Quaternion::MergeFrom( + from._internal_attitude_quaternion()); + } + if (cached_has_bits & 0x00000004u) { + _this->_internal_mutable_attitude_euler_angle()->::mavsdk::rpc::camera::EulerAngle::MergeFrom( + from._internal_attitude_euler_angle()); + } } if (from._internal_time_utc_us() != 0) { - _internal_set_time_utc_us(from._internal_time_utc_us()); + _this->_internal_set_time_utc_us(from._internal_time_utc_us()); } if (from._internal_is_success() != 0) { - _internal_set_is_success(from._internal_is_success()); + _this->_internal_set_is_success(from._internal_is_success()); } if (from._internal_index() != 0) { - _internal_set_index(from._internal_index()); + _this->_internal_set_index(from._internal_index()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CaptureInfo::CopyFrom(const CaptureInfo& from) { @@ -8722,16 +9589,15 @@ void CaptureInfo::InternalSwap(CaptureInfo* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &file_url_, lhs_arena, - &other->file_url_, rhs_arena - ); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.file_url_, lhs_arena, + &other->_impl_.file_url_, rhs_arena); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CaptureInfo, index_) - + sizeof(CaptureInfo::index_) - - PROTOBUF_FIELD_OFFSET(CaptureInfo, position_)>( - reinterpret_cast(&position_), - reinterpret_cast(&other->position_)); + PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.index_) + + sizeof(CaptureInfo::_impl_.index_) + - PROTOBUF_FIELD_OFFSET(CaptureInfo, _impl_.position_)>( + reinterpret_cast(&_impl_.position_), + reinterpret_cast(&other->_impl_.position_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CaptureInfo::GetMetadata() const { @@ -8739,45 +9605,74 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CaptureInfo::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[46]); } - // =================================================================== class VideoStreamSettings::_Internal { public: }; -VideoStreamSettings::VideoStreamSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +VideoStreamSettings::VideoStreamSettings(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamSettings) } VideoStreamSettings::VideoStreamSettings(const VideoStreamSettings& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + VideoStreamSettings* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.uri_) {} + + , decltype(_impl_.frame_rate_hz_) {} + + , decltype(_impl_.horizontal_resolution_pix_) {} + + , decltype(_impl_.vertical_resolution_pix_) {} + + , decltype(_impl_.bit_rate_b_s_) {} + + , decltype(_impl_.rotation_deg_) {} + + , decltype(_impl_.horizontal_fov_deg_) {} + + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - uri_.InitDefault(); + _impl_.uri_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - uri_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_uri().empty()) { - uri_.Set(from._internal_uri(), - GetArenaForAllocation()); + _this->_impl_.uri_.Set(from._internal_uri(), _this->GetArenaForAllocation()); } - ::memcpy(&frame_rate_hz_, &from.frame_rate_hz_, - static_cast(reinterpret_cast(&horizontal_fov_deg_) - - reinterpret_cast(&frame_rate_hz_)) + sizeof(horizontal_fov_deg_)); + ::memcpy(&_impl_.frame_rate_hz_, &from._impl_.frame_rate_hz_, + static_cast<::size_t>(reinterpret_cast(&_impl_.horizontal_fov_deg_) - + reinterpret_cast(&_impl_.frame_rate_hz_)) + sizeof(_impl_.horizontal_fov_deg_)); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.VideoStreamSettings) } -inline void VideoStreamSettings::SharedCtor() { -uri_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - uri_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&frame_rate_hz_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&horizontal_fov_deg_) - - reinterpret_cast(&frame_rate_hz_)) + sizeof(horizontal_fov_deg_)); +inline void VideoStreamSettings::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.uri_) {} + + , decltype(_impl_.frame_rate_hz_) { 0 } + + , decltype(_impl_.horizontal_resolution_pix_) { 0u } + + , decltype(_impl_.vertical_resolution_pix_) { 0u } + + , decltype(_impl_.bit_rate_b_s_) { 0u } + + , decltype(_impl_.rotation_deg_) { 0u } + + , decltype(_impl_.horizontal_fov_deg_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } VideoStreamSettings::~VideoStreamSettings() { @@ -8790,90 +9685,97 @@ VideoStreamSettings::~VideoStreamSettings() { } inline void VideoStreamSettings::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - uri_.Destroy(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.uri_.Destroy(); } void VideoStreamSettings::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void VideoStreamSettings::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamSettings) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - uri_.ClearToEmpty(); - ::memset(&frame_rate_hz_, 0, static_cast( - reinterpret_cast(&horizontal_fov_deg_) - - reinterpret_cast(&frame_rate_hz_)) + sizeof(horizontal_fov_deg_)); + _impl_.uri_.ClearToEmpty(); + ::memset(&_impl_.frame_rate_hz_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.horizontal_fov_deg_) - + reinterpret_cast(&_impl_.frame_rate_hz_)) + sizeof(_impl_.horizontal_fov_deg_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* VideoStreamSettings::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // float frame_rate_hz = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - frame_rate_hz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) { + _impl_.frame_rate_hz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // uint32 horizontal_resolution_pix = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - horizontal_resolution_pix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.horizontal_resolution_pix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // uint32 vertical_resolution_pix = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - vertical_resolution_pix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { + _impl_.vertical_resolution_pix_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // uint32 bit_rate_b_s = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - bit_rate_b_s_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { + _impl_.bit_rate_b_s_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // uint32 rotation_deg = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - rotation_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { + _impl_.rotation_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // string uri = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { auto str = _internal_mutable_uri(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.VideoStreamSettings.uri")); - } else + } else { goto handle_unusual; + } continue; // float horizontal_fov_deg = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 61)) { - horizontal_fov_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 61)) { + _impl_.horizontal_fov_deg_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -8898,64 +9800,68 @@ const char* VideoStreamSettings::_InternalParse(const char* ptr, ::_pbi::ParseCo #undef CHK_ } -uint8_t* VideoStreamSettings::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* VideoStreamSettings::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamSettings) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // float frame_rate_hz = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_frame_rate_hz = this->_internal_frame_rate_hz(); - uint32_t raw_frame_rate_hz; + ::uint32_t raw_frame_rate_hz; memcpy(&raw_frame_rate_hz, &tmp_frame_rate_hz, sizeof(tmp_frame_rate_hz)); if (raw_frame_rate_hz != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_frame_rate_hz(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this->_internal_frame_rate_hz(), target); } // uint32 horizontal_resolution_pix = 2; if (this->_internal_horizontal_resolution_pix() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_horizontal_resolution_pix(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this->_internal_horizontal_resolution_pix(), target); } // uint32 vertical_resolution_pix = 3; if (this->_internal_vertical_resolution_pix() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_vertical_resolution_pix(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this->_internal_vertical_resolution_pix(), target); } // uint32 bit_rate_b_s = 4; if (this->_internal_bit_rate_b_s() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_bit_rate_b_s(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 4, this->_internal_bit_rate_b_s(), target); } // uint32 rotation_deg = 5; if (this->_internal_rotation_deg() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_rotation_deg(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 5, this->_internal_rotation_deg(), target); } // string uri = 6; if (!this->_internal_uri().empty()) { + const std::string& _s = this->_internal_uri(); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_uri().data(), static_cast(this->_internal_uri().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.camera.VideoStreamSettings.uri"); - target = stream->WriteStringMaybeAliased( - 6, this->_internal_uri(), target); + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.VideoStreamSettings.uri"); + target = stream->WriteStringMaybeAliased(6, _s, target); } // float horizontal_fov_deg = 7; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_horizontal_fov_deg = this->_internal_horizontal_fov_deg(); - uint32_t raw_horizontal_fov_deg; + ::uint32_t raw_horizontal_fov_deg; memcpy(&raw_horizontal_fov_deg, &tmp_horizontal_fov_deg, sizeof(tmp_horizontal_fov_deg)); if (raw_horizontal_fov_deg != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(7, this->_internal_horizontal_fov_deg(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 7, this->_internal_horizontal_fov_deg(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -8966,111 +9872,110 @@ uint8_t* VideoStreamSettings::_InternalSerialize( return target; } -size_t VideoStreamSettings::ByteSizeLong() const { +::size_t VideoStreamSettings::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamSettings) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string uri = 6; if (!this->_internal_uri().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_uri()); + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_uri()); } // float frame_rate_hz = 1; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_frame_rate_hz = this->_internal_frame_rate_hz(); - uint32_t raw_frame_rate_hz; + ::uint32_t raw_frame_rate_hz; memcpy(&raw_frame_rate_hz, &tmp_frame_rate_hz, sizeof(tmp_frame_rate_hz)); if (raw_frame_rate_hz != 0) { - total_size += 1 + 4; + total_size += 5; } // uint32 horizontal_resolution_pix = 2; if (this->_internal_horizontal_resolution_pix() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_horizontal_resolution_pix()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this->_internal_horizontal_resolution_pix()); } // uint32 vertical_resolution_pix = 3; if (this->_internal_vertical_resolution_pix() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_vertical_resolution_pix()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this->_internal_vertical_resolution_pix()); } // uint32 bit_rate_b_s = 4; if (this->_internal_bit_rate_b_s() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_bit_rate_b_s()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this->_internal_bit_rate_b_s()); } // uint32 rotation_deg = 5; if (this->_internal_rotation_deg() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_rotation_deg()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this->_internal_rotation_deg()); } // float horizontal_fov_deg = 7; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_horizontal_fov_deg = this->_internal_horizontal_fov_deg(); - uint32_t raw_horizontal_fov_deg; + ::uint32_t raw_horizontal_fov_deg; memcpy(&raw_horizontal_fov_deg, &tmp_horizontal_fov_deg, sizeof(tmp_horizontal_fov_deg)); if (raw_horizontal_fov_deg != 0) { - total_size += 1 + 4; + total_size += 5; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VideoStreamSettings::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, VideoStreamSettings::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VideoStreamSettings::GetClassData() const { return &_class_data_; } -void VideoStreamSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void VideoStreamSettings::MergeFrom(const VideoStreamSettings& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamSettings) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void VideoStreamSettings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamSettings) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_uri().empty()) { - _internal_set_uri(from._internal_uri()); + _this->_internal_set_uri(from._internal_uri()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_frame_rate_hz = from._internal_frame_rate_hz(); - uint32_t raw_frame_rate_hz; + ::uint32_t raw_frame_rate_hz; memcpy(&raw_frame_rate_hz, &tmp_frame_rate_hz, sizeof(tmp_frame_rate_hz)); if (raw_frame_rate_hz != 0) { - _internal_set_frame_rate_hz(from._internal_frame_rate_hz()); + _this->_internal_set_frame_rate_hz(from._internal_frame_rate_hz()); } if (from._internal_horizontal_resolution_pix() != 0) { - _internal_set_horizontal_resolution_pix(from._internal_horizontal_resolution_pix()); + _this->_internal_set_horizontal_resolution_pix(from._internal_horizontal_resolution_pix()); } if (from._internal_vertical_resolution_pix() != 0) { - _internal_set_vertical_resolution_pix(from._internal_vertical_resolution_pix()); + _this->_internal_set_vertical_resolution_pix(from._internal_vertical_resolution_pix()); } if (from._internal_bit_rate_b_s() != 0) { - _internal_set_bit_rate_b_s(from._internal_bit_rate_b_s()); + _this->_internal_set_bit_rate_b_s(from._internal_bit_rate_b_s()); } if (from._internal_rotation_deg() != 0) { - _internal_set_rotation_deg(from._internal_rotation_deg()); + _this->_internal_set_rotation_deg(from._internal_rotation_deg()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_horizontal_fov_deg = from._internal_horizontal_fov_deg(); - uint32_t raw_horizontal_fov_deg; + ::uint32_t raw_horizontal_fov_deg; memcpy(&raw_horizontal_fov_deg, &tmp_horizontal_fov_deg, sizeof(tmp_horizontal_fov_deg)); if (raw_horizontal_fov_deg != 0) { - _internal_set_horizontal_fov_deg(from._internal_horizontal_fov_deg()); + _this->_internal_set_horizontal_fov_deg(from._internal_horizontal_fov_deg()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void VideoStreamSettings::CopyFrom(const VideoStreamSettings& from) { @@ -9089,16 +9994,14 @@ void VideoStreamSettings::InternalSwap(VideoStreamSettings* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &uri_, lhs_arena, - &other->uri_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uri_, lhs_arena, + &other->_impl_.uri_, rhs_arena); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(VideoStreamSettings, horizontal_fov_deg_) - + sizeof(VideoStreamSettings::horizontal_fov_deg_) - - PROTOBUF_FIELD_OFFSET(VideoStreamSettings, frame_rate_hz_)>( - reinterpret_cast(&frame_rate_hz_), - reinterpret_cast(&other->frame_rate_hz_)); + PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.horizontal_fov_deg_) + + sizeof(VideoStreamSettings::_impl_.horizontal_fov_deg_) + - PROTOBUF_FIELD_OFFSET(VideoStreamSettings, _impl_.frame_rate_hz_)>( + reinterpret_cast(&_impl_.frame_rate_hz_), + reinterpret_cast(&other->_impl_.frame_rate_hz_)); } ::PROTOBUF_NAMESPACE_ID::Metadata VideoStreamSettings::GetMetadata() const { @@ -9106,43 +10009,61 @@ ::PROTOBUF_NAMESPACE_ID::Metadata VideoStreamSettings::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[47]); } - // =================================================================== class VideoStreamInfo::_Internal { public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_._has_bits_); static const ::mavsdk::rpc::camera::VideoStreamSettings& settings(const VideoStreamInfo* msg); + static void set_has_settings(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } }; const ::mavsdk::rpc::camera::VideoStreamSettings& VideoStreamInfo::_Internal::settings(const VideoStreamInfo* msg) { - return *msg->settings_; + return *msg->_impl_.settings_; } -VideoStreamInfo::VideoStreamInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +VideoStreamInfo::VideoStreamInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.VideoStreamInfo) } VideoStreamInfo::VideoStreamInfo(const VideoStreamInfo& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + VideoStreamInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.settings_){nullptr} + , decltype(_impl_.status_) {} + + , decltype(_impl_.spectrum_) {} + }; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_settings()) { - settings_ = new ::mavsdk::rpc::camera::VideoStreamSettings(*from.settings_); - } else { - settings_ = nullptr; - } - ::memcpy(&status_, &from.status_, - static_cast(reinterpret_cast(&spectrum_) - - reinterpret_cast(&status_)) + sizeof(spectrum_)); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_impl_.settings_ = new ::mavsdk::rpc::camera::VideoStreamSettings(*from._impl_.settings_); + } + ::memcpy(&_impl_.status_, &from._impl_.status_, + static_cast<::size_t>(reinterpret_cast(&_impl_.spectrum_) - + reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.spectrum_)); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.VideoStreamInfo) } -inline void VideoStreamInfo::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&settings_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&spectrum_) - - reinterpret_cast(&settings_)) + sizeof(spectrum_)); +inline void VideoStreamInfo::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.settings_){nullptr} + , decltype(_impl_.status_) { 0 } + + , decltype(_impl_.spectrum_) { 0 } + + }; } VideoStreamInfo::~VideoStreamInfo() { @@ -9155,61 +10076,67 @@ VideoStreamInfo::~VideoStreamInfo() { } inline void VideoStreamInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete settings_; + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.settings_; } void VideoStreamInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void VideoStreamInfo::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.VideoStreamInfo) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && settings_ != nullptr) { - delete settings_; + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(_impl_.settings_ != nullptr); + _impl_.settings_->Clear(); } - settings_ = nullptr; - ::memset(&status_, 0, static_cast( - reinterpret_cast(&spectrum_) - - reinterpret_cast(&status_)) + sizeof(spectrum_)); + ::memset(&_impl_.status_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.spectrum_) - + reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.spectrum_)); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* VideoStreamInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_settings(), ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_status(static_cast<::mavsdk::rpc::camera::VideoStreamInfo_VideoStreamStatus>(val)); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_spectrum(static_cast<::mavsdk::rpc::camera::VideoStreamInfo_VideoStreamSpectrum>(val)); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -9227,6 +10154,7 @@ const char* VideoStreamInfo::_InternalParse(const char* ptr, ::_pbi::ParseContex CHK_(ptr != nullptr); } // while message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -9234,14 +10162,15 @@ const char* VideoStreamInfo::_InternalParse(const char* ptr, ::_pbi::ParseContex #undef CHK_ } -uint8_t* VideoStreamInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* VideoStreamInfo::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.VideoStreamInfo) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _impl_._has_bits_[0]; // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; - if (this->_internal_has_settings()) { + if (cached_has_bits & 0x00000001u) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, _Internal::settings(this), _Internal::settings(this).GetCachedSize(), target, stream); @@ -9251,14 +10180,14 @@ uint8_t* VideoStreamInfo::_InternalSerialize( if (this->_internal_status() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_status(), target); + 2, this->_internal_status(), target); } // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; if (this->_internal_spectrum() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_spectrum(), target); + 3, this->_internal_spectrum(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -9269,65 +10198,63 @@ uint8_t* VideoStreamInfo::_InternalSerialize( return target; } -size_t VideoStreamInfo::ByteSizeLong() const { +::size_t VideoStreamInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.VideoStreamInfo) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .mavsdk.rpc.camera.VideoStreamSettings settings = 1; - if (this->_internal_has_settings()) { + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *settings_); + *_impl_.settings_); } // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamStatus status = 2; if (this->_internal_status() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); } // .mavsdk.rpc.camera.VideoStreamInfo.VideoStreamSpectrum spectrum = 3; if (this->_internal_spectrum() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_spectrum()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_spectrum()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VideoStreamInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, VideoStreamInfo::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VideoStreamInfo::GetClassData() const { return &_class_data_; } -void VideoStreamInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void VideoStreamInfo::MergeFrom(const VideoStreamInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void VideoStreamInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.VideoStreamInfo) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_settings()) { - _internal_mutable_settings()->::mavsdk::rpc::camera::VideoStreamSettings::MergeFrom(from._internal_settings()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_settings()->::mavsdk::rpc::camera::VideoStreamSettings::MergeFrom( + from._internal_settings()); } if (from._internal_status() != 0) { - _internal_set_status(from._internal_status()); + _this->_internal_set_status(from._internal_status()); } if (from._internal_spectrum() != 0) { - _internal_set_spectrum(from._internal_spectrum()); + _this->_internal_set_spectrum(from._internal_spectrum()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void VideoStreamInfo::CopyFrom(const VideoStreamInfo& from) { @@ -9344,12 +10271,13 @@ bool VideoStreamInfo::IsInitialized() const { void VideoStreamInfo::InternalSwap(VideoStreamInfo* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(VideoStreamInfo, spectrum_) - + sizeof(VideoStreamInfo::spectrum_) - - PROTOBUF_FIELD_OFFSET(VideoStreamInfo, settings_)>( - reinterpret_cast(&settings_), - reinterpret_cast(&other->settings_)); + PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.spectrum_) + + sizeof(VideoStreamInfo::_impl_.spectrum_) + - PROTOBUF_FIELD_OFFSET(VideoStreamInfo, _impl_.settings_)>( + reinterpret_cast(&_impl_.settings_), + reinterpret_cast(&other->_impl_.settings_)); } ::PROTOBUF_NAMESPACE_ID::Metadata VideoStreamInfo::GetMetadata() const { @@ -9357,45 +10285,86 @@ ::PROTOBUF_NAMESPACE_ID::Metadata VideoStreamInfo::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[48]); } - // =================================================================== class Status::_Internal { public: }; -Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Status) } Status::Status(const Status& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + Status* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.media_folder_name_) {} + + , decltype(_impl_.video_on_) {} + + , decltype(_impl_.photo_interval_on_) {} + + , decltype(_impl_.used_storage_mib_) {} + + , decltype(_impl_.available_storage_mib_) {} + + , decltype(_impl_.total_storage_mib_) {} + + , decltype(_impl_.recording_time_s_) {} + + , decltype(_impl_.storage_status_) {} + + , decltype(_impl_.storage_id_) {} + + , decltype(_impl_.storage_type_) {} + + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - media_folder_name_.InitDefault(); + _impl_.media_folder_name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - media_folder_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.media_folder_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_media_folder_name().empty()) { - media_folder_name_.Set(from._internal_media_folder_name(), - GetArenaForAllocation()); + _this->_impl_.media_folder_name_.Set(from._internal_media_folder_name(), _this->GetArenaForAllocation()); } - ::memcpy(&video_on_, &from.video_on_, - static_cast(reinterpret_cast(&storage_type_) - - reinterpret_cast(&video_on_)) + sizeof(storage_type_)); + ::memcpy(&_impl_.video_on_, &from._impl_.video_on_, + static_cast<::size_t>(reinterpret_cast(&_impl_.storage_type_) - + reinterpret_cast(&_impl_.video_on_)) + sizeof(_impl_.storage_type_)); // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.Status) } -inline void Status::SharedCtor() { -media_folder_name_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - media_folder_name_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&video_on_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&storage_type_) - - reinterpret_cast(&video_on_)) + sizeof(storage_type_)); +inline void Status::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.media_folder_name_) {} + + , decltype(_impl_.video_on_) { false } + + , decltype(_impl_.photo_interval_on_) { false } + + , decltype(_impl_.used_storage_mib_) { 0 } + + , decltype(_impl_.available_storage_mib_) { 0 } + + , decltype(_impl_.total_storage_mib_) { 0 } + + , decltype(_impl_.recording_time_s_) { 0 } + + , decltype(_impl_.storage_status_) { 0 } + + , decltype(_impl_.storage_id_) { 0u } + + , decltype(_impl_.storage_type_) { 0 } + + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.media_folder_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.media_folder_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Status::~Status() { @@ -9408,116 +10377,126 @@ Status::~Status() { } inline void Status::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - media_folder_name_.Destroy(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.media_folder_name_.Destroy(); } void Status::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Status::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Status) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - media_folder_name_.ClearToEmpty(); - ::memset(&video_on_, 0, static_cast( - reinterpret_cast(&storage_type_) - - reinterpret_cast(&video_on_)) + sizeof(storage_type_)); + _impl_.media_folder_name_.ClearToEmpty(); + ::memset(&_impl_.video_on_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.storage_type_) - + reinterpret_cast(&_impl_.video_on_)) + sizeof(_impl_.storage_type_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Status::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bool video_on = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - video_on_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { + _impl_.video_on_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // bool photo_interval_on = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - photo_interval_on_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { + _impl_.photo_interval_on_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // float used_storage_mib = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - used_storage_mib_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) { + _impl_.used_storage_mib_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // float available_storage_mib = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - available_storage_mib_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) { + _impl_.available_storage_mib_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // float total_storage_mib = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 45)) { - total_storage_mib_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) { + _impl_.total_storage_mib_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // float recording_time_s = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 53)) { - recording_time_s_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 53)) { + _impl_.recording_time_s_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); - } else + } else { goto handle_unusual; + } continue; // string media_folder_name = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { auto str = _internal_mutable_media_folder_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.Status.media_folder_name")); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_storage_status(static_cast<::mavsdk::rpc::camera::Status_StorageStatus>(val)); - } else + } else { goto handle_unusual; + } continue; // uint32 storage_id = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - storage_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) { + _impl_.storage_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else + } else { goto handle_unusual; + } continue; // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) { + ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); _internal_set_storage_type(static_cast<::mavsdk::rpc::camera::Status_StorageType>(val)); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -9542,92 +10521,97 @@ const char* Status::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #undef CHK_ } -uint8_t* Status::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* Status::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Status) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // bool video_on = 1; if (this->_internal_video_on() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_video_on(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this->_internal_video_on(), target); } // bool photo_interval_on = 2; if (this->_internal_photo_interval_on() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_photo_interval_on(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this->_internal_photo_interval_on(), target); } // float used_storage_mib = 3; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_used_storage_mib = this->_internal_used_storage_mib(); - uint32_t raw_used_storage_mib; + ::uint32_t raw_used_storage_mib; memcpy(&raw_used_storage_mib, &tmp_used_storage_mib, sizeof(tmp_used_storage_mib)); if (raw_used_storage_mib != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_used_storage_mib(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this->_internal_used_storage_mib(), target); } // float available_storage_mib = 4; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_available_storage_mib = this->_internal_available_storage_mib(); - uint32_t raw_available_storage_mib; + ::uint32_t raw_available_storage_mib; memcpy(&raw_available_storage_mib, &tmp_available_storage_mib, sizeof(tmp_available_storage_mib)); if (raw_available_storage_mib != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_available_storage_mib(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this->_internal_available_storage_mib(), target); } // float total_storage_mib = 5; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_total_storage_mib = this->_internal_total_storage_mib(); - uint32_t raw_total_storage_mib; + ::uint32_t raw_total_storage_mib; memcpy(&raw_total_storage_mib, &tmp_total_storage_mib, sizeof(tmp_total_storage_mib)); if (raw_total_storage_mib != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_total_storage_mib(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 5, this->_internal_total_storage_mib(), target); } // float recording_time_s = 6; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_recording_time_s = this->_internal_recording_time_s(); - uint32_t raw_recording_time_s; + ::uint32_t raw_recording_time_s; memcpy(&raw_recording_time_s, &tmp_recording_time_s, sizeof(tmp_recording_time_s)); if (raw_recording_time_s != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(6, this->_internal_recording_time_s(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 6, this->_internal_recording_time_s(), target); } // string media_folder_name = 7; if (!this->_internal_media_folder_name().empty()) { + const std::string& _s = this->_internal_media_folder_name(); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_media_folder_name().data(), static_cast(this->_internal_media_folder_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.camera.Status.media_folder_name"); - target = stream->WriteStringMaybeAliased( - 7, this->_internal_media_folder_name(), target); + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Status.media_folder_name"); + target = stream->WriteStringMaybeAliased(7, _s, target); } // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; if (this->_internal_storage_status() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 8, this->_internal_storage_status(), target); + 8, this->_internal_storage_status(), target); } // uint32 storage_id = 9; if (this->_internal_storage_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_storage_id(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 9, this->_internal_storage_id(), target); } // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; if (this->_internal_storage_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 10, this->_internal_storage_type(), target); + 10, this->_internal_storage_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -9638,153 +10622,149 @@ uint8_t* Status::_InternalSerialize( return target; } -size_t Status::ByteSizeLong() const { +::size_t Status::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Status) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string media_folder_name = 7; if (!this->_internal_media_folder_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_media_folder_name()); + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_media_folder_name()); } // bool video_on = 1; if (this->_internal_video_on() != 0) { - total_size += 1 + 1; + total_size += 2; } // bool photo_interval_on = 2; if (this->_internal_photo_interval_on() != 0) { - total_size += 1 + 1; + total_size += 2; } // float used_storage_mib = 3; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_used_storage_mib = this->_internal_used_storage_mib(); - uint32_t raw_used_storage_mib; + ::uint32_t raw_used_storage_mib; memcpy(&raw_used_storage_mib, &tmp_used_storage_mib, sizeof(tmp_used_storage_mib)); if (raw_used_storage_mib != 0) { - total_size += 1 + 4; + total_size += 5; } // float available_storage_mib = 4; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_available_storage_mib = this->_internal_available_storage_mib(); - uint32_t raw_available_storage_mib; + ::uint32_t raw_available_storage_mib; memcpy(&raw_available_storage_mib, &tmp_available_storage_mib, sizeof(tmp_available_storage_mib)); if (raw_available_storage_mib != 0) { - total_size += 1 + 4; + total_size += 5; } // float total_storage_mib = 5; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_total_storage_mib = this->_internal_total_storage_mib(); - uint32_t raw_total_storage_mib; + ::uint32_t raw_total_storage_mib; memcpy(&raw_total_storage_mib, &tmp_total_storage_mib, sizeof(tmp_total_storage_mib)); if (raw_total_storage_mib != 0) { - total_size += 1 + 4; + total_size += 5; } // float recording_time_s = 6; - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_recording_time_s = this->_internal_recording_time_s(); - uint32_t raw_recording_time_s; + ::uint32_t raw_recording_time_s; memcpy(&raw_recording_time_s, &tmp_recording_time_s, sizeof(tmp_recording_time_s)); if (raw_recording_time_s != 0) { - total_size += 1 + 4; + total_size += 5; } // .mavsdk.rpc.camera.Status.StorageStatus storage_status = 8; if (this->_internal_storage_status() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_storage_status()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_storage_status()); } // uint32 storage_id = 9; if (this->_internal_storage_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_storage_id()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this->_internal_storage_id()); } // .mavsdk.rpc.camera.Status.StorageType storage_type = 10; if (this->_internal_storage_type() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_storage_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_storage_type()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Status::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Status::GetClassData() const { return &_class_data_; } -void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - -void Status::MergeFrom(const Status& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Status) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; +void Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.camera.Status) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_media_folder_name().empty()) { - _internal_set_media_folder_name(from._internal_media_folder_name()); + _this->_internal_set_media_folder_name(from._internal_media_folder_name()); } if (from._internal_video_on() != 0) { - _internal_set_video_on(from._internal_video_on()); + _this->_internal_set_video_on(from._internal_video_on()); } if (from._internal_photo_interval_on() != 0) { - _internal_set_photo_interval_on(from._internal_photo_interval_on()); + _this->_internal_set_photo_interval_on(from._internal_photo_interval_on()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_used_storage_mib = from._internal_used_storage_mib(); - uint32_t raw_used_storage_mib; + ::uint32_t raw_used_storage_mib; memcpy(&raw_used_storage_mib, &tmp_used_storage_mib, sizeof(tmp_used_storage_mib)); if (raw_used_storage_mib != 0) { - _internal_set_used_storage_mib(from._internal_used_storage_mib()); + _this->_internal_set_used_storage_mib(from._internal_used_storage_mib()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_available_storage_mib = from._internal_available_storage_mib(); - uint32_t raw_available_storage_mib; + ::uint32_t raw_available_storage_mib; memcpy(&raw_available_storage_mib, &tmp_available_storage_mib, sizeof(tmp_available_storage_mib)); if (raw_available_storage_mib != 0) { - _internal_set_available_storage_mib(from._internal_available_storage_mib()); + _this->_internal_set_available_storage_mib(from._internal_available_storage_mib()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_total_storage_mib = from._internal_total_storage_mib(); - uint32_t raw_total_storage_mib; + ::uint32_t raw_total_storage_mib; memcpy(&raw_total_storage_mib, &tmp_total_storage_mib, sizeof(tmp_total_storage_mib)); if (raw_total_storage_mib != 0) { - _internal_set_total_storage_mib(from._internal_total_storage_mib()); + _this->_internal_set_total_storage_mib(from._internal_total_storage_mib()); } - static_assert(sizeof(uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size."); + static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); float tmp_recording_time_s = from._internal_recording_time_s(); - uint32_t raw_recording_time_s; + ::uint32_t raw_recording_time_s; memcpy(&raw_recording_time_s, &tmp_recording_time_s, sizeof(tmp_recording_time_s)); if (raw_recording_time_s != 0) { - _internal_set_recording_time_s(from._internal_recording_time_s()); + _this->_internal_set_recording_time_s(from._internal_recording_time_s()); } if (from._internal_storage_status() != 0) { - _internal_set_storage_status(from._internal_storage_status()); + _this->_internal_set_storage_status(from._internal_storage_status()); } if (from._internal_storage_id() != 0) { - _internal_set_storage_id(from._internal_storage_id()); + _this->_internal_set_storage_id(from._internal_storage_id()); } if (from._internal_storage_type() != 0) { - _internal_set_storage_type(from._internal_storage_type()); + _this->_internal_set_storage_type(from._internal_storage_type()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Status::CopyFrom(const Status& from) { @@ -9803,16 +10783,14 @@ void Status::InternalSwap(Status* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &media_folder_name_, lhs_arena, - &other->media_folder_name_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.media_folder_name_, lhs_arena, + &other->_impl_.media_folder_name_, rhs_arena); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Status, storage_type_) - + sizeof(Status::storage_type_) - - PROTOBUF_FIELD_OFFSET(Status, video_on_)>( - reinterpret_cast(&video_on_), - reinterpret_cast(&other->video_on_)); + PROTOBUF_FIELD_OFFSET(Status, _impl_.storage_type_) + + sizeof(Status::_impl_.storage_type_) + - PROTOBUF_FIELD_OFFSET(Status, _impl_.video_on_)>( + reinterpret_cast(&_impl_.video_on_), + reinterpret_cast(&other->_impl_.video_on_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { @@ -9820,50 +10798,62 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { &descriptor_table_camera_2fcamera_2eproto_getter, &descriptor_table_camera_2fcamera_2eproto_once, file_level_metadata_camera_2fcamera_2eproto[49]); } - // =================================================================== class Option::_Internal { public: }; -Option::Option(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); +Option::Option(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.camera.Option) } Option::Option(const Option& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + Option* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.option_id_) {} + + , decltype(_impl_.option_description_) {} + + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - option_id_.InitDefault(); + _impl_.option_id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - option_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.option_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_option_id().empty()) { - option_id_.Set(from._internal_option_id(), - GetArenaForAllocation()); + _this->_impl_.option_id_.Set(from._internal_option_id(), _this->GetArenaForAllocation()); } - option_description_.InitDefault(); + _impl_.option_description_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - option_description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.option_description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_option_description().empty()) { - option_description_.Set(from._internal_option_description(), - GetArenaForAllocation()); + _this->_impl_.option_description_.Set(from._internal_option_description(), _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.camera.Option) } -inline void Option::SharedCtor() { -option_id_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - option_id_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -option_description_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - option_description_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void Option::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.option_id_) {} + + , decltype(_impl_.option_description_) {} + + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.option_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.option_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.option_description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.option_description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Option::~Option() { @@ -9876,51 +10866,53 @@ Option::~Option() { } inline void Option::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - option_id_.Destroy(); - option_description_.Destroy(); + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.option_id_.Destroy(); + _impl_.option_description_.Destroy(); } void Option::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Option::Clear() { // @@protoc_insertion_point(message_clear_start:mavsdk.rpc.camera.Option) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - option_id_.ClearToEmpty(); - option_description_.ClearToEmpty(); + _impl_.option_id_.ClearToEmpty(); + _impl_.option_description_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Option::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { - uint32_t tag; + ::uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string option_id = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { auto str = _internal_mutable_option_id(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.Option.option_id")); - } else + } else { goto handle_unusual; + } continue; // string option_description = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { auto str = _internal_mutable_option_description(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); CHK_(::_pbi::VerifyUTF8(str, "mavsdk.rpc.camera.Option.option_description")); - } else + } else { goto handle_unusual; + } continue; default: goto handle_unusual; @@ -9945,30 +10937,26 @@ const char* Option::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #undef CHK_ } -uint8_t* Option::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::uint8_t* Option::_InternalSerialize( + ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.camera.Option) - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; // string option_id = 1; if (!this->_internal_option_id().empty()) { + const std::string& _s = this->_internal_option_id(); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_option_id().data(), static_cast(this->_internal_option_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.camera.Option.option_id"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_option_id(), target); + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Option.option_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); } // string option_description = 2; if (!this->_internal_option_description().empty()) { + const std::string& _s = this->_internal_option_description(); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_option_description().data(), static_cast(this->_internal_option_description().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "mavsdk.rpc.camera.Option.option_description"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_option_description(), target); + _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mavsdk.rpc.camera.Option.option_description"); + target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -9979,57 +10967,51 @@ uint8_t* Option::_InternalSerialize( return target; } -size_t Option::ByteSizeLong() const { +::size_t Option::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.camera.Option) - size_t total_size = 0; + ::size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string option_id = 1; if (!this->_internal_option_id().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_option_id()); + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_option_id()); } // string option_description = 2; if (!this->_internal_option_description().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_option_description()); + total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_option_description()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Option::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Option::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Option::GetClassData() const { return &_class_data_; } -void Option::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast