From 1f24f43253d5c42ea31f8ecd3f46e25f8748740d Mon Sep 17 00:00:00 2001 From: Charles Beauville Date: Mon, 6 Nov 2023 20:38:01 +0100 Subject: [PATCH] Add C++ proto files to the C++ SDK (#2544) Co-authored-by: Lekang Jiang --- .github/workflows/cpp.yml | 9 +- examples/quickstart-cpp/CMakeLists.txt | 131 +- src/cc/flwr/CMakeLists.txt | 207 +- .../flwr/include/flwr/proto/fleet.grpc.pb.cc | 214 + .../flwr/include/flwr/proto/fleet.grpc.pb.h | 747 +++ src/cc/flwr/include/flwr/proto/fleet.pb.cc | 1932 ++++++ src/cc/flwr/include/flwr/proto/fleet.pb.h | 2202 +++++++ .../flwr/include/flwr/proto/node.grpc.pb.cc | 27 + src/cc/flwr/include/flwr/proto/node.grpc.pb.h | 51 + src/cc/flwr/include/flwr/proto/node.pb.cc | 301 + src/cc/flwr/include/flwr/proto/node.pb.h | 286 + .../flwr/include/flwr/proto/task.grpc.pb.cc | 27 + src/cc/flwr/include/flwr/proto/task.grpc.pb.h | 51 + src/cc/flwr/include/flwr/proto/task.pb.cc | 3404 ++++++++++ src/cc/flwr/include/flwr/proto/task.pb.h | 4243 +++++++++++++ .../include/flwr/proto/transport.grpc.pb.cc | 80 + .../include/flwr/proto/transport.grpc.pb.h | 232 + .../flwr/include/flwr/proto/transport.pb.cc | 5121 +++++++++++++++ src/cc/flwr/include/flwr/proto/transport.pb.h | 5597 +++++++++++++++++ src/cc/flwr/include/message_handler.h | 27 +- src/cc/flwr/include/serde.h | 36 +- src/cc/flwr/src/message_handler.cc | 45 +- src/cc/flwr/src/serde.cc | 43 +- src/cc/flwr/src/start.cc | 5 +- 24 files changed, 24654 insertions(+), 364 deletions(-) create mode 100644 src/cc/flwr/include/flwr/proto/fleet.grpc.pb.cc create mode 100644 src/cc/flwr/include/flwr/proto/fleet.grpc.pb.h create mode 100644 src/cc/flwr/include/flwr/proto/fleet.pb.cc create mode 100644 src/cc/flwr/include/flwr/proto/fleet.pb.h create mode 100644 src/cc/flwr/include/flwr/proto/node.grpc.pb.cc create mode 100644 src/cc/flwr/include/flwr/proto/node.grpc.pb.h create mode 100644 src/cc/flwr/include/flwr/proto/node.pb.cc create mode 100644 src/cc/flwr/include/flwr/proto/node.pb.h create mode 100644 src/cc/flwr/include/flwr/proto/task.grpc.pb.cc create mode 100644 src/cc/flwr/include/flwr/proto/task.grpc.pb.h create mode 100644 src/cc/flwr/include/flwr/proto/task.pb.cc create mode 100644 src/cc/flwr/include/flwr/proto/task.pb.h create mode 100644 src/cc/flwr/include/flwr/proto/transport.grpc.pb.cc create mode 100644 src/cc/flwr/include/flwr/proto/transport.grpc.pb.h create mode 100644 src/cc/flwr/include/flwr/proto/transport.pb.cc create mode 100644 src/cc/flwr/include/flwr/proto/transport.pb.h diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 16cd672ef034..35fe9813329e 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -35,9 +35,14 @@ jobs: sudo apt-get update sudo apt-get install -y clang-format cmake g++ clang-tidy cppcheck - - name: Check Formatting + - name: Check source Formatting run: | - find src/cc/flwr -name '*.cc' -or -name '*.h' | xargs clang-format -i + find src/cc/flwr/src -name '*.cc' | xargs clang-format -i + git diff --exit-code + + - name: Check header Formatting + run: | + find src/cc/flwr/include -name '*.h' -not -path "src/cc/flwr/include/flwr/*" | xargs clang-format -i git diff --exit-code - name: Build diff --git a/examples/quickstart-cpp/CMakeLists.txt b/examples/quickstart-cpp/CMakeLists.txt index d2b23ae38b21..552132b079c9 100644 --- a/examples/quickstart-cpp/CMakeLists.txt +++ b/examples/quickstart-cpp/CMakeLists.txt @@ -3,7 +3,6 @@ project(SimpleCppFlowerClient VERSION 0.10 DESCRIPTION "Creates a Simple C++ Flower client that trains a linear model on synthetic data." LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) -set(ABSL_PROPAGATE_CXX_STD ON) ###################### ### Download gRPC @@ -27,143 +26,27 @@ else() set(_GRPC_CPP_PLUGIN_EXECUTABLE $) endif() - ###################### -### FLWR_GRPC_PROTO -get_filename_component(FLWR_PROTO_BASE_PATH "../../src/proto/" ABSOLUTE) -get_filename_component(FLWR_TRANS_PROTO "../../src/proto/flwr/proto/transport.proto" ABSOLUTE) -get_filename_component(FLWR_NODE_PROTO "../../src/proto/flwr/proto/node.proto" ABSOLUTE) -get_filename_component(FLWR_TASK_PROTO "../../src/proto/flwr/proto/task.proto" ABSOLUTE) -get_filename_component(FLWR_FLEET_PROTO "../../src/proto/flwr/proto/fleet.proto" ABSOLUTE) - -set(FLWR_TRANS_PROTO_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/transport.pb.cc") -set(FLWR_TRANS_PROTO_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/transport.pb.h") -set(FLWR_TRANS_GRPC_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/transport.grpc.pb.cc") -set(FLWR_TRANS_GRPC_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/transport.grpc.pb.h") - -set(FLWR_NODE_PROTO_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/node.pb.cc") -set(FLWR_NODE_PROTO_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/node.pb.h") -set(FLWR_NODE_GRPC_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/node.grpc.pb.cc") -set(FLWR_NODE_GRPC_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/node.grpc.pb.h") - -set(FLWR_TASK_PROTO_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/task.pb.cc") -set(FLWR_TASK_PROTO_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/task.pb.h") -set(FLWR_TASK_GRPC_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/task.grpc.pb.cc") -set(FLWR_TASK_GRPC_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/task.grpc.pb.h") - -set(FLWR_FLEET_PROTO_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/fleet.pb.cc") -set(FLWR_FLEET_PROTO_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/fleet.pb.h") -set(FLWR_FLEET_GRPC_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/fleet.grpc.pb.cc") -set(FLWR_FLEET_GRPC_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/fleet.grpc.pb.h") - -# External building command to generate gRPC source files. -add_custom_command( - OUTPUT "${FLWR_TRANS_PROTO_SRCS}" - "${FLWR_TRANS_PROTO_HDRS}" - "${FLWR_TRANS_GRPC_SRCS}" - "${FLWR_TRANS_GRPC_HDRS}" - COMMAND ${_PROTOBUF_PROTOC} - ARGS --grpc_out "${CMAKE_CURRENT_BINARY_DIR}" - --cpp_out "${CMAKE_CURRENT_BINARY_DIR}" - -I "${FLWR_PROTO_BASE_PATH}" - --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}" - "${FLWR_TRANS_PROTO}" - DEPENDS "${FLWR_TRANS_PROTO}" -) - -add_custom_command( - OUTPUT - "${FLWR_NODE_PROTO_SRCS}" - "${FLWR_NODE_PROTO_HDRS}" - "${FLWR_NODE_GRPC_SRCS}" - "${FLWR_NODE_GRPC_HDRS}" - COMMAND ${_PROTOBUF_PROTOC} - ARGS --grpc_out "${CMAKE_CURRENT_BINARY_DIR}" - --cpp_out "${CMAKE_CURRENT_BINARY_DIR}" - -I "${FLWR_PROTO_BASE_PATH}" - --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}" - "${FLWR_NODE_PROTO}" - DEPENDS - "${FLWR_NODE_PROTO}" -) - -add_custom_command( - OUTPUT - "${FLWR_TASK_PROTO_SRCS}" - "${FLWR_TASK_PROTO_HDRS}" - "${FLWR_TASK_GRPC_SRCS}" - "${FLWR_TASK_GRPC_HDRS}" - COMMAND ${_PROTOBUF_PROTOC} - ARGS --grpc_out "${CMAKE_CURRENT_BINARY_DIR}" - --cpp_out "${CMAKE_CURRENT_BINARY_DIR}" - -I "${FLWR_PROTO_BASE_PATH}" - --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}" - "${FLWR_TASK_PROTO}" - DEPENDS - "${FLWR_TASK_PROTO}" -) - -add_custom_command( - OUTPUT - "${FLWR_FLEET_PROTO_SRCS}" - "${FLWR_FLEET_PROTO_HDRS}" - "${FLWR_FLEET_GRPC_SRCS}" - "${FLWR_FLEET_GRPC_HDRS}" - COMMAND ${_PROTOBUF_PROTOC} - ARGS --grpc_out "${CMAKE_CURRENT_BINARY_DIR}" - --cpp_out "${CMAKE_CURRENT_BINARY_DIR}" - -I "${FLWR_PROTO_BASE_PATH}" - --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}" - "${FLWR_FLEET_PROTO}" - DEPENDS - "${FLWR_FLEET_PROTO}" -) +### FLWR_LIB -add_library(flwr_grpc_proto STATIC - ${FLWR_TRANS_GRPC_SRCS} - ${FLWR_TRANS_GRPC_HDRS} - ${FLWR_TRANS_PROTO_SRCS} - ${FLWR_TRANS_PROTO_HDRS} - ${FLWR_NODE_GRPC_SRCS} - ${FLWR_NODE_GRPC_HDRS} - ${FLWR_NODE_PROTO_SRCS} - ${FLWR_NODE_PROTO_HDRS} - ${FLWR_TASK_GRPC_SRCS} - ${FLWR_TASK_GRPC_HDRS} - ${FLWR_TASK_PROTO_SRCS} - ${FLWR_TASK_PROTO_HDRS} - ${FLWR_FLEET_GRPC_SRCS} - ${FLWR_FLEET_GRPC_HDRS} - ${FLWR_FLEET_PROTO_SRCS} - ${FLWR_FLEET_PROTO_HDRS} -) +set(FLWR_SDK_PATH "../../src/cc/flwr") +file(GLOB FLWR_SRCS "${FLWR_SDK_PATH}/src/*.cc") +file(GLOB FLWR_PROTO_SRCS "${FLWR_SDK_PATH}/include/flwr/proto/*.cc") +set(FLWR_INCLUDE_DIR "${FLWR_SDK_PATH}/include") -target_include_directories(flwr_grpc_proto PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) +add_library(flwr ${FLWR_SRCS} ${FLWR_PROTO_SRCS}) -target_link_libraries(flwr_grpc_proto +target_link_libraries(flwr ${_REFLECTION} ${_GRPC_GRPCPP} ${_PROTOBUF_LIBPROTOBUF} ) -###################### -### FLWR_LIB - -file(GLOB FLWR_SRCS "../../src/cc/flwr/src/*.cc") -set(FLWR_INCLUDE_DIR "../../src/cc/flwr/include") - -add_library(flwr ${FLWR_SRCS}) - target_include_directories(flwr PUBLIC - ${CMAKE_CURRENT_BINARY_DIR} ${FLWR_INCLUDE_DIR} ) -target_link_libraries(flwr - flwr_grpc_proto -) - ###################### ### FLWR_CLIENT file(GLOB FLWR_CLIENT_SRCS src/*.cc) diff --git a/src/cc/flwr/CMakeLists.txt b/src/cc/flwr/CMakeLists.txt index c3d11d3c0e33..c242f52b237b 100644 --- a/src/cc/flwr/CMakeLists.txt +++ b/src/cc/flwr/CMakeLists.txt @@ -4,7 +4,6 @@ project(flwr VERSION 1.0 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) -set(ABSL_PROPAGATE_CXX_STD ON) # Assume gRPC and other dependencies are necessary include(FetchContent) @@ -26,114 +25,56 @@ else() set(_GRPC_CPP_PLUGIN_EXECUTABLE $) endif() -# FLWR_GRPC_PROTO +# Paths and output directories get_filename_component(FLWR_PROTO_BASE_PATH "../../proto/" ABSOLUTE) -get_filename_component(FLWR_TRANS_PROTO "../../proto/flwr/proto/transport.proto" ABSOLUTE) -get_filename_component(FLWR_NODE_PROTO "../../proto/flwr/proto/node.proto" ABSOLUTE) -get_filename_component(FLWR_TASK_PROTO "../../proto/flwr/proto/task.proto" ABSOLUTE) -get_filename_component(FLWR_FLEET_PROTO "../../proto/flwr/proto/fleet.proto" ABSOLUTE) - -set(FLWR_TRANS_PROTO_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/transport.pb.cc") -set(FLWR_TRANS_PROTO_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/transport.pb.h") -set(FLWR_TRANS_GRPC_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/transport.grpc.pb.cc") -set(FLWR_TRANS_GRPC_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/transport.grpc.pb.h") - -set(FLWR_NODE_PROTO_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/node.pb.cc") -set(FLWR_NODE_PROTO_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/node.pb.h") -set(FLWR_NODE_GRPC_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/node.grpc.pb.cc") -set(FLWR_NODE_GRPC_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/node.grpc.pb.h") - -set(FLWR_TASK_PROTO_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/task.pb.cc") -set(FLWR_TASK_PROTO_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/task.pb.h") -set(FLWR_TASK_GRPC_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/task.grpc.pb.cc") -set(FLWR_TASK_GRPC_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/task.grpc.pb.h") - -set(FLWR_FLEET_PROTO_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/fleet.pb.cc") -set(FLWR_FLEET_PROTO_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/fleet.pb.h") -set(FLWR_FLEET_GRPC_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/fleet.grpc.pb.cc") -set(FLWR_FLEET_GRPC_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/fleet.grpc.pb.h") - -# External building command to generate gRPC source files. -add_custom_command( - OUTPUT "${FLWR_TRANS_PROTO_SRCS}" - "${FLWR_TRANS_PROTO_HDRS}" - "${FLWR_TRANS_GRPC_SRCS}" - "${FLWR_TRANS_GRPC_HDRS}" - COMMAND ${_PROTOBUF_PROTOC} - ARGS --grpc_out "${CMAKE_CURRENT_BINARY_DIR}" - --cpp_out "${CMAKE_CURRENT_BINARY_DIR}" - -I "${FLWR_PROTO_BASE_PATH}" - --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}" - "${FLWR_TRANS_PROTO}" - DEPENDS "${FLWR_TRANS_PROTO}" -) - -add_custom_command( - OUTPUT - "${FLWR_NODE_PROTO_SRCS}" - "${FLWR_NODE_PROTO_HDRS}" - "${FLWR_NODE_GRPC_SRCS}" - "${FLWR_NODE_GRPC_HDRS}" - COMMAND ${_PROTOBUF_PROTOC} - ARGS --grpc_out "${CMAKE_CURRENT_BINARY_DIR}" - --cpp_out "${CMAKE_CURRENT_BINARY_DIR}" - -I "${FLWR_PROTO_BASE_PATH}" - --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}" - "${FLWR_NODE_PROTO}" - DEPENDS - "${FLWR_NODE_PROTO}" -) - -add_custom_command( - OUTPUT - "${FLWR_TASK_PROTO_SRCS}" - "${FLWR_TASK_PROTO_HDRS}" - "${FLWR_TASK_GRPC_SRCS}" - "${FLWR_TASK_GRPC_HDRS}" - COMMAND ${_PROTOBUF_PROTOC} - ARGS --grpc_out "${CMAKE_CURRENT_BINARY_DIR}" - --cpp_out "${CMAKE_CURRENT_BINARY_DIR}" - -I "${FLWR_PROTO_BASE_PATH}" - --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}" - "${FLWR_TASK_PROTO}" - DEPENDS - "${FLWR_TASK_PROTO}" -) - -add_custom_command( - OUTPUT - "${FLWR_FLEET_PROTO_SRCS}" - "${FLWR_FLEET_PROTO_HDRS}" - "${FLWR_FLEET_GRPC_SRCS}" - "${FLWR_FLEET_GRPC_HDRS}" - COMMAND ${_PROTOBUF_PROTOC} - ARGS --grpc_out "${CMAKE_CURRENT_BINARY_DIR}" - --cpp_out "${CMAKE_CURRENT_BINARY_DIR}" - -I "${FLWR_PROTO_BASE_PATH}" - --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}" - "${FLWR_FLEET_PROTO}" - DEPENDS - "${FLWR_FLEET_PROTO}" -) - -add_library(flwr_grpc_proto STATIC - ${FLWR_TRANS_GRPC_SRCS} - ${FLWR_TRANS_GRPC_HDRS} - ${FLWR_TRANS_PROTO_SRCS} - ${FLWR_TRANS_PROTO_HDRS} - ${FLWR_NODE_GRPC_SRCS} - ${FLWR_NODE_GRPC_HDRS} - ${FLWR_NODE_PROTO_SRCS} - ${FLWR_NODE_PROTO_HDRS} - ${FLWR_TASK_GRPC_SRCS} - ${FLWR_TASK_GRPC_HDRS} - ${FLWR_TASK_PROTO_SRCS} - ${FLWR_TASK_PROTO_HDRS} - ${FLWR_FLEET_GRPC_SRCS} - ${FLWR_FLEET_GRPC_HDRS} - ${FLWR_FLEET_PROTO_SRCS} - ${FLWR_FLEET_PROTO_HDRS} -) +set(INCLUDE_FLWR_PROTO_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include/flwr/proto") + +# Generate source files and copy them +macro(GENERATE_AND_COPY PROTO_NAME) + set(OUT_PROTO_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/${PROTO_NAME}.pb.cc") + set(OUT_PROTO_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/${PROTO_NAME}.pb.h") + set(OUT_GRPC_SRCS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/${PROTO_NAME}.grpc.pb.cc") + set(OUT_GRPC_HDRS "${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/${PROTO_NAME}.grpc.pb.h") + set(SOURCE_PROTO "${FLWR_PROTO_BASE_PATH}/flwr/proto/${PROTO_NAME}.proto") + + add_custom_command( + OUTPUT "${OUT_PROTO_SRCS}" "${OUT_PROTO_HDRS}" "${OUT_GRPC_SRCS}" "${OUT_GRPC_HDRS}" + COMMAND ${_PROTOBUF_PROTOC} + ARGS --grpc_out "${CMAKE_CURRENT_BINARY_DIR}" + --cpp_out "${CMAKE_CURRENT_BINARY_DIR}" + -I "${FLWR_PROTO_BASE_PATH}" + --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}" + "${SOURCE_PROTO}" + ) + + add_custom_command( + OUTPUT "${INCLUDE_FLWR_PROTO_DIR}/${PROTO_NAME}.pb.cc" + "${INCLUDE_FLWR_PROTO_DIR}/${PROTO_NAME}.pb.h" + "${INCLUDE_FLWR_PROTO_DIR}/${PROTO_NAME}.grpc.pb.cc" + "${INCLUDE_FLWR_PROTO_DIR}/${PROTO_NAME}.grpc.pb.h" + COMMAND ${CMAKE_COMMAND} -E copy_if_different + "${OUT_PROTO_SRCS}" "${OUT_PROTO_HDRS}" "${OUT_GRPC_SRCS}" "${OUT_GRPC_HDRS}" + "${INCLUDE_FLWR_PROTO_DIR}" + DEPENDS "${OUT_PROTO_SRCS}" "${OUT_PROTO_HDRS}" "${OUT_GRPC_SRCS}" "${OUT_GRPC_HDRS}" + ) + + set(ALL_PROTO_FILES + ${ALL_PROTO_FILES} + "${INCLUDE_FLWR_PROTO_DIR}/${PROTO_NAME}.pb.cc" + "${INCLUDE_FLWR_PROTO_DIR}/${PROTO_NAME}.pb.h" + "${INCLUDE_FLWR_PROTO_DIR}/${PROTO_NAME}.grpc.pb.cc" + "${INCLUDE_FLWR_PROTO_DIR}/${PROTO_NAME}.grpc.pb.h" + CACHE INTERNAL "All generated proto files" + ) +endmacro() + +# Using the above macro for all proto files +GENERATE_AND_COPY(transport) +GENERATE_AND_COPY(node) +GENERATE_AND_COPY(task) +GENERATE_AND_COPY(fleet) + +add_library(flwr_grpc_proto STATIC ${ALL_PROTO_FILES}) target_include_directories(flwr_grpc_proto PUBLIC @@ -147,62 +88,14 @@ target_link_libraries(flwr_grpc_proto ${_GRPC_GRPCPP} ${_PROTOBUF_LIBPROTOBUF} ) + # For the internal use of flwr file(GLOB FLWR_SRCS "src/*.cc") - add_library(flwr ${FLWR_SRCS}) target_include_directories(flwr PUBLIC $ - $ ) # Link gRPC and other dependencies target_link_libraries(flwr PRIVATE flwr_grpc_proto) - -# Merge the two libraries -add_library(flwr_merged STATIC $ $) - -target_include_directories(flwr_merged PUBLIC - $ - $ -) - -# This will create a 'flwrConfig.cmake' for users to find -install(TARGETS flwr_merged EXPORT flwrTargets - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib - RUNTIME DESTINATION bin - PUBLIC_HEADER DESTINATION include -) -install( - FILES - ${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/fleet.grpc.pb.h - ${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/fleet.pb.h - ${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/node.grpc.pb.h - ${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/node.pb.h - ${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/task.grpc.pb.h - ${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/task.pb.h - ${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/transport.grpc.pb.h - ${CMAKE_CURRENT_BINARY_DIR}/flwr/proto/transport.pb.h - DESTINATION include -) -install(DIRECTORY include/ DESTINATION include) - -install(EXPORT flwrTargets - FILE flwrConfig.cmake - NAMESPACE flwr:: - DESTINATION lib/cmake/flwr -) - -# Optional: Generate and install package version file -include(CMakePackageConfigHelpers) -write_basic_package_version_file( - "${CMAKE_CURRENT_BINARY_DIR}/flwrConfigVersion.cmake" - VERSION ${PROJECT_VERSION} - COMPATIBILITY AnyNewerVersion -) -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/flwrConfigVersion.cmake" - DESTINATION lib/cmake/flwr -) - diff --git a/src/cc/flwr/include/flwr/proto/fleet.grpc.pb.cc b/src/cc/flwr/include/flwr/proto/fleet.grpc.pb.cc new file mode 100644 index 000000000000..c71a6a3e1c45 --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/fleet.grpc.pb.cc @@ -0,0 +1,214 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flwr/proto/fleet.proto + +#include "flwr/proto/fleet.pb.h" +#include "flwr/proto/fleet.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flwr { +namespace proto { + +static const char* Fleet_method_names[] = { + "/flwr.proto.Fleet/CreateNode", + "/flwr.proto.Fleet/DeleteNode", + "/flwr.proto.Fleet/PullTaskIns", + "/flwr.proto.Fleet/PushTaskRes", +}; + +std::unique_ptr< Fleet::Stub> Fleet::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< Fleet::Stub> stub(new Fleet::Stub(channel, options)); + return stub; +} + +Fleet::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_CreateNode_(Fleet_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteNode_(Fleet_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PullTaskIns_(Fleet_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PushTaskRes_(Fleet_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status Fleet::Stub::CreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::flwr::proto::CreateNodeResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::CreateNodeRequest, ::flwr::proto::CreateNodeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateNode_, context, request, response); +} + +void Fleet::Stub::async::CreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest* request, ::flwr::proto::CreateNodeResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::CreateNodeRequest, ::flwr::proto::CreateNodeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateNode_, context, request, response, std::move(f)); +} + +void Fleet::Stub::async::CreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest* request, ::flwr::proto::CreateNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateNode_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::CreateNodeResponse>* Fleet::Stub::PrepareAsyncCreateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::CreateNodeResponse, ::flwr::proto::CreateNodeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateNode_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::CreateNodeResponse>* Fleet::Stub::AsyncCreateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncCreateNodeRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status Fleet::Stub::DeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::flwr::proto::DeleteNodeResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::DeleteNodeRequest, ::flwr::proto::DeleteNodeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteNode_, context, request, response); +} + +void Fleet::Stub::async::DeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest* request, ::flwr::proto::DeleteNodeResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::DeleteNodeRequest, ::flwr::proto::DeleteNodeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteNode_, context, request, response, std::move(f)); +} + +void Fleet::Stub::async::DeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest* request, ::flwr::proto::DeleteNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteNode_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::DeleteNodeResponse>* Fleet::Stub::PrepareAsyncDeleteNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::DeleteNodeResponse, ::flwr::proto::DeleteNodeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteNode_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::DeleteNodeResponse>* Fleet::Stub::AsyncDeleteNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDeleteNodeRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status Fleet::Stub::PullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::flwr::proto::PullTaskInsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::PullTaskInsRequest, ::flwr::proto::PullTaskInsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PullTaskIns_, context, request, response); +} + +void Fleet::Stub::async::PullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest* request, ::flwr::proto::PullTaskInsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::PullTaskInsRequest, ::flwr::proto::PullTaskInsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PullTaskIns_, context, request, response, std::move(f)); +} + +void Fleet::Stub::async::PullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest* request, ::flwr::proto::PullTaskInsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PullTaskIns_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PullTaskInsResponse>* Fleet::Stub::PrepareAsyncPullTaskInsRaw(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::PullTaskInsResponse, ::flwr::proto::PullTaskInsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PullTaskIns_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PullTaskInsResponse>* Fleet::Stub::AsyncPullTaskInsRaw(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncPullTaskInsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status Fleet::Stub::PushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::flwr::proto::PushTaskResResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::flwr::proto::PushTaskResRequest, ::flwr::proto::PushTaskResResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PushTaskRes_, context, request, response); +} + +void Fleet::Stub::async::PushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest* request, ::flwr::proto::PushTaskResResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::flwr::proto::PushTaskResRequest, ::flwr::proto::PushTaskResResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PushTaskRes_, context, request, response, std::move(f)); +} + +void Fleet::Stub::async::PushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest* request, ::flwr::proto::PushTaskResResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PushTaskRes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PushTaskResResponse>* Fleet::Stub::PrepareAsyncPushTaskResRaw(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::flwr::proto::PushTaskResResponse, ::flwr::proto::PushTaskResRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PushTaskRes_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::flwr::proto::PushTaskResResponse>* Fleet::Stub::AsyncPushTaskResRaw(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncPushTaskResRaw(context, request, cq); + result->StartCall(); + return result; +} + +Fleet::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + Fleet_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::CreateNodeRequest, ::flwr::proto::CreateNodeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Fleet::Service* service, + ::grpc::ServerContext* ctx, + const ::flwr::proto::CreateNodeRequest* req, + ::flwr::proto::CreateNodeResponse* resp) { + return service->CreateNode(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Fleet_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::DeleteNodeRequest, ::flwr::proto::DeleteNodeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Fleet::Service* service, + ::grpc::ServerContext* ctx, + const ::flwr::proto::DeleteNodeRequest* req, + ::flwr::proto::DeleteNodeResponse* resp) { + return service->DeleteNode(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Fleet_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::PullTaskInsRequest, ::flwr::proto::PullTaskInsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Fleet::Service* service, + ::grpc::ServerContext* ctx, + const ::flwr::proto::PullTaskInsRequest* req, + ::flwr::proto::PullTaskInsResponse* resp) { + return service->PullTaskIns(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + Fleet_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< Fleet::Service, ::flwr::proto::PushTaskResRequest, ::flwr::proto::PushTaskResResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](Fleet::Service* service, + ::grpc::ServerContext* ctx, + const ::flwr::proto::PushTaskResRequest* req, + ::flwr::proto::PushTaskResResponse* resp) { + return service->PushTaskRes(ctx, req, resp); + }, this))); +} + +Fleet::Service::~Service() { +} + +::grpc::Status Fleet::Service::CreateNode(::grpc::ServerContext* context, const ::flwr::proto::CreateNodeRequest* request, ::flwr::proto::CreateNodeResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Fleet::Service::DeleteNode(::grpc::ServerContext* context, const ::flwr::proto::DeleteNodeRequest* request, ::flwr::proto::DeleteNodeResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Fleet::Service::PullTaskIns(::grpc::ServerContext* context, const ::flwr::proto::PullTaskInsRequest* request, ::flwr::proto::PullTaskInsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status Fleet::Service::PushTaskRes(::grpc::ServerContext* context, const ::flwr::proto::PushTaskResRequest* request, ::flwr::proto::PushTaskResResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flwr +} // namespace proto + diff --git a/src/cc/flwr/include/flwr/proto/fleet.grpc.pb.h b/src/cc/flwr/include/flwr/proto/fleet.grpc.pb.h new file mode 100644 index 000000000000..03d445142c37 --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/fleet.grpc.pb.h @@ -0,0 +1,747 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flwr/proto/fleet.proto +// Original file comments: +// Copyright 2022 Flower Labs GmbH. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ============================================================================== +// +#ifndef GRPC_flwr_2fproto_2ffleet_2eproto__INCLUDED +#define GRPC_flwr_2fproto_2ffleet_2eproto__INCLUDED + +#include "flwr/proto/fleet.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace flwr { +namespace proto { + +class Fleet final { + public: + static constexpr char const* service_full_name() { + return "flwr.proto.Fleet"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status CreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::flwr::proto::CreateNodeResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::CreateNodeResponse>> AsyncCreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::CreateNodeResponse>>(AsyncCreateNodeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::CreateNodeResponse>> PrepareAsyncCreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::CreateNodeResponse>>(PrepareAsyncCreateNodeRaw(context, request, cq)); + } + virtual ::grpc::Status DeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::flwr::proto::DeleteNodeResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeleteNodeResponse>> AsyncDeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeleteNodeResponse>>(AsyncDeleteNodeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeleteNodeResponse>> PrepareAsyncDeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeleteNodeResponse>>(PrepareAsyncDeleteNodeRaw(context, request, cq)); + } + // Retrieve one or more tasks, if possible + // + // HTTP API path: /api/v1/fleet/pull-task-ins + virtual ::grpc::Status PullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::flwr::proto::PullTaskInsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullTaskInsResponse>> AsyncPullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullTaskInsResponse>>(AsyncPullTaskInsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullTaskInsResponse>> PrepareAsyncPullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullTaskInsResponse>>(PrepareAsyncPullTaskInsRaw(context, request, cq)); + } + // Complete one or more tasks, if possible + // + // HTTP API path: /api/v1/fleet/push-task-res + virtual ::grpc::Status PushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::flwr::proto::PushTaskResResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushTaskResResponse>> AsyncPushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushTaskResResponse>>(AsyncPushTaskResRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushTaskResResponse>> PrepareAsyncPushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushTaskResResponse>>(PrepareAsyncPushTaskResRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void CreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest* request, ::flwr::proto::CreateNodeResponse* response, std::function) = 0; + virtual void CreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest* request, ::flwr::proto::CreateNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void DeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest* request, ::flwr::proto::DeleteNodeResponse* response, std::function) = 0; + virtual void DeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest* request, ::flwr::proto::DeleteNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Retrieve one or more tasks, if possible + // + // HTTP API path: /api/v1/fleet/pull-task-ins + virtual void PullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest* request, ::flwr::proto::PullTaskInsResponse* response, std::function) = 0; + virtual void PullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest* request, ::flwr::proto::PullTaskInsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Complete one or more tasks, if possible + // + // HTTP API path: /api/v1/fleet/push-task-res + virtual void PushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest* request, ::flwr::proto::PushTaskResResponse* response, std::function) = 0; + virtual void PushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest* request, ::flwr::proto::PushTaskResResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::CreateNodeResponse>* AsyncCreateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::CreateNodeResponse>* PrepareAsyncCreateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeleteNodeResponse>* AsyncDeleteNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::DeleteNodeResponse>* PrepareAsyncDeleteNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullTaskInsResponse>* AsyncPullTaskInsRaw(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PullTaskInsResponse>* PrepareAsyncPullTaskInsRaw(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushTaskResResponse>* AsyncPushTaskResRaw(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flwr::proto::PushTaskResResponse>* PrepareAsyncPushTaskResRaw(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status CreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::flwr::proto::CreateNodeResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::CreateNodeResponse>> AsyncCreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::CreateNodeResponse>>(AsyncCreateNodeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::CreateNodeResponse>> PrepareAsyncCreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::CreateNodeResponse>>(PrepareAsyncCreateNodeRaw(context, request, cq)); + } + ::grpc::Status DeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::flwr::proto::DeleteNodeResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeleteNodeResponse>> AsyncDeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeleteNodeResponse>>(AsyncDeleteNodeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeleteNodeResponse>> PrepareAsyncDeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeleteNodeResponse>>(PrepareAsyncDeleteNodeRaw(context, request, cq)); + } + ::grpc::Status PullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::flwr::proto::PullTaskInsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullTaskInsResponse>> AsyncPullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullTaskInsResponse>>(AsyncPullTaskInsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullTaskInsResponse>> PrepareAsyncPullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullTaskInsResponse>>(PrepareAsyncPullTaskInsRaw(context, request, cq)); + } + ::grpc::Status PushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::flwr::proto::PushTaskResResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushTaskResResponse>> AsyncPushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushTaskResResponse>>(AsyncPushTaskResRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushTaskResResponse>> PrepareAsyncPushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushTaskResResponse>>(PrepareAsyncPushTaskResRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void CreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest* request, ::flwr::proto::CreateNodeResponse* response, std::function) override; + void CreateNode(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest* request, ::flwr::proto::CreateNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void DeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest* request, ::flwr::proto::DeleteNodeResponse* response, std::function) override; + void DeleteNode(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest* request, ::flwr::proto::DeleteNodeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void PullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest* request, ::flwr::proto::PullTaskInsResponse* response, std::function) override; + void PullTaskIns(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest* request, ::flwr::proto::PullTaskInsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void PushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest* request, ::flwr::proto::PushTaskResResponse* response, std::function) override; + void PushTaskRes(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest* request, ::flwr::proto::PushTaskResResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::CreateNodeResponse>* AsyncCreateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::CreateNodeResponse>* PrepareAsyncCreateNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::CreateNodeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeleteNodeResponse>* AsyncDeleteNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::DeleteNodeResponse>* PrepareAsyncDeleteNodeRaw(::grpc::ClientContext* context, const ::flwr::proto::DeleteNodeRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullTaskInsResponse>* AsyncPullTaskInsRaw(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PullTaskInsResponse>* PrepareAsyncPullTaskInsRaw(::grpc::ClientContext* context, const ::flwr::proto::PullTaskInsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushTaskResResponse>* AsyncPushTaskResRaw(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flwr::proto::PushTaskResResponse>* PrepareAsyncPushTaskResRaw(::grpc::ClientContext* context, const ::flwr::proto::PushTaskResRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateNode_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteNode_; + const ::grpc::internal::RpcMethod rpcmethod_PullTaskIns_; + const ::grpc::internal::RpcMethod rpcmethod_PushTaskRes_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status CreateNode(::grpc::ServerContext* context, const ::flwr::proto::CreateNodeRequest* request, ::flwr::proto::CreateNodeResponse* response); + virtual ::grpc::Status DeleteNode(::grpc::ServerContext* context, const ::flwr::proto::DeleteNodeRequest* request, ::flwr::proto::DeleteNodeResponse* response); + // Retrieve one or more tasks, if possible + // + // HTTP API path: /api/v1/fleet/pull-task-ins + virtual ::grpc::Status PullTaskIns(::grpc::ServerContext* context, const ::flwr::proto::PullTaskInsRequest* request, ::flwr::proto::PullTaskInsResponse* response); + // Complete one or more tasks, if possible + // + // HTTP API path: /api/v1/fleet/push-task-res + virtual ::grpc::Status PushTaskRes(::grpc::ServerContext* context, const ::flwr::proto::PushTaskResRequest* request, ::flwr::proto::PushTaskResResponse* response); + }; + template + class WithAsyncMethod_CreateNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_CreateNode() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_CreateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::CreateNodeRequest* /*request*/, ::flwr::proto::CreateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateNode(::grpc::ServerContext* context, ::flwr::proto::CreateNodeRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::CreateNodeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DeleteNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DeleteNode() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_DeleteNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeleteNodeRequest* /*request*/, ::flwr::proto::DeleteNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteNode(::grpc::ServerContext* context, ::flwr::proto::DeleteNodeRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::DeleteNodeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_PullTaskIns : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_PullTaskIns() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_PullTaskIns() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PullTaskIns(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullTaskInsRequest* /*request*/, ::flwr::proto::PullTaskInsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPullTaskIns(::grpc::ServerContext* context, ::flwr::proto::PullTaskInsRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::PullTaskInsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_PushTaskRes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_PushTaskRes() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_PushTaskRes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PushTaskRes(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushTaskResRequest* /*request*/, ::flwr::proto::PushTaskResResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPushTaskRes(::grpc::ServerContext* context, ::flwr::proto::PushTaskResRequest* request, ::grpc::ServerAsyncResponseWriter< ::flwr::proto::PushTaskResResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateNode > > > AsyncService; + template + class WithCallbackMethod_CreateNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_CreateNode() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::CreateNodeRequest, ::flwr::proto::CreateNodeResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::CreateNodeRequest* request, ::flwr::proto::CreateNodeResponse* response) { return this->CreateNode(context, request, response); }));} + void SetMessageAllocatorFor_CreateNode( + ::grpc::MessageAllocator< ::flwr::proto::CreateNodeRequest, ::flwr::proto::CreateNodeResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::CreateNodeRequest, ::flwr::proto::CreateNodeResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_CreateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::CreateNodeRequest* /*request*/, ::flwr::proto::CreateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CreateNode( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::CreateNodeRequest* /*request*/, ::flwr::proto::CreateNodeResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DeleteNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DeleteNode() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::DeleteNodeRequest, ::flwr::proto::DeleteNodeResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::DeleteNodeRequest* request, ::flwr::proto::DeleteNodeResponse* response) { return this->DeleteNode(context, request, response); }));} + void SetMessageAllocatorFor_DeleteNode( + ::grpc::MessageAllocator< ::flwr::proto::DeleteNodeRequest, ::flwr::proto::DeleteNodeResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::DeleteNodeRequest, ::flwr::proto::DeleteNodeResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DeleteNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeleteNodeRequest* /*request*/, ::flwr::proto::DeleteNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteNode( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::DeleteNodeRequest* /*request*/, ::flwr::proto::DeleteNodeResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_PullTaskIns : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_PullTaskIns() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PullTaskInsRequest, ::flwr::proto::PullTaskInsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::PullTaskInsRequest* request, ::flwr::proto::PullTaskInsResponse* response) { return this->PullTaskIns(context, request, response); }));} + void SetMessageAllocatorFor_PullTaskIns( + ::grpc::MessageAllocator< ::flwr::proto::PullTaskInsRequest, ::flwr::proto::PullTaskInsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PullTaskInsRequest, ::flwr::proto::PullTaskInsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_PullTaskIns() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PullTaskIns(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullTaskInsRequest* /*request*/, ::flwr::proto::PullTaskInsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PullTaskIns( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::PullTaskInsRequest* /*request*/, ::flwr::proto::PullTaskInsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_PushTaskRes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_PushTaskRes() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PushTaskResRequest, ::flwr::proto::PushTaskResResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::flwr::proto::PushTaskResRequest* request, ::flwr::proto::PushTaskResResponse* response) { return this->PushTaskRes(context, request, response); }));} + void SetMessageAllocatorFor_PushTaskRes( + ::grpc::MessageAllocator< ::flwr::proto::PushTaskResRequest, ::flwr::proto::PushTaskResResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::flwr::proto::PushTaskResRequest, ::flwr::proto::PushTaskResResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_PushTaskRes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PushTaskRes(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushTaskResRequest* /*request*/, ::flwr::proto::PushTaskResResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PushTaskRes( + ::grpc::CallbackServerContext* /*context*/, const ::flwr::proto::PushTaskResRequest* /*request*/, ::flwr::proto::PushTaskResResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_CreateNode > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_CreateNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_CreateNode() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_CreateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::CreateNodeRequest* /*request*/, ::flwr::proto::CreateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DeleteNode() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_DeleteNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeleteNodeRequest* /*request*/, ::flwr::proto::DeleteNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_PullTaskIns : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_PullTaskIns() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_PullTaskIns() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PullTaskIns(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullTaskInsRequest* /*request*/, ::flwr::proto::PullTaskInsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_PushTaskRes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_PushTaskRes() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_PushTaskRes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PushTaskRes(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushTaskResRequest* /*request*/, ::flwr::proto::PushTaskResResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_CreateNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_CreateNode() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_CreateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::CreateNodeRequest* /*request*/, ::flwr::proto::CreateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateNode(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DeleteNode() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_DeleteNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeleteNodeRequest* /*request*/, ::flwr::proto::DeleteNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteNode(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_PullTaskIns : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_PullTaskIns() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_PullTaskIns() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PullTaskIns(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullTaskInsRequest* /*request*/, ::flwr::proto::PullTaskInsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPullTaskIns(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_PushTaskRes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_PushTaskRes() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_PushTaskRes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PushTaskRes(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushTaskResRequest* /*request*/, ::flwr::proto::PushTaskResResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPushTaskRes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_CreateNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_CreateNode() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateNode(context, request, response); })); + } + ~WithRawCallbackMethod_CreateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::CreateNodeRequest* /*request*/, ::flwr::proto::CreateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CreateNode( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DeleteNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DeleteNode() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteNode(context, request, response); })); + } + ~WithRawCallbackMethod_DeleteNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeleteNodeRequest* /*request*/, ::flwr::proto::DeleteNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteNode( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_PullTaskIns : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_PullTaskIns() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PullTaskIns(context, request, response); })); + } + ~WithRawCallbackMethod_PullTaskIns() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PullTaskIns(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullTaskInsRequest* /*request*/, ::flwr::proto::PullTaskInsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PullTaskIns( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_PushTaskRes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_PushTaskRes() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PushTaskRes(context, request, response); })); + } + ~WithRawCallbackMethod_PushTaskRes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PushTaskRes(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushTaskResRequest* /*request*/, ::flwr::proto::PushTaskResResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PushTaskRes( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_CreateNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_CreateNode() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::CreateNodeRequest, ::flwr::proto::CreateNodeResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::CreateNodeRequest, ::flwr::proto::CreateNodeResponse>* streamer) { + return this->StreamedCreateNode(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_CreateNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::CreateNodeRequest* /*request*/, ::flwr::proto::CreateNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateNode(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::CreateNodeRequest,::flwr::proto::CreateNodeResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteNode : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DeleteNode() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::DeleteNodeRequest, ::flwr::proto::DeleteNodeResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::DeleteNodeRequest, ::flwr::proto::DeleteNodeResponse>* streamer) { + return this->StreamedDeleteNode(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DeleteNode() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteNode(::grpc::ServerContext* /*context*/, const ::flwr::proto::DeleteNodeRequest* /*request*/, ::flwr::proto::DeleteNodeResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteNode(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::DeleteNodeRequest,::flwr::proto::DeleteNodeResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_PullTaskIns : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_PullTaskIns() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::PullTaskInsRequest, ::flwr::proto::PullTaskInsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::PullTaskInsRequest, ::flwr::proto::PullTaskInsResponse>* streamer) { + return this->StreamedPullTaskIns(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_PullTaskIns() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PullTaskIns(::grpc::ServerContext* /*context*/, const ::flwr::proto::PullTaskInsRequest* /*request*/, ::flwr::proto::PullTaskInsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPullTaskIns(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::PullTaskInsRequest,::flwr::proto::PullTaskInsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_PushTaskRes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_PushTaskRes() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::flwr::proto::PushTaskResRequest, ::flwr::proto::PushTaskResResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::flwr::proto::PushTaskResRequest, ::flwr::proto::PushTaskResResponse>* streamer) { + return this->StreamedPushTaskRes(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_PushTaskRes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PushTaskRes(::grpc::ServerContext* /*context*/, const ::flwr::proto::PushTaskResRequest* /*request*/, ::flwr::proto::PushTaskResResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPushTaskRes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flwr::proto::PushTaskResRequest,::flwr::proto::PushTaskResResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateNode > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateNode > > > StreamedService; +}; + +} // namespace proto +} // namespace flwr + + +#endif // GRPC_flwr_2fproto_2ffleet_2eproto__INCLUDED diff --git a/src/cc/flwr/include/flwr/proto/fleet.pb.cc b/src/cc/flwr/include/flwr/proto/fleet.pb.cc new file mode 100644 index 000000000000..302331374db1 --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/fleet.pb.cc @@ -0,0 +1,1932 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/fleet.proto + +#include "flwr/proto/fleet.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG +namespace flwr { +namespace proto { +constexpr CreateNodeRequest::CreateNodeRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct CreateNodeRequestDefaultTypeInternal { + constexpr CreateNodeRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~CreateNodeRequestDefaultTypeInternal() {} + union { + CreateNodeRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateNodeRequestDefaultTypeInternal _CreateNodeRequest_default_instance_; +constexpr CreateNodeResponse::CreateNodeResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : node_(nullptr){} +struct CreateNodeResponseDefaultTypeInternal { + constexpr CreateNodeResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~CreateNodeResponseDefaultTypeInternal() {} + union { + CreateNodeResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateNodeResponseDefaultTypeInternal _CreateNodeResponse_default_instance_; +constexpr DeleteNodeRequest::DeleteNodeRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : node_(nullptr){} +struct DeleteNodeRequestDefaultTypeInternal { + constexpr DeleteNodeRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~DeleteNodeRequestDefaultTypeInternal() {} + union { + DeleteNodeRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteNodeRequestDefaultTypeInternal _DeleteNodeRequest_default_instance_; +constexpr DeleteNodeResponse::DeleteNodeResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct DeleteNodeResponseDefaultTypeInternal { + constexpr DeleteNodeResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~DeleteNodeResponseDefaultTypeInternal() {} + union { + DeleteNodeResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteNodeResponseDefaultTypeInternal _DeleteNodeResponse_default_instance_; +constexpr PullTaskInsRequest::PullTaskInsRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : task_ids_() + , node_(nullptr){} +struct PullTaskInsRequestDefaultTypeInternal { + constexpr PullTaskInsRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PullTaskInsRequestDefaultTypeInternal() {} + union { + PullTaskInsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullTaskInsRequestDefaultTypeInternal _PullTaskInsRequest_default_instance_; +constexpr PullTaskInsResponse::PullTaskInsResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : task_ins_list_() + , reconnect_(nullptr){} +struct PullTaskInsResponseDefaultTypeInternal { + constexpr PullTaskInsResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PullTaskInsResponseDefaultTypeInternal() {} + union { + PullTaskInsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PullTaskInsResponseDefaultTypeInternal _PullTaskInsResponse_default_instance_; +constexpr PushTaskResRequest::PushTaskResRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : task_res_list_(){} +struct PushTaskResRequestDefaultTypeInternal { + constexpr PushTaskResRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PushTaskResRequestDefaultTypeInternal() {} + union { + PushTaskResRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PushTaskResRequestDefaultTypeInternal _PushTaskResRequest_default_instance_; +constexpr PushTaskResResponse_ResultsEntry_DoNotUse::PushTaskResResponse_ResultsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct PushTaskResResponse_ResultsEntry_DoNotUseDefaultTypeInternal { + constexpr PushTaskResResponse_ResultsEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PushTaskResResponse_ResultsEntry_DoNotUseDefaultTypeInternal() {} + union { + PushTaskResResponse_ResultsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PushTaskResResponse_ResultsEntry_DoNotUseDefaultTypeInternal _PushTaskResResponse_ResultsEntry_DoNotUse_default_instance_; +constexpr PushTaskResResponse::PushTaskResResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : results_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , reconnect_(nullptr){} +struct PushTaskResResponseDefaultTypeInternal { + constexpr PushTaskResResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PushTaskResResponseDefaultTypeInternal() {} + union { + PushTaskResResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PushTaskResResponseDefaultTypeInternal _PushTaskResResponse_default_instance_; +constexpr Reconnect::Reconnect( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : reconnect_(uint64_t{0u}){} +struct ReconnectDefaultTypeInternal { + constexpr ReconnectDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ReconnectDefaultTypeInternal() {} + union { + Reconnect _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ReconnectDefaultTypeInternal _Reconnect_default_instance_; +} // namespace proto +} // namespace flwr +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2ffleet_2eproto[10]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_flwr_2fproto_2ffleet_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_flwr_2fproto_2ffleet_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2ffleet_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::CreateNodeRequest, _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(::flwr::proto::CreateNodeResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::CreateNodeResponse, node_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::DeleteNodeRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::DeleteNodeRequest, node_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::DeleteNodeResponse, _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(::flwr::proto::PullTaskInsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullTaskInsRequest, node_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullTaskInsRequest, task_ids_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullTaskInsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullTaskInsResponse, reconnect_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PullTaskInsResponse, task_ins_list_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushTaskResRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushTaskResRequest, task_res_list_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushTaskResResponse_ResultsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushTaskResResponse_ResultsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushTaskResResponse_ResultsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushTaskResResponse_ResultsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushTaskResResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushTaskResResponse, reconnect_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::PushTaskResResponse, results_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Reconnect, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Reconnect, reconnect_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::flwr::proto::CreateNodeRequest)}, + { 6, -1, -1, sizeof(::flwr::proto::CreateNodeResponse)}, + { 13, -1, -1, sizeof(::flwr::proto::DeleteNodeRequest)}, + { 20, -1, -1, sizeof(::flwr::proto::DeleteNodeResponse)}, + { 26, -1, -1, sizeof(::flwr::proto::PullTaskInsRequest)}, + { 34, -1, -1, sizeof(::flwr::proto::PullTaskInsResponse)}, + { 42, -1, -1, sizeof(::flwr::proto::PushTaskResRequest)}, + { 49, 57, -1, sizeof(::flwr::proto::PushTaskResResponse_ResultsEntry_DoNotUse)}, + { 59, -1, -1, sizeof(::flwr::proto::PushTaskResResponse)}, + { 67, -1, -1, sizeof(::flwr::proto::Reconnect)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::flwr::proto::_CreateNodeRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_CreateNodeResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_DeleteNodeRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_DeleteNodeResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_PullTaskInsRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_PullTaskInsResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_PushTaskResRequest_default_instance_), + reinterpret_cast(&::flwr::proto::_PushTaskResResponse_ResultsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_PushTaskResResponse_default_instance_), + reinterpret_cast(&::flwr::proto::_Reconnect_default_instance_), +}; + +const char descriptor_table_protodef_flwr_2fproto_2ffleet_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\026flwr/proto/fleet.proto\022\nflwr.proto\032\025fl" + "wr/proto/node.proto\032\025flwr/proto/task.pro" + "to\"\023\n\021CreateNodeRequest\"4\n\022CreateNodeRes" + "ponse\022\036\n\004node\030\001 \001(\0132\020.flwr.proto.Node\"3\n" + "\021DeleteNodeRequest\022\036\n\004node\030\001 \001(\0132\020.flwr." + "proto.Node\"\024\n\022DeleteNodeResponse\"F\n\022Pull" + "TaskInsRequest\022\036\n\004node\030\001 \001(\0132\020.flwr.prot" + "o.Node\022\020\n\010task_ids\030\002 \003(\t\"k\n\023PullTaskInsR" + "esponse\022(\n\treconnect\030\001 \001(\0132\025.flwr.proto." + "Reconnect\022*\n\rtask_ins_list\030\002 \003(\0132\023.flwr." + "proto.TaskIns\"@\n\022PushTaskResRequest\022*\n\rt" + "ask_res_list\030\001 \003(\0132\023.flwr.proto.TaskRes\"" + "\256\001\n\023PushTaskResResponse\022(\n\treconnect\030\001 \001" + "(\0132\025.flwr.proto.Reconnect\022=\n\007results\030\002 \003" + "(\0132,.flwr.proto.PushTaskResResponse.Resu" + "ltsEntry\032.\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\r:\0028\001\"\036\n\tReconnect\022\021\n\treconne" + "ct\030\001 \001(\0042\311\002\n\005Fleet\022M\n\nCreateNode\022\035.flwr." + "proto.CreateNodeRequest\032\036.flwr.proto.Cre" + "ateNodeResponse\"\000\022M\n\nDeleteNode\022\035.flwr.p" + "roto.DeleteNodeRequest\032\036.flwr.proto.Dele" + "teNodeResponse\"\000\022P\n\013PullTaskIns\022\036.flwr.p" + "roto.PullTaskInsRequest\032\037.flwr.proto.Pul" + "lTaskInsResponse\"\000\022P\n\013PushTaskRes\022\036.flwr" + ".proto.PushTaskResRequest\032\037.flwr.proto.P" + "ushTaskResResponse\"\000b\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_flwr_2fproto_2ffleet_2eproto_deps[2] = { + &::descriptor_table_flwr_2fproto_2fnode_2eproto, + &::descriptor_table_flwr_2fproto_2ftask_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_flwr_2fproto_2ffleet_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2ffleet_2eproto = { + false, false, 1028, descriptor_table_protodef_flwr_2fproto_2ffleet_2eproto, "flwr/proto/fleet.proto", + &descriptor_table_flwr_2fproto_2ffleet_2eproto_once, descriptor_table_flwr_2fproto_2ffleet_2eproto_deps, 2, 10, + schemas, file_default_instances, TableStruct_flwr_2fproto_2ffleet_2eproto::offsets, + file_level_metadata_flwr_2fproto_2ffleet_2eproto, file_level_enum_descriptors_flwr_2fproto_2ffleet_2eproto, file_level_service_descriptors_flwr_2fproto_2ffleet_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_flwr_2fproto_2ffleet_2eproto_getter() { + return &descriptor_table_flwr_2fproto_2ffleet_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_flwr_2fproto_2ffleet_2eproto(&descriptor_table_flwr_2fproto_2ffleet_2eproto); +namespace flwr { +namespace proto { + +// =================================================================== + +class CreateNodeRequest::_Internal { + public: +}; + +CreateNodeRequest::CreateNodeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:flwr.proto.CreateNodeRequest) +} +CreateNodeRequest::CreateNodeRequest(const CreateNodeRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.CreateNodeRequest) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateNodeRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateNodeRequest::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata CreateNodeRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffleet_2eproto_getter, &descriptor_table_flwr_2fproto_2ffleet_2eproto_once, + file_level_metadata_flwr_2fproto_2ffleet_2eproto[0]); +} + +// =================================================================== + +class CreateNodeResponse::_Internal { + public: + static const ::flwr::proto::Node& node(const CreateNodeResponse* msg); +}; + +const ::flwr::proto::Node& +CreateNodeResponse::_Internal::node(const CreateNodeResponse* msg) { + return *msg->node_; +} +void CreateNodeResponse::clear_node() { + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; +} +CreateNodeResponse::CreateNodeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.CreateNodeResponse) +} +CreateNodeResponse::CreateNodeResponse(const CreateNodeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_node()) { + node_ = new ::flwr::proto::Node(*from.node_); + } else { + node_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.CreateNodeResponse) +} + +void CreateNodeResponse::SharedCtor() { +node_ = nullptr; +} + +CreateNodeResponse::~CreateNodeResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.CreateNodeResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void CreateNodeResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete node_; +} + +void CreateNodeResponse::ArenaDtor(void* object) { + CreateNodeResponse* _this = reinterpret_cast< CreateNodeResponse* >(object); + (void)_this; +} +void CreateNodeResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void CreateNodeResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CreateNodeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.CreateNodeResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateNodeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Node node = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_node(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* CreateNodeResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.CreateNodeResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Node node = 1; + if (this->_internal_has_node()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::node(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.CreateNodeResponse) + return target; +} + +size_t CreateNodeResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.CreateNodeResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flwr.proto.Node node = 1; + if (this->_internal_has_node()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *node_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateNodeResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateNodeResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateNodeResponse::GetClassData() const { return &_class_data_; } + +void CreateNodeResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CreateNodeResponse::MergeFrom(const CreateNodeResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.CreateNodeResponse) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_node()) { + _internal_mutable_node()->::flwr::proto::Node::MergeFrom(from._internal_node()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateNodeResponse::CopyFrom(const CreateNodeResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.CreateNodeResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateNodeResponse::IsInitialized() const { + return true; +} + +void CreateNodeResponse::InternalSwap(CreateNodeResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(node_, other->node_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateNodeResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffleet_2eproto_getter, &descriptor_table_flwr_2fproto_2ffleet_2eproto_once, + file_level_metadata_flwr_2fproto_2ffleet_2eproto[1]); +} + +// =================================================================== + +class DeleteNodeRequest::_Internal { + public: + static const ::flwr::proto::Node& node(const DeleteNodeRequest* msg); +}; + +const ::flwr::proto::Node& +DeleteNodeRequest::_Internal::node(const DeleteNodeRequest* msg) { + return *msg->node_; +} +void DeleteNodeRequest::clear_node() { + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; +} +DeleteNodeRequest::DeleteNodeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.DeleteNodeRequest) +} +DeleteNodeRequest::DeleteNodeRequest(const DeleteNodeRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_node()) { + node_ = new ::flwr::proto::Node(*from.node_); + } else { + node_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.DeleteNodeRequest) +} + +void DeleteNodeRequest::SharedCtor() { +node_ = nullptr; +} + +DeleteNodeRequest::~DeleteNodeRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.DeleteNodeRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void DeleteNodeRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete node_; +} + +void DeleteNodeRequest::ArenaDtor(void* object) { + DeleteNodeRequest* _this = reinterpret_cast< DeleteNodeRequest* >(object); + (void)_this; +} +void DeleteNodeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void DeleteNodeRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void DeleteNodeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.DeleteNodeRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DeleteNodeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Node node = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_node(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* DeleteNodeRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.DeleteNodeRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Node node = 1; + if (this->_internal_has_node()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::node(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.DeleteNodeRequest) + return target; +} + +size_t DeleteNodeRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.DeleteNodeRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flwr.proto.Node node = 1; + if (this->_internal_has_node()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *node_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteNodeRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteNodeRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteNodeRequest::GetClassData() const { return &_class_data_; } + +void DeleteNodeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void DeleteNodeRequest::MergeFrom(const DeleteNodeRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.DeleteNodeRequest) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_node()) { + _internal_mutable_node()->::flwr::proto::Node::MergeFrom(from._internal_node()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DeleteNodeRequest::CopyFrom(const DeleteNodeRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.DeleteNodeRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteNodeRequest::IsInitialized() const { + return true; +} + +void DeleteNodeRequest::InternalSwap(DeleteNodeRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(node_, other->node_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteNodeRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffleet_2eproto_getter, &descriptor_table_flwr_2fproto_2ffleet_2eproto_once, + file_level_metadata_flwr_2fproto_2ffleet_2eproto[2]); +} + +// =================================================================== + +class DeleteNodeResponse::_Internal { + public: +}; + +DeleteNodeResponse::DeleteNodeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:flwr.proto.DeleteNodeResponse) +} +DeleteNodeResponse::DeleteNodeResponse(const DeleteNodeResponse& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.DeleteNodeResponse) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteNodeResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteNodeResponse::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteNodeResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffleet_2eproto_getter, &descriptor_table_flwr_2fproto_2ffleet_2eproto_once, + file_level_metadata_flwr_2fproto_2ffleet_2eproto[3]); +} + +// =================================================================== + +class PullTaskInsRequest::_Internal { + public: + static const ::flwr::proto::Node& node(const PullTaskInsRequest* msg); +}; + +const ::flwr::proto::Node& +PullTaskInsRequest::_Internal::node(const PullTaskInsRequest* msg) { + return *msg->node_; +} +void PullTaskInsRequest::clear_node() { + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; +} +PullTaskInsRequest::PullTaskInsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + task_ids_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.PullTaskInsRequest) +} +PullTaskInsRequest::PullTaskInsRequest(const PullTaskInsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + task_ids_(from.task_ids_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_node()) { + node_ = new ::flwr::proto::Node(*from.node_); + } else { + node_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.PullTaskInsRequest) +} + +void PullTaskInsRequest::SharedCtor() { +node_ = nullptr; +} + +PullTaskInsRequest::~PullTaskInsRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.PullTaskInsRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void PullTaskInsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete node_; +} + +void PullTaskInsRequest::ArenaDtor(void* object) { + PullTaskInsRequest* _this = reinterpret_cast< PullTaskInsRequest* >(object); + (void)_this; +} +void PullTaskInsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PullTaskInsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PullTaskInsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PullTaskInsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_ids_.Clear(); + if (GetArenaForAllocation() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PullTaskInsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Node node = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_node(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string task_ids = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_task_ids(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.PullTaskInsRequest.task_ids")); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PullTaskInsRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PullTaskInsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Node node = 1; + if (this->_internal_has_node()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::node(this), target, stream); + } + + // repeated string task_ids = 2; + for (int i = 0, n = this->_internal_task_ids_size(); i < n; i++) { + const auto& s = this->_internal_task_ids(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.PullTaskInsRequest.task_ids"); + target = stream->WriteString(2, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.PullTaskInsRequest) + return target; +} + +size_t PullTaskInsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PullTaskInsRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string task_ids = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(task_ids_.size()); + for (int i = 0, n = task_ids_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + task_ids_.Get(i)); + } + + // .flwr.proto.Node node = 1; + if (this->_internal_has_node()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *node_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PullTaskInsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PullTaskInsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PullTaskInsRequest::GetClassData() const { return &_class_data_; } + +void PullTaskInsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PullTaskInsRequest::MergeFrom(const PullTaskInsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PullTaskInsRequest) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + task_ids_.MergeFrom(from.task_ids_); + if (from._internal_has_node()) { + _internal_mutable_node()->::flwr::proto::Node::MergeFrom(from._internal_node()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PullTaskInsRequest::CopyFrom(const PullTaskInsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PullTaskInsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PullTaskInsRequest::IsInitialized() const { + return true; +} + +void PullTaskInsRequest::InternalSwap(PullTaskInsRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + task_ids_.InternalSwap(&other->task_ids_); + swap(node_, other->node_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PullTaskInsRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffleet_2eproto_getter, &descriptor_table_flwr_2fproto_2ffleet_2eproto_once, + file_level_metadata_flwr_2fproto_2ffleet_2eproto[4]); +} + +// =================================================================== + +class PullTaskInsResponse::_Internal { + public: + static const ::flwr::proto::Reconnect& reconnect(const PullTaskInsResponse* msg); +}; + +const ::flwr::proto::Reconnect& +PullTaskInsResponse::_Internal::reconnect(const PullTaskInsResponse* msg) { + return *msg->reconnect_; +} +void PullTaskInsResponse::clear_task_ins_list() { + task_ins_list_.Clear(); +} +PullTaskInsResponse::PullTaskInsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + task_ins_list_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.PullTaskInsResponse) +} +PullTaskInsResponse::PullTaskInsResponse(const PullTaskInsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + task_ins_list_(from.task_ins_list_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_reconnect()) { + reconnect_ = new ::flwr::proto::Reconnect(*from.reconnect_); + } else { + reconnect_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.PullTaskInsResponse) +} + +void PullTaskInsResponse::SharedCtor() { +reconnect_ = nullptr; +} + +PullTaskInsResponse::~PullTaskInsResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.PullTaskInsResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void PullTaskInsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete reconnect_; +} + +void PullTaskInsResponse::ArenaDtor(void* object) { + PullTaskInsResponse* _this = reinterpret_cast< PullTaskInsResponse* >(object); + (void)_this; +} +void PullTaskInsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PullTaskInsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PullTaskInsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PullTaskInsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_ins_list_.Clear(); + if (GetArenaForAllocation() == nullptr && reconnect_ != nullptr) { + delete reconnect_; + } + reconnect_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PullTaskInsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Reconnect reconnect = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_reconnect(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .flwr.proto.TaskIns task_ins_list = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_task_ins_list(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PullTaskInsResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PullTaskInsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Reconnect reconnect = 1; + if (this->_internal_has_reconnect()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::reconnect(this), target, stream); + } + + // repeated .flwr.proto.TaskIns task_ins_list = 2; + for (unsigned int i = 0, + n = static_cast(this->_internal_task_ins_list_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_task_ins_list(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.PullTaskInsResponse) + return target; +} + +size_t PullTaskInsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PullTaskInsResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flwr.proto.TaskIns task_ins_list = 2; + total_size += 1UL * this->_internal_task_ins_list_size(); + for (const auto& msg : this->task_ins_list_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // .flwr.proto.Reconnect reconnect = 1; + if (this->_internal_has_reconnect()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *reconnect_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PullTaskInsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PullTaskInsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PullTaskInsResponse::GetClassData() const { return &_class_data_; } + +void PullTaskInsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PullTaskInsResponse::MergeFrom(const PullTaskInsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PullTaskInsResponse) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + task_ins_list_.MergeFrom(from.task_ins_list_); + if (from._internal_has_reconnect()) { + _internal_mutable_reconnect()->::flwr::proto::Reconnect::MergeFrom(from._internal_reconnect()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PullTaskInsResponse::CopyFrom(const PullTaskInsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PullTaskInsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PullTaskInsResponse::IsInitialized() const { + return true; +} + +void PullTaskInsResponse::InternalSwap(PullTaskInsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + task_ins_list_.InternalSwap(&other->task_ins_list_); + swap(reconnect_, other->reconnect_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PullTaskInsResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffleet_2eproto_getter, &descriptor_table_flwr_2fproto_2ffleet_2eproto_once, + file_level_metadata_flwr_2fproto_2ffleet_2eproto[5]); +} + +// =================================================================== + +class PushTaskResRequest::_Internal { + public: +}; + +void PushTaskResRequest::clear_task_res_list() { + task_res_list_.Clear(); +} +PushTaskResRequest::PushTaskResRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + task_res_list_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.PushTaskResRequest) +} +PushTaskResRequest::PushTaskResRequest(const PushTaskResRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + task_res_list_(from.task_res_list_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.PushTaskResRequest) +} + +void PushTaskResRequest::SharedCtor() { +} + +PushTaskResRequest::~PushTaskResRequest() { + // @@protoc_insertion_point(destructor:flwr.proto.PushTaskResRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void PushTaskResRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void PushTaskResRequest::ArenaDtor(void* object) { + PushTaskResRequest* _this = reinterpret_cast< PushTaskResRequest* >(object); + (void)_this; +} +void PushTaskResRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PushTaskResRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PushTaskResRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PushTaskResRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_res_list_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PushTaskResRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .flwr.proto.TaskRes task_res_list = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_task_res_list(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PushTaskResRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PushTaskResRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flwr.proto.TaskRes task_res_list = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_task_res_list_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_task_res_list(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.PushTaskResRequest) + return target; +} + +size_t PushTaskResRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PushTaskResRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flwr.proto.TaskRes task_res_list = 1; + total_size += 1UL * this->_internal_task_res_list_size(); + for (const auto& msg : this->task_res_list_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PushTaskResRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PushTaskResRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PushTaskResRequest::GetClassData() const { return &_class_data_; } + +void PushTaskResRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PushTaskResRequest::MergeFrom(const PushTaskResRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PushTaskResRequest) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + task_res_list_.MergeFrom(from.task_res_list_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PushTaskResRequest::CopyFrom(const PushTaskResRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PushTaskResRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PushTaskResRequest::IsInitialized() const { + return true; +} + +void PushTaskResRequest::InternalSwap(PushTaskResRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + task_res_list_.InternalSwap(&other->task_res_list_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PushTaskResRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffleet_2eproto_getter, &descriptor_table_flwr_2fproto_2ffleet_2eproto_once, + file_level_metadata_flwr_2fproto_2ffleet_2eproto[6]); +} + +// =================================================================== + +PushTaskResResponse_ResultsEntry_DoNotUse::PushTaskResResponse_ResultsEntry_DoNotUse() {} +PushTaskResResponse_ResultsEntry_DoNotUse::PushTaskResResponse_ResultsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void PushTaskResResponse_ResultsEntry_DoNotUse::MergeFrom(const PushTaskResResponse_ResultsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata PushTaskResResponse_ResultsEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffleet_2eproto_getter, &descriptor_table_flwr_2fproto_2ffleet_2eproto_once, + file_level_metadata_flwr_2fproto_2ffleet_2eproto[7]); +} + +// =================================================================== + +class PushTaskResResponse::_Internal { + public: + static const ::flwr::proto::Reconnect& reconnect(const PushTaskResResponse* msg); +}; + +const ::flwr::proto::Reconnect& +PushTaskResResponse::_Internal::reconnect(const PushTaskResResponse* msg) { + return *msg->reconnect_; +} +PushTaskResResponse::PushTaskResResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + results_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.PushTaskResResponse) +} +PushTaskResResponse::PushTaskResResponse(const PushTaskResResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + results_.MergeFrom(from.results_); + if (from._internal_has_reconnect()) { + reconnect_ = new ::flwr::proto::Reconnect(*from.reconnect_); + } else { + reconnect_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.PushTaskResResponse) +} + +void PushTaskResResponse::SharedCtor() { +reconnect_ = nullptr; +} + +PushTaskResResponse::~PushTaskResResponse() { + // @@protoc_insertion_point(destructor:flwr.proto.PushTaskResResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void PushTaskResResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete reconnect_; +} + +void PushTaskResResponse::ArenaDtor(void* object) { + PushTaskResResponse* _this = reinterpret_cast< PushTaskResResponse* >(object); + (void)_this; + _this->results_. ~MapField(); +} +inline void PushTaskResResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &PushTaskResResponse::ArenaDtor); + } +} +void PushTaskResResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PushTaskResResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.PushTaskResResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + results_.Clear(); + if (GetArenaForAllocation() == nullptr && reconnect_ != nullptr) { + delete reconnect_; + } + reconnect_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PushTaskResResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Reconnect reconnect = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_reconnect(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map results = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&results_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PushTaskResResponse::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.PushTaskResResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Reconnect reconnect = 1; + if (this->_internal_has_reconnect()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::reconnect(this), target, stream); + } + + // map results = 2; + if (!this->_internal_results().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + (void)p; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.PushTaskResResponse.ResultsEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_results().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_results().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >::size_type size_type; + size_type n = 0; + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >::const_iterator + it = this->_internal_results().begin(); + it != this->_internal_results().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + for (size_type i = 0; i < n; i++) { + target = PushTaskResResponse_ResultsEntry_DoNotUse::Funcs::InternalSerialize(2, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >::const_iterator + it = this->_internal_results().begin(); + it != this->_internal_results().end(); ++it) { + target = PushTaskResResponse_ResultsEntry_DoNotUse::Funcs::InternalSerialize(2, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.PushTaskResResponse) + return target; +} + +size_t PushTaskResResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.PushTaskResResponse) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map results = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_results_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >::const_iterator + it = this->_internal_results().begin(); + it != this->_internal_results().end(); ++it) { + total_size += PushTaskResResponse_ResultsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // .flwr.proto.Reconnect reconnect = 1; + if (this->_internal_has_reconnect()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *reconnect_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PushTaskResResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PushTaskResResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PushTaskResResponse::GetClassData() const { return &_class_data_; } + +void PushTaskResResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PushTaskResResponse::MergeFrom(const PushTaskResResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.PushTaskResResponse) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + results_.MergeFrom(from.results_); + if (from._internal_has_reconnect()) { + _internal_mutable_reconnect()->::flwr::proto::Reconnect::MergeFrom(from._internal_reconnect()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PushTaskResResponse::CopyFrom(const PushTaskResResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.PushTaskResResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PushTaskResResponse::IsInitialized() const { + return true; +} + +void PushTaskResResponse::InternalSwap(PushTaskResResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + results_.InternalSwap(&other->results_); + swap(reconnect_, other->reconnect_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PushTaskResResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffleet_2eproto_getter, &descriptor_table_flwr_2fproto_2ffleet_2eproto_once, + file_level_metadata_flwr_2fproto_2ffleet_2eproto[8]); +} + +// =================================================================== + +class Reconnect::_Internal { + public: +}; + +Reconnect::Reconnect(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Reconnect) +} +Reconnect::Reconnect(const Reconnect& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + reconnect_ = from.reconnect_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.Reconnect) +} + +void Reconnect::SharedCtor() { +reconnect_ = uint64_t{0u}; +} + +Reconnect::~Reconnect() { + // @@protoc_insertion_point(destructor:flwr.proto.Reconnect) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Reconnect::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Reconnect::ArenaDtor(void* object) { + Reconnect* _this = reinterpret_cast< Reconnect* >(object); + (void)_this; +} +void Reconnect::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Reconnect::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Reconnect::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Reconnect) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + reconnect_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Reconnect::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 reconnect = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + reconnect_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Reconnect::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Reconnect) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 reconnect = 1; + if (this->_internal_reconnect() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_reconnect(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Reconnect) + return target; +} + +size_t Reconnect::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Reconnect) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 reconnect = 1; + if (this->_internal_reconnect() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_reconnect()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Reconnect::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Reconnect::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Reconnect::GetClassData() const { return &_class_data_; } + +void Reconnect::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Reconnect::MergeFrom(const Reconnect& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Reconnect) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_reconnect() != 0) { + _internal_set_reconnect(from._internal_reconnect()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Reconnect::CopyFrom(const Reconnect& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Reconnect) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Reconnect::IsInitialized() const { + return true; +} + +void Reconnect::InternalSwap(Reconnect* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(reconnect_, other->reconnect_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Reconnect::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ffleet_2eproto_getter, &descriptor_table_flwr_2fproto_2ffleet_2eproto_once, + file_level_metadata_flwr_2fproto_2ffleet_2eproto[9]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::flwr::proto::CreateNodeRequest* Arena::CreateMaybeMessage< ::flwr::proto::CreateNodeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::CreateNodeRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::CreateNodeResponse* Arena::CreateMaybeMessage< ::flwr::proto::CreateNodeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::CreateNodeResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::DeleteNodeRequest* Arena::CreateMaybeMessage< ::flwr::proto::DeleteNodeRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::DeleteNodeRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::DeleteNodeResponse* Arena::CreateMaybeMessage< ::flwr::proto::DeleteNodeResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::DeleteNodeResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::PullTaskInsRequest* Arena::CreateMaybeMessage< ::flwr::proto::PullTaskInsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PullTaskInsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::PullTaskInsResponse* Arena::CreateMaybeMessage< ::flwr::proto::PullTaskInsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PullTaskInsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::PushTaskResRequest* Arena::CreateMaybeMessage< ::flwr::proto::PushTaskResRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PushTaskResRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::PushTaskResResponse_ResultsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::PushTaskResResponse_ResultsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PushTaskResResponse_ResultsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::PushTaskResResponse* Arena::CreateMaybeMessage< ::flwr::proto::PushTaskResResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::PushTaskResResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Reconnect* Arena::CreateMaybeMessage< ::flwr::proto::Reconnect >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Reconnect >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/cc/flwr/include/flwr/proto/fleet.pb.h b/src/cc/flwr/include/flwr/proto/fleet.pb.h new file mode 100644 index 000000000000..842e800f5b1c --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/fleet.pb.h @@ -0,0 +1,2202 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/fleet.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2ffleet_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2ffleet_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3018000 +#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 3018001 < 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include "flwr/proto/node.pb.h" +#include "flwr/proto/task.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flwr_2fproto_2ffleet_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_flwr_2fproto_2ffleet_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[10] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2ffleet_2eproto; +namespace flwr { +namespace proto { +class CreateNodeRequest; +struct CreateNodeRequestDefaultTypeInternal; +extern CreateNodeRequestDefaultTypeInternal _CreateNodeRequest_default_instance_; +class CreateNodeResponse; +struct CreateNodeResponseDefaultTypeInternal; +extern CreateNodeResponseDefaultTypeInternal _CreateNodeResponse_default_instance_; +class DeleteNodeRequest; +struct DeleteNodeRequestDefaultTypeInternal; +extern DeleteNodeRequestDefaultTypeInternal _DeleteNodeRequest_default_instance_; +class DeleteNodeResponse; +struct DeleteNodeResponseDefaultTypeInternal; +extern DeleteNodeResponseDefaultTypeInternal _DeleteNodeResponse_default_instance_; +class PullTaskInsRequest; +struct PullTaskInsRequestDefaultTypeInternal; +extern PullTaskInsRequestDefaultTypeInternal _PullTaskInsRequest_default_instance_; +class PullTaskInsResponse; +struct PullTaskInsResponseDefaultTypeInternal; +extern PullTaskInsResponseDefaultTypeInternal _PullTaskInsResponse_default_instance_; +class PushTaskResRequest; +struct PushTaskResRequestDefaultTypeInternal; +extern PushTaskResRequestDefaultTypeInternal _PushTaskResRequest_default_instance_; +class PushTaskResResponse; +struct PushTaskResResponseDefaultTypeInternal; +extern PushTaskResResponseDefaultTypeInternal _PushTaskResResponse_default_instance_; +class PushTaskResResponse_ResultsEntry_DoNotUse; +struct PushTaskResResponse_ResultsEntry_DoNotUseDefaultTypeInternal; +extern PushTaskResResponse_ResultsEntry_DoNotUseDefaultTypeInternal _PushTaskResResponse_ResultsEntry_DoNotUse_default_instance_; +class Reconnect; +struct ReconnectDefaultTypeInternal; +extern ReconnectDefaultTypeInternal _Reconnect_default_instance_; +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> ::flwr::proto::CreateNodeRequest* Arena::CreateMaybeMessage<::flwr::proto::CreateNodeRequest>(Arena*); +template<> ::flwr::proto::CreateNodeResponse* Arena::CreateMaybeMessage<::flwr::proto::CreateNodeResponse>(Arena*); +template<> ::flwr::proto::DeleteNodeRequest* Arena::CreateMaybeMessage<::flwr::proto::DeleteNodeRequest>(Arena*); +template<> ::flwr::proto::DeleteNodeResponse* Arena::CreateMaybeMessage<::flwr::proto::DeleteNodeResponse>(Arena*); +template<> ::flwr::proto::PullTaskInsRequest* Arena::CreateMaybeMessage<::flwr::proto::PullTaskInsRequest>(Arena*); +template<> ::flwr::proto::PullTaskInsResponse* Arena::CreateMaybeMessage<::flwr::proto::PullTaskInsResponse>(Arena*); +template<> ::flwr::proto::PushTaskResRequest* Arena::CreateMaybeMessage<::flwr::proto::PushTaskResRequest>(Arena*); +template<> ::flwr::proto::PushTaskResResponse* Arena::CreateMaybeMessage<::flwr::proto::PushTaskResResponse>(Arena*); +template<> ::flwr::proto::PushTaskResResponse_ResultsEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::PushTaskResResponse_ResultsEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::Reconnect* Arena::CreateMaybeMessage<::flwr::proto::Reconnect>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace flwr { +namespace proto { + +// =================================================================== + +class CreateNodeRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:flwr.proto.CreateNodeRequest) */ { + public: + inline CreateNodeRequest() : CreateNodeRequest(nullptr) {} + explicit constexpr CreateNodeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateNodeRequest(const CreateNodeRequest& from); + CreateNodeRequest(CreateNodeRequest&& from) noexcept + : CreateNodeRequest() { + *this = ::std::move(from); + } + + inline CreateNodeRequest& operator=(const CreateNodeRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateNodeRequest& operator=(CreateNodeRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CreateNodeRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CreateNodeRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateNodeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(CreateNodeRequest& a, CreateNodeRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateNodeRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CreateNodeRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CreateNodeRequest* New() const final { + return new CreateNodeRequest(); + } + + CreateNodeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const CreateNodeRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const CreateNodeRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.CreateNodeRequest"; + } + protected: + explicit CreateNodeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flwr.proto.CreateNodeRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateNodeResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.CreateNodeResponse) */ { + public: + inline CreateNodeResponse() : CreateNodeResponse(nullptr) {} + ~CreateNodeResponse() override; + explicit constexpr CreateNodeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateNodeResponse(const CreateNodeResponse& from); + CreateNodeResponse(CreateNodeResponse&& from) noexcept + : CreateNodeResponse() { + *this = ::std::move(from); + } + + inline CreateNodeResponse& operator=(const CreateNodeResponse& from) { + CopyFrom(from); + return *this; + } + inline CreateNodeResponse& operator=(CreateNodeResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CreateNodeResponse& default_instance() { + return *internal_default_instance(); + } + static inline const CreateNodeResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateNodeResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(CreateNodeResponse& a, CreateNodeResponse& b) { + a.Swap(&b); + } + inline void Swap(CreateNodeResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CreateNodeResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CreateNodeResponse* New() const final { + return new CreateNodeResponse(); + } + + CreateNodeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateNodeResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateNodeResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateNodeResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.CreateNodeResponse"; + } + protected: + explicit CreateNodeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNodeFieldNumber = 1, + }; + // .flwr.proto.Node node = 1; + bool has_node() const; + private: + bool _internal_has_node() const; + public: + void clear_node(); + const ::flwr::proto::Node& node() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Node* release_node(); + ::flwr::proto::Node* mutable_node(); + void set_allocated_node(::flwr::proto::Node* node); + private: + const ::flwr::proto::Node& _internal_node() const; + ::flwr::proto::Node* _internal_mutable_node(); + public: + void unsafe_arena_set_allocated_node( + ::flwr::proto::Node* node); + ::flwr::proto::Node* unsafe_arena_release_node(); + + // @@protoc_insertion_point(class_scope:flwr.proto.CreateNodeResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::flwr::proto::Node* node_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteNodeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.DeleteNodeRequest) */ { + public: + inline DeleteNodeRequest() : DeleteNodeRequest(nullptr) {} + ~DeleteNodeRequest() override; + explicit constexpr DeleteNodeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteNodeRequest(const DeleteNodeRequest& from); + DeleteNodeRequest(DeleteNodeRequest&& from) noexcept + : DeleteNodeRequest() { + *this = ::std::move(from); + } + + inline DeleteNodeRequest& operator=(const DeleteNodeRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteNodeRequest& operator=(DeleteNodeRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DeleteNodeRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteNodeRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteNodeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(DeleteNodeRequest& a, DeleteNodeRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteNodeRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeleteNodeRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DeleteNodeRequest* New() const final { + return new DeleteNodeRequest(); + } + + DeleteNodeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteNodeRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteNodeRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteNodeRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.DeleteNodeRequest"; + } + protected: + explicit DeleteNodeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNodeFieldNumber = 1, + }; + // .flwr.proto.Node node = 1; + bool has_node() const; + private: + bool _internal_has_node() const; + public: + void clear_node(); + const ::flwr::proto::Node& node() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Node* release_node(); + ::flwr::proto::Node* mutable_node(); + void set_allocated_node(::flwr::proto::Node* node); + private: + const ::flwr::proto::Node& _internal_node() const; + ::flwr::proto::Node* _internal_mutable_node(); + public: + void unsafe_arena_set_allocated_node( + ::flwr::proto::Node* node); + ::flwr::proto::Node* unsafe_arena_release_node(); + + // @@protoc_insertion_point(class_scope:flwr.proto.DeleteNodeRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::flwr::proto::Node* node_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteNodeResponse final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:flwr.proto.DeleteNodeResponse) */ { + public: + inline DeleteNodeResponse() : DeleteNodeResponse(nullptr) {} + explicit constexpr DeleteNodeResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteNodeResponse(const DeleteNodeResponse& from); + DeleteNodeResponse(DeleteNodeResponse&& from) noexcept + : DeleteNodeResponse() { + *this = ::std::move(from); + } + + inline DeleteNodeResponse& operator=(const DeleteNodeResponse& from) { + CopyFrom(from); + return *this; + } + inline DeleteNodeResponse& operator=(DeleteNodeResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DeleteNodeResponse& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteNodeResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteNodeResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(DeleteNodeResponse& a, DeleteNodeResponse& b) { + a.Swap(&b); + } + inline void Swap(DeleteNodeResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeleteNodeResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DeleteNodeResponse* New() const final { + return new DeleteNodeResponse(); + } + + DeleteNodeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const DeleteNodeResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const DeleteNodeResponse& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(this, from); + } + public: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.DeleteNodeResponse"; + } + protected: + explicit DeleteNodeResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flwr.proto.DeleteNodeResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; +}; +// ------------------------------------------------------------------- + +class PullTaskInsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PullTaskInsRequest) */ { + public: + inline PullTaskInsRequest() : PullTaskInsRequest(nullptr) {} + ~PullTaskInsRequest() override; + explicit constexpr PullTaskInsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PullTaskInsRequest(const PullTaskInsRequest& from); + PullTaskInsRequest(PullTaskInsRequest&& from) noexcept + : PullTaskInsRequest() { + *this = ::std::move(from); + } + + inline PullTaskInsRequest& operator=(const PullTaskInsRequest& from) { + CopyFrom(from); + return *this; + } + inline PullTaskInsRequest& operator=(PullTaskInsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PullTaskInsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const PullTaskInsRequest* internal_default_instance() { + return reinterpret_cast( + &_PullTaskInsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(PullTaskInsRequest& a, PullTaskInsRequest& b) { + a.Swap(&b); + } + inline void Swap(PullTaskInsRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PullTaskInsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PullTaskInsRequest* New() const final { + return new PullTaskInsRequest(); + } + + PullTaskInsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PullTaskInsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PullTaskInsRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PullTaskInsRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.PullTaskInsRequest"; + } + protected: + explicit PullTaskInsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTaskIdsFieldNumber = 2, + kNodeFieldNumber = 1, + }; + // repeated string task_ids = 2; + int task_ids_size() const; + private: + int _internal_task_ids_size() const; + public: + void clear_task_ids(); + const std::string& task_ids(int index) const; + std::string* mutable_task_ids(int index); + void set_task_ids(int index, const std::string& value); + void set_task_ids(int index, std::string&& value); + void set_task_ids(int index, const char* value); + void set_task_ids(int index, const char* value, size_t size); + std::string* add_task_ids(); + void add_task_ids(const std::string& value); + void add_task_ids(std::string&& value); + void add_task_ids(const char* value); + void add_task_ids(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& task_ids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_task_ids(); + private: + const std::string& _internal_task_ids(int index) const; + std::string* _internal_add_task_ids(); + public: + + // .flwr.proto.Node node = 1; + bool has_node() const; + private: + bool _internal_has_node() const; + public: + void clear_node(); + const ::flwr::proto::Node& node() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Node* release_node(); + ::flwr::proto::Node* mutable_node(); + void set_allocated_node(::flwr::proto::Node* node); + private: + const ::flwr::proto::Node& _internal_node() const; + ::flwr::proto::Node* _internal_mutable_node(); + public: + void unsafe_arena_set_allocated_node( + ::flwr::proto::Node* node); + ::flwr::proto::Node* unsafe_arena_release_node(); + + // @@protoc_insertion_point(class_scope:flwr.proto.PullTaskInsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField task_ids_; + ::flwr::proto::Node* node_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; +}; +// ------------------------------------------------------------------- + +class PullTaskInsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PullTaskInsResponse) */ { + public: + inline PullTaskInsResponse() : PullTaskInsResponse(nullptr) {} + ~PullTaskInsResponse() override; + explicit constexpr PullTaskInsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PullTaskInsResponse(const PullTaskInsResponse& from); + PullTaskInsResponse(PullTaskInsResponse&& from) noexcept + : PullTaskInsResponse() { + *this = ::std::move(from); + } + + inline PullTaskInsResponse& operator=(const PullTaskInsResponse& from) { + CopyFrom(from); + return *this; + } + inline PullTaskInsResponse& operator=(PullTaskInsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PullTaskInsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const PullTaskInsResponse* internal_default_instance() { + return reinterpret_cast( + &_PullTaskInsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(PullTaskInsResponse& a, PullTaskInsResponse& b) { + a.Swap(&b); + } + inline void Swap(PullTaskInsResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PullTaskInsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PullTaskInsResponse* New() const final { + return new PullTaskInsResponse(); + } + + PullTaskInsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PullTaskInsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PullTaskInsResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PullTaskInsResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.PullTaskInsResponse"; + } + protected: + explicit PullTaskInsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTaskInsListFieldNumber = 2, + kReconnectFieldNumber = 1, + }; + // repeated .flwr.proto.TaskIns task_ins_list = 2; + int task_ins_list_size() const; + private: + int _internal_task_ins_list_size() const; + public: + void clear_task_ins_list(); + ::flwr::proto::TaskIns* mutable_task_ins_list(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::TaskIns >* + mutable_task_ins_list(); + private: + const ::flwr::proto::TaskIns& _internal_task_ins_list(int index) const; + ::flwr::proto::TaskIns* _internal_add_task_ins_list(); + public: + const ::flwr::proto::TaskIns& task_ins_list(int index) const; + ::flwr::proto::TaskIns* add_task_ins_list(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::TaskIns >& + task_ins_list() const; + + // .flwr.proto.Reconnect reconnect = 1; + bool has_reconnect() const; + private: + bool _internal_has_reconnect() const; + public: + void clear_reconnect(); + const ::flwr::proto::Reconnect& reconnect() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Reconnect* release_reconnect(); + ::flwr::proto::Reconnect* mutable_reconnect(); + void set_allocated_reconnect(::flwr::proto::Reconnect* reconnect); + private: + const ::flwr::proto::Reconnect& _internal_reconnect() const; + ::flwr::proto::Reconnect* _internal_mutable_reconnect(); + public: + void unsafe_arena_set_allocated_reconnect( + ::flwr::proto::Reconnect* reconnect); + ::flwr::proto::Reconnect* unsafe_arena_release_reconnect(); + + // @@protoc_insertion_point(class_scope:flwr.proto.PullTaskInsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::TaskIns > task_ins_list_; + ::flwr::proto::Reconnect* reconnect_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; +}; +// ------------------------------------------------------------------- + +class PushTaskResRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PushTaskResRequest) */ { + public: + inline PushTaskResRequest() : PushTaskResRequest(nullptr) {} + ~PushTaskResRequest() override; + explicit constexpr PushTaskResRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PushTaskResRequest(const PushTaskResRequest& from); + PushTaskResRequest(PushTaskResRequest&& from) noexcept + : PushTaskResRequest() { + *this = ::std::move(from); + } + + inline PushTaskResRequest& operator=(const PushTaskResRequest& from) { + CopyFrom(from); + return *this; + } + inline PushTaskResRequest& operator=(PushTaskResRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PushTaskResRequest& default_instance() { + return *internal_default_instance(); + } + static inline const PushTaskResRequest* internal_default_instance() { + return reinterpret_cast( + &_PushTaskResRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(PushTaskResRequest& a, PushTaskResRequest& b) { + a.Swap(&b); + } + inline void Swap(PushTaskResRequest* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PushTaskResRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PushTaskResRequest* New() const final { + return new PushTaskResRequest(); + } + + PushTaskResRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PushTaskResRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PushTaskResRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PushTaskResRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.PushTaskResRequest"; + } + protected: + explicit PushTaskResRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTaskResListFieldNumber = 1, + }; + // repeated .flwr.proto.TaskRes task_res_list = 1; + int task_res_list_size() const; + private: + int _internal_task_res_list_size() const; + public: + void clear_task_res_list(); + ::flwr::proto::TaskRes* mutable_task_res_list(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::TaskRes >* + mutable_task_res_list(); + private: + const ::flwr::proto::TaskRes& _internal_task_res_list(int index) const; + ::flwr::proto::TaskRes* _internal_add_task_res_list(); + public: + const ::flwr::proto::TaskRes& task_res_list(int index) const; + ::flwr::proto::TaskRes* add_task_res_list(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::TaskRes >& + task_res_list() const; + + // @@protoc_insertion_point(class_scope:flwr.proto.PushTaskResRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::TaskRes > task_res_list_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; +}; +// ------------------------------------------------------------------- + +class PushTaskResResponse_ResultsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + PushTaskResResponse_ResultsEntry_DoNotUse(); + explicit constexpr PushTaskResResponse_ResultsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PushTaskResResponse_ResultsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const PushTaskResResponse_ResultsEntry_DoNotUse& other); + static const PushTaskResResponse_ResultsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_PushTaskResResponse_ResultsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "flwr.proto.PushTaskResResponse.ResultsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class PushTaskResResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.PushTaskResResponse) */ { + public: + inline PushTaskResResponse() : PushTaskResResponse(nullptr) {} + ~PushTaskResResponse() override; + explicit constexpr PushTaskResResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PushTaskResResponse(const PushTaskResResponse& from); + PushTaskResResponse(PushTaskResResponse&& from) noexcept + : PushTaskResResponse() { + *this = ::std::move(from); + } + + inline PushTaskResResponse& operator=(const PushTaskResResponse& from) { + CopyFrom(from); + return *this; + } + inline PushTaskResResponse& operator=(PushTaskResResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PushTaskResResponse& default_instance() { + return *internal_default_instance(); + } + static inline const PushTaskResResponse* internal_default_instance() { + return reinterpret_cast( + &_PushTaskResResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(PushTaskResResponse& a, PushTaskResResponse& b) { + a.Swap(&b); + } + inline void Swap(PushTaskResResponse* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PushTaskResResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PushTaskResResponse* New() const final { + return new PushTaskResResponse(); + } + + PushTaskResResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PushTaskResResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PushTaskResResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PushTaskResResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.PushTaskResResponse"; + } + protected: + explicit PushTaskResResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + enum : int { + kResultsFieldNumber = 2, + kReconnectFieldNumber = 1, + }; + // map results = 2; + int results_size() const; + private: + int _internal_results_size() const; + public: + void clear_results(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >& + _internal_results() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >* + _internal_mutable_results(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >& + results() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >* + mutable_results(); + + // .flwr.proto.Reconnect reconnect = 1; + bool has_reconnect() const; + private: + bool _internal_has_reconnect() const; + public: + void clear_reconnect(); + const ::flwr::proto::Reconnect& reconnect() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Reconnect* release_reconnect(); + ::flwr::proto::Reconnect* mutable_reconnect(); + void set_allocated_reconnect(::flwr::proto::Reconnect* reconnect); + private: + const ::flwr::proto::Reconnect& _internal_reconnect() const; + ::flwr::proto::Reconnect* _internal_mutable_reconnect(); + public: + void unsafe_arena_set_allocated_reconnect( + ::flwr::proto::Reconnect* reconnect); + ::flwr::proto::Reconnect* unsafe_arena_release_reconnect(); + + // @@protoc_insertion_point(class_scope:flwr.proto.PushTaskResResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + PushTaskResResponse_ResultsEntry_DoNotUse, + std::string, ::PROTOBUF_NAMESPACE_ID::uint32, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32> results_; + ::flwr::proto::Reconnect* reconnect_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; +}; +// ------------------------------------------------------------------- + +class Reconnect final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Reconnect) */ { + public: + inline Reconnect() : Reconnect(nullptr) {} + ~Reconnect() override; + explicit constexpr Reconnect(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Reconnect(const Reconnect& from); + Reconnect(Reconnect&& from) noexcept + : Reconnect() { + *this = ::std::move(from); + } + + inline Reconnect& operator=(const Reconnect& from) { + CopyFrom(from); + return *this; + } + inline Reconnect& operator=(Reconnect&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Reconnect& default_instance() { + return *internal_default_instance(); + } + static inline const Reconnect* internal_default_instance() { + return reinterpret_cast( + &_Reconnect_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(Reconnect& a, Reconnect& b) { + a.Swap(&b); + } + inline void Swap(Reconnect* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Reconnect* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Reconnect* New() const final { + return new Reconnect(); + } + + Reconnect* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Reconnect& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Reconnect& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Reconnect* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Reconnect"; + } + protected: + explicit Reconnect(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kReconnectFieldNumber = 1, + }; + // uint64 reconnect = 1; + void clear_reconnect(); + ::PROTOBUF_NAMESPACE_ID::uint64 reconnect() const; + void set_reconnect(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_reconnect() const; + void _internal_set_reconnect(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.Reconnect) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::uint64 reconnect_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ffleet_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// CreateNodeRequest + +// ------------------------------------------------------------------- + +// CreateNodeResponse + +// .flwr.proto.Node node = 1; +inline bool CreateNodeResponse::_internal_has_node() const { + return this != internal_default_instance() && node_ != nullptr; +} +inline bool CreateNodeResponse::has_node() const { + return _internal_has_node(); +} +inline const ::flwr::proto::Node& CreateNodeResponse::_internal_node() const { + const ::flwr::proto::Node* p = node_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Node_default_instance_); +} +inline const ::flwr::proto::Node& CreateNodeResponse::node() const { + // @@protoc_insertion_point(field_get:flwr.proto.CreateNodeResponse.node) + return _internal_node(); +} +inline void CreateNodeResponse::unsafe_arena_set_allocated_node( + ::flwr::proto::Node* node) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(node_); + } + node_ = node; + if (node) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.CreateNodeResponse.node) +} +inline ::flwr::proto::Node* CreateNodeResponse::release_node() { + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Node* CreateNodeResponse::unsafe_arena_release_node() { + // @@protoc_insertion_point(field_release:flwr.proto.CreateNodeResponse.node) + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; + return temp; +} +inline ::flwr::proto::Node* CreateNodeResponse::_internal_mutable_node() { + + if (node_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + node_ = p; + } + return node_; +} +inline ::flwr::proto::Node* CreateNodeResponse::mutable_node() { + ::flwr::proto::Node* _msg = _internal_mutable_node(); + // @@protoc_insertion_point(field_mutable:flwr.proto.CreateNodeResponse.node) + return _msg; +} +inline void CreateNodeResponse::set_allocated_node(::flwr::proto::Node* node) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(node_); + } + if (node) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(node)); + if (message_arena != submessage_arena) { + node = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, node, submessage_arena); + } + + } else { + + } + node_ = node; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.CreateNodeResponse.node) +} + +// ------------------------------------------------------------------- + +// DeleteNodeRequest + +// .flwr.proto.Node node = 1; +inline bool DeleteNodeRequest::_internal_has_node() const { + return this != internal_default_instance() && node_ != nullptr; +} +inline bool DeleteNodeRequest::has_node() const { + return _internal_has_node(); +} +inline const ::flwr::proto::Node& DeleteNodeRequest::_internal_node() const { + const ::flwr::proto::Node* p = node_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Node_default_instance_); +} +inline const ::flwr::proto::Node& DeleteNodeRequest::node() const { + // @@protoc_insertion_point(field_get:flwr.proto.DeleteNodeRequest.node) + return _internal_node(); +} +inline void DeleteNodeRequest::unsafe_arena_set_allocated_node( + ::flwr::proto::Node* node) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(node_); + } + node_ = node; + if (node) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.DeleteNodeRequest.node) +} +inline ::flwr::proto::Node* DeleteNodeRequest::release_node() { + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Node* DeleteNodeRequest::unsafe_arena_release_node() { + // @@protoc_insertion_point(field_release:flwr.proto.DeleteNodeRequest.node) + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; + return temp; +} +inline ::flwr::proto::Node* DeleteNodeRequest::_internal_mutable_node() { + + if (node_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + node_ = p; + } + return node_; +} +inline ::flwr::proto::Node* DeleteNodeRequest::mutable_node() { + ::flwr::proto::Node* _msg = _internal_mutable_node(); + // @@protoc_insertion_point(field_mutable:flwr.proto.DeleteNodeRequest.node) + return _msg; +} +inline void DeleteNodeRequest::set_allocated_node(::flwr::proto::Node* node) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(node_); + } + if (node) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(node)); + if (message_arena != submessage_arena) { + node = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, node, submessage_arena); + } + + } else { + + } + node_ = node; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.DeleteNodeRequest.node) +} + +// ------------------------------------------------------------------- + +// DeleteNodeResponse + +// ------------------------------------------------------------------- + +// PullTaskInsRequest + +// .flwr.proto.Node node = 1; +inline bool PullTaskInsRequest::_internal_has_node() const { + return this != internal_default_instance() && node_ != nullptr; +} +inline bool PullTaskInsRequest::has_node() const { + return _internal_has_node(); +} +inline const ::flwr::proto::Node& PullTaskInsRequest::_internal_node() const { + const ::flwr::proto::Node* p = node_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Node_default_instance_); +} +inline const ::flwr::proto::Node& PullTaskInsRequest::node() const { + // @@protoc_insertion_point(field_get:flwr.proto.PullTaskInsRequest.node) + return _internal_node(); +} +inline void PullTaskInsRequest::unsafe_arena_set_allocated_node( + ::flwr::proto::Node* node) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(node_); + } + node_ = node; + if (node) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.PullTaskInsRequest.node) +} +inline ::flwr::proto::Node* PullTaskInsRequest::release_node() { + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Node* PullTaskInsRequest::unsafe_arena_release_node() { + // @@protoc_insertion_point(field_release:flwr.proto.PullTaskInsRequest.node) + + ::flwr::proto::Node* temp = node_; + node_ = nullptr; + return temp; +} +inline ::flwr::proto::Node* PullTaskInsRequest::_internal_mutable_node() { + + if (node_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + node_ = p; + } + return node_; +} +inline ::flwr::proto::Node* PullTaskInsRequest::mutable_node() { + ::flwr::proto::Node* _msg = _internal_mutable_node(); + // @@protoc_insertion_point(field_mutable:flwr.proto.PullTaskInsRequest.node) + return _msg; +} +inline void PullTaskInsRequest::set_allocated_node(::flwr::proto::Node* node) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(node_); + } + if (node) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(node)); + if (message_arena != submessage_arena) { + node = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, node, submessage_arena); + } + + } else { + + } + node_ = node; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.PullTaskInsRequest.node) +} + +// repeated string task_ids = 2; +inline int PullTaskInsRequest::_internal_task_ids_size() const { + return task_ids_.size(); +} +inline int PullTaskInsRequest::task_ids_size() const { + return _internal_task_ids_size(); +} +inline void PullTaskInsRequest::clear_task_ids() { + task_ids_.Clear(); +} +inline std::string* PullTaskInsRequest::add_task_ids() { + std::string* _s = _internal_add_task_ids(); + // @@protoc_insertion_point(field_add_mutable:flwr.proto.PullTaskInsRequest.task_ids) + return _s; +} +inline const std::string& PullTaskInsRequest::_internal_task_ids(int index) const { + return task_ids_.Get(index); +} +inline const std::string& PullTaskInsRequest::task_ids(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.PullTaskInsRequest.task_ids) + return _internal_task_ids(index); +} +inline std::string* PullTaskInsRequest::mutable_task_ids(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.PullTaskInsRequest.task_ids) + return task_ids_.Mutable(index); +} +inline void PullTaskInsRequest::set_task_ids(int index, const std::string& value) { + task_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:flwr.proto.PullTaskInsRequest.task_ids) +} +inline void PullTaskInsRequest::set_task_ids(int index, std::string&& value) { + task_ids_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:flwr.proto.PullTaskInsRequest.task_ids) +} +inline void PullTaskInsRequest::set_task_ids(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + task_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flwr.proto.PullTaskInsRequest.task_ids) +} +inline void PullTaskInsRequest::set_task_ids(int index, const char* value, size_t size) { + task_ids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flwr.proto.PullTaskInsRequest.task_ids) +} +inline std::string* PullTaskInsRequest::_internal_add_task_ids() { + return task_ids_.Add(); +} +inline void PullTaskInsRequest::add_task_ids(const std::string& value) { + task_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flwr.proto.PullTaskInsRequest.task_ids) +} +inline void PullTaskInsRequest::add_task_ids(std::string&& value) { + task_ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flwr.proto.PullTaskInsRequest.task_ids) +} +inline void PullTaskInsRequest::add_task_ids(const char* value) { + GOOGLE_DCHECK(value != nullptr); + task_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flwr.proto.PullTaskInsRequest.task_ids) +} +inline void PullTaskInsRequest::add_task_ids(const char* value, size_t size) { + task_ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flwr.proto.PullTaskInsRequest.task_ids) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +PullTaskInsRequest::task_ids() const { + // @@protoc_insertion_point(field_list:flwr.proto.PullTaskInsRequest.task_ids) + return task_ids_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +PullTaskInsRequest::mutable_task_ids() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.PullTaskInsRequest.task_ids) + return &task_ids_; +} + +// ------------------------------------------------------------------- + +// PullTaskInsResponse + +// .flwr.proto.Reconnect reconnect = 1; +inline bool PullTaskInsResponse::_internal_has_reconnect() const { + return this != internal_default_instance() && reconnect_ != nullptr; +} +inline bool PullTaskInsResponse::has_reconnect() const { + return _internal_has_reconnect(); +} +inline void PullTaskInsResponse::clear_reconnect() { + if (GetArenaForAllocation() == nullptr && reconnect_ != nullptr) { + delete reconnect_; + } + reconnect_ = nullptr; +} +inline const ::flwr::proto::Reconnect& PullTaskInsResponse::_internal_reconnect() const { + const ::flwr::proto::Reconnect* p = reconnect_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Reconnect_default_instance_); +} +inline const ::flwr::proto::Reconnect& PullTaskInsResponse::reconnect() const { + // @@protoc_insertion_point(field_get:flwr.proto.PullTaskInsResponse.reconnect) + return _internal_reconnect(); +} +inline void PullTaskInsResponse::unsafe_arena_set_allocated_reconnect( + ::flwr::proto::Reconnect* reconnect) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reconnect_); + } + reconnect_ = reconnect; + if (reconnect) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.PullTaskInsResponse.reconnect) +} +inline ::flwr::proto::Reconnect* PullTaskInsResponse::release_reconnect() { + + ::flwr::proto::Reconnect* temp = reconnect_; + reconnect_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Reconnect* PullTaskInsResponse::unsafe_arena_release_reconnect() { + // @@protoc_insertion_point(field_release:flwr.proto.PullTaskInsResponse.reconnect) + + ::flwr::proto::Reconnect* temp = reconnect_; + reconnect_ = nullptr; + return temp; +} +inline ::flwr::proto::Reconnect* PullTaskInsResponse::_internal_mutable_reconnect() { + + if (reconnect_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Reconnect>(GetArenaForAllocation()); + reconnect_ = p; + } + return reconnect_; +} +inline ::flwr::proto::Reconnect* PullTaskInsResponse::mutable_reconnect() { + ::flwr::proto::Reconnect* _msg = _internal_mutable_reconnect(); + // @@protoc_insertion_point(field_mutable:flwr.proto.PullTaskInsResponse.reconnect) + return _msg; +} +inline void PullTaskInsResponse::set_allocated_reconnect(::flwr::proto::Reconnect* reconnect) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reconnect_; + } + if (reconnect) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Reconnect>::GetOwningArena(reconnect); + if (message_arena != submessage_arena) { + reconnect = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, reconnect, submessage_arena); + } + + } else { + + } + reconnect_ = reconnect; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.PullTaskInsResponse.reconnect) +} + +// repeated .flwr.proto.TaskIns task_ins_list = 2; +inline int PullTaskInsResponse::_internal_task_ins_list_size() const { + return task_ins_list_.size(); +} +inline int PullTaskInsResponse::task_ins_list_size() const { + return _internal_task_ins_list_size(); +} +inline ::flwr::proto::TaskIns* PullTaskInsResponse::mutable_task_ins_list(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.PullTaskInsResponse.task_ins_list) + return task_ins_list_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::TaskIns >* +PullTaskInsResponse::mutable_task_ins_list() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.PullTaskInsResponse.task_ins_list) + return &task_ins_list_; +} +inline const ::flwr::proto::TaskIns& PullTaskInsResponse::_internal_task_ins_list(int index) const { + return task_ins_list_.Get(index); +} +inline const ::flwr::proto::TaskIns& PullTaskInsResponse::task_ins_list(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.PullTaskInsResponse.task_ins_list) + return _internal_task_ins_list(index); +} +inline ::flwr::proto::TaskIns* PullTaskInsResponse::_internal_add_task_ins_list() { + return task_ins_list_.Add(); +} +inline ::flwr::proto::TaskIns* PullTaskInsResponse::add_task_ins_list() { + ::flwr::proto::TaskIns* _add = _internal_add_task_ins_list(); + // @@protoc_insertion_point(field_add:flwr.proto.PullTaskInsResponse.task_ins_list) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::TaskIns >& +PullTaskInsResponse::task_ins_list() const { + // @@protoc_insertion_point(field_list:flwr.proto.PullTaskInsResponse.task_ins_list) + return task_ins_list_; +} + +// ------------------------------------------------------------------- + +// PushTaskResRequest + +// repeated .flwr.proto.TaskRes task_res_list = 1; +inline int PushTaskResRequest::_internal_task_res_list_size() const { + return task_res_list_.size(); +} +inline int PushTaskResRequest::task_res_list_size() const { + return _internal_task_res_list_size(); +} +inline ::flwr::proto::TaskRes* PushTaskResRequest::mutable_task_res_list(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.PushTaskResRequest.task_res_list) + return task_res_list_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::TaskRes >* +PushTaskResRequest::mutable_task_res_list() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.PushTaskResRequest.task_res_list) + return &task_res_list_; +} +inline const ::flwr::proto::TaskRes& PushTaskResRequest::_internal_task_res_list(int index) const { + return task_res_list_.Get(index); +} +inline const ::flwr::proto::TaskRes& PushTaskResRequest::task_res_list(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.PushTaskResRequest.task_res_list) + return _internal_task_res_list(index); +} +inline ::flwr::proto::TaskRes* PushTaskResRequest::_internal_add_task_res_list() { + return task_res_list_.Add(); +} +inline ::flwr::proto::TaskRes* PushTaskResRequest::add_task_res_list() { + ::flwr::proto::TaskRes* _add = _internal_add_task_res_list(); + // @@protoc_insertion_point(field_add:flwr.proto.PushTaskResRequest.task_res_list) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::flwr::proto::TaskRes >& +PushTaskResRequest::task_res_list() const { + // @@protoc_insertion_point(field_list:flwr.proto.PushTaskResRequest.task_res_list) + return task_res_list_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// PushTaskResResponse + +// .flwr.proto.Reconnect reconnect = 1; +inline bool PushTaskResResponse::_internal_has_reconnect() const { + return this != internal_default_instance() && reconnect_ != nullptr; +} +inline bool PushTaskResResponse::has_reconnect() const { + return _internal_has_reconnect(); +} +inline void PushTaskResResponse::clear_reconnect() { + if (GetArenaForAllocation() == nullptr && reconnect_ != nullptr) { + delete reconnect_; + } + reconnect_ = nullptr; +} +inline const ::flwr::proto::Reconnect& PushTaskResResponse::_internal_reconnect() const { + const ::flwr::proto::Reconnect* p = reconnect_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Reconnect_default_instance_); +} +inline const ::flwr::proto::Reconnect& PushTaskResResponse::reconnect() const { + // @@protoc_insertion_point(field_get:flwr.proto.PushTaskResResponse.reconnect) + return _internal_reconnect(); +} +inline void PushTaskResResponse::unsafe_arena_set_allocated_reconnect( + ::flwr::proto::Reconnect* reconnect) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reconnect_); + } + reconnect_ = reconnect; + if (reconnect) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.PushTaskResResponse.reconnect) +} +inline ::flwr::proto::Reconnect* PushTaskResResponse::release_reconnect() { + + ::flwr::proto::Reconnect* temp = reconnect_; + reconnect_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Reconnect* PushTaskResResponse::unsafe_arena_release_reconnect() { + // @@protoc_insertion_point(field_release:flwr.proto.PushTaskResResponse.reconnect) + + ::flwr::proto::Reconnect* temp = reconnect_; + reconnect_ = nullptr; + return temp; +} +inline ::flwr::proto::Reconnect* PushTaskResResponse::_internal_mutable_reconnect() { + + if (reconnect_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Reconnect>(GetArenaForAllocation()); + reconnect_ = p; + } + return reconnect_; +} +inline ::flwr::proto::Reconnect* PushTaskResResponse::mutable_reconnect() { + ::flwr::proto::Reconnect* _msg = _internal_mutable_reconnect(); + // @@protoc_insertion_point(field_mutable:flwr.proto.PushTaskResResponse.reconnect) + return _msg; +} +inline void PushTaskResResponse::set_allocated_reconnect(::flwr::proto::Reconnect* reconnect) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reconnect_; + } + if (reconnect) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Reconnect>::GetOwningArena(reconnect); + if (message_arena != submessage_arena) { + reconnect = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, reconnect, submessage_arena); + } + + } else { + + } + reconnect_ = reconnect; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.PushTaskResResponse.reconnect) +} + +// map results = 2; +inline int PushTaskResResponse::_internal_results_size() const { + return results_.size(); +} +inline int PushTaskResResponse::results_size() const { + return _internal_results_size(); +} +inline void PushTaskResResponse::clear_results() { + results_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >& +PushTaskResResponse::_internal_results() const { + return results_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >& +PushTaskResResponse::results() const { + // @@protoc_insertion_point(field_map:flwr.proto.PushTaskResResponse.results) + return _internal_results(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >* +PushTaskResResponse::_internal_mutable_results() { + return results_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::uint32 >* +PushTaskResResponse::mutable_results() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.PushTaskResResponse.results) + return _internal_mutable_results(); +} + +// ------------------------------------------------------------------- + +// Reconnect + +// uint64 reconnect = 1; +inline void Reconnect::clear_reconnect() { + reconnect_ = uint64_t{0u}; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Reconnect::_internal_reconnect() const { + return reconnect_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Reconnect::reconnect() const { + // @@protoc_insertion_point(field_get:flwr.proto.Reconnect.reconnect) + return _internal_reconnect(); +} +inline void Reconnect::_internal_set_reconnect(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + reconnect_ = value; +} +inline void Reconnect::set_reconnect(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_reconnect(value); + // @@protoc_insertion_point(field_set:flwr.proto.Reconnect.reconnect) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace proto +} // namespace flwr + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2ffleet_2eproto diff --git a/src/cc/flwr/include/flwr/proto/node.grpc.pb.cc b/src/cc/flwr/include/flwr/proto/node.grpc.pb.cc new file mode 100644 index 000000000000..9bb46c7e16ca --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/node.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flwr/proto/node.proto + +#include "flwr/proto/node.pb.h" +#include "flwr/proto/node.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flwr { +namespace proto { + +} // namespace flwr +} // namespace proto + diff --git a/src/cc/flwr/include/flwr/proto/node.grpc.pb.h b/src/cc/flwr/include/flwr/proto/node.grpc.pb.h new file mode 100644 index 000000000000..a15be3a0e0f0 --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/node.grpc.pb.h @@ -0,0 +1,51 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flwr/proto/node.proto +// Original file comments: +// Copyright 2022 Flower Labs GmbH. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ============================================================================== +// +#ifndef GRPC_flwr_2fproto_2fnode_2eproto__INCLUDED +#define GRPC_flwr_2fproto_2fnode_2eproto__INCLUDED + +#include "flwr/proto/node.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace flwr { +namespace proto { + +} // namespace proto +} // namespace flwr + + +#endif // GRPC_flwr_2fproto_2fnode_2eproto__INCLUDED diff --git a/src/cc/flwr/include/flwr/proto/node.pb.cc b/src/cc/flwr/include/flwr/proto/node.pb.cc new file mode 100644 index 000000000000..9b59af028685 --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/node.pb.cc @@ -0,0 +1,301 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/node.proto + +#include "flwr/proto/node.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG +namespace flwr { +namespace proto { +constexpr Node::Node( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : node_id_(int64_t{0}) + , anonymous_(false){} +struct NodeDefaultTypeInternal { + constexpr NodeDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~NodeDefaultTypeInternal() {} + union { + Node _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NodeDefaultTypeInternal _Node_default_instance_; +} // namespace proto +} // namespace flwr +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2fnode_2eproto[1]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_flwr_2fproto_2fnode_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_flwr_2fproto_2fnode_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2fnode_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Node, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Node, node_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Node, anonymous_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::flwr::proto::Node)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::flwr::proto::_Node_default_instance_), +}; + +const char descriptor_table_protodef_flwr_2fproto_2fnode_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\025flwr/proto/node.proto\022\nflwr.proto\"*\n\004N" + "ode\022\017\n\007node_id\030\001 \001(\022\022\021\n\tanonymous\030\002 \001(\010b" + "\006proto3" + ; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_flwr_2fproto_2fnode_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2fnode_2eproto = { + false, false, 87, descriptor_table_protodef_flwr_2fproto_2fnode_2eproto, "flwr/proto/node.proto", + &descriptor_table_flwr_2fproto_2fnode_2eproto_once, nullptr, 0, 1, + schemas, file_default_instances, TableStruct_flwr_2fproto_2fnode_2eproto::offsets, + file_level_metadata_flwr_2fproto_2fnode_2eproto, file_level_enum_descriptors_flwr_2fproto_2fnode_2eproto, file_level_service_descriptors_flwr_2fproto_2fnode_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_flwr_2fproto_2fnode_2eproto_getter() { + return &descriptor_table_flwr_2fproto_2fnode_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_flwr_2fproto_2fnode_2eproto(&descriptor_table_flwr_2fproto_2fnode_2eproto); +namespace flwr { +namespace proto { + +// =================================================================== + +class Node::_Internal { + public: +}; + +Node::Node(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Node) +} +Node::Node(const Node& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&node_id_, &from.node_id_, + static_cast(reinterpret_cast(&anonymous_) - + reinterpret_cast(&node_id_)) + sizeof(anonymous_)); + // @@protoc_insertion_point(copy_constructor:flwr.proto.Node) +} + +void Node::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&node_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&anonymous_) - + reinterpret_cast(&node_id_)) + sizeof(anonymous_)); +} + +Node::~Node() { + // @@protoc_insertion_point(destructor:flwr.proto.Node) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Node::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Node::ArenaDtor(void* object) { + Node* _this = reinterpret_cast< Node* >(object); + (void)_this; +} +void Node::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Node::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Node::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Node) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&node_id_, 0, static_cast( + reinterpret_cast(&anonymous_) - + reinterpret_cast(&node_id_)) + sizeof(anonymous_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // sint64 node_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + node_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool anonymous = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + anonymous_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Node::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Node) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // sint64 node_id = 1; + if (this->_internal_node_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(1, this->_internal_node_id(), target); + } + + // bool anonymous = 2; + if (this->_internal_anonymous() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_anonymous(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Node) + return target; +} + +size_t Node::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Node) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // sint64 node_id = 1; + if (this->_internal_node_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_node_id()); + } + + // bool anonymous = 2; + if (this->_internal_anonymous() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Node::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Node::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Node::GetClassData() const { return &_class_data_; } + +void Node::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Node::MergeFrom(const Node& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Node) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_node_id() != 0) { + _internal_set_node_id(from._internal_node_id()); + } + if (from._internal_anonymous() != 0) { + _internal_set_anonymous(from._internal_anonymous()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Node::CopyFrom(const Node& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Node) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Node::IsInitialized() const { + return true; +} + +void Node::InternalSwap(Node* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Node, anonymous_) + + sizeof(Node::anonymous_) + - PROTOBUF_FIELD_OFFSET(Node, node_id_)>( + reinterpret_cast(&node_id_), + reinterpret_cast(&other->node_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Node::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2fnode_2eproto_getter, &descriptor_table_flwr_2fproto_2fnode_2eproto_once, + file_level_metadata_flwr_2fproto_2fnode_2eproto[0]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::flwr::proto::Node* Arena::CreateMaybeMessage< ::flwr::proto::Node >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Node >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/cc/flwr/include/flwr/proto/node.pb.h b/src/cc/flwr/include/flwr/proto/node.pb.h new file mode 100644 index 000000000000..1177959ce599 --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/node.pb.h @@ -0,0 +1,286 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/node.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2fnode_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2fnode_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3018000 +#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 3018001 < 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 +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flwr_2fproto_2fnode_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_flwr_2fproto_2fnode_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2fnode_2eproto; +namespace flwr { +namespace proto { +class Node; +struct NodeDefaultTypeInternal; +extern NodeDefaultTypeInternal _Node_default_instance_; +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> ::flwr::proto::Node* Arena::CreateMaybeMessage<::flwr::proto::Node>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace flwr { +namespace proto { + +// =================================================================== + +class Node final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Node) */ { + public: + inline Node() : Node(nullptr) {} + ~Node() override; + explicit constexpr Node(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Node(const Node& from); + Node(Node&& from) noexcept + : Node() { + *this = ::std::move(from); + } + + inline Node& operator=(const Node& from) { + CopyFrom(from); + return *this; + } + inline Node& operator=(Node&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Node& default_instance() { + return *internal_default_instance(); + } + static inline const Node* internal_default_instance() { + return reinterpret_cast( + &_Node_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Node& a, Node& b) { + a.Swap(&b); + } + inline void Swap(Node* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Node* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Node* New() const final { + return new Node(); + } + + Node* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Node& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Node& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Node* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Node"; + } + protected: + explicit Node(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNodeIdFieldNumber = 1, + kAnonymousFieldNumber = 2, + }; + // sint64 node_id = 1; + void clear_node_id(); + ::PROTOBUF_NAMESPACE_ID::int64 node_id() const; + void set_node_id(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_node_id() const; + void _internal_set_node_id(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // bool anonymous = 2; + void clear_anonymous(); + bool anonymous() const; + void set_anonymous(bool value); + private: + bool _internal_anonymous() const; + void _internal_set_anonymous(bool value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.Node) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::int64 node_id_; + bool anonymous_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2fnode_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Node + +// sint64 node_id = 1; +inline void Node::clear_node_id() { + node_id_ = int64_t{0}; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Node::_internal_node_id() const { + return node_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Node::node_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.Node.node_id) + return _internal_node_id(); +} +inline void Node::_internal_set_node_id(::PROTOBUF_NAMESPACE_ID::int64 value) { + + node_id_ = value; +} +inline void Node::set_node_id(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_node_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.Node.node_id) +} + +// bool anonymous = 2; +inline void Node::clear_anonymous() { + anonymous_ = false; +} +inline bool Node::_internal_anonymous() const { + return anonymous_; +} +inline bool Node::anonymous() const { + // @@protoc_insertion_point(field_get:flwr.proto.Node.anonymous) + return _internal_anonymous(); +} +inline void Node::_internal_set_anonymous(bool value) { + + anonymous_ = value; +} +inline void Node::set_anonymous(bool value) { + _internal_set_anonymous(value); + // @@protoc_insertion_point(field_set:flwr.proto.Node.anonymous) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace proto +} // namespace flwr + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2fnode_2eproto diff --git a/src/cc/flwr/include/flwr/proto/task.grpc.pb.cc b/src/cc/flwr/include/flwr/proto/task.grpc.pb.cc new file mode 100644 index 000000000000..a71fcff6f5a1 --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/task.grpc.pb.cc @@ -0,0 +1,27 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flwr/proto/task.proto + +#include "flwr/proto/task.pb.h" +#include "flwr/proto/task.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flwr { +namespace proto { + +} // namespace flwr +} // namespace proto + diff --git a/src/cc/flwr/include/flwr/proto/task.grpc.pb.h b/src/cc/flwr/include/flwr/proto/task.grpc.pb.h new file mode 100644 index 000000000000..c1adfdac5d1b --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/task.grpc.pb.h @@ -0,0 +1,51 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flwr/proto/task.proto +// Original file comments: +// Copyright 2022 Flower Labs GmbH. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ============================================================================== +// +#ifndef GRPC_flwr_2fproto_2ftask_2eproto__INCLUDED +#define GRPC_flwr_2fproto_2ftask_2eproto__INCLUDED + +#include "flwr/proto/task.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace flwr { +namespace proto { + +} // namespace proto +} // namespace flwr + + +#endif // GRPC_flwr_2fproto_2ftask_2eproto__INCLUDED diff --git a/src/cc/flwr/include/flwr/proto/task.pb.cc b/src/cc/flwr/include/flwr/proto/task.pb.cc new file mode 100644 index 000000000000..14f1259e5ba7 --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/task.pb.cc @@ -0,0 +1,3404 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/task.proto + +#include "flwr/proto/task.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG +namespace flwr { +namespace proto { +constexpr Task::Task( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : ancestry_() + , created_at_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , delivered_at_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , ttl_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , producer_(nullptr) + , consumer_(nullptr) + , sa_(nullptr) + , legacy_server_message_(nullptr) + , legacy_client_message_(nullptr){} +struct TaskDefaultTypeInternal { + constexpr TaskDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~TaskDefaultTypeInternal() {} + union { + Task _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TaskDefaultTypeInternal _Task_default_instance_; +constexpr TaskIns::TaskIns( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : task_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , group_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , task_(nullptr) + , workload_id_(int64_t{0}){} +struct TaskInsDefaultTypeInternal { + constexpr TaskInsDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~TaskInsDefaultTypeInternal() {} + union { + TaskIns _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TaskInsDefaultTypeInternal _TaskIns_default_instance_; +constexpr TaskRes::TaskRes( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : task_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , group_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , task_(nullptr) + , workload_id_(int64_t{0}){} +struct TaskResDefaultTypeInternal { + constexpr TaskResDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~TaskResDefaultTypeInternal() {} + union { + TaskRes _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TaskResDefaultTypeInternal _TaskRes_default_instance_; +constexpr Value_DoubleList::Value_DoubleList( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : vals_(){} +struct Value_DoubleListDefaultTypeInternal { + constexpr Value_DoubleListDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~Value_DoubleListDefaultTypeInternal() {} + union { + Value_DoubleList _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Value_DoubleListDefaultTypeInternal _Value_DoubleList_default_instance_; +constexpr Value_Sint64List::Value_Sint64List( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : vals_() + , _vals_cached_byte_size_(0){} +struct Value_Sint64ListDefaultTypeInternal { + constexpr Value_Sint64ListDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~Value_Sint64ListDefaultTypeInternal() {} + union { + Value_Sint64List _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Value_Sint64ListDefaultTypeInternal _Value_Sint64List_default_instance_; +constexpr Value_BoolList::Value_BoolList( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : vals_(){} +struct Value_BoolListDefaultTypeInternal { + constexpr Value_BoolListDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~Value_BoolListDefaultTypeInternal() {} + union { + Value_BoolList _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Value_BoolListDefaultTypeInternal _Value_BoolList_default_instance_; +constexpr Value_StringList::Value_StringList( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : vals_(){} +struct Value_StringListDefaultTypeInternal { + constexpr Value_StringListDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~Value_StringListDefaultTypeInternal() {} + union { + Value_StringList _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Value_StringListDefaultTypeInternal _Value_StringList_default_instance_; +constexpr Value_BytesList::Value_BytesList( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : vals_(){} +struct Value_BytesListDefaultTypeInternal { + constexpr Value_BytesListDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~Value_BytesListDefaultTypeInternal() {} + union { + Value_BytesList _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Value_BytesListDefaultTypeInternal _Value_BytesList_default_instance_; +constexpr Value::Value( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : _oneof_case_{}{} +struct ValueDefaultTypeInternal { + constexpr ValueDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ValueDefaultTypeInternal() {} + union { + Value _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ValueDefaultTypeInternal _Value_default_instance_; +constexpr SecureAggregation_NamedValuesEntry_DoNotUse::SecureAggregation_NamedValuesEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct SecureAggregation_NamedValuesEntry_DoNotUseDefaultTypeInternal { + constexpr SecureAggregation_NamedValuesEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~SecureAggregation_NamedValuesEntry_DoNotUseDefaultTypeInternal() {} + union { + SecureAggregation_NamedValuesEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SecureAggregation_NamedValuesEntry_DoNotUseDefaultTypeInternal _SecureAggregation_NamedValuesEntry_DoNotUse_default_instance_; +constexpr SecureAggregation::SecureAggregation( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : named_values_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} +struct SecureAggregationDefaultTypeInternal { + constexpr SecureAggregationDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~SecureAggregationDefaultTypeInternal() {} + union { + SecureAggregation _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SecureAggregationDefaultTypeInternal _SecureAggregation_default_instance_; +} // namespace proto +} // namespace flwr +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2ftask_2eproto[11]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_flwr_2fproto_2ftask_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_flwr_2fproto_2ftask_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2ftask_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, producer_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, consumer_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, created_at_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, delivered_at_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, ttl_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, ancestry_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, sa_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, legacy_server_message_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Task, legacy_client_message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::TaskIns, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::TaskIns, task_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::TaskIns, group_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::TaskIns, workload_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::TaskIns, task_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::TaskRes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::TaskRes, task_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::TaskRes, group_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::TaskRes, workload_id_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::TaskRes, task_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value_DoubleList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value_DoubleList, vals_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value_Sint64List, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value_Sint64List, vals_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value_BoolList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value_BoolList, vals_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value_StringList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value_StringList, vals_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value_BytesList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value_BytesList, vals_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::flwr::proto::Value, value_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::SecureAggregation_NamedValuesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::SecureAggregation_NamedValuesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SecureAggregation_NamedValuesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::SecureAggregation_NamedValuesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SecureAggregation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::SecureAggregation, named_values_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::flwr::proto::Task)}, + { 15, -1, -1, sizeof(::flwr::proto::TaskIns)}, + { 25, -1, -1, sizeof(::flwr::proto::TaskRes)}, + { 35, -1, -1, sizeof(::flwr::proto::Value_DoubleList)}, + { 42, -1, -1, sizeof(::flwr::proto::Value_Sint64List)}, + { 49, -1, -1, sizeof(::flwr::proto::Value_BoolList)}, + { 56, -1, -1, sizeof(::flwr::proto::Value_StringList)}, + { 63, -1, -1, sizeof(::flwr::proto::Value_BytesList)}, + { 70, -1, -1, sizeof(::flwr::proto::Value)}, + { 87, 95, -1, sizeof(::flwr::proto::SecureAggregation_NamedValuesEntry_DoNotUse)}, + { 97, -1, -1, sizeof(::flwr::proto::SecureAggregation)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::flwr::proto::_Task_default_instance_), + reinterpret_cast(&::flwr::proto::_TaskIns_default_instance_), + reinterpret_cast(&::flwr::proto::_TaskRes_default_instance_), + reinterpret_cast(&::flwr::proto::_Value_DoubleList_default_instance_), + reinterpret_cast(&::flwr::proto::_Value_Sint64List_default_instance_), + reinterpret_cast(&::flwr::proto::_Value_BoolList_default_instance_), + reinterpret_cast(&::flwr::proto::_Value_StringList_default_instance_), + reinterpret_cast(&::flwr::proto::_Value_BytesList_default_instance_), + reinterpret_cast(&::flwr::proto::_Value_default_instance_), + reinterpret_cast(&::flwr::proto::_SecureAggregation_NamedValuesEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_SecureAggregation_default_instance_), +}; + +const char descriptor_table_protodef_flwr_2fproto_2ftask_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\025flwr/proto/task.proto\022\nflwr.proto\032\025flw" + "r/proto/node.proto\032\032flwr/proto/transport" + ".proto\"\276\002\n\004Task\022\"\n\010producer\030\001 \001(\0132\020.flwr" + ".proto.Node\022\"\n\010consumer\030\002 \001(\0132\020.flwr.pro" + "to.Node\022\022\n\ncreated_at\030\003 \001(\t\022\024\n\014delivered" + "_at\030\004 \001(\t\022\013\n\003ttl\030\005 \001(\t\022\020\n\010ancestry\030\006 \003(\t" + "\022)\n\002sa\030\007 \001(\0132\035.flwr.proto.SecureAggregat" + "ion\022<\n\025legacy_server_message\030e \001(\0132\031.flw" + "r.proto.ServerMessageB\002\030\001\022<\n\025legacy_clie" + "nt_message\030f \001(\0132\031.flwr.proto.ClientMess" + "ageB\002\030\001\"a\n\007TaskIns\022\017\n\007task_id\030\001 \001(\t\022\020\n\010g" + "roup_id\030\002 \001(\t\022\023\n\013workload_id\030\003 \001(\022\022\036\n\004ta" + "sk\030\004 \001(\0132\020.flwr.proto.Task\"a\n\007TaskRes\022\017\n" + "\007task_id\030\001 \001(\t\022\020\n\010group_id\030\002 \001(\t\022\023\n\013work" + "load_id\030\003 \001(\022\022\036\n\004task\030\004 \001(\0132\020.flwr.proto" + ".Task\"\363\003\n\005Value\022\020\n\006double\030\001 \001(\001H\000\022\020\n\006sin" + "t64\030\002 \001(\022H\000\022\016\n\004bool\030\003 \001(\010H\000\022\020\n\006string\030\004 " + "\001(\tH\000\022\017\n\005bytes\030\005 \001(\014H\000\0223\n\013double_list\030\025 " + "\001(\0132\034.flwr.proto.Value.DoubleListH\000\0223\n\013s" + "int64_list\030\026 \001(\0132\034.flwr.proto.Value.Sint" + "64ListH\000\022/\n\tbool_list\030\027 \001(\0132\032.flwr.proto" + ".Value.BoolListH\000\0223\n\013string_list\030\030 \001(\0132\034" + ".flwr.proto.Value.StringListH\000\0221\n\nbytes_" + "list\030\031 \001(\0132\033.flwr.proto.Value.BytesListH" + "\000\032\032\n\nDoubleList\022\014\n\004vals\030\001 \003(\001\032\032\n\nSint64L" + "ist\022\014\n\004vals\030\001 \003(\022\032\030\n\010BoolList\022\014\n\004vals\030\001 " + "\003(\010\032\032\n\nStringList\022\014\n\004vals\030\001 \003(\t\032\031\n\tBytes" + "List\022\014\n\004vals\030\001 \003(\014B\007\n\005value\"\240\001\n\021SecureAg" + "gregation\022D\n\014named_values\030\001 \003(\0132..flwr.p" + "roto.SecureAggregation.NamedValuesEntry\032" + "E\n\020NamedValuesEntry\022\013\n\003key\030\001 \001(\t\022 \n\005valu" + "e\030\002 \001(\0132\021.flwr.proto.Value:\0028\001b\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_flwr_2fproto_2ftask_2eproto_deps[2] = { + &::descriptor_table_flwr_2fproto_2fnode_2eproto, + &::descriptor_table_flwr_2fproto_2ftransport_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_flwr_2fproto_2ftask_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2ftask_2eproto = { + false, false, 1278, descriptor_table_protodef_flwr_2fproto_2ftask_2eproto, "flwr/proto/task.proto", + &descriptor_table_flwr_2fproto_2ftask_2eproto_once, descriptor_table_flwr_2fproto_2ftask_2eproto_deps, 2, 11, + schemas, file_default_instances, TableStruct_flwr_2fproto_2ftask_2eproto::offsets, + file_level_metadata_flwr_2fproto_2ftask_2eproto, file_level_enum_descriptors_flwr_2fproto_2ftask_2eproto, file_level_service_descriptors_flwr_2fproto_2ftask_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_flwr_2fproto_2ftask_2eproto_getter() { + return &descriptor_table_flwr_2fproto_2ftask_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_flwr_2fproto_2ftask_2eproto(&descriptor_table_flwr_2fproto_2ftask_2eproto); +namespace flwr { +namespace proto { + +// =================================================================== + +class Task::_Internal { + public: + static const ::flwr::proto::Node& producer(const Task* msg); + static const ::flwr::proto::Node& consumer(const Task* msg); + static const ::flwr::proto::SecureAggregation& sa(const Task* msg); + static const ::flwr::proto::ServerMessage& legacy_server_message(const Task* msg); + static const ::flwr::proto::ClientMessage& legacy_client_message(const Task* msg); +}; + +const ::flwr::proto::Node& +Task::_Internal::producer(const Task* msg) { + return *msg->producer_; +} +const ::flwr::proto::Node& +Task::_Internal::consumer(const Task* msg) { + return *msg->consumer_; +} +const ::flwr::proto::SecureAggregation& +Task::_Internal::sa(const Task* msg) { + return *msg->sa_; +} +const ::flwr::proto::ServerMessage& +Task::_Internal::legacy_server_message(const Task* msg) { + return *msg->legacy_server_message_; +} +const ::flwr::proto::ClientMessage& +Task::_Internal::legacy_client_message(const Task* msg) { + return *msg->legacy_client_message_; +} +void Task::clear_producer() { + if (GetArenaForAllocation() == nullptr && producer_ != nullptr) { + delete producer_; + } + producer_ = nullptr; +} +void Task::clear_consumer() { + if (GetArenaForAllocation() == nullptr && consumer_ != nullptr) { + delete consumer_; + } + consumer_ = nullptr; +} +void Task::clear_legacy_server_message() { + if (GetArenaForAllocation() == nullptr && legacy_server_message_ != nullptr) { + delete legacy_server_message_; + } + legacy_server_message_ = nullptr; +} +void Task::clear_legacy_client_message() { + if (GetArenaForAllocation() == nullptr && legacy_client_message_ != nullptr) { + delete legacy_client_message_; + } + legacy_client_message_ = nullptr; +} +Task::Task(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + ancestry_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Task) +} +Task::Task(const Task& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + ancestry_(from.ancestry_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + created_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_created_at().empty()) { + created_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_created_at(), + GetArenaForAllocation()); + } + delivered_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_delivered_at().empty()) { + delivered_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_delivered_at(), + GetArenaForAllocation()); + } + ttl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_ttl().empty()) { + ttl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ttl(), + GetArenaForAllocation()); + } + if (from._internal_has_producer()) { + producer_ = new ::flwr::proto::Node(*from.producer_); + } else { + producer_ = nullptr; + } + if (from._internal_has_consumer()) { + consumer_ = new ::flwr::proto::Node(*from.consumer_); + } else { + consumer_ = nullptr; + } + if (from._internal_has_sa()) { + sa_ = new ::flwr::proto::SecureAggregation(*from.sa_); + } else { + sa_ = nullptr; + } + if (from._internal_has_legacy_server_message()) { + legacy_server_message_ = new ::flwr::proto::ServerMessage(*from.legacy_server_message_); + } else { + legacy_server_message_ = nullptr; + } + if (from._internal_has_legacy_client_message()) { + legacy_client_message_ = new ::flwr::proto::ClientMessage(*from.legacy_client_message_); + } else { + legacy_client_message_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.Task) +} + +void Task::SharedCtor() { +created_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +delivered_at_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +ttl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&producer_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&legacy_client_message_) - + reinterpret_cast(&producer_)) + sizeof(legacy_client_message_)); +} + +Task::~Task() { + // @@protoc_insertion_point(destructor:flwr.proto.Task) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Task::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + created_at_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + delivered_at_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ttl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete producer_; + if (this != internal_default_instance()) delete consumer_; + if (this != internal_default_instance()) delete sa_; + if (this != internal_default_instance()) delete legacy_server_message_; + if (this != internal_default_instance()) delete legacy_client_message_; +} + +void Task::ArenaDtor(void* object) { + Task* _this = reinterpret_cast< Task* >(object); + (void)_this; +} +void Task::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Task::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Task::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Task) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ancestry_.Clear(); + created_at_.ClearToEmpty(); + delivered_at_.ClearToEmpty(); + ttl_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && producer_ != nullptr) { + delete producer_; + } + producer_ = nullptr; + if (GetArenaForAllocation() == nullptr && consumer_ != nullptr) { + delete consumer_; + } + consumer_ = nullptr; + if (GetArenaForAllocation() == nullptr && sa_ != nullptr) { + delete sa_; + } + sa_ = nullptr; + if (GetArenaForAllocation() == nullptr && legacy_server_message_ != nullptr) { + delete legacy_server_message_; + } + legacy_server_message_ = nullptr; + if (GetArenaForAllocation() == nullptr && legacy_client_message_ != nullptr) { + delete legacy_client_message_; + } + legacy_client_message_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Task::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Node producer = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_producer(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.Node consumer = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_consumer(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string created_at = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_created_at(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Task.created_at")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string delivered_at = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_delivered_at(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Task.delivered_at")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string ttl = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_ttl(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Task.ttl")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string ancestry = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_ancestry(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Task.ancestry")); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // .flwr.proto.SecureAggregation sa = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_sa(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ServerMessage legacy_server_message = 101 [deprecated = true]; + case 101: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_legacy_server_message(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ClientMessage legacy_client_message = 102 [deprecated = true]; + case 102: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_legacy_client_message(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Task::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Task) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Node producer = 1; + if (this->_internal_has_producer()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::producer(this), target, stream); + } + + // .flwr.proto.Node consumer = 2; + if (this->_internal_has_consumer()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::consumer(this), target, stream); + } + + // string created_at = 3; + if (!this->_internal_created_at().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_created_at().data(), static_cast(this->_internal_created_at().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Task.created_at"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_created_at(), target); + } + + // string delivered_at = 4; + if (!this->_internal_delivered_at().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_delivered_at().data(), static_cast(this->_internal_delivered_at().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Task.delivered_at"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_delivered_at(), target); + } + + // string ttl = 5; + if (!this->_internal_ttl().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_ttl().data(), static_cast(this->_internal_ttl().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Task.ttl"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_ttl(), target); + } + + // repeated string ancestry = 6; + for (int i = 0, n = this->_internal_ancestry_size(); i < n; i++) { + const auto& s = this->_internal_ancestry(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Task.ancestry"); + target = stream->WriteString(6, s, target); + } + + // .flwr.proto.SecureAggregation sa = 7; + if (this->_internal_has_sa()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 7, _Internal::sa(this), target, stream); + } + + // .flwr.proto.ServerMessage legacy_server_message = 101 [deprecated = true]; + if (this->_internal_has_legacy_server_message()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 101, _Internal::legacy_server_message(this), target, stream); + } + + // .flwr.proto.ClientMessage legacy_client_message = 102 [deprecated = true]; + if (this->_internal_has_legacy_client_message()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 102, _Internal::legacy_client_message(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Task) + return target; +} + +size_t Task::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Task) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string ancestry = 6; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(ancestry_.size()); + for (int i = 0, n = ancestry_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ancestry_.Get(i)); + } + + // string created_at = 3; + if (!this->_internal_created_at().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_created_at()); + } + + // string delivered_at = 4; + if (!this->_internal_delivered_at().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_delivered_at()); + } + + // string ttl = 5; + if (!this->_internal_ttl().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_ttl()); + } + + // .flwr.proto.Node producer = 1; + if (this->_internal_has_producer()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *producer_); + } + + // .flwr.proto.Node consumer = 2; + if (this->_internal_has_consumer()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *consumer_); + } + + // .flwr.proto.SecureAggregation sa = 7; + if (this->_internal_has_sa()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *sa_); + } + + // .flwr.proto.ServerMessage legacy_server_message = 101 [deprecated = true]; + if (this->_internal_has_legacy_server_message()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *legacy_server_message_); + } + + // .flwr.proto.ClientMessage legacy_client_message = 102 [deprecated = true]; + if (this->_internal_has_legacy_client_message()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *legacy_client_message_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Task::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Task::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Task::GetClassData() const { return &_class_data_; } + +void Task::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Task::MergeFrom(const Task& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Task) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + ancestry_.MergeFrom(from.ancestry_); + if (!from._internal_created_at().empty()) { + _internal_set_created_at(from._internal_created_at()); + } + if (!from._internal_delivered_at().empty()) { + _internal_set_delivered_at(from._internal_delivered_at()); + } + if (!from._internal_ttl().empty()) { + _internal_set_ttl(from._internal_ttl()); + } + if (from._internal_has_producer()) { + _internal_mutable_producer()->::flwr::proto::Node::MergeFrom(from._internal_producer()); + } + if (from._internal_has_consumer()) { + _internal_mutable_consumer()->::flwr::proto::Node::MergeFrom(from._internal_consumer()); + } + if (from._internal_has_sa()) { + _internal_mutable_sa()->::flwr::proto::SecureAggregation::MergeFrom(from._internal_sa()); + } + if (from._internal_has_legacy_server_message()) { + _internal_mutable_legacy_server_message()->::flwr::proto::ServerMessage::MergeFrom(from._internal_legacy_server_message()); + } + if (from._internal_has_legacy_client_message()) { + _internal_mutable_legacy_client_message()->::flwr::proto::ClientMessage::MergeFrom(from._internal_legacy_client_message()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Task::CopyFrom(const Task& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Task) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Task::IsInitialized() const { + return true; +} + +void Task::InternalSwap(Task* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ancestry_.InternalSwap(&other->ancestry_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &created_at_, lhs_arena, + &other->created_at_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &delivered_at_, lhs_arena, + &other->delivered_at_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &ttl_, lhs_arena, + &other->ttl_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Task, legacy_client_message_) + + sizeof(Task::legacy_client_message_) + - PROTOBUF_FIELD_OFFSET(Task, producer_)>( + reinterpret_cast(&producer_), + reinterpret_cast(&other->producer_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Task::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftask_2eproto_getter, &descriptor_table_flwr_2fproto_2ftask_2eproto_once, + file_level_metadata_flwr_2fproto_2ftask_2eproto[0]); +} + +// =================================================================== + +class TaskIns::_Internal { + public: + static const ::flwr::proto::Task& task(const TaskIns* msg); +}; + +const ::flwr::proto::Task& +TaskIns::_Internal::task(const TaskIns* msg) { + return *msg->task_; +} +TaskIns::TaskIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.TaskIns) +} +TaskIns::TaskIns(const TaskIns& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + task_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_task_id().empty()) { + task_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_task_id(), + GetArenaForAllocation()); + } + group_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_group_id().empty()) { + group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_group_id(), + GetArenaForAllocation()); + } + if (from._internal_has_task()) { + task_ = new ::flwr::proto::Task(*from.task_); + } else { + task_ = nullptr; + } + workload_id_ = from.workload_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.TaskIns) +} + +void TaskIns::SharedCtor() { +task_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +group_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&task_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&workload_id_) - + reinterpret_cast(&task_)) + sizeof(workload_id_)); +} + +TaskIns::~TaskIns() { + // @@protoc_insertion_point(destructor:flwr.proto.TaskIns) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void TaskIns::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + task_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + group_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete task_; +} + +void TaskIns::ArenaDtor(void* object) { + TaskIns* _this = reinterpret_cast< TaskIns* >(object); + (void)_this; +} +void TaskIns::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void TaskIns::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void TaskIns::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.TaskIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_id_.ClearToEmpty(); + group_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && task_ != nullptr) { + delete task_; + } + task_ = nullptr; + workload_id_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TaskIns::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string task_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_task_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.TaskIns.task_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string group_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_group_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.TaskIns.group_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // sint64 workload_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + workload_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.Task task = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_task(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* TaskIns::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.TaskIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_id = 1; + if (!this->_internal_task_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_task_id().data(), static_cast(this->_internal_task_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.TaskIns.task_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_task_id(), target); + } + + // string group_id = 2; + if (!this->_internal_group_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_group_id().data(), static_cast(this->_internal_group_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.TaskIns.group_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_group_id(), target); + } + + // sint64 workload_id = 3; + if (this->_internal_workload_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(3, this->_internal_workload_id(), target); + } + + // .flwr.proto.Task task = 4; + if (this->_internal_has_task()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::task(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.TaskIns) + return target; +} + +size_t TaskIns::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.TaskIns) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string task_id = 1; + if (!this->_internal_task_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_task_id()); + } + + // string group_id = 2; + if (!this->_internal_group_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_group_id()); + } + + // .flwr.proto.Task task = 4; + if (this->_internal_has_task()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *task_); + } + + // sint64 workload_id = 3; + if (this->_internal_workload_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_workload_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TaskIns::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TaskIns::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TaskIns::GetClassData() const { return &_class_data_; } + +void TaskIns::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void TaskIns::MergeFrom(const TaskIns& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.TaskIns) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_task_id().empty()) { + _internal_set_task_id(from._internal_task_id()); + } + if (!from._internal_group_id().empty()) { + _internal_set_group_id(from._internal_group_id()); + } + if (from._internal_has_task()) { + _internal_mutable_task()->::flwr::proto::Task::MergeFrom(from._internal_task()); + } + if (from._internal_workload_id() != 0) { + _internal_set_workload_id(from._internal_workload_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TaskIns::CopyFrom(const TaskIns& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.TaskIns) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskIns::IsInitialized() const { + return true; +} + +void TaskIns::InternalSwap(TaskIns* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &task_id_, lhs_arena, + &other->task_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &group_id_, lhs_arena, + &other->group_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(TaskIns, workload_id_) + + sizeof(TaskIns::workload_id_) + - PROTOBUF_FIELD_OFFSET(TaskIns, task_)>( + reinterpret_cast(&task_), + reinterpret_cast(&other->task_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TaskIns::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftask_2eproto_getter, &descriptor_table_flwr_2fproto_2ftask_2eproto_once, + file_level_metadata_flwr_2fproto_2ftask_2eproto[1]); +} + +// =================================================================== + +class TaskRes::_Internal { + public: + static const ::flwr::proto::Task& task(const TaskRes* msg); +}; + +const ::flwr::proto::Task& +TaskRes::_Internal::task(const TaskRes* msg) { + return *msg->task_; +} +TaskRes::TaskRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.TaskRes) +} +TaskRes::TaskRes(const TaskRes& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + task_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_task_id().empty()) { + task_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_task_id(), + GetArenaForAllocation()); + } + group_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_group_id().empty()) { + group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_group_id(), + GetArenaForAllocation()); + } + if (from._internal_has_task()) { + task_ = new ::flwr::proto::Task(*from.task_); + } else { + task_ = nullptr; + } + workload_id_ = from.workload_id_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.TaskRes) +} + +void TaskRes::SharedCtor() { +task_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +group_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&task_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&workload_id_) - + reinterpret_cast(&task_)) + sizeof(workload_id_)); +} + +TaskRes::~TaskRes() { + // @@protoc_insertion_point(destructor:flwr.proto.TaskRes) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void TaskRes::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + task_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + group_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete task_; +} + +void TaskRes::ArenaDtor(void* object) { + TaskRes* _this = reinterpret_cast< TaskRes* >(object); + (void)_this; +} +void TaskRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void TaskRes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void TaskRes::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.TaskRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_id_.ClearToEmpty(); + group_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && task_ != nullptr) { + delete task_; + } + task_ = nullptr; + workload_id_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TaskRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string task_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_task_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.TaskRes.task_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string group_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_group_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.TaskRes.group_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // sint64 workload_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + workload_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.Task task = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_task(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* TaskRes::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.TaskRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_id = 1; + if (!this->_internal_task_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_task_id().data(), static_cast(this->_internal_task_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.TaskRes.task_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_task_id(), target); + } + + // string group_id = 2; + if (!this->_internal_group_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_group_id().data(), static_cast(this->_internal_group_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.TaskRes.group_id"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_group_id(), target); + } + + // sint64 workload_id = 3; + if (this->_internal_workload_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(3, this->_internal_workload_id(), target); + } + + // .flwr.proto.Task task = 4; + if (this->_internal_has_task()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::task(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.TaskRes) + return target; +} + +size_t TaskRes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.TaskRes) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string task_id = 1; + if (!this->_internal_task_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_task_id()); + } + + // string group_id = 2; + if (!this->_internal_group_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_group_id()); + } + + // .flwr.proto.Task task = 4; + if (this->_internal_has_task()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *task_); + } + + // sint64 workload_id = 3; + if (this->_internal_workload_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_workload_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TaskRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TaskRes::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TaskRes::GetClassData() const { return &_class_data_; } + +void TaskRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void TaskRes::MergeFrom(const TaskRes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.TaskRes) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_task_id().empty()) { + _internal_set_task_id(from._internal_task_id()); + } + if (!from._internal_group_id().empty()) { + _internal_set_group_id(from._internal_group_id()); + } + if (from._internal_has_task()) { + _internal_mutable_task()->::flwr::proto::Task::MergeFrom(from._internal_task()); + } + if (from._internal_workload_id() != 0) { + _internal_set_workload_id(from._internal_workload_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TaskRes::CopyFrom(const TaskRes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.TaskRes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskRes::IsInitialized() const { + return true; +} + +void TaskRes::InternalSwap(TaskRes* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &task_id_, lhs_arena, + &other->task_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &group_id_, lhs_arena, + &other->group_id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(TaskRes, workload_id_) + + sizeof(TaskRes::workload_id_) + - PROTOBUF_FIELD_OFFSET(TaskRes, task_)>( + reinterpret_cast(&task_), + reinterpret_cast(&other->task_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TaskRes::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftask_2eproto_getter, &descriptor_table_flwr_2fproto_2ftask_2eproto_once, + file_level_metadata_flwr_2fproto_2ftask_2eproto[2]); +} + +// =================================================================== + +class Value_DoubleList::_Internal { + public: +}; + +Value_DoubleList::Value_DoubleList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + vals_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Value.DoubleList) +} +Value_DoubleList::Value_DoubleList(const Value_DoubleList& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + vals_(from.vals_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.Value.DoubleList) +} + +void Value_DoubleList::SharedCtor() { +} + +Value_DoubleList::~Value_DoubleList() { + // @@protoc_insertion_point(destructor:flwr.proto.Value.DoubleList) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Value_DoubleList::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Value_DoubleList::ArenaDtor(void* object) { + Value_DoubleList* _this = reinterpret_cast< Value_DoubleList* >(object); + (void)_this; +} +void Value_DoubleList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Value_DoubleList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Value_DoubleList::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Value.DoubleList) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + vals_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Value_DoubleList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated double vals = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_vals(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9) { + _internal_add_vals(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Value_DoubleList::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Value.DoubleList) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated double vals = 1; + if (this->_internal_vals_size() > 0) { + target = stream->WriteFixedPacked(1, _internal_vals(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Value.DoubleList) + return target; +} + +size_t Value_DoubleList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Value.DoubleList) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated double vals = 1; + { + unsigned int count = static_cast(this->_internal_vals_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value_DoubleList::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Value_DoubleList::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value_DoubleList::GetClassData() const { return &_class_data_; } + +void Value_DoubleList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Value_DoubleList::MergeFrom(const Value_DoubleList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Value.DoubleList) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + vals_.MergeFrom(from.vals_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Value_DoubleList::CopyFrom(const Value_DoubleList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Value.DoubleList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Value_DoubleList::IsInitialized() const { + return true; +} + +void Value_DoubleList::InternalSwap(Value_DoubleList* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + vals_.InternalSwap(&other->vals_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Value_DoubleList::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftask_2eproto_getter, &descriptor_table_flwr_2fproto_2ftask_2eproto_once, + file_level_metadata_flwr_2fproto_2ftask_2eproto[3]); +} + +// =================================================================== + +class Value_Sint64List::_Internal { + public: +}; + +Value_Sint64List::Value_Sint64List(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + vals_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Value.Sint64List) +} +Value_Sint64List::Value_Sint64List(const Value_Sint64List& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + vals_(from.vals_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.Value.Sint64List) +} + +void Value_Sint64List::SharedCtor() { +} + +Value_Sint64List::~Value_Sint64List() { + // @@protoc_insertion_point(destructor:flwr.proto.Value.Sint64List) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Value_Sint64List::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Value_Sint64List::ArenaDtor(void* object) { + Value_Sint64List* _this = reinterpret_cast< Value_Sint64List* >(object); + (void)_this; +} +void Value_Sint64List::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Value_Sint64List::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Value_Sint64List::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Value.Sint64List) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + vals_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Value_Sint64List::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated sint64 vals = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedSInt64Parser(_internal_mutable_vals(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { + _internal_add_vals(::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Value_Sint64List::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Value.Sint64List) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated sint64 vals = 1; + { + int byte_size = _vals_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteSInt64Packed( + 1, _internal_vals(), byte_size, target); + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Value.Sint64List) + return target; +} + +size_t Value_Sint64List::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Value.Sint64List) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated sint64 vals = 1; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + SInt64Size(this->vals_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _vals_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value_Sint64List::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Value_Sint64List::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value_Sint64List::GetClassData() const { return &_class_data_; } + +void Value_Sint64List::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Value_Sint64List::MergeFrom(const Value_Sint64List& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Value.Sint64List) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + vals_.MergeFrom(from.vals_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Value_Sint64List::CopyFrom(const Value_Sint64List& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Value.Sint64List) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Value_Sint64List::IsInitialized() const { + return true; +} + +void Value_Sint64List::InternalSwap(Value_Sint64List* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + vals_.InternalSwap(&other->vals_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Value_Sint64List::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftask_2eproto_getter, &descriptor_table_flwr_2fproto_2ftask_2eproto_once, + file_level_metadata_flwr_2fproto_2ftask_2eproto[4]); +} + +// =================================================================== + +class Value_BoolList::_Internal { + public: +}; + +Value_BoolList::Value_BoolList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + vals_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Value.BoolList) +} +Value_BoolList::Value_BoolList(const Value_BoolList& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + vals_(from.vals_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.Value.BoolList) +} + +void Value_BoolList::SharedCtor() { +} + +Value_BoolList::~Value_BoolList() { + // @@protoc_insertion_point(destructor:flwr.proto.Value.BoolList) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Value_BoolList::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Value_BoolList::ArenaDtor(void* object) { + Value_BoolList* _this = reinterpret_cast< Value_BoolList* >(object); + (void)_this; +} +void Value_BoolList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Value_BoolList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Value_BoolList::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Value.BoolList) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + vals_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Value_BoolList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated bool vals = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedBoolParser(_internal_mutable_vals(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { + _internal_add_vals(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Value_BoolList::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Value.BoolList) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bool vals = 1; + if (this->_internal_vals_size() > 0) { + target = stream->WriteFixedPacked(1, _internal_vals(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Value.BoolList) + return target; +} + +size_t Value_BoolList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Value.BoolList) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated bool vals = 1; + { + unsigned int count = static_cast(this->_internal_vals_size()); + size_t data_size = 1UL * count; + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value_BoolList::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Value_BoolList::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value_BoolList::GetClassData() const { return &_class_data_; } + +void Value_BoolList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Value_BoolList::MergeFrom(const Value_BoolList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Value.BoolList) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + vals_.MergeFrom(from.vals_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Value_BoolList::CopyFrom(const Value_BoolList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Value.BoolList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Value_BoolList::IsInitialized() const { + return true; +} + +void Value_BoolList::InternalSwap(Value_BoolList* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + vals_.InternalSwap(&other->vals_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Value_BoolList::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftask_2eproto_getter, &descriptor_table_flwr_2fproto_2ftask_2eproto_once, + file_level_metadata_flwr_2fproto_2ftask_2eproto[5]); +} + +// =================================================================== + +class Value_StringList::_Internal { + public: +}; + +Value_StringList::Value_StringList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + vals_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Value.StringList) +} +Value_StringList::Value_StringList(const Value_StringList& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + vals_(from.vals_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.Value.StringList) +} + +void Value_StringList::SharedCtor() { +} + +Value_StringList::~Value_StringList() { + // @@protoc_insertion_point(destructor:flwr.proto.Value.StringList) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Value_StringList::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Value_StringList::ArenaDtor(void* object) { + Value_StringList* _this = reinterpret_cast< Value_StringList* >(object); + (void)_this; +} +void Value_StringList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Value_StringList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Value_StringList::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Value.StringList) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + vals_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Value_StringList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated string vals = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_vals(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Value.StringList.vals")); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Value_StringList::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Value.StringList) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string vals = 1; + for (int i = 0, n = this->_internal_vals_size(); i < n; i++) { + const auto& s = this->_internal_vals(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Value.StringList.vals"); + target = stream->WriteString(1, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Value.StringList) + return target; +} + +size_t Value_StringList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Value.StringList) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string vals = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(vals_.size()); + for (int i = 0, n = vals_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + vals_.Get(i)); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value_StringList::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Value_StringList::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value_StringList::GetClassData() const { return &_class_data_; } + +void Value_StringList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Value_StringList::MergeFrom(const Value_StringList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Value.StringList) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + vals_.MergeFrom(from.vals_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Value_StringList::CopyFrom(const Value_StringList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Value.StringList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Value_StringList::IsInitialized() const { + return true; +} + +void Value_StringList::InternalSwap(Value_StringList* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + vals_.InternalSwap(&other->vals_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Value_StringList::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftask_2eproto_getter, &descriptor_table_flwr_2fproto_2ftask_2eproto_once, + file_level_metadata_flwr_2fproto_2ftask_2eproto[6]); +} + +// =================================================================== + +class Value_BytesList::_Internal { + public: +}; + +Value_BytesList::Value_BytesList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + vals_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Value.BytesList) +} +Value_BytesList::Value_BytesList(const Value_BytesList& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + vals_(from.vals_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.Value.BytesList) +} + +void Value_BytesList::SharedCtor() { +} + +Value_BytesList::~Value_BytesList() { + // @@protoc_insertion_point(destructor:flwr.proto.Value.BytesList) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Value_BytesList::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void Value_BytesList::ArenaDtor(void* object) { + Value_BytesList* _this = reinterpret_cast< Value_BytesList* >(object); + (void)_this; +} +void Value_BytesList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Value_BytesList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Value_BytesList::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Value.BytesList) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + vals_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Value_BytesList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated bytes vals = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_vals(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Value_BytesList::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Value.BytesList) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes vals = 1; + for (int i = 0, n = this->_internal_vals_size(); i < n; i++) { + const auto& s = this->_internal_vals(i); + target = stream->WriteBytes(1, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Value.BytesList) + return target; +} + +size_t Value_BytesList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Value.BytesList) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated bytes vals = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(vals_.size()); + for (int i = 0, n = vals_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + vals_.Get(i)); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value_BytesList::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Value_BytesList::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value_BytesList::GetClassData() const { return &_class_data_; } + +void Value_BytesList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Value_BytesList::MergeFrom(const Value_BytesList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Value.BytesList) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + vals_.MergeFrom(from.vals_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Value_BytesList::CopyFrom(const Value_BytesList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Value.BytesList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Value_BytesList::IsInitialized() const { + return true; +} + +void Value_BytesList::InternalSwap(Value_BytesList* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + vals_.InternalSwap(&other->vals_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Value_BytesList::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftask_2eproto_getter, &descriptor_table_flwr_2fproto_2ftask_2eproto_once, + file_level_metadata_flwr_2fproto_2ftask_2eproto[7]); +} + +// =================================================================== + +class Value::_Internal { + public: + static const ::flwr::proto::Value_DoubleList& double_list(const Value* msg); + static const ::flwr::proto::Value_Sint64List& sint64_list(const Value* msg); + static const ::flwr::proto::Value_BoolList& bool_list(const Value* msg); + static const ::flwr::proto::Value_StringList& string_list(const Value* msg); + static const ::flwr::proto::Value_BytesList& bytes_list(const Value* msg); +}; + +const ::flwr::proto::Value_DoubleList& +Value::_Internal::double_list(const Value* msg) { + return *msg->value_.double_list_; +} +const ::flwr::proto::Value_Sint64List& +Value::_Internal::sint64_list(const Value* msg) { + return *msg->value_.sint64_list_; +} +const ::flwr::proto::Value_BoolList& +Value::_Internal::bool_list(const Value* msg) { + return *msg->value_.bool_list_; +} +const ::flwr::proto::Value_StringList& +Value::_Internal::string_list(const Value* msg) { + return *msg->value_.string_list_; +} +const ::flwr::proto::Value_BytesList& +Value::_Internal::bytes_list(const Value* msg) { + return *msg->value_.bytes_list_; +} +void Value::set_allocated_double_list(::flwr::proto::Value_DoubleList* double_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value(); + if (double_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Value_DoubleList>::GetOwningArena(double_list); + if (message_arena != submessage_arena) { + double_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, double_list, submessage_arena); + } + set_has_double_list(); + value_.double_list_ = double_list; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Value.double_list) +} +void Value::set_allocated_sint64_list(::flwr::proto::Value_Sint64List* sint64_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value(); + if (sint64_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Value_Sint64List>::GetOwningArena(sint64_list); + if (message_arena != submessage_arena) { + sint64_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sint64_list, submessage_arena); + } + set_has_sint64_list(); + value_.sint64_list_ = sint64_list; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Value.sint64_list) +} +void Value::set_allocated_bool_list(::flwr::proto::Value_BoolList* bool_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value(); + if (bool_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Value_BoolList>::GetOwningArena(bool_list); + if (message_arena != submessage_arena) { + bool_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, bool_list, submessage_arena); + } + set_has_bool_list(); + value_.bool_list_ = bool_list; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Value.bool_list) +} +void Value::set_allocated_string_list(::flwr::proto::Value_StringList* string_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value(); + if (string_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Value_StringList>::GetOwningArena(string_list); + if (message_arena != submessage_arena) { + string_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, string_list, submessage_arena); + } + set_has_string_list(); + value_.string_list_ = string_list; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Value.string_list) +} +void Value::set_allocated_bytes_list(::flwr::proto::Value_BytesList* bytes_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value(); + if (bytes_list) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Value_BytesList>::GetOwningArena(bytes_list); + if (message_arena != submessage_arena) { + bytes_list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, bytes_list, submessage_arena); + } + set_has_bytes_list(); + value_.bytes_list_ = bytes_list; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Value.bytes_list) +} +Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Value) +} +Value::Value(const Value& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_value(); + switch (from.value_case()) { + case kDouble: { + _internal_set_double_(from._internal_double_()); + break; + } + case kSint64: { + _internal_set_sint64(from._internal_sint64()); + break; + } + case kBool: { + _internal_set_bool_(from._internal_bool_()); + break; + } + case kString: { + _internal_set_string(from._internal_string()); + break; + } + case kBytes: { + _internal_set_bytes(from._internal_bytes()); + break; + } + case kDoubleList: { + _internal_mutable_double_list()->::flwr::proto::Value_DoubleList::MergeFrom(from._internal_double_list()); + break; + } + case kSint64List: { + _internal_mutable_sint64_list()->::flwr::proto::Value_Sint64List::MergeFrom(from._internal_sint64_list()); + break; + } + case kBoolList: { + _internal_mutable_bool_list()->::flwr::proto::Value_BoolList::MergeFrom(from._internal_bool_list()); + break; + } + case kStringList: { + _internal_mutable_string_list()->::flwr::proto::Value_StringList::MergeFrom(from._internal_string_list()); + break; + } + case kBytesList: { + _internal_mutable_bytes_list()->::flwr::proto::Value_BytesList::MergeFrom(from._internal_bytes_list()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.Value) +} + +void Value::SharedCtor() { +clear_has_value(); +} + +Value::~Value() { + // @@protoc_insertion_point(destructor:flwr.proto.Value) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Value::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_value()) { + clear_value(); + } +} + +void Value::ArenaDtor(void* object) { + Value* _this = reinterpret_cast< Value* >(object); + (void)_this; +} +void Value::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Value::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Value::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flwr.proto.Value) + switch (value_case()) { + case kDouble: { + // No need to clear + break; + } + case kSint64: { + // No need to clear + break; + } + case kBool: { + // No need to clear + break; + } + case kString: { + value_.string_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + break; + } + case kBytes: { + value_.bytes_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + break; + } + case kDoubleList: { + if (GetArenaForAllocation() == nullptr) { + delete value_.double_list_; + } + break; + } + case kSint64List: { + if (GetArenaForAllocation() == nullptr) { + delete value_.sint64_list_; + } + break; + } + case kBoolList: { + if (GetArenaForAllocation() == nullptr) { + delete value_.bool_list_; + } + break; + } + case kStringList: { + if (GetArenaForAllocation() == nullptr) { + delete value_.string_list_; + } + break; + } + case kBytesList: { + if (GetArenaForAllocation() == nullptr) { + delete value_.bytes_list_; + } + break; + } + case VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = VALUE_NOT_SET; +} + + +void Value::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Value) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_value(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Value::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // double double = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { + _internal_set_double_(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // sint64 sint64 = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _internal_set_sint64(::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool bool = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _internal_set_bool_(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string string = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_string(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Value.string")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes bytes = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_bytes(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.Value.DoubleList double_list = 21; + case 21: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 170)) { + ptr = ctx->ParseMessage(_internal_mutable_double_list(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.Value.Sint64List sint64_list = 22; + case 22: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) { + ptr = ctx->ParseMessage(_internal_mutable_sint64_list(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.Value.BoolList bool_list = 23; + case 23: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) { + ptr = ctx->ParseMessage(_internal_mutable_bool_list(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.Value.StringList string_list = 24; + case 24: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) { + ptr = ctx->ParseMessage(_internal_mutable_string_list(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.Value.BytesList bytes_list = 25; + case 25: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 202)) { + ptr = ctx->ParseMessage(_internal_mutable_bytes_list(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Value::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Value) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // double double = 1; + if (_internal_has_double_()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_double_(), target); + } + + // sint64 sint64 = 2; + if (_internal_has_sint64()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(2, this->_internal_sint64(), target); + } + + // bool bool = 3; + if (_internal_has_bool_()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_bool_(), target); + } + + // string string = 4; + if (_internal_has_string()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_string().data(), static_cast(this->_internal_string().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Value.string"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_string(), target); + } + + // bytes bytes = 5; + if (_internal_has_bytes()) { + target = stream->WriteBytesMaybeAliased( + 5, this->_internal_bytes(), target); + } + + // .flwr.proto.Value.DoubleList double_list = 21; + if (_internal_has_double_list()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 21, _Internal::double_list(this), target, stream); + } + + // .flwr.proto.Value.Sint64List sint64_list = 22; + if (_internal_has_sint64_list()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 22, _Internal::sint64_list(this), target, stream); + } + + // .flwr.proto.Value.BoolList bool_list = 23; + if (_internal_has_bool_list()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 23, _Internal::bool_list(this), target, stream); + } + + // .flwr.proto.Value.StringList string_list = 24; + if (_internal_has_string_list()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 24, _Internal::string_list(this), target, stream); + } + + // .flwr.proto.Value.BytesList bytes_list = 25; + if (_internal_has_bytes_list()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 25, _Internal::bytes_list(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Value) + return target; +} + +size_t Value::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Value) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (value_case()) { + // double double = 1; + case kDouble: { + total_size += 1 + 8; + break; + } + // sint64 sint64 = 2; + case kSint64: { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_sint64()); + break; + } + // bool bool = 3; + case kBool: { + total_size += 1 + 1; + break; + } + // string string = 4; + case kString: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_string()); + break; + } + // bytes bytes = 5; + case kBytes: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_bytes()); + break; + } + // .flwr.proto.Value.DoubleList double_list = 21; + case kDoubleList: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_.double_list_); + break; + } + // .flwr.proto.Value.Sint64List sint64_list = 22; + case kSint64List: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_.sint64_list_); + break; + } + // .flwr.proto.Value.BoolList bool_list = 23; + case kBoolList: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_.bool_list_); + break; + } + // .flwr.proto.Value.StringList string_list = 24; + case kStringList: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_.string_list_); + break; + } + // .flwr.proto.Value.BytesList bytes_list = 25; + case kBytesList: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *value_.bytes_list_); + break; + } + case VALUE_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Value::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value::GetClassData() const { return &_class_data_; } + +void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Value::MergeFrom(const Value& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Value) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.value_case()) { + case kDouble: { + _internal_set_double_(from._internal_double_()); + break; + } + case kSint64: { + _internal_set_sint64(from._internal_sint64()); + break; + } + case kBool: { + _internal_set_bool_(from._internal_bool_()); + break; + } + case kString: { + _internal_set_string(from._internal_string()); + break; + } + case kBytes: { + _internal_set_bytes(from._internal_bytes()); + break; + } + case kDoubleList: { + _internal_mutable_double_list()->::flwr::proto::Value_DoubleList::MergeFrom(from._internal_double_list()); + break; + } + case kSint64List: { + _internal_mutable_sint64_list()->::flwr::proto::Value_Sint64List::MergeFrom(from._internal_sint64_list()); + break; + } + case kBoolList: { + _internal_mutable_bool_list()->::flwr::proto::Value_BoolList::MergeFrom(from._internal_bool_list()); + break; + } + case kStringList: { + _internal_mutable_string_list()->::flwr::proto::Value_StringList::MergeFrom(from._internal_string_list()); + break; + } + case kBytesList: { + _internal_mutable_bytes_list()->::flwr::proto::Value_BytesList::MergeFrom(from._internal_bytes_list()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Value::CopyFrom(const Value& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Value) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Value::IsInitialized() const { + return true; +} + +void Value::InternalSwap(Value* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftask_2eproto_getter, &descriptor_table_flwr_2fproto_2ftask_2eproto_once, + file_level_metadata_flwr_2fproto_2ftask_2eproto[8]); +} + +// =================================================================== + +SecureAggregation_NamedValuesEntry_DoNotUse::SecureAggregation_NamedValuesEntry_DoNotUse() {} +SecureAggregation_NamedValuesEntry_DoNotUse::SecureAggregation_NamedValuesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void SecureAggregation_NamedValuesEntry_DoNotUse::MergeFrom(const SecureAggregation_NamedValuesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata SecureAggregation_NamedValuesEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftask_2eproto_getter, &descriptor_table_flwr_2fproto_2ftask_2eproto_once, + file_level_metadata_flwr_2fproto_2ftask_2eproto[9]); +} + +// =================================================================== + +class SecureAggregation::_Internal { + public: +}; + +SecureAggregation::SecureAggregation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + named_values_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.SecureAggregation) +} +SecureAggregation::SecureAggregation(const SecureAggregation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + named_values_.MergeFrom(from.named_values_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.SecureAggregation) +} + +void SecureAggregation::SharedCtor() { +} + +SecureAggregation::~SecureAggregation() { + // @@protoc_insertion_point(destructor:flwr.proto.SecureAggregation) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void SecureAggregation::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void SecureAggregation::ArenaDtor(void* object) { + SecureAggregation* _this = reinterpret_cast< SecureAggregation* >(object); + (void)_this; + _this->named_values_. ~MapField(); +} +inline void SecureAggregation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &SecureAggregation::ArenaDtor); + } +} +void SecureAggregation::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SecureAggregation::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.SecureAggregation) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + named_values_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SecureAggregation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // map named_values = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&named_values_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* SecureAggregation::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.SecureAggregation) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map named_values = 1; + if (!this->_internal_named_values().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + (void)p; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.SecureAggregation.NamedValuesEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_named_values().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_named_values().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >::size_type size_type; + size_type n = 0; + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >::const_iterator + it = this->_internal_named_values().begin(); + it != this->_internal_named_values().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + for (size_type i = 0; i < n; i++) { + target = SecureAggregation_NamedValuesEntry_DoNotUse::Funcs::InternalSerialize(1, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >::const_iterator + it = this->_internal_named_values().begin(); + it != this->_internal_named_values().end(); ++it) { + target = SecureAggregation_NamedValuesEntry_DoNotUse::Funcs::InternalSerialize(1, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.SecureAggregation) + return target; +} + +size_t SecureAggregation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.SecureAggregation) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map named_values = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_named_values_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >::const_iterator + it = this->_internal_named_values().begin(); + it != this->_internal_named_values().end(); ++it) { + total_size += SecureAggregation_NamedValuesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SecureAggregation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SecureAggregation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SecureAggregation::GetClassData() const { return &_class_data_; } + +void SecureAggregation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SecureAggregation::MergeFrom(const SecureAggregation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.SecureAggregation) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + named_values_.MergeFrom(from.named_values_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SecureAggregation::CopyFrom(const SecureAggregation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.SecureAggregation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SecureAggregation::IsInitialized() const { + return true; +} + +void SecureAggregation::InternalSwap(SecureAggregation* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + named_values_.InternalSwap(&other->named_values_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SecureAggregation::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftask_2eproto_getter, &descriptor_table_flwr_2fproto_2ftask_2eproto_once, + file_level_metadata_flwr_2fproto_2ftask_2eproto[10]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::flwr::proto::Task* Arena::CreateMaybeMessage< ::flwr::proto::Task >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Task >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::TaskIns* Arena::CreateMaybeMessage< ::flwr::proto::TaskIns >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::TaskIns >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::TaskRes* Arena::CreateMaybeMessage< ::flwr::proto::TaskRes >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::TaskRes >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Value_DoubleList* Arena::CreateMaybeMessage< ::flwr::proto::Value_DoubleList >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Value_DoubleList >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Value_Sint64List* Arena::CreateMaybeMessage< ::flwr::proto::Value_Sint64List >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Value_Sint64List >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Value_BoolList* Arena::CreateMaybeMessage< ::flwr::proto::Value_BoolList >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Value_BoolList >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Value_StringList* Arena::CreateMaybeMessage< ::flwr::proto::Value_StringList >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Value_StringList >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Value_BytesList* Arena::CreateMaybeMessage< ::flwr::proto::Value_BytesList >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Value_BytesList >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Value* Arena::CreateMaybeMessage< ::flwr::proto::Value >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Value >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::SecureAggregation_NamedValuesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::SecureAggregation_NamedValuesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::SecureAggregation_NamedValuesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::SecureAggregation* Arena::CreateMaybeMessage< ::flwr::proto::SecureAggregation >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::SecureAggregation >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/cc/flwr/include/flwr/proto/task.pb.h b/src/cc/flwr/include/flwr/proto/task.pb.h new file mode 100644 index 000000000000..0c2c94c64938 --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/task.pb.h @@ -0,0 +1,4243 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/task.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2ftask_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2ftask_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3018000 +#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 3018001 < 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 // IWYU pragma: export +#include +#include +#include +#include "flwr/proto/node.pb.h" +#include "flwr/proto/transport.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flwr_2fproto_2ftask_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_flwr_2fproto_2ftask_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[11] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2ftask_2eproto; +namespace flwr { +namespace proto { +class SecureAggregation; +struct SecureAggregationDefaultTypeInternal; +extern SecureAggregationDefaultTypeInternal _SecureAggregation_default_instance_; +class SecureAggregation_NamedValuesEntry_DoNotUse; +struct SecureAggregation_NamedValuesEntry_DoNotUseDefaultTypeInternal; +extern SecureAggregation_NamedValuesEntry_DoNotUseDefaultTypeInternal _SecureAggregation_NamedValuesEntry_DoNotUse_default_instance_; +class Task; +struct TaskDefaultTypeInternal; +extern TaskDefaultTypeInternal _Task_default_instance_; +class TaskIns; +struct TaskInsDefaultTypeInternal; +extern TaskInsDefaultTypeInternal _TaskIns_default_instance_; +class TaskRes; +struct TaskResDefaultTypeInternal; +extern TaskResDefaultTypeInternal _TaskRes_default_instance_; +class Value; +struct ValueDefaultTypeInternal; +extern ValueDefaultTypeInternal _Value_default_instance_; +class Value_BoolList; +struct Value_BoolListDefaultTypeInternal; +extern Value_BoolListDefaultTypeInternal _Value_BoolList_default_instance_; +class Value_BytesList; +struct Value_BytesListDefaultTypeInternal; +extern Value_BytesListDefaultTypeInternal _Value_BytesList_default_instance_; +class Value_DoubleList; +struct Value_DoubleListDefaultTypeInternal; +extern Value_DoubleListDefaultTypeInternal _Value_DoubleList_default_instance_; +class Value_Sint64List; +struct Value_Sint64ListDefaultTypeInternal; +extern Value_Sint64ListDefaultTypeInternal _Value_Sint64List_default_instance_; +class Value_StringList; +struct Value_StringListDefaultTypeInternal; +extern Value_StringListDefaultTypeInternal _Value_StringList_default_instance_; +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> ::flwr::proto::SecureAggregation* Arena::CreateMaybeMessage<::flwr::proto::SecureAggregation>(Arena*); +template<> ::flwr::proto::SecureAggregation_NamedValuesEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::SecureAggregation_NamedValuesEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::Task* Arena::CreateMaybeMessage<::flwr::proto::Task>(Arena*); +template<> ::flwr::proto::TaskIns* Arena::CreateMaybeMessage<::flwr::proto::TaskIns>(Arena*); +template<> ::flwr::proto::TaskRes* Arena::CreateMaybeMessage<::flwr::proto::TaskRes>(Arena*); +template<> ::flwr::proto::Value* Arena::CreateMaybeMessage<::flwr::proto::Value>(Arena*); +template<> ::flwr::proto::Value_BoolList* Arena::CreateMaybeMessage<::flwr::proto::Value_BoolList>(Arena*); +template<> ::flwr::proto::Value_BytesList* Arena::CreateMaybeMessage<::flwr::proto::Value_BytesList>(Arena*); +template<> ::flwr::proto::Value_DoubleList* Arena::CreateMaybeMessage<::flwr::proto::Value_DoubleList>(Arena*); +template<> ::flwr::proto::Value_Sint64List* Arena::CreateMaybeMessage<::flwr::proto::Value_Sint64List>(Arena*); +template<> ::flwr::proto::Value_StringList* Arena::CreateMaybeMessage<::flwr::proto::Value_StringList>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace flwr { +namespace proto { + +// =================================================================== + +class Task final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Task) */ { + public: + inline Task() : Task(nullptr) {} + ~Task() override; + explicit constexpr Task(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Task(const Task& from); + Task(Task&& from) noexcept + : Task() { + *this = ::std::move(from); + } + + inline Task& operator=(const Task& from) { + CopyFrom(from); + return *this; + } + inline Task& operator=(Task&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Task& default_instance() { + return *internal_default_instance(); + } + static inline const Task* internal_default_instance() { + return reinterpret_cast( + &_Task_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Task& a, Task& b) { + a.Swap(&b); + } + inline void Swap(Task* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Task* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Task* New() const final { + return new Task(); + } + + Task* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Task& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Task& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Task* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Task"; + } + protected: + explicit Task(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kAncestryFieldNumber = 6, + kCreatedAtFieldNumber = 3, + kDeliveredAtFieldNumber = 4, + kTtlFieldNumber = 5, + kProducerFieldNumber = 1, + kConsumerFieldNumber = 2, + kSaFieldNumber = 7, + kLegacyServerMessageFieldNumber = 101, + kLegacyClientMessageFieldNumber = 102, + }; + // repeated string ancestry = 6; + int ancestry_size() const; + private: + int _internal_ancestry_size() const; + public: + void clear_ancestry(); + const std::string& ancestry(int index) const; + std::string* mutable_ancestry(int index); + void set_ancestry(int index, const std::string& value); + void set_ancestry(int index, std::string&& value); + void set_ancestry(int index, const char* value); + void set_ancestry(int index, const char* value, size_t size); + std::string* add_ancestry(); + void add_ancestry(const std::string& value); + void add_ancestry(std::string&& value); + void add_ancestry(const char* value); + void add_ancestry(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& ancestry() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_ancestry(); + private: + const std::string& _internal_ancestry(int index) const; + std::string* _internal_add_ancestry(); + public: + + // string created_at = 3; + void clear_created_at(); + const std::string& created_at() const; + template + void set_created_at(ArgT0&& arg0, ArgT... args); + std::string* mutable_created_at(); + PROTOBUF_MUST_USE_RESULT std::string* release_created_at(); + void set_allocated_created_at(std::string* created_at); + private: + const std::string& _internal_created_at() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_created_at(const std::string& value); + std::string* _internal_mutable_created_at(); + public: + + // string delivered_at = 4; + void clear_delivered_at(); + const std::string& delivered_at() const; + template + void set_delivered_at(ArgT0&& arg0, ArgT... args); + std::string* mutable_delivered_at(); + PROTOBUF_MUST_USE_RESULT std::string* release_delivered_at(); + void set_allocated_delivered_at(std::string* delivered_at); + private: + const std::string& _internal_delivered_at() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_delivered_at(const std::string& value); + std::string* _internal_mutable_delivered_at(); + public: + + // string ttl = 5; + void clear_ttl(); + const std::string& ttl() const; + template + void set_ttl(ArgT0&& arg0, ArgT... args); + std::string* mutable_ttl(); + PROTOBUF_MUST_USE_RESULT std::string* release_ttl(); + void set_allocated_ttl(std::string* ttl); + private: + const std::string& _internal_ttl() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_ttl(const std::string& value); + std::string* _internal_mutable_ttl(); + public: + + // .flwr.proto.Node producer = 1; + bool has_producer() const; + private: + bool _internal_has_producer() const; + public: + void clear_producer(); + const ::flwr::proto::Node& producer() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Node* release_producer(); + ::flwr::proto::Node* mutable_producer(); + void set_allocated_producer(::flwr::proto::Node* producer); + private: + const ::flwr::proto::Node& _internal_producer() const; + ::flwr::proto::Node* _internal_mutable_producer(); + public: + void unsafe_arena_set_allocated_producer( + ::flwr::proto::Node* producer); + ::flwr::proto::Node* unsafe_arena_release_producer(); + + // .flwr.proto.Node consumer = 2; + bool has_consumer() const; + private: + bool _internal_has_consumer() const; + public: + void clear_consumer(); + const ::flwr::proto::Node& consumer() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Node* release_consumer(); + ::flwr::proto::Node* mutable_consumer(); + void set_allocated_consumer(::flwr::proto::Node* consumer); + private: + const ::flwr::proto::Node& _internal_consumer() const; + ::flwr::proto::Node* _internal_mutable_consumer(); + public: + void unsafe_arena_set_allocated_consumer( + ::flwr::proto::Node* consumer); + ::flwr::proto::Node* unsafe_arena_release_consumer(); + + // .flwr.proto.SecureAggregation sa = 7; + bool has_sa() const; + private: + bool _internal_has_sa() const; + public: + void clear_sa(); + const ::flwr::proto::SecureAggregation& sa() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::SecureAggregation* release_sa(); + ::flwr::proto::SecureAggregation* mutable_sa(); + void set_allocated_sa(::flwr::proto::SecureAggregation* sa); + private: + const ::flwr::proto::SecureAggregation& _internal_sa() const; + ::flwr::proto::SecureAggregation* _internal_mutable_sa(); + public: + void unsafe_arena_set_allocated_sa( + ::flwr::proto::SecureAggregation* sa); + ::flwr::proto::SecureAggregation* unsafe_arena_release_sa(); + + // .flwr.proto.ServerMessage legacy_server_message = 101 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_legacy_server_message() const; + private: + bool _internal_has_legacy_server_message() const; + public: + PROTOBUF_DEPRECATED void clear_legacy_server_message(); + PROTOBUF_DEPRECATED const ::flwr::proto::ServerMessage& legacy_server_message() const; + PROTOBUF_MUST_USE_RESULT PROTOBUF_DEPRECATED ::flwr::proto::ServerMessage* release_legacy_server_message(); + PROTOBUF_DEPRECATED ::flwr::proto::ServerMessage* mutable_legacy_server_message(); + PROTOBUF_DEPRECATED void set_allocated_legacy_server_message(::flwr::proto::ServerMessage* legacy_server_message); + private: + const ::flwr::proto::ServerMessage& _internal_legacy_server_message() const; + ::flwr::proto::ServerMessage* _internal_mutable_legacy_server_message(); + public: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_legacy_server_message( + ::flwr::proto::ServerMessage* legacy_server_message); + PROTOBUF_DEPRECATED ::flwr::proto::ServerMessage* unsafe_arena_release_legacy_server_message(); + + // .flwr.proto.ClientMessage legacy_client_message = 102 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_legacy_client_message() const; + private: + bool _internal_has_legacy_client_message() const; + public: + PROTOBUF_DEPRECATED void clear_legacy_client_message(); + PROTOBUF_DEPRECATED const ::flwr::proto::ClientMessage& legacy_client_message() const; + PROTOBUF_MUST_USE_RESULT PROTOBUF_DEPRECATED ::flwr::proto::ClientMessage* release_legacy_client_message(); + PROTOBUF_DEPRECATED ::flwr::proto::ClientMessage* mutable_legacy_client_message(); + PROTOBUF_DEPRECATED void set_allocated_legacy_client_message(::flwr::proto::ClientMessage* legacy_client_message); + private: + const ::flwr::proto::ClientMessage& _internal_legacy_client_message() const; + ::flwr::proto::ClientMessage* _internal_mutable_legacy_client_message(); + public: + PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_legacy_client_message( + ::flwr::proto::ClientMessage* legacy_client_message); + PROTOBUF_DEPRECATED ::flwr::proto::ClientMessage* unsafe_arena_release_legacy_client_message(); + + // @@protoc_insertion_point(class_scope:flwr.proto.Task) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField ancestry_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr created_at_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delivered_at_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ttl_; + ::flwr::proto::Node* producer_; + ::flwr::proto::Node* consumer_; + ::flwr::proto::SecureAggregation* sa_; + ::flwr::proto::ServerMessage* legacy_server_message_; + ::flwr::proto::ClientMessage* legacy_client_message_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskIns final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.TaskIns) */ { + public: + inline TaskIns() : TaskIns(nullptr) {} + ~TaskIns() override; + explicit constexpr TaskIns(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TaskIns(const TaskIns& from); + TaskIns(TaskIns&& from) noexcept + : TaskIns() { + *this = ::std::move(from); + } + + inline TaskIns& operator=(const TaskIns& from) { + CopyFrom(from); + return *this; + } + inline TaskIns& operator=(TaskIns&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const TaskIns& default_instance() { + return *internal_default_instance(); + } + static inline const TaskIns* internal_default_instance() { + return reinterpret_cast( + &_TaskIns_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(TaskIns& a, TaskIns& b) { + a.Swap(&b); + } + inline void Swap(TaskIns* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TaskIns* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline TaskIns* New() const final { + return new TaskIns(); + } + + TaskIns* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TaskIns& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TaskIns& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskIns* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.TaskIns"; + } + protected: + explicit TaskIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTaskIdFieldNumber = 1, + kGroupIdFieldNumber = 2, + kTaskFieldNumber = 4, + kWorkloadIdFieldNumber = 3, + }; + // string task_id = 1; + void clear_task_id(); + const std::string& task_id() const; + template + void set_task_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_task_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_task_id(); + void set_allocated_task_id(std::string* task_id); + private: + const std::string& _internal_task_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_task_id(const std::string& value); + std::string* _internal_mutable_task_id(); + public: + + // string group_id = 2; + void clear_group_id(); + const std::string& group_id() const; + template + void set_group_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_group_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_group_id(); + void set_allocated_group_id(std::string* group_id); + private: + const std::string& _internal_group_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_group_id(const std::string& value); + std::string* _internal_mutable_group_id(); + public: + + // .flwr.proto.Task task = 4; + bool has_task() const; + private: + bool _internal_has_task() const; + public: + void clear_task(); + const ::flwr::proto::Task& task() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Task* release_task(); + ::flwr::proto::Task* mutable_task(); + void set_allocated_task(::flwr::proto::Task* task); + private: + const ::flwr::proto::Task& _internal_task() const; + ::flwr::proto::Task* _internal_mutable_task(); + public: + void unsafe_arena_set_allocated_task( + ::flwr::proto::Task* task); + ::flwr::proto::Task* unsafe_arena_release_task(); + + // sint64 workload_id = 3; + void clear_workload_id(); + ::PROTOBUF_NAMESPACE_ID::int64 workload_id() const; + void set_workload_id(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_workload_id() const; + void _internal_set_workload_id(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.TaskIns) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr task_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr group_id_; + ::flwr::proto::Task* task_; + ::PROTOBUF_NAMESPACE_ID::int64 workload_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.TaskRes) */ { + public: + inline TaskRes() : TaskRes(nullptr) {} + ~TaskRes() override; + explicit constexpr TaskRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TaskRes(const TaskRes& from); + TaskRes(TaskRes&& from) noexcept + : TaskRes() { + *this = ::std::move(from); + } + + inline TaskRes& operator=(const TaskRes& from) { + CopyFrom(from); + return *this; + } + inline TaskRes& operator=(TaskRes&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const TaskRes& default_instance() { + return *internal_default_instance(); + } + static inline const TaskRes* internal_default_instance() { + return reinterpret_cast( + &_TaskRes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(TaskRes& a, TaskRes& b) { + a.Swap(&b); + } + inline void Swap(TaskRes* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TaskRes* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline TaskRes* New() const final { + return new TaskRes(); + } + + TaskRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TaskRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const TaskRes& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskRes* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.TaskRes"; + } + protected: + explicit TaskRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTaskIdFieldNumber = 1, + kGroupIdFieldNumber = 2, + kTaskFieldNumber = 4, + kWorkloadIdFieldNumber = 3, + }; + // string task_id = 1; + void clear_task_id(); + const std::string& task_id() const; + template + void set_task_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_task_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_task_id(); + void set_allocated_task_id(std::string* task_id); + private: + const std::string& _internal_task_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_task_id(const std::string& value); + std::string* _internal_mutable_task_id(); + public: + + // string group_id = 2; + void clear_group_id(); + const std::string& group_id() const; + template + void set_group_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_group_id(); + PROTOBUF_MUST_USE_RESULT std::string* release_group_id(); + void set_allocated_group_id(std::string* group_id); + private: + const std::string& _internal_group_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_group_id(const std::string& value); + std::string* _internal_mutable_group_id(); + public: + + // .flwr.proto.Task task = 4; + bool has_task() const; + private: + bool _internal_has_task() const; + public: + void clear_task(); + const ::flwr::proto::Task& task() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Task* release_task(); + ::flwr::proto::Task* mutable_task(); + void set_allocated_task(::flwr::proto::Task* task); + private: + const ::flwr::proto::Task& _internal_task() const; + ::flwr::proto::Task* _internal_mutable_task(); + public: + void unsafe_arena_set_allocated_task( + ::flwr::proto::Task* task); + ::flwr::proto::Task* unsafe_arena_release_task(); + + // sint64 workload_id = 3; + void clear_workload_id(); + ::PROTOBUF_NAMESPACE_ID::int64 workload_id() const; + void set_workload_id(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_workload_id() const; + void _internal_set_workload_id(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.TaskRes) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr task_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr group_id_; + ::flwr::proto::Task* task_; + ::PROTOBUF_NAMESPACE_ID::int64 workload_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class Value_DoubleList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Value.DoubleList) */ { + public: + inline Value_DoubleList() : Value_DoubleList(nullptr) {} + ~Value_DoubleList() override; + explicit constexpr Value_DoubleList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Value_DoubleList(const Value_DoubleList& from); + Value_DoubleList(Value_DoubleList&& from) noexcept + : Value_DoubleList() { + *this = ::std::move(from); + } + + inline Value_DoubleList& operator=(const Value_DoubleList& from) { + CopyFrom(from); + return *this; + } + inline Value_DoubleList& operator=(Value_DoubleList&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Value_DoubleList& default_instance() { + return *internal_default_instance(); + } + static inline const Value_DoubleList* internal_default_instance() { + return reinterpret_cast( + &_Value_DoubleList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(Value_DoubleList& a, Value_DoubleList& b) { + a.Swap(&b); + } + inline void Swap(Value_DoubleList* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Value_DoubleList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Value_DoubleList* New() const final { + return new Value_DoubleList(); + } + + Value_DoubleList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Value_DoubleList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Value_DoubleList& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Value_DoubleList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Value.DoubleList"; + } + protected: + explicit Value_DoubleList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kValsFieldNumber = 1, + }; + // repeated double vals = 1; + int vals_size() const; + private: + int _internal_vals_size() const; + public: + void clear_vals(); + private: + double _internal_vals(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + _internal_vals() const; + void _internal_add_vals(double value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + _internal_mutable_vals(); + public: + double vals(int index) const; + void set_vals(int index, double value); + void add_vals(double value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& + vals() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* + mutable_vals(); + + // @@protoc_insertion_point(class_scope:flwr.proto.Value.DoubleList) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > vals_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class Value_Sint64List final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Value.Sint64List) */ { + public: + inline Value_Sint64List() : Value_Sint64List(nullptr) {} + ~Value_Sint64List() override; + explicit constexpr Value_Sint64List(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Value_Sint64List(const Value_Sint64List& from); + Value_Sint64List(Value_Sint64List&& from) noexcept + : Value_Sint64List() { + *this = ::std::move(from); + } + + inline Value_Sint64List& operator=(const Value_Sint64List& from) { + CopyFrom(from); + return *this; + } + inline Value_Sint64List& operator=(Value_Sint64List&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Value_Sint64List& default_instance() { + return *internal_default_instance(); + } + static inline const Value_Sint64List* internal_default_instance() { + return reinterpret_cast( + &_Value_Sint64List_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(Value_Sint64List& a, Value_Sint64List& b) { + a.Swap(&b); + } + inline void Swap(Value_Sint64List* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Value_Sint64List* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Value_Sint64List* New() const final { + return new Value_Sint64List(); + } + + Value_Sint64List* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Value_Sint64List& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Value_Sint64List& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Value_Sint64List* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Value.Sint64List"; + } + protected: + explicit Value_Sint64List(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kValsFieldNumber = 1, + }; + // repeated sint64 vals = 1; + int vals_size() const; + private: + int _internal_vals_size() const; + public: + void clear_vals(); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_vals(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& + _internal_vals() const; + void _internal_add_vals(::PROTOBUF_NAMESPACE_ID::int64 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* + _internal_mutable_vals(); + public: + ::PROTOBUF_NAMESPACE_ID::int64 vals(int index) const; + void set_vals(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_vals(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& + vals() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* + mutable_vals(); + + // @@protoc_insertion_point(class_scope:flwr.proto.Value.Sint64List) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > vals_; + mutable std::atomic _vals_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class Value_BoolList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Value.BoolList) */ { + public: + inline Value_BoolList() : Value_BoolList(nullptr) {} + ~Value_BoolList() override; + explicit constexpr Value_BoolList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Value_BoolList(const Value_BoolList& from); + Value_BoolList(Value_BoolList&& from) noexcept + : Value_BoolList() { + *this = ::std::move(from); + } + + inline Value_BoolList& operator=(const Value_BoolList& from) { + CopyFrom(from); + return *this; + } + inline Value_BoolList& operator=(Value_BoolList&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Value_BoolList& default_instance() { + return *internal_default_instance(); + } + static inline const Value_BoolList* internal_default_instance() { + return reinterpret_cast( + &_Value_BoolList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(Value_BoolList& a, Value_BoolList& b) { + a.Swap(&b); + } + inline void Swap(Value_BoolList* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Value_BoolList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Value_BoolList* New() const final { + return new Value_BoolList(); + } + + Value_BoolList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Value_BoolList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Value_BoolList& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Value_BoolList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Value.BoolList"; + } + protected: + explicit Value_BoolList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kValsFieldNumber = 1, + }; + // repeated bool vals = 1; + int vals_size() const; + private: + int _internal_vals_size() const; + public: + void clear_vals(); + private: + bool _internal_vals(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& + _internal_vals() const; + void _internal_add_vals(bool value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* + _internal_mutable_vals(); + public: + bool vals(int index) const; + void set_vals(int index, bool value); + void add_vals(bool value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& + vals() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* + mutable_vals(); + + // @@protoc_insertion_point(class_scope:flwr.proto.Value.BoolList) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool > vals_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class Value_StringList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Value.StringList) */ { + public: + inline Value_StringList() : Value_StringList(nullptr) {} + ~Value_StringList() override; + explicit constexpr Value_StringList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Value_StringList(const Value_StringList& from); + Value_StringList(Value_StringList&& from) noexcept + : Value_StringList() { + *this = ::std::move(from); + } + + inline Value_StringList& operator=(const Value_StringList& from) { + CopyFrom(from); + return *this; + } + inline Value_StringList& operator=(Value_StringList&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Value_StringList& default_instance() { + return *internal_default_instance(); + } + static inline const Value_StringList* internal_default_instance() { + return reinterpret_cast( + &_Value_StringList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(Value_StringList& a, Value_StringList& b) { + a.Swap(&b); + } + inline void Swap(Value_StringList* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Value_StringList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Value_StringList* New() const final { + return new Value_StringList(); + } + + Value_StringList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Value_StringList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Value_StringList& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Value_StringList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Value.StringList"; + } + protected: + explicit Value_StringList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kValsFieldNumber = 1, + }; + // repeated string vals = 1; + int vals_size() const; + private: + int _internal_vals_size() const; + public: + void clear_vals(); + const std::string& vals(int index) const; + std::string* mutable_vals(int index); + void set_vals(int index, const std::string& value); + void set_vals(int index, std::string&& value); + void set_vals(int index, const char* value); + void set_vals(int index, const char* value, size_t size); + std::string* add_vals(); + void add_vals(const std::string& value); + void add_vals(std::string&& value); + void add_vals(const char* value); + void add_vals(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& vals() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_vals(); + private: + const std::string& _internal_vals(int index) const; + std::string* _internal_add_vals(); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.Value.StringList) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField vals_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class Value_BytesList final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Value.BytesList) */ { + public: + inline Value_BytesList() : Value_BytesList(nullptr) {} + ~Value_BytesList() override; + explicit constexpr Value_BytesList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Value_BytesList(const Value_BytesList& from); + Value_BytesList(Value_BytesList&& from) noexcept + : Value_BytesList() { + *this = ::std::move(from); + } + + inline Value_BytesList& operator=(const Value_BytesList& from) { + CopyFrom(from); + return *this; + } + inline Value_BytesList& operator=(Value_BytesList&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Value_BytesList& default_instance() { + return *internal_default_instance(); + } + static inline const Value_BytesList* internal_default_instance() { + return reinterpret_cast( + &_Value_BytesList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(Value_BytesList& a, Value_BytesList& b) { + a.Swap(&b); + } + inline void Swap(Value_BytesList* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Value_BytesList* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Value_BytesList* New() const final { + return new Value_BytesList(); + } + + Value_BytesList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Value_BytesList& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Value_BytesList& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Value_BytesList* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Value.BytesList"; + } + protected: + explicit Value_BytesList(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kValsFieldNumber = 1, + }; + // repeated bytes vals = 1; + int vals_size() const; + private: + int _internal_vals_size() const; + public: + void clear_vals(); + const std::string& vals(int index) const; + std::string* mutable_vals(int index); + void set_vals(int index, const std::string& value); + void set_vals(int index, std::string&& value); + void set_vals(int index, const char* value); + void set_vals(int index, const void* value, size_t size); + std::string* add_vals(); + void add_vals(const std::string& value); + void add_vals(std::string&& value); + void add_vals(const char* value); + void add_vals(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& vals() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_vals(); + private: + const std::string& _internal_vals(int index) const; + std::string* _internal_add_vals(); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.Value.BytesList) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField vals_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class Value final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Value) */ { + public: + inline Value() : Value(nullptr) {} + ~Value() override; + explicit constexpr Value(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Value(const Value& from); + Value(Value&& from) noexcept + : Value() { + *this = ::std::move(from); + } + + inline Value& operator=(const Value& from) { + CopyFrom(from); + return *this; + } + inline Value& operator=(Value&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Value& default_instance() { + return *internal_default_instance(); + } + enum ValueCase { + kDouble = 1, + kSint64 = 2, + kBool = 3, + kString = 4, + kBytes = 5, + kDoubleList = 21, + kSint64List = 22, + kBoolList = 23, + kStringList = 24, + kBytesList = 25, + VALUE_NOT_SET = 0, + }; + + static inline const Value* internal_default_instance() { + return reinterpret_cast( + &_Value_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(Value& a, Value& b) { + a.Swap(&b); + } + inline void Swap(Value* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Value* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Value* New() const final { + return new Value(); + } + + Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Value& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Value& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Value* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Value"; + } + protected: + explicit Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Value_DoubleList DoubleList; + typedef Value_Sint64List Sint64List; + typedef Value_BoolList BoolList; + typedef Value_StringList StringList; + typedef Value_BytesList BytesList; + + // accessors ------------------------------------------------------- + + enum : int { + kDoubleFieldNumber = 1, + kSint64FieldNumber = 2, + kBoolFieldNumber = 3, + kStringFieldNumber = 4, + kBytesFieldNumber = 5, + kDoubleListFieldNumber = 21, + kSint64ListFieldNumber = 22, + kBoolListFieldNumber = 23, + kStringListFieldNumber = 24, + kBytesListFieldNumber = 25, + }; + // double double = 1; + bool has_double_() const; + private: + bool _internal_has_double_() const; + public: + void clear_double_(); + double double_() const; + void set_double_(double value); + private: + double _internal_double_() const; + void _internal_set_double_(double value); + public: + + // sint64 sint64 = 2; + bool has_sint64() const; + private: + bool _internal_has_sint64() const; + public: + void clear_sint64(); + ::PROTOBUF_NAMESPACE_ID::int64 sint64() const; + void set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_sint64() const; + void _internal_set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // bool bool = 3; + bool has_bool_() const; + private: + bool _internal_has_bool_() const; + public: + void clear_bool_(); + bool bool_() const; + void set_bool_(bool value); + private: + bool _internal_bool_() const; + void _internal_set_bool_(bool value); + public: + + // string string = 4; + bool has_string() const; + private: + bool _internal_has_string() const; + public: + void clear_string(); + const std::string& string() const; + template + void set_string(ArgT0&& arg0, ArgT... args); + std::string* mutable_string(); + PROTOBUF_MUST_USE_RESULT std::string* release_string(); + void set_allocated_string(std::string* string); + private: + const std::string& _internal_string() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string(const std::string& value); + std::string* _internal_mutable_string(); + public: + + // bytes bytes = 5; + bool has_bytes() const; + private: + bool _internal_has_bytes() const; + public: + void clear_bytes(); + const std::string& bytes() const; + template + void set_bytes(ArgT0&& arg0, ArgT... args); + std::string* mutable_bytes(); + PROTOBUF_MUST_USE_RESULT std::string* release_bytes(); + void set_allocated_bytes(std::string* bytes); + private: + const std::string& _internal_bytes() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes(const std::string& value); + std::string* _internal_mutable_bytes(); + public: + + // .flwr.proto.Value.DoubleList double_list = 21; + bool has_double_list() const; + private: + bool _internal_has_double_list() const; + public: + void clear_double_list(); + const ::flwr::proto::Value_DoubleList& double_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Value_DoubleList* release_double_list(); + ::flwr::proto::Value_DoubleList* mutable_double_list(); + void set_allocated_double_list(::flwr::proto::Value_DoubleList* double_list); + private: + const ::flwr::proto::Value_DoubleList& _internal_double_list() const; + ::flwr::proto::Value_DoubleList* _internal_mutable_double_list(); + public: + void unsafe_arena_set_allocated_double_list( + ::flwr::proto::Value_DoubleList* double_list); + ::flwr::proto::Value_DoubleList* unsafe_arena_release_double_list(); + + // .flwr.proto.Value.Sint64List sint64_list = 22; + bool has_sint64_list() const; + private: + bool _internal_has_sint64_list() const; + public: + void clear_sint64_list(); + const ::flwr::proto::Value_Sint64List& sint64_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Value_Sint64List* release_sint64_list(); + ::flwr::proto::Value_Sint64List* mutable_sint64_list(); + void set_allocated_sint64_list(::flwr::proto::Value_Sint64List* sint64_list); + private: + const ::flwr::proto::Value_Sint64List& _internal_sint64_list() const; + ::flwr::proto::Value_Sint64List* _internal_mutable_sint64_list(); + public: + void unsafe_arena_set_allocated_sint64_list( + ::flwr::proto::Value_Sint64List* sint64_list); + ::flwr::proto::Value_Sint64List* unsafe_arena_release_sint64_list(); + + // .flwr.proto.Value.BoolList bool_list = 23; + bool has_bool_list() const; + private: + bool _internal_has_bool_list() const; + public: + void clear_bool_list(); + const ::flwr::proto::Value_BoolList& bool_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Value_BoolList* release_bool_list(); + ::flwr::proto::Value_BoolList* mutable_bool_list(); + void set_allocated_bool_list(::flwr::proto::Value_BoolList* bool_list); + private: + const ::flwr::proto::Value_BoolList& _internal_bool_list() const; + ::flwr::proto::Value_BoolList* _internal_mutable_bool_list(); + public: + void unsafe_arena_set_allocated_bool_list( + ::flwr::proto::Value_BoolList* bool_list); + ::flwr::proto::Value_BoolList* unsafe_arena_release_bool_list(); + + // .flwr.proto.Value.StringList string_list = 24; + bool has_string_list() const; + private: + bool _internal_has_string_list() const; + public: + void clear_string_list(); + const ::flwr::proto::Value_StringList& string_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Value_StringList* release_string_list(); + ::flwr::proto::Value_StringList* mutable_string_list(); + void set_allocated_string_list(::flwr::proto::Value_StringList* string_list); + private: + const ::flwr::proto::Value_StringList& _internal_string_list() const; + ::flwr::proto::Value_StringList* _internal_mutable_string_list(); + public: + void unsafe_arena_set_allocated_string_list( + ::flwr::proto::Value_StringList* string_list); + ::flwr::proto::Value_StringList* unsafe_arena_release_string_list(); + + // .flwr.proto.Value.BytesList bytes_list = 25; + bool has_bytes_list() const; + private: + bool _internal_has_bytes_list() const; + public: + void clear_bytes_list(); + const ::flwr::proto::Value_BytesList& bytes_list() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Value_BytesList* release_bytes_list(); + ::flwr::proto::Value_BytesList* mutable_bytes_list(); + void set_allocated_bytes_list(::flwr::proto::Value_BytesList* bytes_list); + private: + const ::flwr::proto::Value_BytesList& _internal_bytes_list() const; + ::flwr::proto::Value_BytesList* _internal_mutable_bytes_list(); + public: + void unsafe_arena_set_allocated_bytes_list( + ::flwr::proto::Value_BytesList* bytes_list); + ::flwr::proto::Value_BytesList* unsafe_arena_release_bytes_list(); + + void clear_value(); + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flwr.proto.Value) + private: + class _Internal; + void set_has_double_(); + void set_has_sint64(); + void set_has_bool_(); + void set_has_string(); + void set_has_bytes(); + void set_has_double_list(); + void set_has_sint64_list(); + void set_has_bool_list(); + void set_has_string_list(); + void set_has_bytes_list(); + + inline bool has_value() const; + inline void clear_has_value(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union ValueUnion { + constexpr ValueUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + double double__; + ::PROTOBUF_NAMESPACE_ID::int64 sint64_; + bool bool__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_; + ::flwr::proto::Value_DoubleList* double_list_; + ::flwr::proto::Value_Sint64List* sint64_list_; + ::flwr::proto::Value_BoolList* bool_list_; + ::flwr::proto::Value_StringList* string_list_; + ::flwr::proto::Value_BytesList* bytes_list_; + } value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flwr_2fproto_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class SecureAggregation_NamedValuesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + SecureAggregation_NamedValuesEntry_DoNotUse(); + explicit constexpr SecureAggregation_NamedValuesEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit SecureAggregation_NamedValuesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const SecureAggregation_NamedValuesEntry_DoNotUse& other); + static const SecureAggregation_NamedValuesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SecureAggregation_NamedValuesEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "flwr.proto.SecureAggregation.NamedValuesEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class SecureAggregation final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.SecureAggregation) */ { + public: + inline SecureAggregation() : SecureAggregation(nullptr) {} + ~SecureAggregation() override; + explicit constexpr SecureAggregation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SecureAggregation(const SecureAggregation& from); + SecureAggregation(SecureAggregation&& from) noexcept + : SecureAggregation() { + *this = ::std::move(from); + } + + inline SecureAggregation& operator=(const SecureAggregation& from) { + CopyFrom(from); + return *this; + } + inline SecureAggregation& operator=(SecureAggregation&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SecureAggregation& default_instance() { + return *internal_default_instance(); + } + static inline const SecureAggregation* internal_default_instance() { + return reinterpret_cast( + &_SecureAggregation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(SecureAggregation& a, SecureAggregation& b) { + a.Swap(&b); + } + inline void Swap(SecureAggregation* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SecureAggregation* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SecureAggregation* New() const final { + return new SecureAggregation(); + } + + SecureAggregation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SecureAggregation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SecureAggregation& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SecureAggregation* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.SecureAggregation"; + } + protected: + explicit SecureAggregation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + enum : int { + kNamedValuesFieldNumber = 1, + }; + // map named_values = 1; + int named_values_size() const; + private: + int _internal_named_values_size() const; + public: + void clear_named_values(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >& + _internal_named_values() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >* + _internal_mutable_named_values(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >& + named_values() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >* + mutable_named_values(); + + // @@protoc_insertion_point(class_scope:flwr.proto.SecureAggregation) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + SecureAggregation_NamedValuesEntry_DoNotUse, + std::string, ::flwr::proto::Value, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> named_values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftask_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Task + +// .flwr.proto.Node producer = 1; +inline bool Task::_internal_has_producer() const { + return this != internal_default_instance() && producer_ != nullptr; +} +inline bool Task::has_producer() const { + return _internal_has_producer(); +} +inline const ::flwr::proto::Node& Task::_internal_producer() const { + const ::flwr::proto::Node* p = producer_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Node_default_instance_); +} +inline const ::flwr::proto::Node& Task::producer() const { + // @@protoc_insertion_point(field_get:flwr.proto.Task.producer) + return _internal_producer(); +} +inline void Task::unsafe_arena_set_allocated_producer( + ::flwr::proto::Node* producer) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(producer_); + } + producer_ = producer; + if (producer) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Task.producer) +} +inline ::flwr::proto::Node* Task::release_producer() { + + ::flwr::proto::Node* temp = producer_; + producer_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Node* Task::unsafe_arena_release_producer() { + // @@protoc_insertion_point(field_release:flwr.proto.Task.producer) + + ::flwr::proto::Node* temp = producer_; + producer_ = nullptr; + return temp; +} +inline ::flwr::proto::Node* Task::_internal_mutable_producer() { + + if (producer_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + producer_ = p; + } + return producer_; +} +inline ::flwr::proto::Node* Task::mutable_producer() { + ::flwr::proto::Node* _msg = _internal_mutable_producer(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Task.producer) + return _msg; +} +inline void Task::set_allocated_producer(::flwr::proto::Node* producer) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(producer_); + } + if (producer) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(producer)); + if (message_arena != submessage_arena) { + producer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, producer, submessage_arena); + } + + } else { + + } + producer_ = producer; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Task.producer) +} + +// .flwr.proto.Node consumer = 2; +inline bool Task::_internal_has_consumer() const { + return this != internal_default_instance() && consumer_ != nullptr; +} +inline bool Task::has_consumer() const { + return _internal_has_consumer(); +} +inline const ::flwr::proto::Node& Task::_internal_consumer() const { + const ::flwr::proto::Node* p = consumer_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Node_default_instance_); +} +inline const ::flwr::proto::Node& Task::consumer() const { + // @@protoc_insertion_point(field_get:flwr.proto.Task.consumer) + return _internal_consumer(); +} +inline void Task::unsafe_arena_set_allocated_consumer( + ::flwr::proto::Node* consumer) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(consumer_); + } + consumer_ = consumer; + if (consumer) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Task.consumer) +} +inline ::flwr::proto::Node* Task::release_consumer() { + + ::flwr::proto::Node* temp = consumer_; + consumer_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Node* Task::unsafe_arena_release_consumer() { + // @@protoc_insertion_point(field_release:flwr.proto.Task.consumer) + + ::flwr::proto::Node* temp = consumer_; + consumer_ = nullptr; + return temp; +} +inline ::flwr::proto::Node* Task::_internal_mutable_consumer() { + + if (consumer_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Node>(GetArenaForAllocation()); + consumer_ = p; + } + return consumer_; +} +inline ::flwr::proto::Node* Task::mutable_consumer() { + ::flwr::proto::Node* _msg = _internal_mutable_consumer(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Task.consumer) + return _msg; +} +inline void Task::set_allocated_consumer(::flwr::proto::Node* consumer) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(consumer_); + } + if (consumer) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(consumer)); + if (message_arena != submessage_arena) { + consumer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, consumer, submessage_arena); + } + + } else { + + } + consumer_ = consumer; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Task.consumer) +} + +// string created_at = 3; +inline void Task::clear_created_at() { + created_at_.ClearToEmpty(); +} +inline const std::string& Task::created_at() const { + // @@protoc_insertion_point(field_get:flwr.proto.Task.created_at) + return _internal_created_at(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Task::set_created_at(ArgT0&& arg0, ArgT... args) { + + created_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Task.created_at) +} +inline std::string* Task::mutable_created_at() { + std::string* _s = _internal_mutable_created_at(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Task.created_at) + return _s; +} +inline const std::string& Task::_internal_created_at() const { + return created_at_.Get(); +} +inline void Task::_internal_set_created_at(const std::string& value) { + + created_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Task::_internal_mutable_created_at() { + + return created_at_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Task::release_created_at() { + // @@protoc_insertion_point(field_release:flwr.proto.Task.created_at) + return created_at_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Task::set_allocated_created_at(std::string* created_at) { + if (created_at != nullptr) { + + } else { + + } + created_at_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), created_at, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Task.created_at) +} + +// string delivered_at = 4; +inline void Task::clear_delivered_at() { + delivered_at_.ClearToEmpty(); +} +inline const std::string& Task::delivered_at() const { + // @@protoc_insertion_point(field_get:flwr.proto.Task.delivered_at) + return _internal_delivered_at(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Task::set_delivered_at(ArgT0&& arg0, ArgT... args) { + + delivered_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Task.delivered_at) +} +inline std::string* Task::mutable_delivered_at() { + std::string* _s = _internal_mutable_delivered_at(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Task.delivered_at) + return _s; +} +inline const std::string& Task::_internal_delivered_at() const { + return delivered_at_.Get(); +} +inline void Task::_internal_set_delivered_at(const std::string& value) { + + delivered_at_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Task::_internal_mutable_delivered_at() { + + return delivered_at_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Task::release_delivered_at() { + // @@protoc_insertion_point(field_release:flwr.proto.Task.delivered_at) + return delivered_at_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Task::set_allocated_delivered_at(std::string* delivered_at) { + if (delivered_at != nullptr) { + + } else { + + } + delivered_at_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), delivered_at, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Task.delivered_at) +} + +// string ttl = 5; +inline void Task::clear_ttl() { + ttl_.ClearToEmpty(); +} +inline const std::string& Task::ttl() const { + // @@protoc_insertion_point(field_get:flwr.proto.Task.ttl) + return _internal_ttl(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Task::set_ttl(ArgT0&& arg0, ArgT... args) { + + ttl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Task.ttl) +} +inline std::string* Task::mutable_ttl() { + std::string* _s = _internal_mutable_ttl(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Task.ttl) + return _s; +} +inline const std::string& Task::_internal_ttl() const { + return ttl_.Get(); +} +inline void Task::_internal_set_ttl(const std::string& value) { + + ttl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Task::_internal_mutable_ttl() { + + return ttl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Task::release_ttl() { + // @@protoc_insertion_point(field_release:flwr.proto.Task.ttl) + return ttl_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Task::set_allocated_ttl(std::string* ttl) { + if (ttl != nullptr) { + + } else { + + } + ttl_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ttl, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Task.ttl) +} + +// repeated string ancestry = 6; +inline int Task::_internal_ancestry_size() const { + return ancestry_.size(); +} +inline int Task::ancestry_size() const { + return _internal_ancestry_size(); +} +inline void Task::clear_ancestry() { + ancestry_.Clear(); +} +inline std::string* Task::add_ancestry() { + std::string* _s = _internal_add_ancestry(); + // @@protoc_insertion_point(field_add_mutable:flwr.proto.Task.ancestry) + return _s; +} +inline const std::string& Task::_internal_ancestry(int index) const { + return ancestry_.Get(index); +} +inline const std::string& Task::ancestry(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.Task.ancestry) + return _internal_ancestry(index); +} +inline std::string* Task::mutable_ancestry(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.Task.ancestry) + return ancestry_.Mutable(index); +} +inline void Task::set_ancestry(int index, const std::string& value) { + ancestry_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:flwr.proto.Task.ancestry) +} +inline void Task::set_ancestry(int index, std::string&& value) { + ancestry_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:flwr.proto.Task.ancestry) +} +inline void Task::set_ancestry(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + ancestry_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flwr.proto.Task.ancestry) +} +inline void Task::set_ancestry(int index, const char* value, size_t size) { + ancestry_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flwr.proto.Task.ancestry) +} +inline std::string* Task::_internal_add_ancestry() { + return ancestry_.Add(); +} +inline void Task::add_ancestry(const std::string& value) { + ancestry_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flwr.proto.Task.ancestry) +} +inline void Task::add_ancestry(std::string&& value) { + ancestry_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flwr.proto.Task.ancestry) +} +inline void Task::add_ancestry(const char* value) { + GOOGLE_DCHECK(value != nullptr); + ancestry_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flwr.proto.Task.ancestry) +} +inline void Task::add_ancestry(const char* value, size_t size) { + ancestry_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flwr.proto.Task.ancestry) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Task::ancestry() const { + // @@protoc_insertion_point(field_list:flwr.proto.Task.ancestry) + return ancestry_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Task::mutable_ancestry() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.Task.ancestry) + return &ancestry_; +} + +// .flwr.proto.SecureAggregation sa = 7; +inline bool Task::_internal_has_sa() const { + return this != internal_default_instance() && sa_ != nullptr; +} +inline bool Task::has_sa() const { + return _internal_has_sa(); +} +inline void Task::clear_sa() { + if (GetArenaForAllocation() == nullptr && sa_ != nullptr) { + delete sa_; + } + sa_ = nullptr; +} +inline const ::flwr::proto::SecureAggregation& Task::_internal_sa() const { + const ::flwr::proto::SecureAggregation* p = sa_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_SecureAggregation_default_instance_); +} +inline const ::flwr::proto::SecureAggregation& Task::sa() const { + // @@protoc_insertion_point(field_get:flwr.proto.Task.sa) + return _internal_sa(); +} +inline void Task::unsafe_arena_set_allocated_sa( + ::flwr::proto::SecureAggregation* sa) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sa_); + } + sa_ = sa; + if (sa) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Task.sa) +} +inline ::flwr::proto::SecureAggregation* Task::release_sa() { + + ::flwr::proto::SecureAggregation* temp = sa_; + sa_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::SecureAggregation* Task::unsafe_arena_release_sa() { + // @@protoc_insertion_point(field_release:flwr.proto.Task.sa) + + ::flwr::proto::SecureAggregation* temp = sa_; + sa_ = nullptr; + return temp; +} +inline ::flwr::proto::SecureAggregation* Task::_internal_mutable_sa() { + + if (sa_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::SecureAggregation>(GetArenaForAllocation()); + sa_ = p; + } + return sa_; +} +inline ::flwr::proto::SecureAggregation* Task::mutable_sa() { + ::flwr::proto::SecureAggregation* _msg = _internal_mutable_sa(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Task.sa) + return _msg; +} +inline void Task::set_allocated_sa(::flwr::proto::SecureAggregation* sa) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete sa_; + } + if (sa) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::SecureAggregation>::GetOwningArena(sa); + if (message_arena != submessage_arena) { + sa = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sa, submessage_arena); + } + + } else { + + } + sa_ = sa; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Task.sa) +} + +// .flwr.proto.ServerMessage legacy_server_message = 101 [deprecated = true]; +inline bool Task::_internal_has_legacy_server_message() const { + return this != internal_default_instance() && legacy_server_message_ != nullptr; +} +inline bool Task::has_legacy_server_message() const { + return _internal_has_legacy_server_message(); +} +inline const ::flwr::proto::ServerMessage& Task::_internal_legacy_server_message() const { + const ::flwr::proto::ServerMessage* p = legacy_server_message_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_ServerMessage_default_instance_); +} +inline const ::flwr::proto::ServerMessage& Task::legacy_server_message() const { + // @@protoc_insertion_point(field_get:flwr.proto.Task.legacy_server_message) + return _internal_legacy_server_message(); +} +inline void Task::unsafe_arena_set_allocated_legacy_server_message( + ::flwr::proto::ServerMessage* legacy_server_message) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(legacy_server_message_); + } + legacy_server_message_ = legacy_server_message; + if (legacy_server_message) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Task.legacy_server_message) +} +inline ::flwr::proto::ServerMessage* Task::release_legacy_server_message() { + + ::flwr::proto::ServerMessage* temp = legacy_server_message_; + legacy_server_message_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::ServerMessage* Task::unsafe_arena_release_legacy_server_message() { + // @@protoc_insertion_point(field_release:flwr.proto.Task.legacy_server_message) + + ::flwr::proto::ServerMessage* temp = legacy_server_message_; + legacy_server_message_ = nullptr; + return temp; +} +inline ::flwr::proto::ServerMessage* Task::_internal_mutable_legacy_server_message() { + + if (legacy_server_message_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::ServerMessage>(GetArenaForAllocation()); + legacy_server_message_ = p; + } + return legacy_server_message_; +} +inline ::flwr::proto::ServerMessage* Task::mutable_legacy_server_message() { + ::flwr::proto::ServerMessage* _msg = _internal_mutable_legacy_server_message(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Task.legacy_server_message) + return _msg; +} +inline void Task::set_allocated_legacy_server_message(::flwr::proto::ServerMessage* legacy_server_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(legacy_server_message_); + } + if (legacy_server_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(legacy_server_message)); + if (message_arena != submessage_arena) { + legacy_server_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, legacy_server_message, submessage_arena); + } + + } else { + + } + legacy_server_message_ = legacy_server_message; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Task.legacy_server_message) +} + +// .flwr.proto.ClientMessage legacy_client_message = 102 [deprecated = true]; +inline bool Task::_internal_has_legacy_client_message() const { + return this != internal_default_instance() && legacy_client_message_ != nullptr; +} +inline bool Task::has_legacy_client_message() const { + return _internal_has_legacy_client_message(); +} +inline const ::flwr::proto::ClientMessage& Task::_internal_legacy_client_message() const { + const ::flwr::proto::ClientMessage* p = legacy_client_message_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_ClientMessage_default_instance_); +} +inline const ::flwr::proto::ClientMessage& Task::legacy_client_message() const { + // @@protoc_insertion_point(field_get:flwr.proto.Task.legacy_client_message) + return _internal_legacy_client_message(); +} +inline void Task::unsafe_arena_set_allocated_legacy_client_message( + ::flwr::proto::ClientMessage* legacy_client_message) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(legacy_client_message_); + } + legacy_client_message_ = legacy_client_message; + if (legacy_client_message) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Task.legacy_client_message) +} +inline ::flwr::proto::ClientMessage* Task::release_legacy_client_message() { + + ::flwr::proto::ClientMessage* temp = legacy_client_message_; + legacy_client_message_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::ClientMessage* Task::unsafe_arena_release_legacy_client_message() { + // @@protoc_insertion_point(field_release:flwr.proto.Task.legacy_client_message) + + ::flwr::proto::ClientMessage* temp = legacy_client_message_; + legacy_client_message_ = nullptr; + return temp; +} +inline ::flwr::proto::ClientMessage* Task::_internal_mutable_legacy_client_message() { + + if (legacy_client_message_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::ClientMessage>(GetArenaForAllocation()); + legacy_client_message_ = p; + } + return legacy_client_message_; +} +inline ::flwr::proto::ClientMessage* Task::mutable_legacy_client_message() { + ::flwr::proto::ClientMessage* _msg = _internal_mutable_legacy_client_message(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Task.legacy_client_message) + return _msg; +} +inline void Task::set_allocated_legacy_client_message(::flwr::proto::ClientMessage* legacy_client_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(legacy_client_message_); + } + if (legacy_client_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(legacy_client_message)); + if (message_arena != submessage_arena) { + legacy_client_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, legacy_client_message, submessage_arena); + } + + } else { + + } + legacy_client_message_ = legacy_client_message; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Task.legacy_client_message) +} + +// ------------------------------------------------------------------- + +// TaskIns + +// string task_id = 1; +inline void TaskIns::clear_task_id() { + task_id_.ClearToEmpty(); +} +inline const std::string& TaskIns::task_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.TaskIns.task_id) + return _internal_task_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TaskIns::set_task_id(ArgT0&& arg0, ArgT... args) { + + task_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.TaskIns.task_id) +} +inline std::string* TaskIns::mutable_task_id() { + std::string* _s = _internal_mutable_task_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.TaskIns.task_id) + return _s; +} +inline const std::string& TaskIns::_internal_task_id() const { + return task_id_.Get(); +} +inline void TaskIns::_internal_set_task_id(const std::string& value) { + + task_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* TaskIns::_internal_mutable_task_id() { + + return task_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* TaskIns::release_task_id() { + // @@protoc_insertion_point(field_release:flwr.proto.TaskIns.task_id) + return task_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void TaskIns::set_allocated_task_id(std::string* task_id) { + if (task_id != nullptr) { + + } else { + + } + task_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), task_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.TaskIns.task_id) +} + +// string group_id = 2; +inline void TaskIns::clear_group_id() { + group_id_.ClearToEmpty(); +} +inline const std::string& TaskIns::group_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.TaskIns.group_id) + return _internal_group_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TaskIns::set_group_id(ArgT0&& arg0, ArgT... args) { + + group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.TaskIns.group_id) +} +inline std::string* TaskIns::mutable_group_id() { + std::string* _s = _internal_mutable_group_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.TaskIns.group_id) + return _s; +} +inline const std::string& TaskIns::_internal_group_id() const { + return group_id_.Get(); +} +inline void TaskIns::_internal_set_group_id(const std::string& value) { + + group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* TaskIns::_internal_mutable_group_id() { + + return group_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* TaskIns::release_group_id() { + // @@protoc_insertion_point(field_release:flwr.proto.TaskIns.group_id) + return group_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void TaskIns::set_allocated_group_id(std::string* group_id) { + if (group_id != nullptr) { + + } else { + + } + group_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), group_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.TaskIns.group_id) +} + +// sint64 workload_id = 3; +inline void TaskIns::clear_workload_id() { + workload_id_ = int64_t{0}; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 TaskIns::_internal_workload_id() const { + return workload_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 TaskIns::workload_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.TaskIns.workload_id) + return _internal_workload_id(); +} +inline void TaskIns::_internal_set_workload_id(::PROTOBUF_NAMESPACE_ID::int64 value) { + + workload_id_ = value; +} +inline void TaskIns::set_workload_id(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_workload_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.TaskIns.workload_id) +} + +// .flwr.proto.Task task = 4; +inline bool TaskIns::_internal_has_task() const { + return this != internal_default_instance() && task_ != nullptr; +} +inline bool TaskIns::has_task() const { + return _internal_has_task(); +} +inline void TaskIns::clear_task() { + if (GetArenaForAllocation() == nullptr && task_ != nullptr) { + delete task_; + } + task_ = nullptr; +} +inline const ::flwr::proto::Task& TaskIns::_internal_task() const { + const ::flwr::proto::Task* p = task_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Task_default_instance_); +} +inline const ::flwr::proto::Task& TaskIns::task() const { + // @@protoc_insertion_point(field_get:flwr.proto.TaskIns.task) + return _internal_task(); +} +inline void TaskIns::unsafe_arena_set_allocated_task( + ::flwr::proto::Task* task) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(task_); + } + task_ = task; + if (task) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.TaskIns.task) +} +inline ::flwr::proto::Task* TaskIns::release_task() { + + ::flwr::proto::Task* temp = task_; + task_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Task* TaskIns::unsafe_arena_release_task() { + // @@protoc_insertion_point(field_release:flwr.proto.TaskIns.task) + + ::flwr::proto::Task* temp = task_; + task_ = nullptr; + return temp; +} +inline ::flwr::proto::Task* TaskIns::_internal_mutable_task() { + + if (task_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Task>(GetArenaForAllocation()); + task_ = p; + } + return task_; +} +inline ::flwr::proto::Task* TaskIns::mutable_task() { + ::flwr::proto::Task* _msg = _internal_mutable_task(); + // @@protoc_insertion_point(field_mutable:flwr.proto.TaskIns.task) + return _msg; +} +inline void TaskIns::set_allocated_task(::flwr::proto::Task* task) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete task_; + } + if (task) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Task>::GetOwningArena(task); + if (message_arena != submessage_arena) { + task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, task, submessage_arena); + } + + } else { + + } + task_ = task; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.TaskIns.task) +} + +// ------------------------------------------------------------------- + +// TaskRes + +// string task_id = 1; +inline void TaskRes::clear_task_id() { + task_id_.ClearToEmpty(); +} +inline const std::string& TaskRes::task_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.TaskRes.task_id) + return _internal_task_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TaskRes::set_task_id(ArgT0&& arg0, ArgT... args) { + + task_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.TaskRes.task_id) +} +inline std::string* TaskRes::mutable_task_id() { + std::string* _s = _internal_mutable_task_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.TaskRes.task_id) + return _s; +} +inline const std::string& TaskRes::_internal_task_id() const { + return task_id_.Get(); +} +inline void TaskRes::_internal_set_task_id(const std::string& value) { + + task_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* TaskRes::_internal_mutable_task_id() { + + return task_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* TaskRes::release_task_id() { + // @@protoc_insertion_point(field_release:flwr.proto.TaskRes.task_id) + return task_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void TaskRes::set_allocated_task_id(std::string* task_id) { + if (task_id != nullptr) { + + } else { + + } + task_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), task_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.TaskRes.task_id) +} + +// string group_id = 2; +inline void TaskRes::clear_group_id() { + group_id_.ClearToEmpty(); +} +inline const std::string& TaskRes::group_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.TaskRes.group_id) + return _internal_group_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TaskRes::set_group_id(ArgT0&& arg0, ArgT... args) { + + group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.TaskRes.group_id) +} +inline std::string* TaskRes::mutable_group_id() { + std::string* _s = _internal_mutable_group_id(); + // @@protoc_insertion_point(field_mutable:flwr.proto.TaskRes.group_id) + return _s; +} +inline const std::string& TaskRes::_internal_group_id() const { + return group_id_.Get(); +} +inline void TaskRes::_internal_set_group_id(const std::string& value) { + + group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* TaskRes::_internal_mutable_group_id() { + + return group_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* TaskRes::release_group_id() { + // @@protoc_insertion_point(field_release:flwr.proto.TaskRes.group_id) + return group_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void TaskRes::set_allocated_group_id(std::string* group_id) { + if (group_id != nullptr) { + + } else { + + } + group_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), group_id, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.TaskRes.group_id) +} + +// sint64 workload_id = 3; +inline void TaskRes::clear_workload_id() { + workload_id_ = int64_t{0}; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 TaskRes::_internal_workload_id() const { + return workload_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 TaskRes::workload_id() const { + // @@protoc_insertion_point(field_get:flwr.proto.TaskRes.workload_id) + return _internal_workload_id(); +} +inline void TaskRes::_internal_set_workload_id(::PROTOBUF_NAMESPACE_ID::int64 value) { + + workload_id_ = value; +} +inline void TaskRes::set_workload_id(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_workload_id(value); + // @@protoc_insertion_point(field_set:flwr.proto.TaskRes.workload_id) +} + +// .flwr.proto.Task task = 4; +inline bool TaskRes::_internal_has_task() const { + return this != internal_default_instance() && task_ != nullptr; +} +inline bool TaskRes::has_task() const { + return _internal_has_task(); +} +inline void TaskRes::clear_task() { + if (GetArenaForAllocation() == nullptr && task_ != nullptr) { + delete task_; + } + task_ = nullptr; +} +inline const ::flwr::proto::Task& TaskRes::_internal_task() const { + const ::flwr::proto::Task* p = task_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Task_default_instance_); +} +inline const ::flwr::proto::Task& TaskRes::task() const { + // @@protoc_insertion_point(field_get:flwr.proto.TaskRes.task) + return _internal_task(); +} +inline void TaskRes::unsafe_arena_set_allocated_task( + ::flwr::proto::Task* task) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(task_); + } + task_ = task; + if (task) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.TaskRes.task) +} +inline ::flwr::proto::Task* TaskRes::release_task() { + + ::flwr::proto::Task* temp = task_; + task_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Task* TaskRes::unsafe_arena_release_task() { + // @@protoc_insertion_point(field_release:flwr.proto.TaskRes.task) + + ::flwr::proto::Task* temp = task_; + task_ = nullptr; + return temp; +} +inline ::flwr::proto::Task* TaskRes::_internal_mutable_task() { + + if (task_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Task>(GetArenaForAllocation()); + task_ = p; + } + return task_; +} +inline ::flwr::proto::Task* TaskRes::mutable_task() { + ::flwr::proto::Task* _msg = _internal_mutable_task(); + // @@protoc_insertion_point(field_mutable:flwr.proto.TaskRes.task) + return _msg; +} +inline void TaskRes::set_allocated_task(::flwr::proto::Task* task) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete task_; + } + if (task) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Task>::GetOwningArena(task); + if (message_arena != submessage_arena) { + task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, task, submessage_arena); + } + + } else { + + } + task_ = task; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.TaskRes.task) +} + +// ------------------------------------------------------------------- + +// Value_DoubleList + +// repeated double vals = 1; +inline int Value_DoubleList::_internal_vals_size() const { + return vals_.size(); +} +inline int Value_DoubleList::vals_size() const { + return _internal_vals_size(); +} +inline void Value_DoubleList::clear_vals() { + vals_.Clear(); +} +inline double Value_DoubleList::_internal_vals(int index) const { + return vals_.Get(index); +} +inline double Value_DoubleList::vals(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.DoubleList.vals) + return _internal_vals(index); +} +inline void Value_DoubleList::set_vals(int index, double value) { + vals_.Set(index, value); + // @@protoc_insertion_point(field_set:flwr.proto.Value.DoubleList.vals) +} +inline void Value_DoubleList::_internal_add_vals(double value) { + vals_.Add(value); +} +inline void Value_DoubleList::add_vals(double value) { + _internal_add_vals(value); + // @@protoc_insertion_point(field_add:flwr.proto.Value.DoubleList.vals) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +Value_DoubleList::_internal_vals() const { + return vals_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& +Value_DoubleList::vals() const { + // @@protoc_insertion_point(field_list:flwr.proto.Value.DoubleList.vals) + return _internal_vals(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +Value_DoubleList::_internal_mutable_vals() { + return &vals_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* +Value_DoubleList::mutable_vals() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.Value.DoubleList.vals) + return _internal_mutable_vals(); +} + +// ------------------------------------------------------------------- + +// Value_Sint64List + +// repeated sint64 vals = 1; +inline int Value_Sint64List::_internal_vals_size() const { + return vals_.size(); +} +inline int Value_Sint64List::vals_size() const { + return _internal_vals_size(); +} +inline void Value_Sint64List::clear_vals() { + vals_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Value_Sint64List::_internal_vals(int index) const { + return vals_.Get(index); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Value_Sint64List::vals(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.Sint64List.vals) + return _internal_vals(index); +} +inline void Value_Sint64List::set_vals(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { + vals_.Set(index, value); + // @@protoc_insertion_point(field_set:flwr.proto.Value.Sint64List.vals) +} +inline void Value_Sint64List::_internal_add_vals(::PROTOBUF_NAMESPACE_ID::int64 value) { + vals_.Add(value); +} +inline void Value_Sint64List::add_vals(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_add_vals(value); + // @@protoc_insertion_point(field_add:flwr.proto.Value.Sint64List.vals) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& +Value_Sint64List::_internal_vals() const { + return vals_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& +Value_Sint64List::vals() const { + // @@protoc_insertion_point(field_list:flwr.proto.Value.Sint64List.vals) + return _internal_vals(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* +Value_Sint64List::_internal_mutable_vals() { + return &vals_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* +Value_Sint64List::mutable_vals() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.Value.Sint64List.vals) + return _internal_mutable_vals(); +} + +// ------------------------------------------------------------------- + +// Value_BoolList + +// repeated bool vals = 1; +inline int Value_BoolList::_internal_vals_size() const { + return vals_.size(); +} +inline int Value_BoolList::vals_size() const { + return _internal_vals_size(); +} +inline void Value_BoolList::clear_vals() { + vals_.Clear(); +} +inline bool Value_BoolList::_internal_vals(int index) const { + return vals_.Get(index); +} +inline bool Value_BoolList::vals(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.BoolList.vals) + return _internal_vals(index); +} +inline void Value_BoolList::set_vals(int index, bool value) { + vals_.Set(index, value); + // @@protoc_insertion_point(field_set:flwr.proto.Value.BoolList.vals) +} +inline void Value_BoolList::_internal_add_vals(bool value) { + vals_.Add(value); +} +inline void Value_BoolList::add_vals(bool value) { + _internal_add_vals(value); + // @@protoc_insertion_point(field_add:flwr.proto.Value.BoolList.vals) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& +Value_BoolList::_internal_vals() const { + return vals_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& +Value_BoolList::vals() const { + // @@protoc_insertion_point(field_list:flwr.proto.Value.BoolList.vals) + return _internal_vals(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* +Value_BoolList::_internal_mutable_vals() { + return &vals_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* +Value_BoolList::mutable_vals() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.Value.BoolList.vals) + return _internal_mutable_vals(); +} + +// ------------------------------------------------------------------- + +// Value_StringList + +// repeated string vals = 1; +inline int Value_StringList::_internal_vals_size() const { + return vals_.size(); +} +inline int Value_StringList::vals_size() const { + return _internal_vals_size(); +} +inline void Value_StringList::clear_vals() { + vals_.Clear(); +} +inline std::string* Value_StringList::add_vals() { + std::string* _s = _internal_add_vals(); + // @@protoc_insertion_point(field_add_mutable:flwr.proto.Value.StringList.vals) + return _s; +} +inline const std::string& Value_StringList::_internal_vals(int index) const { + return vals_.Get(index); +} +inline const std::string& Value_StringList::vals(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.StringList.vals) + return _internal_vals(index); +} +inline std::string* Value_StringList::mutable_vals(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.Value.StringList.vals) + return vals_.Mutable(index); +} +inline void Value_StringList::set_vals(int index, const std::string& value) { + vals_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:flwr.proto.Value.StringList.vals) +} +inline void Value_StringList::set_vals(int index, std::string&& value) { + vals_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:flwr.proto.Value.StringList.vals) +} +inline void Value_StringList::set_vals(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + vals_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flwr.proto.Value.StringList.vals) +} +inline void Value_StringList::set_vals(int index, const char* value, size_t size) { + vals_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flwr.proto.Value.StringList.vals) +} +inline std::string* Value_StringList::_internal_add_vals() { + return vals_.Add(); +} +inline void Value_StringList::add_vals(const std::string& value) { + vals_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flwr.proto.Value.StringList.vals) +} +inline void Value_StringList::add_vals(std::string&& value) { + vals_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flwr.proto.Value.StringList.vals) +} +inline void Value_StringList::add_vals(const char* value) { + GOOGLE_DCHECK(value != nullptr); + vals_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flwr.proto.Value.StringList.vals) +} +inline void Value_StringList::add_vals(const char* value, size_t size) { + vals_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flwr.proto.Value.StringList.vals) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Value_StringList::vals() const { + // @@protoc_insertion_point(field_list:flwr.proto.Value.StringList.vals) + return vals_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Value_StringList::mutable_vals() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.Value.StringList.vals) + return &vals_; +} + +// ------------------------------------------------------------------- + +// Value_BytesList + +// repeated bytes vals = 1; +inline int Value_BytesList::_internal_vals_size() const { + return vals_.size(); +} +inline int Value_BytesList::vals_size() const { + return _internal_vals_size(); +} +inline void Value_BytesList::clear_vals() { + vals_.Clear(); +} +inline std::string* Value_BytesList::add_vals() { + std::string* _s = _internal_add_vals(); + // @@protoc_insertion_point(field_add_mutable:flwr.proto.Value.BytesList.vals) + return _s; +} +inline const std::string& Value_BytesList::_internal_vals(int index) const { + return vals_.Get(index); +} +inline const std::string& Value_BytesList::vals(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.BytesList.vals) + return _internal_vals(index); +} +inline std::string* Value_BytesList::mutable_vals(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.Value.BytesList.vals) + return vals_.Mutable(index); +} +inline void Value_BytesList::set_vals(int index, const std::string& value) { + vals_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:flwr.proto.Value.BytesList.vals) +} +inline void Value_BytesList::set_vals(int index, std::string&& value) { + vals_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:flwr.proto.Value.BytesList.vals) +} +inline void Value_BytesList::set_vals(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + vals_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flwr.proto.Value.BytesList.vals) +} +inline void Value_BytesList::set_vals(int index, const void* value, size_t size) { + vals_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flwr.proto.Value.BytesList.vals) +} +inline std::string* Value_BytesList::_internal_add_vals() { + return vals_.Add(); +} +inline void Value_BytesList::add_vals(const std::string& value) { + vals_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flwr.proto.Value.BytesList.vals) +} +inline void Value_BytesList::add_vals(std::string&& value) { + vals_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flwr.proto.Value.BytesList.vals) +} +inline void Value_BytesList::add_vals(const char* value) { + GOOGLE_DCHECK(value != nullptr); + vals_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flwr.proto.Value.BytesList.vals) +} +inline void Value_BytesList::add_vals(const void* value, size_t size) { + vals_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flwr.proto.Value.BytesList.vals) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Value_BytesList::vals() const { + // @@protoc_insertion_point(field_list:flwr.proto.Value.BytesList.vals) + return vals_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Value_BytesList::mutable_vals() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.Value.BytesList.vals) + return &vals_; +} + +// ------------------------------------------------------------------- + +// Value + +// double double = 1; +inline bool Value::_internal_has_double_() const { + return value_case() == kDouble; +} +inline bool Value::has_double_() const { + return _internal_has_double_(); +} +inline void Value::set_has_double_() { + _oneof_case_[0] = kDouble; +} +inline void Value::clear_double_() { + if (_internal_has_double_()) { + value_.double__ = 0; + clear_has_value(); + } +} +inline double Value::_internal_double_() const { + if (_internal_has_double_()) { + return value_.double__; + } + return 0; +} +inline void Value::_internal_set_double_(double value) { + if (!_internal_has_double_()) { + clear_value(); + set_has_double_(); + } + value_.double__ = value; +} +inline double Value::double_() const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.double) + return _internal_double_(); +} +inline void Value::set_double_(double value) { + _internal_set_double_(value); + // @@protoc_insertion_point(field_set:flwr.proto.Value.double) +} + +// sint64 sint64 = 2; +inline bool Value::_internal_has_sint64() const { + return value_case() == kSint64; +} +inline bool Value::has_sint64() const { + return _internal_has_sint64(); +} +inline void Value::set_has_sint64() { + _oneof_case_[0] = kSint64; +} +inline void Value::clear_sint64() { + if (_internal_has_sint64()) { + value_.sint64_ = int64_t{0}; + clear_has_value(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Value::_internal_sint64() const { + if (_internal_has_sint64()) { + return value_.sint64_; + } + return int64_t{0}; +} +inline void Value::_internal_set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value) { + if (!_internal_has_sint64()) { + clear_value(); + set_has_sint64(); + } + value_.sint64_ = value; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Value::sint64() const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.sint64) + return _internal_sint64(); +} +inline void Value::set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_sint64(value); + // @@protoc_insertion_point(field_set:flwr.proto.Value.sint64) +} + +// bool bool = 3; +inline bool Value::_internal_has_bool_() const { + return value_case() == kBool; +} +inline bool Value::has_bool_() const { + return _internal_has_bool_(); +} +inline void Value::set_has_bool_() { + _oneof_case_[0] = kBool; +} +inline void Value::clear_bool_() { + if (_internal_has_bool_()) { + value_.bool__ = false; + clear_has_value(); + } +} +inline bool Value::_internal_bool_() const { + if (_internal_has_bool_()) { + return value_.bool__; + } + return false; +} +inline void Value::_internal_set_bool_(bool value) { + if (!_internal_has_bool_()) { + clear_value(); + set_has_bool_(); + } + value_.bool__ = value; +} +inline bool Value::bool_() const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.bool) + return _internal_bool_(); +} +inline void Value::set_bool_(bool value) { + _internal_set_bool_(value); + // @@protoc_insertion_point(field_set:flwr.proto.Value.bool) +} + +// string string = 4; +inline bool Value::_internal_has_string() const { + return value_case() == kString; +} +inline bool Value::has_string() const { + return _internal_has_string(); +} +inline void Value::set_has_string() { + _oneof_case_[0] = kString; +} +inline void Value::clear_string() { + if (_internal_has_string()) { + value_.string_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + clear_has_value(); + } +} +inline const std::string& Value::string() const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.string) + return _internal_string(); +} +template +inline void Value::set_string(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_string()) { + clear_value(); + set_has_string(); + value_.string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + value_.string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Value.string) +} +inline std::string* Value::mutable_string() { + std::string* _s = _internal_mutable_string(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Value.string) + return _s; +} +inline const std::string& Value::_internal_string() const { + if (_internal_has_string()) { + return value_.string_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Value::_internal_set_string(const std::string& value) { + if (!_internal_has_string()) { + clear_value(); + set_has_string(); + value_.string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + value_.string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Value::_internal_mutable_string() { + if (!_internal_has_string()) { + clear_value(); + set_has_string(); + value_.string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + return value_.string_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Value::release_string() { + // @@protoc_insertion_point(field_release:flwr.proto.Value.string) + if (_internal_has_string()) { + clear_has_value(); + return value_.string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + } else { + return nullptr; + } +} +inline void Value::set_allocated_string(std::string* string) { + if (has_value()) { + clear_value(); + } + if (string != nullptr) { + set_has_string(); + value_.string_.UnsafeSetDefault(string); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation(); + if (arena != nullptr) { + arena->Own(string); + } + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Value.string) +} + +// bytes bytes = 5; +inline bool Value::_internal_has_bytes() const { + return value_case() == kBytes; +} +inline bool Value::has_bytes() const { + return _internal_has_bytes(); +} +inline void Value::set_has_bytes() { + _oneof_case_[0] = kBytes; +} +inline void Value::clear_bytes() { + if (_internal_has_bytes()) { + value_.bytes_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + clear_has_value(); + } +} +inline const std::string& Value::bytes() const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.bytes) + return _internal_bytes(); +} +template +inline void Value::set_bytes(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_bytes()) { + clear_value(); + set_has_bytes(); + value_.bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + value_.bytes_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Value.bytes) +} +inline std::string* Value::mutable_bytes() { + std::string* _s = _internal_mutable_bytes(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Value.bytes) + return _s; +} +inline const std::string& Value::_internal_bytes() const { + if (_internal_has_bytes()) { + return value_.bytes_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Value::_internal_set_bytes(const std::string& value) { + if (!_internal_has_bytes()) { + clear_value(); + set_has_bytes(); + value_.bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + value_.bytes_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Value::_internal_mutable_bytes() { + if (!_internal_has_bytes()) { + clear_value(); + set_has_bytes(); + value_.bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + return value_.bytes_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Value::release_bytes() { + // @@protoc_insertion_point(field_release:flwr.proto.Value.bytes) + if (_internal_has_bytes()) { + clear_has_value(); + return value_.bytes_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + } else { + return nullptr; + } +} +inline void Value::set_allocated_bytes(std::string* bytes) { + if (has_value()) { + clear_value(); + } + if (bytes != nullptr) { + set_has_bytes(); + value_.bytes_.UnsafeSetDefault(bytes); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation(); + if (arena != nullptr) { + arena->Own(bytes); + } + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Value.bytes) +} + +// .flwr.proto.Value.DoubleList double_list = 21; +inline bool Value::_internal_has_double_list() const { + return value_case() == kDoubleList; +} +inline bool Value::has_double_list() const { + return _internal_has_double_list(); +} +inline void Value::set_has_double_list() { + _oneof_case_[0] = kDoubleList; +} +inline void Value::clear_double_list() { + if (_internal_has_double_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.double_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::Value_DoubleList* Value::release_double_list() { + // @@protoc_insertion_point(field_release:flwr.proto.Value.double_list) + if (_internal_has_double_list()) { + clear_has_value(); + ::flwr::proto::Value_DoubleList* temp = value_.double_list_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.double_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::Value_DoubleList& Value::_internal_double_list() const { + return _internal_has_double_list() + ? *value_.double_list_ + : reinterpret_cast< ::flwr::proto::Value_DoubleList&>(::flwr::proto::_Value_DoubleList_default_instance_); +} +inline const ::flwr::proto::Value_DoubleList& Value::double_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.double_list) + return _internal_double_list(); +} +inline ::flwr::proto::Value_DoubleList* Value::unsafe_arena_release_double_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.Value.double_list) + if (_internal_has_double_list()) { + clear_has_value(); + ::flwr::proto::Value_DoubleList* temp = value_.double_list_; + value_.double_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_double_list(::flwr::proto::Value_DoubleList* double_list) { + clear_value(); + if (double_list) { + set_has_double_list(); + value_.double_list_ = double_list; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Value.double_list) +} +inline ::flwr::proto::Value_DoubleList* Value::_internal_mutable_double_list() { + if (!_internal_has_double_list()) { + clear_value(); + set_has_double_list(); + value_.double_list_ = CreateMaybeMessage< ::flwr::proto::Value_DoubleList >(GetArenaForAllocation()); + } + return value_.double_list_; +} +inline ::flwr::proto::Value_DoubleList* Value::mutable_double_list() { + ::flwr::proto::Value_DoubleList* _msg = _internal_mutable_double_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Value.double_list) + return _msg; +} + +// .flwr.proto.Value.Sint64List sint64_list = 22; +inline bool Value::_internal_has_sint64_list() const { + return value_case() == kSint64List; +} +inline bool Value::has_sint64_list() const { + return _internal_has_sint64_list(); +} +inline void Value::set_has_sint64_list() { + _oneof_case_[0] = kSint64List; +} +inline void Value::clear_sint64_list() { + if (_internal_has_sint64_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.sint64_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::Value_Sint64List* Value::release_sint64_list() { + // @@protoc_insertion_point(field_release:flwr.proto.Value.sint64_list) + if (_internal_has_sint64_list()) { + clear_has_value(); + ::flwr::proto::Value_Sint64List* temp = value_.sint64_list_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.sint64_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::Value_Sint64List& Value::_internal_sint64_list() const { + return _internal_has_sint64_list() + ? *value_.sint64_list_ + : reinterpret_cast< ::flwr::proto::Value_Sint64List&>(::flwr::proto::_Value_Sint64List_default_instance_); +} +inline const ::flwr::proto::Value_Sint64List& Value::sint64_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.sint64_list) + return _internal_sint64_list(); +} +inline ::flwr::proto::Value_Sint64List* Value::unsafe_arena_release_sint64_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.Value.sint64_list) + if (_internal_has_sint64_list()) { + clear_has_value(); + ::flwr::proto::Value_Sint64List* temp = value_.sint64_list_; + value_.sint64_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_sint64_list(::flwr::proto::Value_Sint64List* sint64_list) { + clear_value(); + if (sint64_list) { + set_has_sint64_list(); + value_.sint64_list_ = sint64_list; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Value.sint64_list) +} +inline ::flwr::proto::Value_Sint64List* Value::_internal_mutable_sint64_list() { + if (!_internal_has_sint64_list()) { + clear_value(); + set_has_sint64_list(); + value_.sint64_list_ = CreateMaybeMessage< ::flwr::proto::Value_Sint64List >(GetArenaForAllocation()); + } + return value_.sint64_list_; +} +inline ::flwr::proto::Value_Sint64List* Value::mutable_sint64_list() { + ::flwr::proto::Value_Sint64List* _msg = _internal_mutable_sint64_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Value.sint64_list) + return _msg; +} + +// .flwr.proto.Value.BoolList bool_list = 23; +inline bool Value::_internal_has_bool_list() const { + return value_case() == kBoolList; +} +inline bool Value::has_bool_list() const { + return _internal_has_bool_list(); +} +inline void Value::set_has_bool_list() { + _oneof_case_[0] = kBoolList; +} +inline void Value::clear_bool_list() { + if (_internal_has_bool_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.bool_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::Value_BoolList* Value::release_bool_list() { + // @@protoc_insertion_point(field_release:flwr.proto.Value.bool_list) + if (_internal_has_bool_list()) { + clear_has_value(); + ::flwr::proto::Value_BoolList* temp = value_.bool_list_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.bool_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::Value_BoolList& Value::_internal_bool_list() const { + return _internal_has_bool_list() + ? *value_.bool_list_ + : reinterpret_cast< ::flwr::proto::Value_BoolList&>(::flwr::proto::_Value_BoolList_default_instance_); +} +inline const ::flwr::proto::Value_BoolList& Value::bool_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.bool_list) + return _internal_bool_list(); +} +inline ::flwr::proto::Value_BoolList* Value::unsafe_arena_release_bool_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.Value.bool_list) + if (_internal_has_bool_list()) { + clear_has_value(); + ::flwr::proto::Value_BoolList* temp = value_.bool_list_; + value_.bool_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_bool_list(::flwr::proto::Value_BoolList* bool_list) { + clear_value(); + if (bool_list) { + set_has_bool_list(); + value_.bool_list_ = bool_list; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Value.bool_list) +} +inline ::flwr::proto::Value_BoolList* Value::_internal_mutable_bool_list() { + if (!_internal_has_bool_list()) { + clear_value(); + set_has_bool_list(); + value_.bool_list_ = CreateMaybeMessage< ::flwr::proto::Value_BoolList >(GetArenaForAllocation()); + } + return value_.bool_list_; +} +inline ::flwr::proto::Value_BoolList* Value::mutable_bool_list() { + ::flwr::proto::Value_BoolList* _msg = _internal_mutable_bool_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Value.bool_list) + return _msg; +} + +// .flwr.proto.Value.StringList string_list = 24; +inline bool Value::_internal_has_string_list() const { + return value_case() == kStringList; +} +inline bool Value::has_string_list() const { + return _internal_has_string_list(); +} +inline void Value::set_has_string_list() { + _oneof_case_[0] = kStringList; +} +inline void Value::clear_string_list() { + if (_internal_has_string_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.string_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::Value_StringList* Value::release_string_list() { + // @@protoc_insertion_point(field_release:flwr.proto.Value.string_list) + if (_internal_has_string_list()) { + clear_has_value(); + ::flwr::proto::Value_StringList* temp = value_.string_list_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.string_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::Value_StringList& Value::_internal_string_list() const { + return _internal_has_string_list() + ? *value_.string_list_ + : reinterpret_cast< ::flwr::proto::Value_StringList&>(::flwr::proto::_Value_StringList_default_instance_); +} +inline const ::flwr::proto::Value_StringList& Value::string_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.string_list) + return _internal_string_list(); +} +inline ::flwr::proto::Value_StringList* Value::unsafe_arena_release_string_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.Value.string_list) + if (_internal_has_string_list()) { + clear_has_value(); + ::flwr::proto::Value_StringList* temp = value_.string_list_; + value_.string_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_string_list(::flwr::proto::Value_StringList* string_list) { + clear_value(); + if (string_list) { + set_has_string_list(); + value_.string_list_ = string_list; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Value.string_list) +} +inline ::flwr::proto::Value_StringList* Value::_internal_mutable_string_list() { + if (!_internal_has_string_list()) { + clear_value(); + set_has_string_list(); + value_.string_list_ = CreateMaybeMessage< ::flwr::proto::Value_StringList >(GetArenaForAllocation()); + } + return value_.string_list_; +} +inline ::flwr::proto::Value_StringList* Value::mutable_string_list() { + ::flwr::proto::Value_StringList* _msg = _internal_mutable_string_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Value.string_list) + return _msg; +} + +// .flwr.proto.Value.BytesList bytes_list = 25; +inline bool Value::_internal_has_bytes_list() const { + return value_case() == kBytesList; +} +inline bool Value::has_bytes_list() const { + return _internal_has_bytes_list(); +} +inline void Value::set_has_bytes_list() { + _oneof_case_[0] = kBytesList; +} +inline void Value::clear_bytes_list() { + if (_internal_has_bytes_list()) { + if (GetArenaForAllocation() == nullptr) { + delete value_.bytes_list_; + } + clear_has_value(); + } +} +inline ::flwr::proto::Value_BytesList* Value::release_bytes_list() { + // @@protoc_insertion_point(field_release:flwr.proto.Value.bytes_list) + if (_internal_has_bytes_list()) { + clear_has_value(); + ::flwr::proto::Value_BytesList* temp = value_.bytes_list_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + value_.bytes_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::Value_BytesList& Value::_internal_bytes_list() const { + return _internal_has_bytes_list() + ? *value_.bytes_list_ + : reinterpret_cast< ::flwr::proto::Value_BytesList&>(::flwr::proto::_Value_BytesList_default_instance_); +} +inline const ::flwr::proto::Value_BytesList& Value::bytes_list() const { + // @@protoc_insertion_point(field_get:flwr.proto.Value.bytes_list) + return _internal_bytes_list(); +} +inline ::flwr::proto::Value_BytesList* Value::unsafe_arena_release_bytes_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.Value.bytes_list) + if (_internal_has_bytes_list()) { + clear_has_value(); + ::flwr::proto::Value_BytesList* temp = value_.bytes_list_; + value_.bytes_list_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_bytes_list(::flwr::proto::Value_BytesList* bytes_list) { + clear_value(); + if (bytes_list) { + set_has_bytes_list(); + value_.bytes_list_ = bytes_list; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.Value.bytes_list) +} +inline ::flwr::proto::Value_BytesList* Value::_internal_mutable_bytes_list() { + if (!_internal_has_bytes_list()) { + clear_value(); + set_has_bytes_list(); + value_.bytes_list_ = CreateMaybeMessage< ::flwr::proto::Value_BytesList >(GetArenaForAllocation()); + } + return value_.bytes_list_; +} +inline ::flwr::proto::Value_BytesList* Value::mutable_bytes_list() { + ::flwr::proto::Value_BytesList* _msg = _internal_mutable_bytes_list(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Value.bytes_list) + return _msg; +} + +inline bool Value::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void Value::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline Value::ValueCase Value::value_case() const { + return Value::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// SecureAggregation + +// map named_values = 1; +inline int SecureAggregation::_internal_named_values_size() const { + return named_values_.size(); +} +inline int SecureAggregation::named_values_size() const { + return _internal_named_values_size(); +} +inline void SecureAggregation::clear_named_values() { + named_values_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >& +SecureAggregation::_internal_named_values() const { + return named_values_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >& +SecureAggregation::named_values() const { + // @@protoc_insertion_point(field_map:flwr.proto.SecureAggregation.named_values) + return _internal_named_values(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >* +SecureAggregation::_internal_mutable_named_values() { + return named_values_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Value >* +SecureAggregation::mutable_named_values() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.SecureAggregation.named_values) + return _internal_mutable_named_values(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace proto +} // namespace flwr + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2ftask_2eproto diff --git a/src/cc/flwr/include/flwr/proto/transport.grpc.pb.cc b/src/cc/flwr/include/flwr/proto/transport.grpc.pb.cc new file mode 100644 index 000000000000..e0c983c53a2e --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/transport.grpc.pb.cc @@ -0,0 +1,80 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flwr/proto/transport.proto + +#include "flwr/proto/transport.pb.h" +#include "flwr/proto/transport.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flwr { +namespace proto { + +static const char* FlowerService_method_names[] = { + "/flwr.proto.FlowerService/Join", +}; + +std::unique_ptr< FlowerService::Stub> FlowerService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< FlowerService::Stub> stub(new FlowerService::Stub(channel, options)); + return stub; +} + +FlowerService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_Join_(FlowerService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + {} + +::grpc::ClientReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>* FlowerService::Stub::JoinRaw(::grpc::ClientContext* context) { + return ::grpc::internal::ClientReaderWriterFactory< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>::Create(channel_.get(), rpcmethod_Join_, context); +} + +void FlowerService::Stub::async::Join(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::flwr::proto::ClientMessage,::flwr::proto::ServerMessage>* reactor) { + ::grpc::internal::ClientCallbackReaderWriterFactory< ::flwr::proto::ClientMessage,::flwr::proto::ServerMessage>::Create(stub_->channel_.get(), stub_->rpcmethod_Join_, context, reactor); +} + +::grpc::ClientAsyncReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>* FlowerService::Stub::AsyncJoinRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>::Create(channel_.get(), cq, rpcmethod_Join_, context, true, tag); +} + +::grpc::ClientAsyncReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>* FlowerService::Stub::PrepareAsyncJoinRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>::Create(channel_.get(), cq, rpcmethod_Join_, context, false, nullptr); +} + +FlowerService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + FlowerService_method_names[0], + ::grpc::internal::RpcMethod::BIDI_STREAMING, + new ::grpc::internal::BidiStreamingHandler< FlowerService::Service, ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>( + [](FlowerService::Service* service, + ::grpc::ServerContext* ctx, + ::grpc::ServerReaderWriter<::flwr::proto::ServerMessage, + ::flwr::proto::ClientMessage>* stream) { + return service->Join(ctx, stream); + }, this))); +} + +FlowerService::Service::~Service() { +} + +::grpc::Status FlowerService::Service::Join(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::flwr::proto::ServerMessage, ::flwr::proto::ClientMessage>* stream) { + (void) context; + (void) stream; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flwr +} // namespace proto + diff --git a/src/cc/flwr/include/flwr/proto/transport.grpc.pb.h b/src/cc/flwr/include/flwr/proto/transport.grpc.pb.h new file mode 100644 index 000000000000..479eb5a45737 --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/transport.grpc.pb.h @@ -0,0 +1,232 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flwr/proto/transport.proto +// Original file comments: +// Copyright 2020 Flower Labs GmbH. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ============================================================================== +// +#ifndef GRPC_flwr_2fproto_2ftransport_2eproto__INCLUDED +#define GRPC_flwr_2fproto_2ftransport_2eproto__INCLUDED + +#include "flwr/proto/transport.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace flwr { +namespace proto { + +class FlowerService final { + public: + static constexpr char const* service_full_name() { + return "flwr.proto.FlowerService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>> Join(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>>(JoinRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>> AsyncJoin(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>>(AsyncJoinRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>> PrepareAsyncJoin(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>>(PrepareAsyncJoinRaw(context, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + virtual void Join(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::flwr::proto::ClientMessage,::flwr::proto::ServerMessage>* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientReaderWriterInterface< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>* JoinRaw(::grpc::ClientContext* context) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>* AsyncJoinRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>* PrepareAsyncJoinRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + std::unique_ptr< ::grpc::ClientReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>> Join(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>>(JoinRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>> AsyncJoin(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>>(AsyncJoinRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>> PrepareAsyncJoin(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>>(PrepareAsyncJoinRaw(context, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void Join(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::flwr::proto::ClientMessage,::flwr::proto::ServerMessage>* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>* JoinRaw(::grpc::ClientContext* context) override; + ::grpc::ClientAsyncReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>* AsyncJoinRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReaderWriter< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>* PrepareAsyncJoinRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_Join_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status Join(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::flwr::proto::ServerMessage, ::flwr::proto::ClientMessage>* stream); + }; + template + class WithAsyncMethod_Join : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Join() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_Join() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Join(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::flwr::proto::ServerMessage, ::flwr::proto::ClientMessage>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestJoin(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::flwr::proto::ServerMessage, ::flwr::proto::ClientMessage>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(0, context, stream, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Join AsyncService; + template + class WithCallbackMethod_Join : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Join() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackBidiHandler< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>( + [this]( + ::grpc::CallbackServerContext* context) { return this->Join(context); })); + } + ~WithCallbackMethod_Join() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Join(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::flwr::proto::ServerMessage, ::flwr::proto::ClientMessage>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::flwr::proto::ClientMessage, ::flwr::proto::ServerMessage>* Join( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + typedef WithCallbackMethod_Join CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_Join : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Join() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_Join() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Join(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::flwr::proto::ServerMessage, ::flwr::proto::ClientMessage>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_Join : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Join() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_Join() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Join(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::flwr::proto::ServerMessage, ::flwr::proto::ClientMessage>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestJoin(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(0, context, stream, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_Join : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Join() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context) { return this->Join(context); })); + } + ~WithRawCallbackMethod_Join() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Join(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::flwr::proto::ServerMessage, ::flwr::proto::ClientMessage>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* Join( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + typedef Service StreamedUnaryService; + typedef Service SplitStreamedService; + typedef Service StreamedService; +}; + +} // namespace proto +} // namespace flwr + + +#endif // GRPC_flwr_2fproto_2ftransport_2eproto__INCLUDED diff --git a/src/cc/flwr/include/flwr/proto/transport.pb.cc b/src/cc/flwr/include/flwr/proto/transport.pb.cc new file mode 100644 index 000000000000..8b227196c87c --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/transport.pb.cc @@ -0,0 +1,5121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/transport.proto + +#include "flwr/proto/transport.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG +namespace flwr { +namespace proto { +constexpr Status::Status( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , code_(0) +{} +struct StatusDefaultTypeInternal { + constexpr StatusDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~StatusDefaultTypeInternal() {} + union { + Status _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StatusDefaultTypeInternal _Status_default_instance_; +constexpr Parameters::Parameters( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : tensors_() + , tensor_type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct ParametersDefaultTypeInternal { + constexpr ParametersDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ParametersDefaultTypeInternal() {} + union { + Parameters _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ParametersDefaultTypeInternal _Parameters_default_instance_; +constexpr ServerMessage_ReconnectIns::ServerMessage_ReconnectIns( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : seconds_(int64_t{0}){} +struct ServerMessage_ReconnectInsDefaultTypeInternal { + constexpr ServerMessage_ReconnectInsDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ServerMessage_ReconnectInsDefaultTypeInternal() {} + union { + ServerMessage_ReconnectIns _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServerMessage_ReconnectInsDefaultTypeInternal _ServerMessage_ReconnectIns_default_instance_; +constexpr ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUseDefaultTypeInternal { + constexpr ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUseDefaultTypeInternal() {} + union { + ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUseDefaultTypeInternal _ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse_default_instance_; +constexpr ServerMessage_GetPropertiesIns::ServerMessage_GetPropertiesIns( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : config_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} +struct ServerMessage_GetPropertiesInsDefaultTypeInternal { + constexpr ServerMessage_GetPropertiesInsDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ServerMessage_GetPropertiesInsDefaultTypeInternal() {} + union { + ServerMessage_GetPropertiesIns _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServerMessage_GetPropertiesInsDefaultTypeInternal _ServerMessage_GetPropertiesIns_default_instance_; +constexpr ServerMessage_GetParametersIns_ConfigEntry_DoNotUse::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct ServerMessage_GetParametersIns_ConfigEntry_DoNotUseDefaultTypeInternal { + constexpr ServerMessage_GetParametersIns_ConfigEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ServerMessage_GetParametersIns_ConfigEntry_DoNotUseDefaultTypeInternal() {} + union { + ServerMessage_GetParametersIns_ConfigEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServerMessage_GetParametersIns_ConfigEntry_DoNotUseDefaultTypeInternal _ServerMessage_GetParametersIns_ConfigEntry_DoNotUse_default_instance_; +constexpr ServerMessage_GetParametersIns::ServerMessage_GetParametersIns( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : config_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} +struct ServerMessage_GetParametersInsDefaultTypeInternal { + constexpr ServerMessage_GetParametersInsDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ServerMessage_GetParametersInsDefaultTypeInternal() {} + union { + ServerMessage_GetParametersIns _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServerMessage_GetParametersInsDefaultTypeInternal _ServerMessage_GetParametersIns_default_instance_; +constexpr ServerMessage_FitIns_ConfigEntry_DoNotUse::ServerMessage_FitIns_ConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct ServerMessage_FitIns_ConfigEntry_DoNotUseDefaultTypeInternal { + constexpr ServerMessage_FitIns_ConfigEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ServerMessage_FitIns_ConfigEntry_DoNotUseDefaultTypeInternal() {} + union { + ServerMessage_FitIns_ConfigEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServerMessage_FitIns_ConfigEntry_DoNotUseDefaultTypeInternal _ServerMessage_FitIns_ConfigEntry_DoNotUse_default_instance_; +constexpr ServerMessage_FitIns::ServerMessage_FitIns( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : config_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , parameters_(nullptr){} +struct ServerMessage_FitInsDefaultTypeInternal { + constexpr ServerMessage_FitInsDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ServerMessage_FitInsDefaultTypeInternal() {} + union { + ServerMessage_FitIns _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServerMessage_FitInsDefaultTypeInternal _ServerMessage_FitIns_default_instance_; +constexpr ServerMessage_EvaluateIns_ConfigEntry_DoNotUse::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct ServerMessage_EvaluateIns_ConfigEntry_DoNotUseDefaultTypeInternal { + constexpr ServerMessage_EvaluateIns_ConfigEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ServerMessage_EvaluateIns_ConfigEntry_DoNotUseDefaultTypeInternal() {} + union { + ServerMessage_EvaluateIns_ConfigEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServerMessage_EvaluateIns_ConfigEntry_DoNotUseDefaultTypeInternal _ServerMessage_EvaluateIns_ConfigEntry_DoNotUse_default_instance_; +constexpr ServerMessage_EvaluateIns::ServerMessage_EvaluateIns( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : config_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , parameters_(nullptr){} +struct ServerMessage_EvaluateInsDefaultTypeInternal { + constexpr ServerMessage_EvaluateInsDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ServerMessage_EvaluateInsDefaultTypeInternal() {} + union { + ServerMessage_EvaluateIns _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServerMessage_EvaluateInsDefaultTypeInternal _ServerMessage_EvaluateIns_default_instance_; +constexpr ServerMessage::ServerMessage( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : _oneof_case_{}{} +struct ServerMessageDefaultTypeInternal { + constexpr ServerMessageDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ServerMessageDefaultTypeInternal() {} + union { + ServerMessage _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServerMessageDefaultTypeInternal _ServerMessage_default_instance_; +constexpr ClientMessage_DisconnectRes::ClientMessage_DisconnectRes( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : reason_(0) +{} +struct ClientMessage_DisconnectResDefaultTypeInternal { + constexpr ClientMessage_DisconnectResDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ClientMessage_DisconnectResDefaultTypeInternal() {} + union { + ClientMessage_DisconnectRes _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClientMessage_DisconnectResDefaultTypeInternal _ClientMessage_DisconnectRes_default_instance_; +constexpr ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUseDefaultTypeInternal { + constexpr ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUseDefaultTypeInternal() {} + union { + ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUseDefaultTypeInternal _ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse_default_instance_; +constexpr ClientMessage_GetPropertiesRes::ClientMessage_GetPropertiesRes( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : properties_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , status_(nullptr){} +struct ClientMessage_GetPropertiesResDefaultTypeInternal { + constexpr ClientMessage_GetPropertiesResDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ClientMessage_GetPropertiesResDefaultTypeInternal() {} + union { + ClientMessage_GetPropertiesRes _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClientMessage_GetPropertiesResDefaultTypeInternal _ClientMessage_GetPropertiesRes_default_instance_; +constexpr ClientMessage_GetParametersRes::ClientMessage_GetParametersRes( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : status_(nullptr) + , parameters_(nullptr){} +struct ClientMessage_GetParametersResDefaultTypeInternal { + constexpr ClientMessage_GetParametersResDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ClientMessage_GetParametersResDefaultTypeInternal() {} + union { + ClientMessage_GetParametersRes _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClientMessage_GetParametersResDefaultTypeInternal _ClientMessage_GetParametersRes_default_instance_; +constexpr ClientMessage_FitRes_MetricsEntry_DoNotUse::ClientMessage_FitRes_MetricsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct ClientMessage_FitRes_MetricsEntry_DoNotUseDefaultTypeInternal { + constexpr ClientMessage_FitRes_MetricsEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ClientMessage_FitRes_MetricsEntry_DoNotUseDefaultTypeInternal() {} + union { + ClientMessage_FitRes_MetricsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClientMessage_FitRes_MetricsEntry_DoNotUseDefaultTypeInternal _ClientMessage_FitRes_MetricsEntry_DoNotUse_default_instance_; +constexpr ClientMessage_FitRes::ClientMessage_FitRes( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : metrics_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , status_(nullptr) + , parameters_(nullptr) + , num_examples_(int64_t{0}){} +struct ClientMessage_FitResDefaultTypeInternal { + constexpr ClientMessage_FitResDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ClientMessage_FitResDefaultTypeInternal() {} + union { + ClientMessage_FitRes _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClientMessage_FitResDefaultTypeInternal _ClientMessage_FitRes_default_instance_; +constexpr ClientMessage_EvaluateRes_MetricsEntry_DoNotUse::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} +struct ClientMessage_EvaluateRes_MetricsEntry_DoNotUseDefaultTypeInternal { + constexpr ClientMessage_EvaluateRes_MetricsEntry_DoNotUseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ClientMessage_EvaluateRes_MetricsEntry_DoNotUseDefaultTypeInternal() {} + union { + ClientMessage_EvaluateRes_MetricsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClientMessage_EvaluateRes_MetricsEntry_DoNotUseDefaultTypeInternal _ClientMessage_EvaluateRes_MetricsEntry_DoNotUse_default_instance_; +constexpr ClientMessage_EvaluateRes::ClientMessage_EvaluateRes( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : metrics_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , status_(nullptr) + , num_examples_(int64_t{0}) + , loss_(0){} +struct ClientMessage_EvaluateResDefaultTypeInternal { + constexpr ClientMessage_EvaluateResDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ClientMessage_EvaluateResDefaultTypeInternal() {} + union { + ClientMessage_EvaluateRes _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClientMessage_EvaluateResDefaultTypeInternal _ClientMessage_EvaluateRes_default_instance_; +constexpr ClientMessage::ClientMessage( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : _oneof_case_{}{} +struct ClientMessageDefaultTypeInternal { + constexpr ClientMessageDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ClientMessageDefaultTypeInternal() {} + union { + ClientMessage _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClientMessageDefaultTypeInternal _ClientMessage_default_instance_; +constexpr Scalar::Scalar( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : _oneof_case_{}{} +struct ScalarDefaultTypeInternal { + constexpr ScalarDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ScalarDefaultTypeInternal() {} + union { + Scalar _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ScalarDefaultTypeInternal _Scalar_default_instance_; +} // namespace proto +} // namespace flwr +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_flwr_2fproto_2ftransport_2eproto[22]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_flwr_2fproto_2ftransport_2eproto[2]; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_flwr_2fproto_2ftransport_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_flwr_2fproto_2ftransport_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Status, code_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Status, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Parameters, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Parameters, tensors_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::Parameters, tensor_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_ReconnectIns, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_ReconnectIns, seconds_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetPropertiesIns, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetPropertiesIns, config_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetParametersIns, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_GetParametersIns, config_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_FitIns_ConfigEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_FitIns_ConfigEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_FitIns_ConfigEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_FitIns_ConfigEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_FitIns, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_FitIns, parameters_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_FitIns, config_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_EvaluateIns, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_EvaluateIns, parameters_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage_EvaluateIns, config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::flwr::proto::ServerMessage, msg_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_DisconnectRes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_DisconnectRes, reason_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_GetPropertiesRes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_GetPropertiesRes, status_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_GetPropertiesRes, properties_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_GetParametersRes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_GetParametersRes, status_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_GetParametersRes, parameters_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_FitRes_MetricsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_FitRes_MetricsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_FitRes_MetricsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_FitRes_MetricsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_FitRes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_FitRes, status_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_FitRes, parameters_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_FitRes, num_examples_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_FitRes, metrics_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_EvaluateRes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_EvaluateRes, status_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_EvaluateRes, loss_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_EvaluateRes, num_examples_), + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage_EvaluateRes, metrics_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::flwr::proto::ClientMessage, msg_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Scalar, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flwr::proto::Scalar, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::flwr::proto::Scalar, scalar_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::flwr::proto::Status)}, + { 8, -1, -1, sizeof(::flwr::proto::Parameters)}, + { 16, -1, -1, sizeof(::flwr::proto::ServerMessage_ReconnectIns)}, + { 23, 31, -1, sizeof(::flwr::proto::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse)}, + { 33, -1, -1, sizeof(::flwr::proto::ServerMessage_GetPropertiesIns)}, + { 40, 48, -1, sizeof(::flwr::proto::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse)}, + { 50, -1, -1, sizeof(::flwr::proto::ServerMessage_GetParametersIns)}, + { 57, 65, -1, sizeof(::flwr::proto::ServerMessage_FitIns_ConfigEntry_DoNotUse)}, + { 67, -1, -1, sizeof(::flwr::proto::ServerMessage_FitIns)}, + { 75, 83, -1, sizeof(::flwr::proto::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse)}, + { 85, -1, -1, sizeof(::flwr::proto::ServerMessage_EvaluateIns)}, + { 93, -1, -1, sizeof(::flwr::proto::ServerMessage)}, + { 105, -1, -1, sizeof(::flwr::proto::ClientMessage_DisconnectRes)}, + { 112, 120, -1, sizeof(::flwr::proto::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse)}, + { 122, -1, -1, sizeof(::flwr::proto::ClientMessage_GetPropertiesRes)}, + { 130, -1, -1, sizeof(::flwr::proto::ClientMessage_GetParametersRes)}, + { 138, 146, -1, sizeof(::flwr::proto::ClientMessage_FitRes_MetricsEntry_DoNotUse)}, + { 148, -1, -1, sizeof(::flwr::proto::ClientMessage_FitRes)}, + { 158, 166, -1, sizeof(::flwr::proto::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse)}, + { 168, -1, -1, sizeof(::flwr::proto::ClientMessage_EvaluateRes)}, + { 178, -1, -1, sizeof(::flwr::proto::ClientMessage)}, + { 190, -1, -1, sizeof(::flwr::proto::Scalar)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::flwr::proto::_Status_default_instance_), + reinterpret_cast(&::flwr::proto::_Parameters_default_instance_), + reinterpret_cast(&::flwr::proto::_ServerMessage_ReconnectIns_default_instance_), + reinterpret_cast(&::flwr::proto::_ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_ServerMessage_GetPropertiesIns_default_instance_), + reinterpret_cast(&::flwr::proto::_ServerMessage_GetParametersIns_ConfigEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_ServerMessage_GetParametersIns_default_instance_), + reinterpret_cast(&::flwr::proto::_ServerMessage_FitIns_ConfigEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_ServerMessage_FitIns_default_instance_), + reinterpret_cast(&::flwr::proto::_ServerMessage_EvaluateIns_ConfigEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_ServerMessage_EvaluateIns_default_instance_), + reinterpret_cast(&::flwr::proto::_ServerMessage_default_instance_), + reinterpret_cast(&::flwr::proto::_ClientMessage_DisconnectRes_default_instance_), + reinterpret_cast(&::flwr::proto::_ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_ClientMessage_GetPropertiesRes_default_instance_), + reinterpret_cast(&::flwr::proto::_ClientMessage_GetParametersRes_default_instance_), + reinterpret_cast(&::flwr::proto::_ClientMessage_FitRes_MetricsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_ClientMessage_FitRes_default_instance_), + reinterpret_cast(&::flwr::proto::_ClientMessage_EvaluateRes_MetricsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flwr::proto::_ClientMessage_EvaluateRes_default_instance_), + reinterpret_cast(&::flwr::proto::_ClientMessage_default_instance_), + reinterpret_cast(&::flwr::proto::_Scalar_default_instance_), +}; + +const char descriptor_table_protodef_flwr_2fproto_2ftransport_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\032flwr/proto/transport.proto\022\nflwr.proto" + "\"9\n\006Status\022\036\n\004code\030\001 \001(\0162\020.flwr.proto.Co" + "de\022\017\n\007message\030\002 \001(\t\"2\n\nParameters\022\017\n\007ten" + "sors\030\001 \003(\014\022\023\n\013tensor_type\030\002 \001(\t\"\272\010\n\rServ" + "erMessage\022\?\n\rreconnect_ins\030\001 \001(\0132&.flwr." + "proto.ServerMessage.ReconnectInsH\000\022H\n\022ge" + "t_properties_ins\030\002 \001(\0132*.flwr.proto.Serv" + "erMessage.GetPropertiesInsH\000\022H\n\022get_para" + "meters_ins\030\003 \001(\0132*.flwr.proto.ServerMess" + "age.GetParametersInsH\000\0223\n\007fit_ins\030\004 \001(\0132" + " .flwr.proto.ServerMessage.FitInsH\000\022=\n\014e" + "valuate_ins\030\005 \001(\0132%.flwr.proto.ServerMes" + "sage.EvaluateInsH\000\032\037\n\014ReconnectIns\022\017\n\007se" + "conds\030\001 \001(\003\032\235\001\n\020GetPropertiesIns\022F\n\006conf" + "ig\030\001 \003(\01326.flwr.proto.ServerMessage.GetP" + "ropertiesIns.ConfigEntry\032A\n\013ConfigEntry\022" + "\013\n\003key\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.flwr.proto" + ".Scalar:\0028\001\032\235\001\n\020GetParametersIns\022F\n\006conf" + "ig\030\001 \003(\01326.flwr.proto.ServerMessage.GetP" + "arametersIns.ConfigEntry\032A\n\013ConfigEntry\022" + "\013\n\003key\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.flwr.proto" + ".Scalar:\0028\001\032\265\001\n\006FitIns\022*\n\nparameters\030\001 \001" + "(\0132\026.flwr.proto.Parameters\022<\n\006config\030\002 \003" + "(\0132,.flwr.proto.ServerMessage.FitIns.Con" + "figEntry\032A\n\013ConfigEntry\022\013\n\003key\030\001 \001(\t\022!\n\005" + "value\030\002 \001(\0132\022.flwr.proto.Scalar:\0028\001\032\277\001\n\013" + "EvaluateIns\022*\n\nparameters\030\001 \001(\0132\026.flwr.p" + "roto.Parameters\022A\n\006config\030\002 \003(\01321.flwr.p" + "roto.ServerMessage.EvaluateIns.ConfigEnt" + "ry\032A\n\013ConfigEntry\022\013\n\003key\030\001 \001(\t\022!\n\005value\030" + "\002 \001(\0132\022.flwr.proto.Scalar:\0028\001B\005\n\003msg\"\240\t\n" + "\rClientMessage\022A\n\016disconnect_res\030\001 \001(\0132\'" + ".flwr.proto.ClientMessage.DisconnectResH" + "\000\022H\n\022get_properties_res\030\002 \001(\0132*.flwr.pro" + "to.ClientMessage.GetPropertiesResH\000\022H\n\022g" + "et_parameters_res\030\003 \001(\0132*.flwr.proto.Cli" + "entMessage.GetParametersResH\000\0223\n\007fit_res" + "\030\004 \001(\0132 .flwr.proto.ClientMessage.FitRes" + "H\000\022=\n\014evaluate_res\030\005 \001(\0132%.flwr.proto.Cl" + "ientMessage.EvaluateResH\000\0323\n\rDisconnectR" + "es\022\"\n\006reason\030\001 \001(\0162\022.flwr.proto.Reason\032\315" + "\001\n\020GetPropertiesRes\022\"\n\006status\030\001 \001(\0132\022.fl" + "wr.proto.Status\022N\n\nproperties\030\002 \003(\0132:.fl" + "wr.proto.ClientMessage.GetPropertiesRes." + "PropertiesEntry\032E\n\017PropertiesEntry\022\013\n\003ke" + "y\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.flwr.proto.Scal" + "ar:\0028\001\032b\n\020GetParametersRes\022\"\n\006status\030\001 \001" + "(\0132\022.flwr.proto.Status\022*\n\nparameters\030\002 \001" + "(\0132\026.flwr.proto.Parameters\032\362\001\n\006FitRes\022\"\n" + "\006status\030\001 \001(\0132\022.flwr.proto.Status\022*\n\npar" + "ameters\030\002 \001(\0132\026.flwr.proto.Parameters\022\024\n" + "\014num_examples\030\003 \001(\003\022>\n\007metrics\030\004 \003(\0132-.f" + "lwr.proto.ClientMessage.FitRes.MetricsEn" + "try\032B\n\014MetricsEntry\022\013\n\003key\030\001 \001(\t\022!\n\005valu" + "e\030\002 \001(\0132\022.flwr.proto.Scalar:\0028\001\032\336\001\n\013Eval" + "uateRes\022\"\n\006status\030\001 \001(\0132\022.flwr.proto.Sta" + "tus\022\014\n\004loss\030\002 \001(\002\022\024\n\014num_examples\030\003 \001(\003\022" + "C\n\007metrics\030\004 \003(\01322.flwr.proto.ClientMess" + "age.EvaluateRes.MetricsEntry\032B\n\014MetricsE" + "ntry\022\013\n\003key\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.flwr." + "proto.Scalar:\0028\001B\005\n\003msg\"i\n\006Scalar\022\020\n\006dou" + "ble\030\001 \001(\001H\000\022\020\n\006sint64\030\010 \001(\022H\000\022\016\n\004bool\030\r " + "\001(\010H\000\022\020\n\006string\030\016 \001(\tH\000\022\017\n\005bytes\030\017 \001(\014H\000" + "B\010\n\006scalar*\215\001\n\004Code\022\006\n\002OK\020\000\022\"\n\036GET_PROPE" + "RTIES_NOT_IMPLEMENTED\020\001\022\"\n\036GET_PARAMETER" + "S_NOT_IMPLEMENTED\020\002\022\027\n\023FIT_NOT_IMPLEMENT" + "ED\020\003\022\034\n\030EVALUATE_NOT_IMPLEMENTED\020\004*[\n\006Re" + "ason\022\013\n\007UNKNOWN\020\000\022\r\n\tRECONNECT\020\001\022\026\n\022POWE" + "R_DISCONNECTED\020\002\022\024\n\020WIFI_UNAVAILABLE\020\003\022\007" + "\n\003ACK\020\0042S\n\rFlowerService\022B\n\004Join\022\031.flwr." + "proto.ClientMessage\032\031.flwr.proto.ServerM" + "essage\"\000(\0010\001b\006proto3" + ; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_flwr_2fproto_2ftransport_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2ftransport_2eproto = { + false, false, 2860, descriptor_table_protodef_flwr_2fproto_2ftransport_2eproto, "flwr/proto/transport.proto", + &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, nullptr, 0, 22, + schemas, file_default_instances, TableStruct_flwr_2fproto_2ftransport_2eproto::offsets, + file_level_metadata_flwr_2fproto_2ftransport_2eproto, file_level_enum_descriptors_flwr_2fproto_2ftransport_2eproto, file_level_service_descriptors_flwr_2fproto_2ftransport_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_flwr_2fproto_2ftransport_2eproto_getter() { + return &descriptor_table_flwr_2fproto_2ftransport_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_flwr_2fproto_2ftransport_2eproto(&descriptor_table_flwr_2fproto_2ftransport_2eproto); +namespace flwr { +namespace proto { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Code_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_flwr_2fproto_2ftransport_2eproto); + return file_level_enum_descriptors_flwr_2fproto_2ftransport_2eproto[0]; +} +bool Code_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Reason_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_flwr_2fproto_2ftransport_2eproto); + return file_level_enum_descriptors_flwr_2fproto_2ftransport_2eproto[1]; +} +bool Reason_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + + +// =================================================================== + +class Status::_Internal { + public: +}; + +Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Status) +} +Status::Status(const Status& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_message().empty()) { + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), + GetArenaForAllocation()); + } + code_ = from.code_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.Status) +} + +void Status::SharedCtor() { +message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +code_ = 0; +} + +Status::~Status() { + // @@protoc_insertion_point(destructor:flwr.proto.Status) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Status::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void Status::ArenaDtor(void* object) { + Status* _this = reinterpret_cast< Status* >(object); + (void)_this; +} +void Status::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Status::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Status::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Status) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + message_.ClearToEmpty(); + code_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Status::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Code code = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_code(static_cast<::flwr::proto::Code>(val)); + } else + goto handle_unusual; + continue; + // string message = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_message(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Status.message")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Status::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Status) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Code code = 1; + if (this->_internal_code() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_code(), target); + } + + // string message = 2; + if (!this->_internal_message().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Status.message"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_message(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Status) + return target; +} + +size_t Status::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Status) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string message = 2; + if (!this->_internal_message().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); + } + + // .flwr.proto.Code code = 1; + if (this->_internal_code() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_code()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Status::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + 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:flwr.proto.Status) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_message().empty()) { + _internal_set_message(from._internal_message()); + } + if (from._internal_code() != 0) { + _internal_set_code(from._internal_code()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Status::CopyFrom(const Status& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Status) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Status::IsInitialized() const { + return true; +} + +void Status::InternalSwap(Status* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &message_, lhs_arena, + &other->message_, rhs_arena + ); + swap(code_, other->code_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[0]); +} + +// =================================================================== + +class Parameters::_Internal { + public: +}; + +Parameters::Parameters(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + tensors_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Parameters) +} +Parameters::Parameters(const Parameters& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + tensors_(from.tensors_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + tensor_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_tensor_type().empty()) { + tensor_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_tensor_type(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.Parameters) +} + +void Parameters::SharedCtor() { +tensor_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +Parameters::~Parameters() { + // @@protoc_insertion_point(destructor:flwr.proto.Parameters) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Parameters::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + tensor_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void Parameters::ArenaDtor(void* object) { + Parameters* _this = reinterpret_cast< Parameters* >(object); + (void)_this; +} +void Parameters::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Parameters::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Parameters::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Parameters) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tensors_.Clear(); + tensor_type_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Parameters::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated bytes tensors = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_tensors(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // string tensor_type = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_tensor_type(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Parameters.tensor_type")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Parameters::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Parameters) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes tensors = 1; + for (int i = 0, n = this->_internal_tensors_size(); i < n; i++) { + const auto& s = this->_internal_tensors(i); + target = stream->WriteBytes(1, s, target); + } + + // string tensor_type = 2; + if (!this->_internal_tensor_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_tensor_type().data(), static_cast(this->_internal_tensor_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Parameters.tensor_type"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_tensor_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Parameters) + return target; +} + +size_t Parameters::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Parameters) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated bytes tensors = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(tensors_.size()); + for (int i = 0, n = tensors_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + tensors_.Get(i)); + } + + // string tensor_type = 2; + if (!this->_internal_tensor_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_tensor_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Parameters::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Parameters::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Parameters::GetClassData() const { return &_class_data_; } + +void Parameters::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Parameters::MergeFrom(const Parameters& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Parameters) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tensors_.MergeFrom(from.tensors_); + if (!from._internal_tensor_type().empty()) { + _internal_set_tensor_type(from._internal_tensor_type()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Parameters::CopyFrom(const Parameters& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Parameters) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Parameters::IsInitialized() const { + return true; +} + +void Parameters::InternalSwap(Parameters* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + tensors_.InternalSwap(&other->tensors_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &tensor_type_, lhs_arena, + &other->tensor_type_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Parameters::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[1]); +} + +// =================================================================== + +class ServerMessage_ReconnectIns::_Internal { + public: +}; + +ServerMessage_ReconnectIns::ServerMessage_ReconnectIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ServerMessage.ReconnectIns) +} +ServerMessage_ReconnectIns::ServerMessage_ReconnectIns(const ServerMessage_ReconnectIns& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + seconds_ = from.seconds_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.ServerMessage.ReconnectIns) +} + +void ServerMessage_ReconnectIns::SharedCtor() { +seconds_ = int64_t{0}; +} + +ServerMessage_ReconnectIns::~ServerMessage_ReconnectIns() { + // @@protoc_insertion_point(destructor:flwr.proto.ServerMessage.ReconnectIns) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ServerMessage_ReconnectIns::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ServerMessage_ReconnectIns::ArenaDtor(void* object) { + ServerMessage_ReconnectIns* _this = reinterpret_cast< ServerMessage_ReconnectIns* >(object); + (void)_this; +} +void ServerMessage_ReconnectIns::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ServerMessage_ReconnectIns::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ServerMessage_ReconnectIns::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ServerMessage.ReconnectIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + seconds_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ServerMessage_ReconnectIns::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 seconds = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ServerMessage_ReconnectIns::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ServerMessage.ReconnectIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 seconds = 1; + if (this->_internal_seconds() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_seconds(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ServerMessage.ReconnectIns) + return target; +} + +size_t ServerMessage_ReconnectIns::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ServerMessage.ReconnectIns) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 seconds = 1; + if (this->_internal_seconds() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_seconds()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServerMessage_ReconnectIns::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ServerMessage_ReconnectIns::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServerMessage_ReconnectIns::GetClassData() const { return &_class_data_; } + +void ServerMessage_ReconnectIns::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ServerMessage_ReconnectIns::MergeFrom(const ServerMessage_ReconnectIns& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ServerMessage.ReconnectIns) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_seconds() != 0) { + _internal_set_seconds(from._internal_seconds()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ServerMessage_ReconnectIns::CopyFrom(const ServerMessage_ReconnectIns& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ServerMessage.ReconnectIns) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServerMessage_ReconnectIns::IsInitialized() const { + return true; +} + +void ServerMessage_ReconnectIns::InternalSwap(ServerMessage_ReconnectIns* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(seconds_, other->seconds_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ServerMessage_ReconnectIns::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[2]); +} + +// =================================================================== + +ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse() {} +ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse::MergeFrom(const ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[3]); +} + +// =================================================================== + +class ServerMessage_GetPropertiesIns::_Internal { + public: +}; + +ServerMessage_GetPropertiesIns::ServerMessage_GetPropertiesIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + config_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ServerMessage.GetPropertiesIns) +} +ServerMessage_GetPropertiesIns::ServerMessage_GetPropertiesIns(const ServerMessage_GetPropertiesIns& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + config_.MergeFrom(from.config_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.ServerMessage.GetPropertiesIns) +} + +void ServerMessage_GetPropertiesIns::SharedCtor() { +} + +ServerMessage_GetPropertiesIns::~ServerMessage_GetPropertiesIns() { + // @@protoc_insertion_point(destructor:flwr.proto.ServerMessage.GetPropertiesIns) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ServerMessage_GetPropertiesIns::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ServerMessage_GetPropertiesIns::ArenaDtor(void* object) { + ServerMessage_GetPropertiesIns* _this = reinterpret_cast< ServerMessage_GetPropertiesIns* >(object); + (void)_this; + _this->config_. ~MapField(); +} +inline void ServerMessage_GetPropertiesIns::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &ServerMessage_GetPropertiesIns::ArenaDtor); + } +} +void ServerMessage_GetPropertiesIns::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ServerMessage_GetPropertiesIns::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ServerMessage.GetPropertiesIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + config_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ServerMessage_GetPropertiesIns::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // map config = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&config_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ServerMessage_GetPropertiesIns::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ServerMessage.GetPropertiesIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map config = 1; + if (!this->_internal_config().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + (void)p; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.ServerMessage.GetPropertiesIns.ConfigEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_config().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_config().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::size_type size_type; + size_type n = 0; + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + for (size_type i = 0; i < n; i++) { + target = ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse::Funcs::InternalSerialize(1, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it) { + target = ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse::Funcs::InternalSerialize(1, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ServerMessage.GetPropertiesIns) + return target; +} + +size_t ServerMessage_GetPropertiesIns::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ServerMessage.GetPropertiesIns) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map config = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_config_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it) { + total_size += ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServerMessage_GetPropertiesIns::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ServerMessage_GetPropertiesIns::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServerMessage_GetPropertiesIns::GetClassData() const { return &_class_data_; } + +void ServerMessage_GetPropertiesIns::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ServerMessage_GetPropertiesIns::MergeFrom(const ServerMessage_GetPropertiesIns& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ServerMessage.GetPropertiesIns) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + config_.MergeFrom(from.config_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ServerMessage_GetPropertiesIns::CopyFrom(const ServerMessage_GetPropertiesIns& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ServerMessage.GetPropertiesIns) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServerMessage_GetPropertiesIns::IsInitialized() const { + return true; +} + +void ServerMessage_GetPropertiesIns::InternalSwap(ServerMessage_GetPropertiesIns* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + config_.InternalSwap(&other->config_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ServerMessage_GetPropertiesIns::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[4]); +} + +// =================================================================== + +ServerMessage_GetParametersIns_ConfigEntry_DoNotUse::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse() {} +ServerMessage_GetParametersIns_ConfigEntry_DoNotUse::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ServerMessage_GetParametersIns_ConfigEntry_DoNotUse::MergeFrom(const ServerMessage_GetParametersIns_ConfigEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ServerMessage_GetParametersIns_ConfigEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[5]); +} + +// =================================================================== + +class ServerMessage_GetParametersIns::_Internal { + public: +}; + +ServerMessage_GetParametersIns::ServerMessage_GetParametersIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + config_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ServerMessage.GetParametersIns) +} +ServerMessage_GetParametersIns::ServerMessage_GetParametersIns(const ServerMessage_GetParametersIns& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + config_.MergeFrom(from.config_); + // @@protoc_insertion_point(copy_constructor:flwr.proto.ServerMessage.GetParametersIns) +} + +void ServerMessage_GetParametersIns::SharedCtor() { +} + +ServerMessage_GetParametersIns::~ServerMessage_GetParametersIns() { + // @@protoc_insertion_point(destructor:flwr.proto.ServerMessage.GetParametersIns) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ServerMessage_GetParametersIns::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ServerMessage_GetParametersIns::ArenaDtor(void* object) { + ServerMessage_GetParametersIns* _this = reinterpret_cast< ServerMessage_GetParametersIns* >(object); + (void)_this; + _this->config_. ~MapField(); +} +inline void ServerMessage_GetParametersIns::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &ServerMessage_GetParametersIns::ArenaDtor); + } +} +void ServerMessage_GetParametersIns::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ServerMessage_GetParametersIns::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ServerMessage.GetParametersIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + config_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ServerMessage_GetParametersIns::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // map config = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&config_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ServerMessage_GetParametersIns::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ServerMessage.GetParametersIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map config = 1; + if (!this->_internal_config().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + (void)p; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.ServerMessage.GetParametersIns.ConfigEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_config().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_config().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::size_type size_type; + size_type n = 0; + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + for (size_type i = 0; i < n; i++) { + target = ServerMessage_GetParametersIns_ConfigEntry_DoNotUse::Funcs::InternalSerialize(1, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it) { + target = ServerMessage_GetParametersIns_ConfigEntry_DoNotUse::Funcs::InternalSerialize(1, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ServerMessage.GetParametersIns) + return target; +} + +size_t ServerMessage_GetParametersIns::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ServerMessage.GetParametersIns) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map config = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_config_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it) { + total_size += ServerMessage_GetParametersIns_ConfigEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServerMessage_GetParametersIns::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ServerMessage_GetParametersIns::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServerMessage_GetParametersIns::GetClassData() const { return &_class_data_; } + +void ServerMessage_GetParametersIns::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ServerMessage_GetParametersIns::MergeFrom(const ServerMessage_GetParametersIns& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ServerMessage.GetParametersIns) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + config_.MergeFrom(from.config_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ServerMessage_GetParametersIns::CopyFrom(const ServerMessage_GetParametersIns& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ServerMessage.GetParametersIns) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServerMessage_GetParametersIns::IsInitialized() const { + return true; +} + +void ServerMessage_GetParametersIns::InternalSwap(ServerMessage_GetParametersIns* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + config_.InternalSwap(&other->config_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ServerMessage_GetParametersIns::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[6]); +} + +// =================================================================== + +ServerMessage_FitIns_ConfigEntry_DoNotUse::ServerMessage_FitIns_ConfigEntry_DoNotUse() {} +ServerMessage_FitIns_ConfigEntry_DoNotUse::ServerMessage_FitIns_ConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ServerMessage_FitIns_ConfigEntry_DoNotUse::MergeFrom(const ServerMessage_FitIns_ConfigEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ServerMessage_FitIns_ConfigEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[7]); +} + +// =================================================================== + +class ServerMessage_FitIns::_Internal { + public: + static const ::flwr::proto::Parameters& parameters(const ServerMessage_FitIns* msg); +}; + +const ::flwr::proto::Parameters& +ServerMessage_FitIns::_Internal::parameters(const ServerMessage_FitIns* msg) { + return *msg->parameters_; +} +ServerMessage_FitIns::ServerMessage_FitIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + config_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ServerMessage.FitIns) +} +ServerMessage_FitIns::ServerMessage_FitIns(const ServerMessage_FitIns& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + config_.MergeFrom(from.config_); + if (from._internal_has_parameters()) { + parameters_ = new ::flwr::proto::Parameters(*from.parameters_); + } else { + parameters_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.ServerMessage.FitIns) +} + +void ServerMessage_FitIns::SharedCtor() { +parameters_ = nullptr; +} + +ServerMessage_FitIns::~ServerMessage_FitIns() { + // @@protoc_insertion_point(destructor:flwr.proto.ServerMessage.FitIns) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ServerMessage_FitIns::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete parameters_; +} + +void ServerMessage_FitIns::ArenaDtor(void* object) { + ServerMessage_FitIns* _this = reinterpret_cast< ServerMessage_FitIns* >(object); + (void)_this; + _this->config_. ~MapField(); +} +inline void ServerMessage_FitIns::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &ServerMessage_FitIns::ArenaDtor); + } +} +void ServerMessage_FitIns::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ServerMessage_FitIns::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ServerMessage.FitIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + config_.Clear(); + if (GetArenaForAllocation() == nullptr && parameters_ != nullptr) { + delete parameters_; + } + parameters_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ServerMessage_FitIns::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Parameters parameters = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_parameters(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map config = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&config_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ServerMessage_FitIns::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ServerMessage.FitIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Parameters parameters = 1; + if (this->_internal_has_parameters()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::parameters(this), target, stream); + } + + // map config = 2; + if (!this->_internal_config().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + (void)p; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.ServerMessage.FitIns.ConfigEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_config().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_config().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::size_type size_type; + size_type n = 0; + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + for (size_type i = 0; i < n; i++) { + target = ServerMessage_FitIns_ConfigEntry_DoNotUse::Funcs::InternalSerialize(2, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it) { + target = ServerMessage_FitIns_ConfigEntry_DoNotUse::Funcs::InternalSerialize(2, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ServerMessage.FitIns) + return target; +} + +size_t ServerMessage_FitIns::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ServerMessage.FitIns) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map config = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_config_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it) { + total_size += ServerMessage_FitIns_ConfigEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // .flwr.proto.Parameters parameters = 1; + if (this->_internal_has_parameters()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *parameters_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServerMessage_FitIns::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ServerMessage_FitIns::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServerMessage_FitIns::GetClassData() const { return &_class_data_; } + +void ServerMessage_FitIns::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ServerMessage_FitIns::MergeFrom(const ServerMessage_FitIns& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ServerMessage.FitIns) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + config_.MergeFrom(from.config_); + if (from._internal_has_parameters()) { + _internal_mutable_parameters()->::flwr::proto::Parameters::MergeFrom(from._internal_parameters()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ServerMessage_FitIns::CopyFrom(const ServerMessage_FitIns& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ServerMessage.FitIns) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServerMessage_FitIns::IsInitialized() const { + return true; +} + +void ServerMessage_FitIns::InternalSwap(ServerMessage_FitIns* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + config_.InternalSwap(&other->config_); + swap(parameters_, other->parameters_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ServerMessage_FitIns::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[8]); +} + +// =================================================================== + +ServerMessage_EvaluateIns_ConfigEntry_DoNotUse::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse() {} +ServerMessage_EvaluateIns_ConfigEntry_DoNotUse::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ServerMessage_EvaluateIns_ConfigEntry_DoNotUse::MergeFrom(const ServerMessage_EvaluateIns_ConfigEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ServerMessage_EvaluateIns_ConfigEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[9]); +} + +// =================================================================== + +class ServerMessage_EvaluateIns::_Internal { + public: + static const ::flwr::proto::Parameters& parameters(const ServerMessage_EvaluateIns* msg); +}; + +const ::flwr::proto::Parameters& +ServerMessage_EvaluateIns::_Internal::parameters(const ServerMessage_EvaluateIns* msg) { + return *msg->parameters_; +} +ServerMessage_EvaluateIns::ServerMessage_EvaluateIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + config_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ServerMessage.EvaluateIns) +} +ServerMessage_EvaluateIns::ServerMessage_EvaluateIns(const ServerMessage_EvaluateIns& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + config_.MergeFrom(from.config_); + if (from._internal_has_parameters()) { + parameters_ = new ::flwr::proto::Parameters(*from.parameters_); + } else { + parameters_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.ServerMessage.EvaluateIns) +} + +void ServerMessage_EvaluateIns::SharedCtor() { +parameters_ = nullptr; +} + +ServerMessage_EvaluateIns::~ServerMessage_EvaluateIns() { + // @@protoc_insertion_point(destructor:flwr.proto.ServerMessage.EvaluateIns) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ServerMessage_EvaluateIns::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete parameters_; +} + +void ServerMessage_EvaluateIns::ArenaDtor(void* object) { + ServerMessage_EvaluateIns* _this = reinterpret_cast< ServerMessage_EvaluateIns* >(object); + (void)_this; + _this->config_. ~MapField(); +} +inline void ServerMessage_EvaluateIns::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &ServerMessage_EvaluateIns::ArenaDtor); + } +} +void ServerMessage_EvaluateIns::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ServerMessage_EvaluateIns::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ServerMessage.EvaluateIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + config_.Clear(); + if (GetArenaForAllocation() == nullptr && parameters_ != nullptr) { + delete parameters_; + } + parameters_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ServerMessage_EvaluateIns::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Parameters parameters = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_parameters(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map config = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&config_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ServerMessage_EvaluateIns::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ServerMessage.EvaluateIns) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Parameters parameters = 1; + if (this->_internal_has_parameters()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::parameters(this), target, stream); + } + + // map config = 2; + if (!this->_internal_config().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + (void)p; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.ServerMessage.EvaluateIns.ConfigEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_config().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_config().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::size_type size_type; + size_type n = 0; + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + for (size_type i = 0; i < n; i++) { + target = ServerMessage_EvaluateIns_ConfigEntry_DoNotUse::Funcs::InternalSerialize(2, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it) { + target = ServerMessage_EvaluateIns_ConfigEntry_DoNotUse::Funcs::InternalSerialize(2, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ServerMessage.EvaluateIns) + return target; +} + +size_t ServerMessage_EvaluateIns::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ServerMessage.EvaluateIns) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map config = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_config_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_config().begin(); + it != this->_internal_config().end(); ++it) { + total_size += ServerMessage_EvaluateIns_ConfigEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // .flwr.proto.Parameters parameters = 1; + if (this->_internal_has_parameters()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *parameters_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServerMessage_EvaluateIns::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ServerMessage_EvaluateIns::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServerMessage_EvaluateIns::GetClassData() const { return &_class_data_; } + +void ServerMessage_EvaluateIns::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ServerMessage_EvaluateIns::MergeFrom(const ServerMessage_EvaluateIns& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ServerMessage.EvaluateIns) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + config_.MergeFrom(from.config_); + if (from._internal_has_parameters()) { + _internal_mutable_parameters()->::flwr::proto::Parameters::MergeFrom(from._internal_parameters()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ServerMessage_EvaluateIns::CopyFrom(const ServerMessage_EvaluateIns& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ServerMessage.EvaluateIns) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServerMessage_EvaluateIns::IsInitialized() const { + return true; +} + +void ServerMessage_EvaluateIns::InternalSwap(ServerMessage_EvaluateIns* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + config_.InternalSwap(&other->config_); + swap(parameters_, other->parameters_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ServerMessage_EvaluateIns::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[10]); +} + +// =================================================================== + +class ServerMessage::_Internal { + public: + static const ::flwr::proto::ServerMessage_ReconnectIns& reconnect_ins(const ServerMessage* msg); + static const ::flwr::proto::ServerMessage_GetPropertiesIns& get_properties_ins(const ServerMessage* msg); + static const ::flwr::proto::ServerMessage_GetParametersIns& get_parameters_ins(const ServerMessage* msg); + static const ::flwr::proto::ServerMessage_FitIns& fit_ins(const ServerMessage* msg); + static const ::flwr::proto::ServerMessage_EvaluateIns& evaluate_ins(const ServerMessage* msg); +}; + +const ::flwr::proto::ServerMessage_ReconnectIns& +ServerMessage::_Internal::reconnect_ins(const ServerMessage* msg) { + return *msg->msg_.reconnect_ins_; +} +const ::flwr::proto::ServerMessage_GetPropertiesIns& +ServerMessage::_Internal::get_properties_ins(const ServerMessage* msg) { + return *msg->msg_.get_properties_ins_; +} +const ::flwr::proto::ServerMessage_GetParametersIns& +ServerMessage::_Internal::get_parameters_ins(const ServerMessage* msg) { + return *msg->msg_.get_parameters_ins_; +} +const ::flwr::proto::ServerMessage_FitIns& +ServerMessage::_Internal::fit_ins(const ServerMessage* msg) { + return *msg->msg_.fit_ins_; +} +const ::flwr::proto::ServerMessage_EvaluateIns& +ServerMessage::_Internal::evaluate_ins(const ServerMessage* msg) { + return *msg->msg_.evaluate_ins_; +} +void ServerMessage::set_allocated_reconnect_ins(::flwr::proto::ServerMessage_ReconnectIns* reconnect_ins) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_msg(); + if (reconnect_ins) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ServerMessage_ReconnectIns>::GetOwningArena(reconnect_ins); + if (message_arena != submessage_arena) { + reconnect_ins = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, reconnect_ins, submessage_arena); + } + set_has_reconnect_ins(); + msg_.reconnect_ins_ = reconnect_ins; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ServerMessage.reconnect_ins) +} +void ServerMessage::set_allocated_get_properties_ins(::flwr::proto::ServerMessage_GetPropertiesIns* get_properties_ins) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_msg(); + if (get_properties_ins) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ServerMessage_GetPropertiesIns>::GetOwningArena(get_properties_ins); + if (message_arena != submessage_arena) { + get_properties_ins = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, get_properties_ins, submessage_arena); + } + set_has_get_properties_ins(); + msg_.get_properties_ins_ = get_properties_ins; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ServerMessage.get_properties_ins) +} +void ServerMessage::set_allocated_get_parameters_ins(::flwr::proto::ServerMessage_GetParametersIns* get_parameters_ins) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_msg(); + if (get_parameters_ins) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ServerMessage_GetParametersIns>::GetOwningArena(get_parameters_ins); + if (message_arena != submessage_arena) { + get_parameters_ins = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, get_parameters_ins, submessage_arena); + } + set_has_get_parameters_ins(); + msg_.get_parameters_ins_ = get_parameters_ins; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ServerMessage.get_parameters_ins) +} +void ServerMessage::set_allocated_fit_ins(::flwr::proto::ServerMessage_FitIns* fit_ins) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_msg(); + if (fit_ins) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ServerMessage_FitIns>::GetOwningArena(fit_ins); + if (message_arena != submessage_arena) { + fit_ins = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fit_ins, submessage_arena); + } + set_has_fit_ins(); + msg_.fit_ins_ = fit_ins; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ServerMessage.fit_ins) +} +void ServerMessage::set_allocated_evaluate_ins(::flwr::proto::ServerMessage_EvaluateIns* evaluate_ins) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_msg(); + if (evaluate_ins) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ServerMessage_EvaluateIns>::GetOwningArena(evaluate_ins); + if (message_arena != submessage_arena) { + evaluate_ins = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, evaluate_ins, submessage_arena); + } + set_has_evaluate_ins(); + msg_.evaluate_ins_ = evaluate_ins; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ServerMessage.evaluate_ins) +} +ServerMessage::ServerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ServerMessage) +} +ServerMessage::ServerMessage(const ServerMessage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_msg(); + switch (from.msg_case()) { + case kReconnectIns: { + _internal_mutable_reconnect_ins()->::flwr::proto::ServerMessage_ReconnectIns::MergeFrom(from._internal_reconnect_ins()); + break; + } + case kGetPropertiesIns: { + _internal_mutable_get_properties_ins()->::flwr::proto::ServerMessage_GetPropertiesIns::MergeFrom(from._internal_get_properties_ins()); + break; + } + case kGetParametersIns: { + _internal_mutable_get_parameters_ins()->::flwr::proto::ServerMessage_GetParametersIns::MergeFrom(from._internal_get_parameters_ins()); + break; + } + case kFitIns: { + _internal_mutable_fit_ins()->::flwr::proto::ServerMessage_FitIns::MergeFrom(from._internal_fit_ins()); + break; + } + case kEvaluateIns: { + _internal_mutable_evaluate_ins()->::flwr::proto::ServerMessage_EvaluateIns::MergeFrom(from._internal_evaluate_ins()); + break; + } + case MSG_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.ServerMessage) +} + +void ServerMessage::SharedCtor() { +clear_has_msg(); +} + +ServerMessage::~ServerMessage() { + // @@protoc_insertion_point(destructor:flwr.proto.ServerMessage) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ServerMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_msg()) { + clear_msg(); + } +} + +void ServerMessage::ArenaDtor(void* object) { + ServerMessage* _this = reinterpret_cast< ServerMessage* >(object); + (void)_this; +} +void ServerMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ServerMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ServerMessage::clear_msg() { +// @@protoc_insertion_point(one_of_clear_start:flwr.proto.ServerMessage) + switch (msg_case()) { + case kReconnectIns: { + if (GetArenaForAllocation() == nullptr) { + delete msg_.reconnect_ins_; + } + break; + } + case kGetPropertiesIns: { + if (GetArenaForAllocation() == nullptr) { + delete msg_.get_properties_ins_; + } + break; + } + case kGetParametersIns: { + if (GetArenaForAllocation() == nullptr) { + delete msg_.get_parameters_ins_; + } + break; + } + case kFitIns: { + if (GetArenaForAllocation() == nullptr) { + delete msg_.fit_ins_; + } + break; + } + case kEvaluateIns: { + if (GetArenaForAllocation() == nullptr) { + delete msg_.evaluate_ins_; + } + break; + } + case MSG_NOT_SET: { + break; + } + } + _oneof_case_[0] = MSG_NOT_SET; +} + + +void ServerMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ServerMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_msg(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ServerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.ServerMessage.ReconnectIns reconnect_ins = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_reconnect_ins(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ServerMessage.GetPropertiesIns get_properties_ins = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_get_properties_ins(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ServerMessage.GetParametersIns get_parameters_ins = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_get_parameters_ins(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ServerMessage.FitIns fit_ins = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_fit_ins(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ServerMessage.EvaluateIns evaluate_ins = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_evaluate_ins(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ServerMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ServerMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.ServerMessage.ReconnectIns reconnect_ins = 1; + if (_internal_has_reconnect_ins()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::reconnect_ins(this), target, stream); + } + + // .flwr.proto.ServerMessage.GetPropertiesIns get_properties_ins = 2; + if (_internal_has_get_properties_ins()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::get_properties_ins(this), target, stream); + } + + // .flwr.proto.ServerMessage.GetParametersIns get_parameters_ins = 3; + if (_internal_has_get_parameters_ins()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::get_parameters_ins(this), target, stream); + } + + // .flwr.proto.ServerMessage.FitIns fit_ins = 4; + if (_internal_has_fit_ins()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::fit_ins(this), target, stream); + } + + // .flwr.proto.ServerMessage.EvaluateIns evaluate_ins = 5; + if (_internal_has_evaluate_ins()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 5, _Internal::evaluate_ins(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ServerMessage) + return target; +} + +size_t ServerMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ServerMessage) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (msg_case()) { + // .flwr.proto.ServerMessage.ReconnectIns reconnect_ins = 1; + case kReconnectIns: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *msg_.reconnect_ins_); + break; + } + // .flwr.proto.ServerMessage.GetPropertiesIns get_properties_ins = 2; + case kGetPropertiesIns: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *msg_.get_properties_ins_); + break; + } + // .flwr.proto.ServerMessage.GetParametersIns get_parameters_ins = 3; + case kGetParametersIns: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *msg_.get_parameters_ins_); + break; + } + // .flwr.proto.ServerMessage.FitIns fit_ins = 4; + case kFitIns: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *msg_.fit_ins_); + break; + } + // .flwr.proto.ServerMessage.EvaluateIns evaluate_ins = 5; + case kEvaluateIns: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *msg_.evaluate_ins_); + break; + } + case MSG_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServerMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ServerMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServerMessage::GetClassData() const { return &_class_data_; } + +void ServerMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ServerMessage::MergeFrom(const ServerMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ServerMessage) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.msg_case()) { + case kReconnectIns: { + _internal_mutable_reconnect_ins()->::flwr::proto::ServerMessage_ReconnectIns::MergeFrom(from._internal_reconnect_ins()); + break; + } + case kGetPropertiesIns: { + _internal_mutable_get_properties_ins()->::flwr::proto::ServerMessage_GetPropertiesIns::MergeFrom(from._internal_get_properties_ins()); + break; + } + case kGetParametersIns: { + _internal_mutable_get_parameters_ins()->::flwr::proto::ServerMessage_GetParametersIns::MergeFrom(from._internal_get_parameters_ins()); + break; + } + case kFitIns: { + _internal_mutable_fit_ins()->::flwr::proto::ServerMessage_FitIns::MergeFrom(from._internal_fit_ins()); + break; + } + case kEvaluateIns: { + _internal_mutable_evaluate_ins()->::flwr::proto::ServerMessage_EvaluateIns::MergeFrom(from._internal_evaluate_ins()); + break; + } + case MSG_NOT_SET: { + break; + } + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ServerMessage::CopyFrom(const ServerMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ServerMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ServerMessage::IsInitialized() const { + return true; +} + +void ServerMessage::InternalSwap(ServerMessage* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(msg_, other->msg_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ServerMessage::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[11]); +} + +// =================================================================== + +class ClientMessage_DisconnectRes::_Internal { + public: +}; + +ClientMessage_DisconnectRes::ClientMessage_DisconnectRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ClientMessage.DisconnectRes) +} +ClientMessage_DisconnectRes::ClientMessage_DisconnectRes(const ClientMessage_DisconnectRes& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + reason_ = from.reason_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.ClientMessage.DisconnectRes) +} + +void ClientMessage_DisconnectRes::SharedCtor() { +reason_ = 0; +} + +ClientMessage_DisconnectRes::~ClientMessage_DisconnectRes() { + // @@protoc_insertion_point(destructor:flwr.proto.ClientMessage.DisconnectRes) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ClientMessage_DisconnectRes::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void ClientMessage_DisconnectRes::ArenaDtor(void* object) { + ClientMessage_DisconnectRes* _this = reinterpret_cast< ClientMessage_DisconnectRes* >(object); + (void)_this; +} +void ClientMessage_DisconnectRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ClientMessage_DisconnectRes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ClientMessage_DisconnectRes::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ClientMessage.DisconnectRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + reason_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ClientMessage_DisconnectRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Reason reason = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_reason(static_cast<::flwr::proto::Reason>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ClientMessage_DisconnectRes::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ClientMessage.DisconnectRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Reason reason = 1; + if (this->_internal_reason() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_reason(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ClientMessage.DisconnectRes) + return target; +} + +size_t ClientMessage_DisconnectRes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ClientMessage.DisconnectRes) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flwr.proto.Reason reason = 1; + if (this->_internal_reason() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_reason()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ClientMessage_DisconnectRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ClientMessage_DisconnectRes::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ClientMessage_DisconnectRes::GetClassData() const { return &_class_data_; } + +void ClientMessage_DisconnectRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ClientMessage_DisconnectRes::MergeFrom(const ClientMessage_DisconnectRes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ClientMessage.DisconnectRes) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_reason() != 0) { + _internal_set_reason(from._internal_reason()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ClientMessage_DisconnectRes::CopyFrom(const ClientMessage_DisconnectRes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ClientMessage.DisconnectRes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClientMessage_DisconnectRes::IsInitialized() const { + return true; +} + +void ClientMessage_DisconnectRes::InternalSwap(ClientMessage_DisconnectRes* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(reason_, other->reason_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ClientMessage_DisconnectRes::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[12]); +} + +// =================================================================== + +ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse() {} +ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse::MergeFrom(const ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[13]); +} + +// =================================================================== + +class ClientMessage_GetPropertiesRes::_Internal { + public: + static const ::flwr::proto::Status& status(const ClientMessage_GetPropertiesRes* msg); +}; + +const ::flwr::proto::Status& +ClientMessage_GetPropertiesRes::_Internal::status(const ClientMessage_GetPropertiesRes* msg) { + return *msg->status_; +} +ClientMessage_GetPropertiesRes::ClientMessage_GetPropertiesRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + properties_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ClientMessage.GetPropertiesRes) +} +ClientMessage_GetPropertiesRes::ClientMessage_GetPropertiesRes(const ClientMessage_GetPropertiesRes& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + properties_.MergeFrom(from.properties_); + if (from._internal_has_status()) { + status_ = new ::flwr::proto::Status(*from.status_); + } else { + status_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.ClientMessage.GetPropertiesRes) +} + +void ClientMessage_GetPropertiesRes::SharedCtor() { +status_ = nullptr; +} + +ClientMessage_GetPropertiesRes::~ClientMessage_GetPropertiesRes() { + // @@protoc_insertion_point(destructor:flwr.proto.ClientMessage.GetPropertiesRes) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ClientMessage_GetPropertiesRes::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete status_; +} + +void ClientMessage_GetPropertiesRes::ArenaDtor(void* object) { + ClientMessage_GetPropertiesRes* _this = reinterpret_cast< ClientMessage_GetPropertiesRes* >(object); + (void)_this; + _this->properties_. ~MapField(); +} +inline void ClientMessage_GetPropertiesRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &ClientMessage_GetPropertiesRes::ArenaDtor); + } +} +void ClientMessage_GetPropertiesRes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ClientMessage_GetPropertiesRes::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ClientMessage.GetPropertiesRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + properties_.Clear(); + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ClientMessage_GetPropertiesRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map properties = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&properties_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ClientMessage_GetPropertiesRes::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ClientMessage.GetPropertiesRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Status status = 1; + if (this->_internal_has_status()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::status(this), target, stream); + } + + // map properties = 2; + if (!this->_internal_properties().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + (void)p; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.ClientMessage.GetPropertiesRes.PropertiesEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_properties().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_properties().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::size_type size_type; + size_type n = 0; + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_properties().begin(); + it != this->_internal_properties().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + for (size_type i = 0; i < n; i++) { + target = ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse::Funcs::InternalSerialize(2, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_properties().begin(); + it != this->_internal_properties().end(); ++it) { + target = ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse::Funcs::InternalSerialize(2, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ClientMessage.GetPropertiesRes) + return target; +} + +size_t ClientMessage_GetPropertiesRes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ClientMessage.GetPropertiesRes) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map properties = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_properties_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_properties().begin(); + it != this->_internal_properties().end(); ++it) { + total_size += ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // .flwr.proto.Status status = 1; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ClientMessage_GetPropertiesRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ClientMessage_GetPropertiesRes::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ClientMessage_GetPropertiesRes::GetClassData() const { return &_class_data_; } + +void ClientMessage_GetPropertiesRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ClientMessage_GetPropertiesRes::MergeFrom(const ClientMessage_GetPropertiesRes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ClientMessage.GetPropertiesRes) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + properties_.MergeFrom(from.properties_); + if (from._internal_has_status()) { + _internal_mutable_status()->::flwr::proto::Status::MergeFrom(from._internal_status()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ClientMessage_GetPropertiesRes::CopyFrom(const ClientMessage_GetPropertiesRes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ClientMessage.GetPropertiesRes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClientMessage_GetPropertiesRes::IsInitialized() const { + return true; +} + +void ClientMessage_GetPropertiesRes::InternalSwap(ClientMessage_GetPropertiesRes* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + properties_.InternalSwap(&other->properties_); + swap(status_, other->status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ClientMessage_GetPropertiesRes::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[14]); +} + +// =================================================================== + +class ClientMessage_GetParametersRes::_Internal { + public: + static const ::flwr::proto::Status& status(const ClientMessage_GetParametersRes* msg); + static const ::flwr::proto::Parameters& parameters(const ClientMessage_GetParametersRes* msg); +}; + +const ::flwr::proto::Status& +ClientMessage_GetParametersRes::_Internal::status(const ClientMessage_GetParametersRes* msg) { + return *msg->status_; +} +const ::flwr::proto::Parameters& +ClientMessage_GetParametersRes::_Internal::parameters(const ClientMessage_GetParametersRes* msg) { + return *msg->parameters_; +} +ClientMessage_GetParametersRes::ClientMessage_GetParametersRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ClientMessage.GetParametersRes) +} +ClientMessage_GetParametersRes::ClientMessage_GetParametersRes(const ClientMessage_GetParametersRes& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_status()) { + status_ = new ::flwr::proto::Status(*from.status_); + } else { + status_ = nullptr; + } + if (from._internal_has_parameters()) { + parameters_ = new ::flwr::proto::Parameters(*from.parameters_); + } else { + parameters_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.ClientMessage.GetParametersRes) +} + +void ClientMessage_GetParametersRes::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&status_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(¶meters_) - + reinterpret_cast(&status_)) + sizeof(parameters_)); +} + +ClientMessage_GetParametersRes::~ClientMessage_GetParametersRes() { + // @@protoc_insertion_point(destructor:flwr.proto.ClientMessage.GetParametersRes) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ClientMessage_GetParametersRes::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete status_; + if (this != internal_default_instance()) delete parameters_; +} + +void ClientMessage_GetParametersRes::ArenaDtor(void* object) { + ClientMessage_GetParametersRes* _this = reinterpret_cast< ClientMessage_GetParametersRes* >(object); + (void)_this; +} +void ClientMessage_GetParametersRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ClientMessage_GetParametersRes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ClientMessage_GetParametersRes::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ClientMessage.GetParametersRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + if (GetArenaForAllocation() == nullptr && parameters_ != nullptr) { + delete parameters_; + } + parameters_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ClientMessage_GetParametersRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.Parameters parameters = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_parameters(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ClientMessage_GetParametersRes::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ClientMessage.GetParametersRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Status status = 1; + if (this->_internal_has_status()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::status(this), target, stream); + } + + // .flwr.proto.Parameters parameters = 2; + if (this->_internal_has_parameters()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::parameters(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ClientMessage.GetParametersRes) + return target; +} + +size_t ClientMessage_GetParametersRes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ClientMessage.GetParametersRes) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flwr.proto.Status status = 1; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // .flwr.proto.Parameters parameters = 2; + if (this->_internal_has_parameters()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *parameters_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ClientMessage_GetParametersRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ClientMessage_GetParametersRes::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ClientMessage_GetParametersRes::GetClassData() const { return &_class_data_; } + +void ClientMessage_GetParametersRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ClientMessage_GetParametersRes::MergeFrom(const ClientMessage_GetParametersRes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ClientMessage.GetParametersRes) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_status()) { + _internal_mutable_status()->::flwr::proto::Status::MergeFrom(from._internal_status()); + } + if (from._internal_has_parameters()) { + _internal_mutable_parameters()->::flwr::proto::Parameters::MergeFrom(from._internal_parameters()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ClientMessage_GetParametersRes::CopyFrom(const ClientMessage_GetParametersRes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ClientMessage.GetParametersRes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClientMessage_GetParametersRes::IsInitialized() const { + return true; +} + +void ClientMessage_GetParametersRes::InternalSwap(ClientMessage_GetParametersRes* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ClientMessage_GetParametersRes, parameters_) + + sizeof(ClientMessage_GetParametersRes::parameters_) + - PROTOBUF_FIELD_OFFSET(ClientMessage_GetParametersRes, status_)>( + reinterpret_cast(&status_), + reinterpret_cast(&other->status_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ClientMessage_GetParametersRes::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[15]); +} + +// =================================================================== + +ClientMessage_FitRes_MetricsEntry_DoNotUse::ClientMessage_FitRes_MetricsEntry_DoNotUse() {} +ClientMessage_FitRes_MetricsEntry_DoNotUse::ClientMessage_FitRes_MetricsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ClientMessage_FitRes_MetricsEntry_DoNotUse::MergeFrom(const ClientMessage_FitRes_MetricsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ClientMessage_FitRes_MetricsEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[16]); +} + +// =================================================================== + +class ClientMessage_FitRes::_Internal { + public: + static const ::flwr::proto::Status& status(const ClientMessage_FitRes* msg); + static const ::flwr::proto::Parameters& parameters(const ClientMessage_FitRes* msg); +}; + +const ::flwr::proto::Status& +ClientMessage_FitRes::_Internal::status(const ClientMessage_FitRes* msg) { + return *msg->status_; +} +const ::flwr::proto::Parameters& +ClientMessage_FitRes::_Internal::parameters(const ClientMessage_FitRes* msg) { + return *msg->parameters_; +} +ClientMessage_FitRes::ClientMessage_FitRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + metrics_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ClientMessage.FitRes) +} +ClientMessage_FitRes::ClientMessage_FitRes(const ClientMessage_FitRes& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + metrics_.MergeFrom(from.metrics_); + if (from._internal_has_status()) { + status_ = new ::flwr::proto::Status(*from.status_); + } else { + status_ = nullptr; + } + if (from._internal_has_parameters()) { + parameters_ = new ::flwr::proto::Parameters(*from.parameters_); + } else { + parameters_ = nullptr; + } + num_examples_ = from.num_examples_; + // @@protoc_insertion_point(copy_constructor:flwr.proto.ClientMessage.FitRes) +} + +void ClientMessage_FitRes::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&status_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&num_examples_) - + reinterpret_cast(&status_)) + sizeof(num_examples_)); +} + +ClientMessage_FitRes::~ClientMessage_FitRes() { + // @@protoc_insertion_point(destructor:flwr.proto.ClientMessage.FitRes) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ClientMessage_FitRes::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete status_; + if (this != internal_default_instance()) delete parameters_; +} + +void ClientMessage_FitRes::ArenaDtor(void* object) { + ClientMessage_FitRes* _this = reinterpret_cast< ClientMessage_FitRes* >(object); + (void)_this; + _this->metrics_. ~MapField(); +} +inline void ClientMessage_FitRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &ClientMessage_FitRes::ArenaDtor); + } +} +void ClientMessage_FitRes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ClientMessage_FitRes::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ClientMessage.FitRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metrics_.Clear(); + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + if (GetArenaForAllocation() == nullptr && parameters_ != nullptr) { + delete parameters_; + } + parameters_ = nullptr; + num_examples_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ClientMessage_FitRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.Parameters parameters = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_parameters(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 num_examples = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + num_examples_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map metrics = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&metrics_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ClientMessage_FitRes::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ClientMessage.FitRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Status status = 1; + if (this->_internal_has_status()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::status(this), target, stream); + } + + // .flwr.proto.Parameters parameters = 2; + if (this->_internal_has_parameters()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::parameters(this), target, stream); + } + + // int64 num_examples = 3; + if (this->_internal_num_examples() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_num_examples(), target); + } + + // map metrics = 4; + if (!this->_internal_metrics().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + (void)p; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.ClientMessage.FitRes.MetricsEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_metrics().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_metrics().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::size_type size_type; + size_type n = 0; + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_metrics().begin(); + it != this->_internal_metrics().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + for (size_type i = 0; i < n; i++) { + target = ClientMessage_FitRes_MetricsEntry_DoNotUse::Funcs::InternalSerialize(4, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_metrics().begin(); + it != this->_internal_metrics().end(); ++it) { + target = ClientMessage_FitRes_MetricsEntry_DoNotUse::Funcs::InternalSerialize(4, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ClientMessage.FitRes) + return target; +} + +size_t ClientMessage_FitRes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ClientMessage.FitRes) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map metrics = 4; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_metrics_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_metrics().begin(); + it != this->_internal_metrics().end(); ++it) { + total_size += ClientMessage_FitRes_MetricsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // .flwr.proto.Status status = 1; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // .flwr.proto.Parameters parameters = 2; + if (this->_internal_has_parameters()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *parameters_); + } + + // int64 num_examples = 3; + if (this->_internal_num_examples() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_num_examples()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ClientMessage_FitRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ClientMessage_FitRes::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ClientMessage_FitRes::GetClassData() const { return &_class_data_; } + +void ClientMessage_FitRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ClientMessage_FitRes::MergeFrom(const ClientMessage_FitRes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ClientMessage.FitRes) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + metrics_.MergeFrom(from.metrics_); + if (from._internal_has_status()) { + _internal_mutable_status()->::flwr::proto::Status::MergeFrom(from._internal_status()); + } + if (from._internal_has_parameters()) { + _internal_mutable_parameters()->::flwr::proto::Parameters::MergeFrom(from._internal_parameters()); + } + if (from._internal_num_examples() != 0) { + _internal_set_num_examples(from._internal_num_examples()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ClientMessage_FitRes::CopyFrom(const ClientMessage_FitRes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ClientMessage.FitRes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClientMessage_FitRes::IsInitialized() const { + return true; +} + +void ClientMessage_FitRes::InternalSwap(ClientMessage_FitRes* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + metrics_.InternalSwap(&other->metrics_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ClientMessage_FitRes, num_examples_) + + sizeof(ClientMessage_FitRes::num_examples_) + - PROTOBUF_FIELD_OFFSET(ClientMessage_FitRes, status_)>( + reinterpret_cast(&status_), + reinterpret_cast(&other->status_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ClientMessage_FitRes::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[17]); +} + +// =================================================================== + +ClientMessage_EvaluateRes_MetricsEntry_DoNotUse::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse() {} +ClientMessage_EvaluateRes_MetricsEntry_DoNotUse::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ClientMessage_EvaluateRes_MetricsEntry_DoNotUse::MergeFrom(const ClientMessage_EvaluateRes_MetricsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ClientMessage_EvaluateRes_MetricsEntry_DoNotUse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[18]); +} + +// =================================================================== + +class ClientMessage_EvaluateRes::_Internal { + public: + static const ::flwr::proto::Status& status(const ClientMessage_EvaluateRes* msg); +}; + +const ::flwr::proto::Status& +ClientMessage_EvaluateRes::_Internal::status(const ClientMessage_EvaluateRes* msg) { + return *msg->status_; +} +ClientMessage_EvaluateRes::ClientMessage_EvaluateRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + metrics_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ClientMessage.EvaluateRes) +} +ClientMessage_EvaluateRes::ClientMessage_EvaluateRes(const ClientMessage_EvaluateRes& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + metrics_.MergeFrom(from.metrics_); + if (from._internal_has_status()) { + status_ = new ::flwr::proto::Status(*from.status_); + } else { + status_ = nullptr; + } + ::memcpy(&num_examples_, &from.num_examples_, + static_cast(reinterpret_cast(&loss_) - + reinterpret_cast(&num_examples_)) + sizeof(loss_)); + // @@protoc_insertion_point(copy_constructor:flwr.proto.ClientMessage.EvaluateRes) +} + +void ClientMessage_EvaluateRes::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&status_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&loss_) - + reinterpret_cast(&status_)) + sizeof(loss_)); +} + +ClientMessage_EvaluateRes::~ClientMessage_EvaluateRes() { + // @@protoc_insertion_point(destructor:flwr.proto.ClientMessage.EvaluateRes) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ClientMessage_EvaluateRes::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete status_; +} + +void ClientMessage_EvaluateRes::ArenaDtor(void* object) { + ClientMessage_EvaluateRes* _this = reinterpret_cast< ClientMessage_EvaluateRes* >(object); + (void)_this; + _this->metrics_. ~MapField(); +} +inline void ClientMessage_EvaluateRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) { + if (arena != nullptr) { + arena->OwnCustomDestructor(this, &ClientMessage_EvaluateRes::ArenaDtor); + } +} +void ClientMessage_EvaluateRes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ClientMessage_EvaluateRes::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ClientMessage.EvaluateRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metrics_.Clear(); + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + ::memset(&num_examples_, 0, static_cast( + reinterpret_cast(&loss_) - + reinterpret_cast(&num_examples_)) + sizeof(loss_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ClientMessage_EvaluateRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // float loss = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { + loss_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(float); + } else + goto handle_unusual; + continue; + // int64 num_examples = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + num_examples_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // map metrics = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&metrics_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ClientMessage_EvaluateRes::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ClientMessage.EvaluateRes) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.Status status = 1; + if (this->_internal_has_status()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::status(this), target, stream); + } + + // float loss = 2; + if (!(this->_internal_loss() <= 0 && this->_internal_loss() >= 0)) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_loss(), target); + } + + // int64 num_examples = 3; + if (this->_internal_num_examples() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_num_examples(), target); + } + + // map metrics = 4; + if (!this->_internal_metrics().empty()) { + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + (void)p; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.ClientMessage.EvaluateRes.MetricsEntry.key"); + } + }; + + if (stream->IsSerializationDeterministic() && + this->_internal_metrics().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->_internal_metrics().size()]); + typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::size_type size_type; + size_type n = 0; + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_metrics().begin(); + it != this->_internal_metrics().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + for (size_type i = 0; i < n; i++) { + target = ClientMessage_EvaluateRes_MetricsEntry_DoNotUse::Funcs::InternalSerialize(4, items[static_cast(i)]->first, items[static_cast(i)]->second, target, stream); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_metrics().begin(); + it != this->_internal_metrics().end(); ++it) { + target = ClientMessage_EvaluateRes_MetricsEntry_DoNotUse::Funcs::InternalSerialize(4, it->first, it->second, target, stream); + Utf8Check::Check(&(*it)); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ClientMessage.EvaluateRes) + return target; +} + +size_t ClientMessage_EvaluateRes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ClientMessage.EvaluateRes) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map metrics = 4; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_metrics_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >::const_iterator + it = this->_internal_metrics().begin(); + it != this->_internal_metrics().end(); ++it) { + total_size += ClientMessage_EvaluateRes_MetricsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // .flwr.proto.Status status = 1; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // int64 num_examples = 3; + if (this->_internal_num_examples() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_num_examples()); + } + + // float loss = 2; + if (!(this->_internal_loss() <= 0 && this->_internal_loss() >= 0)) { + total_size += 1 + 4; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ClientMessage_EvaluateRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ClientMessage_EvaluateRes::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ClientMessage_EvaluateRes::GetClassData() const { return &_class_data_; } + +void ClientMessage_EvaluateRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ClientMessage_EvaluateRes::MergeFrom(const ClientMessage_EvaluateRes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ClientMessage.EvaluateRes) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + metrics_.MergeFrom(from.metrics_); + if (from._internal_has_status()) { + _internal_mutable_status()->::flwr::proto::Status::MergeFrom(from._internal_status()); + } + if (from._internal_num_examples() != 0) { + _internal_set_num_examples(from._internal_num_examples()); + } + if (!(from._internal_loss() <= 0 && from._internal_loss() >= 0)) { + _internal_set_loss(from._internal_loss()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ClientMessage_EvaluateRes::CopyFrom(const ClientMessage_EvaluateRes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ClientMessage.EvaluateRes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClientMessage_EvaluateRes::IsInitialized() const { + return true; +} + +void ClientMessage_EvaluateRes::InternalSwap(ClientMessage_EvaluateRes* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + metrics_.InternalSwap(&other->metrics_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ClientMessage_EvaluateRes, loss_) + + sizeof(ClientMessage_EvaluateRes::loss_) + - PROTOBUF_FIELD_OFFSET(ClientMessage_EvaluateRes, status_)>( + reinterpret_cast(&status_), + reinterpret_cast(&other->status_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ClientMessage_EvaluateRes::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[19]); +} + +// =================================================================== + +class ClientMessage::_Internal { + public: + static const ::flwr::proto::ClientMessage_DisconnectRes& disconnect_res(const ClientMessage* msg); + static const ::flwr::proto::ClientMessage_GetPropertiesRes& get_properties_res(const ClientMessage* msg); + static const ::flwr::proto::ClientMessage_GetParametersRes& get_parameters_res(const ClientMessage* msg); + static const ::flwr::proto::ClientMessage_FitRes& fit_res(const ClientMessage* msg); + static const ::flwr::proto::ClientMessage_EvaluateRes& evaluate_res(const ClientMessage* msg); +}; + +const ::flwr::proto::ClientMessage_DisconnectRes& +ClientMessage::_Internal::disconnect_res(const ClientMessage* msg) { + return *msg->msg_.disconnect_res_; +} +const ::flwr::proto::ClientMessage_GetPropertiesRes& +ClientMessage::_Internal::get_properties_res(const ClientMessage* msg) { + return *msg->msg_.get_properties_res_; +} +const ::flwr::proto::ClientMessage_GetParametersRes& +ClientMessage::_Internal::get_parameters_res(const ClientMessage* msg) { + return *msg->msg_.get_parameters_res_; +} +const ::flwr::proto::ClientMessage_FitRes& +ClientMessage::_Internal::fit_res(const ClientMessage* msg) { + return *msg->msg_.fit_res_; +} +const ::flwr::proto::ClientMessage_EvaluateRes& +ClientMessage::_Internal::evaluate_res(const ClientMessage* msg) { + return *msg->msg_.evaluate_res_; +} +void ClientMessage::set_allocated_disconnect_res(::flwr::proto::ClientMessage_DisconnectRes* disconnect_res) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_msg(); + if (disconnect_res) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ClientMessage_DisconnectRes>::GetOwningArena(disconnect_res); + if (message_arena != submessage_arena) { + disconnect_res = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, disconnect_res, submessage_arena); + } + set_has_disconnect_res(); + msg_.disconnect_res_ = disconnect_res; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ClientMessage.disconnect_res) +} +void ClientMessage::set_allocated_get_properties_res(::flwr::proto::ClientMessage_GetPropertiesRes* get_properties_res) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_msg(); + if (get_properties_res) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ClientMessage_GetPropertiesRes>::GetOwningArena(get_properties_res); + if (message_arena != submessage_arena) { + get_properties_res = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, get_properties_res, submessage_arena); + } + set_has_get_properties_res(); + msg_.get_properties_res_ = get_properties_res; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ClientMessage.get_properties_res) +} +void ClientMessage::set_allocated_get_parameters_res(::flwr::proto::ClientMessage_GetParametersRes* get_parameters_res) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_msg(); + if (get_parameters_res) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ClientMessage_GetParametersRes>::GetOwningArena(get_parameters_res); + if (message_arena != submessage_arena) { + get_parameters_res = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, get_parameters_res, submessage_arena); + } + set_has_get_parameters_res(); + msg_.get_parameters_res_ = get_parameters_res; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ClientMessage.get_parameters_res) +} +void ClientMessage::set_allocated_fit_res(::flwr::proto::ClientMessage_FitRes* fit_res) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_msg(); + if (fit_res) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ClientMessage_FitRes>::GetOwningArena(fit_res); + if (message_arena != submessage_arena) { + fit_res = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fit_res, submessage_arena); + } + set_has_fit_res(); + msg_.fit_res_ = fit_res; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ClientMessage.fit_res) +} +void ClientMessage::set_allocated_evaluate_res(::flwr::proto::ClientMessage_EvaluateRes* evaluate_res) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_msg(); + if (evaluate_res) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::ClientMessage_EvaluateRes>::GetOwningArena(evaluate_res); + if (message_arena != submessage_arena) { + evaluate_res = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, evaluate_res, submessage_arena); + } + set_has_evaluate_res(); + msg_.evaluate_res_ = evaluate_res; + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ClientMessage.evaluate_res) +} +ClientMessage::ClientMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.ClientMessage) +} +ClientMessage::ClientMessage(const ClientMessage& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_msg(); + switch (from.msg_case()) { + case kDisconnectRes: { + _internal_mutable_disconnect_res()->::flwr::proto::ClientMessage_DisconnectRes::MergeFrom(from._internal_disconnect_res()); + break; + } + case kGetPropertiesRes: { + _internal_mutable_get_properties_res()->::flwr::proto::ClientMessage_GetPropertiesRes::MergeFrom(from._internal_get_properties_res()); + break; + } + case kGetParametersRes: { + _internal_mutable_get_parameters_res()->::flwr::proto::ClientMessage_GetParametersRes::MergeFrom(from._internal_get_parameters_res()); + break; + } + case kFitRes: { + _internal_mutable_fit_res()->::flwr::proto::ClientMessage_FitRes::MergeFrom(from._internal_fit_res()); + break; + } + case kEvaluateRes: { + _internal_mutable_evaluate_res()->::flwr::proto::ClientMessage_EvaluateRes::MergeFrom(from._internal_evaluate_res()); + break; + } + case MSG_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.ClientMessage) +} + +void ClientMessage::SharedCtor() { +clear_has_msg(); +} + +ClientMessage::~ClientMessage() { + // @@protoc_insertion_point(destructor:flwr.proto.ClientMessage) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ClientMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_msg()) { + clear_msg(); + } +} + +void ClientMessage::ArenaDtor(void* object) { + ClientMessage* _this = reinterpret_cast< ClientMessage* >(object); + (void)_this; +} +void ClientMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ClientMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ClientMessage::clear_msg() { +// @@protoc_insertion_point(one_of_clear_start:flwr.proto.ClientMessage) + switch (msg_case()) { + case kDisconnectRes: { + if (GetArenaForAllocation() == nullptr) { + delete msg_.disconnect_res_; + } + break; + } + case kGetPropertiesRes: { + if (GetArenaForAllocation() == nullptr) { + delete msg_.get_properties_res_; + } + break; + } + case kGetParametersRes: { + if (GetArenaForAllocation() == nullptr) { + delete msg_.get_parameters_res_; + } + break; + } + case kFitRes: { + if (GetArenaForAllocation() == nullptr) { + delete msg_.fit_res_; + } + break; + } + case kEvaluateRes: { + if (GetArenaForAllocation() == nullptr) { + delete msg_.evaluate_res_; + } + break; + } + case MSG_NOT_SET: { + break; + } + } + _oneof_case_[0] = MSG_NOT_SET; +} + + +void ClientMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.ClientMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_msg(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ClientMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .flwr.proto.ClientMessage.DisconnectRes disconnect_res = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_disconnect_res(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ClientMessage.GetPropertiesRes get_properties_res = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_get_properties_res(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ClientMessage.GetParametersRes get_parameters_res = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_get_parameters_res(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ClientMessage.FitRes fit_res = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_fit_res(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .flwr.proto.ClientMessage.EvaluateRes evaluate_res = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_evaluate_res(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ClientMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.ClientMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flwr.proto.ClientMessage.DisconnectRes disconnect_res = 1; + if (_internal_has_disconnect_res()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::disconnect_res(this), target, stream); + } + + // .flwr.proto.ClientMessage.GetPropertiesRes get_properties_res = 2; + if (_internal_has_get_properties_res()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::get_properties_res(this), target, stream); + } + + // .flwr.proto.ClientMessage.GetParametersRes get_parameters_res = 3; + if (_internal_has_get_parameters_res()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::get_parameters_res(this), target, stream); + } + + // .flwr.proto.ClientMessage.FitRes fit_res = 4; + if (_internal_has_fit_res()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::fit_res(this), target, stream); + } + + // .flwr.proto.ClientMessage.EvaluateRes evaluate_res = 5; + if (_internal_has_evaluate_res()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 5, _Internal::evaluate_res(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.ClientMessage) + return target; +} + +size_t ClientMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.ClientMessage) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (msg_case()) { + // .flwr.proto.ClientMessage.DisconnectRes disconnect_res = 1; + case kDisconnectRes: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *msg_.disconnect_res_); + break; + } + // .flwr.proto.ClientMessage.GetPropertiesRes get_properties_res = 2; + case kGetPropertiesRes: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *msg_.get_properties_res_); + break; + } + // .flwr.proto.ClientMessage.GetParametersRes get_parameters_res = 3; + case kGetParametersRes: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *msg_.get_parameters_res_); + break; + } + // .flwr.proto.ClientMessage.FitRes fit_res = 4; + case kFitRes: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *msg_.fit_res_); + break; + } + // .flwr.proto.ClientMessage.EvaluateRes evaluate_res = 5; + case kEvaluateRes: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *msg_.evaluate_res_); + break; + } + case MSG_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ClientMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ClientMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ClientMessage::GetClassData() const { return &_class_data_; } + +void ClientMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ClientMessage::MergeFrom(const ClientMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.ClientMessage) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.msg_case()) { + case kDisconnectRes: { + _internal_mutable_disconnect_res()->::flwr::proto::ClientMessage_DisconnectRes::MergeFrom(from._internal_disconnect_res()); + break; + } + case kGetPropertiesRes: { + _internal_mutable_get_properties_res()->::flwr::proto::ClientMessage_GetPropertiesRes::MergeFrom(from._internal_get_properties_res()); + break; + } + case kGetParametersRes: { + _internal_mutable_get_parameters_res()->::flwr::proto::ClientMessage_GetParametersRes::MergeFrom(from._internal_get_parameters_res()); + break; + } + case kFitRes: { + _internal_mutable_fit_res()->::flwr::proto::ClientMessage_FitRes::MergeFrom(from._internal_fit_res()); + break; + } + case kEvaluateRes: { + _internal_mutable_evaluate_res()->::flwr::proto::ClientMessage_EvaluateRes::MergeFrom(from._internal_evaluate_res()); + break; + } + case MSG_NOT_SET: { + break; + } + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ClientMessage::CopyFrom(const ClientMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.ClientMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClientMessage::IsInitialized() const { + return true; +} + +void ClientMessage::InternalSwap(ClientMessage* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(msg_, other->msg_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ClientMessage::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[20]); +} + +// =================================================================== + +class Scalar::_Internal { + public: +}; + +Scalar::Scalar(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:flwr.proto.Scalar) +} +Scalar::Scalar(const Scalar& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_scalar(); + switch (from.scalar_case()) { + case kDouble: { + _internal_set_double_(from._internal_double_()); + break; + } + case kSint64: { + _internal_set_sint64(from._internal_sint64()); + break; + } + case kBool: { + _internal_set_bool_(from._internal_bool_()); + break; + } + case kString: { + _internal_set_string(from._internal_string()); + break; + } + case kBytes: { + _internal_set_bytes(from._internal_bytes()); + break; + } + case SCALAR_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flwr.proto.Scalar) +} + +void Scalar::SharedCtor() { +clear_has_scalar(); +} + +Scalar::~Scalar() { + // @@protoc_insertion_point(destructor:flwr.proto.Scalar) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Scalar::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_scalar()) { + clear_scalar(); + } +} + +void Scalar::ArenaDtor(void* object) { + Scalar* _this = reinterpret_cast< Scalar* >(object); + (void)_this; +} +void Scalar::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Scalar::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Scalar::clear_scalar() { +// @@protoc_insertion_point(one_of_clear_start:flwr.proto.Scalar) + switch (scalar_case()) { + case kDouble: { + // No need to clear + break; + } + case kSint64: { + // No need to clear + break; + } + case kBool: { + // No need to clear + break; + } + case kString: { + scalar_.string_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + break; + } + case kBytes: { + scalar_.bytes_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + break; + } + case SCALAR_NOT_SET: { + break; + } + } + _oneof_case_[0] = SCALAR_NOT_SET; +} + + +void Scalar::Clear() { +// @@protoc_insertion_point(message_clear_start:flwr.proto.Scalar) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_scalar(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Scalar::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // double double = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { + _internal_set_double_(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // sint64 sint64 = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + _internal_set_sint64(::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool bool = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) { + _internal_set_bool_(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string string = 14; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { + auto str = _internal_mutable_string(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "flwr.proto.Scalar.string")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes bytes = 15; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { + auto str = _internal_mutable_bytes(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Scalar::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:flwr.proto.Scalar) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // double double = 1; + if (_internal_has_double_()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_double_(), target); + } + + // sint64 sint64 = 8; + if (_internal_has_sint64()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(8, this->_internal_sint64(), target); + } + + // bool bool = 13; + if (_internal_has_bool_()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_bool_(), target); + } + + // string string = 14; + if (_internal_has_string()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_string().data(), static_cast(this->_internal_string().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "flwr.proto.Scalar.string"); + target = stream->WriteStringMaybeAliased( + 14, this->_internal_string(), target); + } + + // bytes bytes = 15; + if (_internal_has_bytes()) { + target = stream->WriteBytesMaybeAliased( + 15, this->_internal_bytes(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:flwr.proto.Scalar) + return target; +} + +size_t Scalar::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flwr.proto.Scalar) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (scalar_case()) { + // double double = 1; + case kDouble: { + total_size += 1 + 8; + break; + } + // sint64 sint64 = 8; + case kSint64: { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64SizePlusOne(this->_internal_sint64()); + break; + } + // bool bool = 13; + case kBool: { + total_size += 1 + 1; + break; + } + // string string = 14; + case kString: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_string()); + break; + } + // bytes bytes = 15; + case kBytes: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_bytes()); + break; + } + case SCALAR_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Scalar::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Scalar::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Scalar::GetClassData() const { return &_class_data_; } + +void Scalar::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Scalar::MergeFrom(const Scalar& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flwr.proto.Scalar) + GOOGLE_DCHECK_NE(&from, this); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.scalar_case()) { + case kDouble: { + _internal_set_double_(from._internal_double_()); + break; + } + case kSint64: { + _internal_set_sint64(from._internal_sint64()); + break; + } + case kBool: { + _internal_set_bool_(from._internal_bool_()); + break; + } + case kString: { + _internal_set_string(from._internal_string()); + break; + } + case kBytes: { + _internal_set_bytes(from._internal_bytes()); + break; + } + case SCALAR_NOT_SET: { + break; + } + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Scalar::CopyFrom(const Scalar& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flwr.proto.Scalar) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Scalar::IsInitialized() const { + return true; +} + +void Scalar::InternalSwap(Scalar* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(scalar_, other->scalar_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Scalar::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_flwr_2fproto_2ftransport_2eproto_getter, &descriptor_table_flwr_2fproto_2ftransport_2eproto_once, + file_level_metadata_flwr_2fproto_2ftransport_2eproto[21]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::flwr::proto::Status* Arena::CreateMaybeMessage< ::flwr::proto::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Status >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Parameters* Arena::CreateMaybeMessage< ::flwr::proto::Parameters >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Parameters >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ServerMessage_ReconnectIns* Arena::CreateMaybeMessage< ::flwr::proto::ServerMessage_ReconnectIns >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ServerMessage_ReconnectIns >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ServerMessage_GetPropertiesIns* Arena::CreateMaybeMessage< ::flwr::proto::ServerMessage_GetPropertiesIns >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ServerMessage_GetPropertiesIns >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ServerMessage_GetParametersIns* Arena::CreateMaybeMessage< ::flwr::proto::ServerMessage_GetParametersIns >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ServerMessage_GetParametersIns >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ServerMessage_FitIns_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::ServerMessage_FitIns_ConfigEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ServerMessage_FitIns_ConfigEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ServerMessage_FitIns* Arena::CreateMaybeMessage< ::flwr::proto::ServerMessage_FitIns >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ServerMessage_FitIns >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ServerMessage_EvaluateIns* Arena::CreateMaybeMessage< ::flwr::proto::ServerMessage_EvaluateIns >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ServerMessage_EvaluateIns >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ServerMessage* Arena::CreateMaybeMessage< ::flwr::proto::ServerMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ServerMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ClientMessage_DisconnectRes* Arena::CreateMaybeMessage< ::flwr::proto::ClientMessage_DisconnectRes >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ClientMessage_DisconnectRes >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ClientMessage_GetPropertiesRes* Arena::CreateMaybeMessage< ::flwr::proto::ClientMessage_GetPropertiesRes >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ClientMessage_GetPropertiesRes >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ClientMessage_GetParametersRes* Arena::CreateMaybeMessage< ::flwr::proto::ClientMessage_GetParametersRes >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ClientMessage_GetParametersRes >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ClientMessage_FitRes_MetricsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::ClientMessage_FitRes_MetricsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ClientMessage_FitRes_MetricsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ClientMessage_FitRes* Arena::CreateMaybeMessage< ::flwr::proto::ClientMessage_FitRes >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ClientMessage_FitRes >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flwr::proto::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ClientMessage_EvaluateRes* Arena::CreateMaybeMessage< ::flwr::proto::ClientMessage_EvaluateRes >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ClientMessage_EvaluateRes >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::ClientMessage* Arena::CreateMaybeMessage< ::flwr::proto::ClientMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::ClientMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::flwr::proto::Scalar* Arena::CreateMaybeMessage< ::flwr::proto::Scalar >(Arena* arena) { + return Arena::CreateMessageInternal< ::flwr::proto::Scalar >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/src/cc/flwr/include/flwr/proto/transport.pb.h b/src/cc/flwr/include/flwr/proto/transport.pb.h new file mode 100644 index 000000000000..674188c221d5 --- /dev/null +++ b/src/cc/flwr/include/flwr/proto/transport.pb.h @@ -0,0 +1,5597 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flwr/proto/transport.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2ftransport_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2ftransport_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3018000 +#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 3018001 < 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 // IWYU pragma: export +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flwr_2fproto_2ftransport_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_flwr_2fproto_2ftransport_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[22] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_flwr_2fproto_2ftransport_2eproto; +namespace flwr { +namespace proto { +class ClientMessage; +struct ClientMessageDefaultTypeInternal; +extern ClientMessageDefaultTypeInternal _ClientMessage_default_instance_; +class ClientMessage_DisconnectRes; +struct ClientMessage_DisconnectResDefaultTypeInternal; +extern ClientMessage_DisconnectResDefaultTypeInternal _ClientMessage_DisconnectRes_default_instance_; +class ClientMessage_EvaluateRes; +struct ClientMessage_EvaluateResDefaultTypeInternal; +extern ClientMessage_EvaluateResDefaultTypeInternal _ClientMessage_EvaluateRes_default_instance_; +class ClientMessage_EvaluateRes_MetricsEntry_DoNotUse; +struct ClientMessage_EvaluateRes_MetricsEntry_DoNotUseDefaultTypeInternal; +extern ClientMessage_EvaluateRes_MetricsEntry_DoNotUseDefaultTypeInternal _ClientMessage_EvaluateRes_MetricsEntry_DoNotUse_default_instance_; +class ClientMessage_FitRes; +struct ClientMessage_FitResDefaultTypeInternal; +extern ClientMessage_FitResDefaultTypeInternal _ClientMessage_FitRes_default_instance_; +class ClientMessage_FitRes_MetricsEntry_DoNotUse; +struct ClientMessage_FitRes_MetricsEntry_DoNotUseDefaultTypeInternal; +extern ClientMessage_FitRes_MetricsEntry_DoNotUseDefaultTypeInternal _ClientMessage_FitRes_MetricsEntry_DoNotUse_default_instance_; +class ClientMessage_GetParametersRes; +struct ClientMessage_GetParametersResDefaultTypeInternal; +extern ClientMessage_GetParametersResDefaultTypeInternal _ClientMessage_GetParametersRes_default_instance_; +class ClientMessage_GetPropertiesRes; +struct ClientMessage_GetPropertiesResDefaultTypeInternal; +extern ClientMessage_GetPropertiesResDefaultTypeInternal _ClientMessage_GetPropertiesRes_default_instance_; +class ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse; +struct ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUseDefaultTypeInternal; +extern ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUseDefaultTypeInternal _ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse_default_instance_; +class Parameters; +struct ParametersDefaultTypeInternal; +extern ParametersDefaultTypeInternal _Parameters_default_instance_; +class Scalar; +struct ScalarDefaultTypeInternal; +extern ScalarDefaultTypeInternal _Scalar_default_instance_; +class ServerMessage; +struct ServerMessageDefaultTypeInternal; +extern ServerMessageDefaultTypeInternal _ServerMessage_default_instance_; +class ServerMessage_EvaluateIns; +struct ServerMessage_EvaluateInsDefaultTypeInternal; +extern ServerMessage_EvaluateInsDefaultTypeInternal _ServerMessage_EvaluateIns_default_instance_; +class ServerMessage_EvaluateIns_ConfigEntry_DoNotUse; +struct ServerMessage_EvaluateIns_ConfigEntry_DoNotUseDefaultTypeInternal; +extern ServerMessage_EvaluateIns_ConfigEntry_DoNotUseDefaultTypeInternal _ServerMessage_EvaluateIns_ConfigEntry_DoNotUse_default_instance_; +class ServerMessage_FitIns; +struct ServerMessage_FitInsDefaultTypeInternal; +extern ServerMessage_FitInsDefaultTypeInternal _ServerMessage_FitIns_default_instance_; +class ServerMessage_FitIns_ConfigEntry_DoNotUse; +struct ServerMessage_FitIns_ConfigEntry_DoNotUseDefaultTypeInternal; +extern ServerMessage_FitIns_ConfigEntry_DoNotUseDefaultTypeInternal _ServerMessage_FitIns_ConfigEntry_DoNotUse_default_instance_; +class ServerMessage_GetParametersIns; +struct ServerMessage_GetParametersInsDefaultTypeInternal; +extern ServerMessage_GetParametersInsDefaultTypeInternal _ServerMessage_GetParametersIns_default_instance_; +class ServerMessage_GetParametersIns_ConfigEntry_DoNotUse; +struct ServerMessage_GetParametersIns_ConfigEntry_DoNotUseDefaultTypeInternal; +extern ServerMessage_GetParametersIns_ConfigEntry_DoNotUseDefaultTypeInternal _ServerMessage_GetParametersIns_ConfigEntry_DoNotUse_default_instance_; +class ServerMessage_GetPropertiesIns; +struct ServerMessage_GetPropertiesInsDefaultTypeInternal; +extern ServerMessage_GetPropertiesInsDefaultTypeInternal _ServerMessage_GetPropertiesIns_default_instance_; +class ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse; +struct ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUseDefaultTypeInternal; +extern ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUseDefaultTypeInternal _ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse_default_instance_; +class ServerMessage_ReconnectIns; +struct ServerMessage_ReconnectInsDefaultTypeInternal; +extern ServerMessage_ReconnectInsDefaultTypeInternal _ServerMessage_ReconnectIns_default_instance_; +class Status; +struct StatusDefaultTypeInternal; +extern StatusDefaultTypeInternal _Status_default_instance_; +} // namespace proto +} // namespace flwr +PROTOBUF_NAMESPACE_OPEN +template<> ::flwr::proto::ClientMessage* Arena::CreateMaybeMessage<::flwr::proto::ClientMessage>(Arena*); +template<> ::flwr::proto::ClientMessage_DisconnectRes* Arena::CreateMaybeMessage<::flwr::proto::ClientMessage_DisconnectRes>(Arena*); +template<> ::flwr::proto::ClientMessage_EvaluateRes* Arena::CreateMaybeMessage<::flwr::proto::ClientMessage_EvaluateRes>(Arena*); +template<> ::flwr::proto::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::ClientMessage_EvaluateRes_MetricsEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::ClientMessage_FitRes* Arena::CreateMaybeMessage<::flwr::proto::ClientMessage_FitRes>(Arena*); +template<> ::flwr::proto::ClientMessage_FitRes_MetricsEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::ClientMessage_FitRes_MetricsEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::ClientMessage_GetParametersRes* Arena::CreateMaybeMessage<::flwr::proto::ClientMessage_GetParametersRes>(Arena*); +template<> ::flwr::proto::ClientMessage_GetPropertiesRes* Arena::CreateMaybeMessage<::flwr::proto::ClientMessage_GetPropertiesRes>(Arena*); +template<> ::flwr::proto::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::Parameters* Arena::CreateMaybeMessage<::flwr::proto::Parameters>(Arena*); +template<> ::flwr::proto::Scalar* Arena::CreateMaybeMessage<::flwr::proto::Scalar>(Arena*); +template<> ::flwr::proto::ServerMessage* Arena::CreateMaybeMessage<::flwr::proto::ServerMessage>(Arena*); +template<> ::flwr::proto::ServerMessage_EvaluateIns* Arena::CreateMaybeMessage<::flwr::proto::ServerMessage_EvaluateIns>(Arena*); +template<> ::flwr::proto::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::ServerMessage_EvaluateIns_ConfigEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::ServerMessage_FitIns* Arena::CreateMaybeMessage<::flwr::proto::ServerMessage_FitIns>(Arena*); +template<> ::flwr::proto::ServerMessage_FitIns_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::ServerMessage_FitIns_ConfigEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::ServerMessage_GetParametersIns* Arena::CreateMaybeMessage<::flwr::proto::ServerMessage_GetParametersIns>(Arena*); +template<> ::flwr::proto::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::ServerMessage_GetParametersIns_ConfigEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::ServerMessage_GetPropertiesIns* Arena::CreateMaybeMessage<::flwr::proto::ServerMessage_GetPropertiesIns>(Arena*); +template<> ::flwr::proto::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage<::flwr::proto::ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse>(Arena*); +template<> ::flwr::proto::ServerMessage_ReconnectIns* Arena::CreateMaybeMessage<::flwr::proto::ServerMessage_ReconnectIns>(Arena*); +template<> ::flwr::proto::Status* Arena::CreateMaybeMessage<::flwr::proto::Status>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace flwr { +namespace proto { + +enum Code : int { + OK = 0, + GET_PROPERTIES_NOT_IMPLEMENTED = 1, + GET_PARAMETERS_NOT_IMPLEMENTED = 2, + FIT_NOT_IMPLEMENTED = 3, + EVALUATE_NOT_IMPLEMENTED = 4, + Code_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + Code_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +}; +bool Code_IsValid(int value); +constexpr Code Code_MIN = OK; +constexpr Code Code_MAX = EVALUATE_NOT_IMPLEMENTED; +constexpr int Code_ARRAYSIZE = Code_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Code_descriptor(); +template +inline const std::string& Code_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Code_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Code_descriptor(), enum_t_value); +} +inline bool Code_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Code* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Code_descriptor(), name, value); +} +enum Reason : int { + UNKNOWN = 0, + RECONNECT = 1, + POWER_DISCONNECTED = 2, + WIFI_UNAVAILABLE = 3, + ACK = 4, + Reason_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + Reason_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +}; +bool Reason_IsValid(int value); +constexpr Reason Reason_MIN = UNKNOWN; +constexpr Reason Reason_MAX = ACK; +constexpr int Reason_ARRAYSIZE = Reason_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Reason_descriptor(); +template +inline const std::string& Reason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function Reason_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Reason_descriptor(), enum_t_value); +} +inline bool Reason_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Reason* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + Reason_descriptor(), name, value); +} +// =================================================================== + +class Status final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Status) */ { + public: + inline Status() : Status(nullptr) {} + ~Status() override; + explicit constexpr Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Status(const Status& from); + Status(Status&& from) noexcept + : Status() { + *this = ::std::move(from); + } + + inline Status& operator=(const Status& from) { + CopyFrom(from); + return *this; + } + inline Status& operator=(Status&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Status& default_instance() { + return *internal_default_instance(); + } + static inline const Status* internal_default_instance() { + return reinterpret_cast( + &_Status_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Status& a, Status& b) { + a.Swap(&b); + } + inline void Swap(Status* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Status* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Status* New() const final { + return new Status(); + } + + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Status& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Status& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Status* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Status"; + } + protected: + explicit Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kMessageFieldNumber = 2, + kCodeFieldNumber = 1, + }; + // string message = 2; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_MUST_USE_RESULT std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + + // .flwr.proto.Code code = 1; + void clear_code(); + ::flwr::proto::Code code() const; + void set_code(::flwr::proto::Code value); + private: + ::flwr::proto::Code _internal_code() const; + void _internal_set_code(::flwr::proto::Code value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.Status) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + int code_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class Parameters final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Parameters) */ { + public: + inline Parameters() : Parameters(nullptr) {} + ~Parameters() override; + explicit constexpr Parameters(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Parameters(const Parameters& from); + Parameters(Parameters&& from) noexcept + : Parameters() { + *this = ::std::move(from); + } + + inline Parameters& operator=(const Parameters& from) { + CopyFrom(from); + return *this; + } + inline Parameters& operator=(Parameters&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Parameters& default_instance() { + return *internal_default_instance(); + } + static inline const Parameters* internal_default_instance() { + return reinterpret_cast( + &_Parameters_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(Parameters& a, Parameters& b) { + a.Swap(&b); + } + inline void Swap(Parameters* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Parameters* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Parameters* New() const final { + return new Parameters(); + } + + Parameters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Parameters& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Parameters& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Parameters* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Parameters"; + } + protected: + explicit Parameters(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTensorsFieldNumber = 1, + kTensorTypeFieldNumber = 2, + }; + // repeated bytes tensors = 1; + int tensors_size() const; + private: + int _internal_tensors_size() const; + public: + void clear_tensors(); + const std::string& tensors(int index) const; + std::string* mutable_tensors(int index); + void set_tensors(int index, const std::string& value); + void set_tensors(int index, std::string&& value); + void set_tensors(int index, const char* value); + void set_tensors(int index, const void* value, size_t size); + std::string* add_tensors(); + void add_tensors(const std::string& value); + void add_tensors(std::string&& value); + void add_tensors(const char* value); + void add_tensors(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tensors() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tensors(); + private: + const std::string& _internal_tensors(int index) const; + std::string* _internal_add_tensors(); + public: + + // string tensor_type = 2; + void clear_tensor_type(); + const std::string& tensor_type() const; + template + void set_tensor_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_tensor_type(); + PROTOBUF_MUST_USE_RESULT std::string* release_tensor_type(); + void set_allocated_tensor_type(std::string* tensor_type); + private: + const std::string& _internal_tensor_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_tensor_type(const std::string& value); + std::string* _internal_mutable_tensor_type(); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.Parameters) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tensors_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tensor_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ServerMessage_ReconnectIns final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ServerMessage.ReconnectIns) */ { + public: + inline ServerMessage_ReconnectIns() : ServerMessage_ReconnectIns(nullptr) {} + ~ServerMessage_ReconnectIns() override; + explicit constexpr ServerMessage_ReconnectIns(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ServerMessage_ReconnectIns(const ServerMessage_ReconnectIns& from); + ServerMessage_ReconnectIns(ServerMessage_ReconnectIns&& from) noexcept + : ServerMessage_ReconnectIns() { + *this = ::std::move(from); + } + + inline ServerMessage_ReconnectIns& operator=(const ServerMessage_ReconnectIns& from) { + CopyFrom(from); + return *this; + } + inline ServerMessage_ReconnectIns& operator=(ServerMessage_ReconnectIns&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ServerMessage_ReconnectIns& default_instance() { + return *internal_default_instance(); + } + static inline const ServerMessage_ReconnectIns* internal_default_instance() { + return reinterpret_cast( + &_ServerMessage_ReconnectIns_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(ServerMessage_ReconnectIns& a, ServerMessage_ReconnectIns& b) { + a.Swap(&b); + } + inline void Swap(ServerMessage_ReconnectIns* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ServerMessage_ReconnectIns* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ServerMessage_ReconnectIns* New() const final { + return new ServerMessage_ReconnectIns(); + } + + ServerMessage_ReconnectIns* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ServerMessage_ReconnectIns& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ServerMessage_ReconnectIns& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ServerMessage_ReconnectIns* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ServerMessage.ReconnectIns"; + } + protected: + explicit ServerMessage_ReconnectIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kSecondsFieldNumber = 1, + }; + // int64 seconds = 1; + void clear_seconds(); + ::PROTOBUF_NAMESPACE_ID::int64 seconds() const; + void set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_seconds() const; + void _internal_set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.ServerMessage.ReconnectIns) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::int64 seconds_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse(); + explicit constexpr ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse& other); + static const ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "flwr.proto.ServerMessage.GetPropertiesIns.ConfigEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class ServerMessage_GetPropertiesIns final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ServerMessage.GetPropertiesIns) */ { + public: + inline ServerMessage_GetPropertiesIns() : ServerMessage_GetPropertiesIns(nullptr) {} + ~ServerMessage_GetPropertiesIns() override; + explicit constexpr ServerMessage_GetPropertiesIns(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ServerMessage_GetPropertiesIns(const ServerMessage_GetPropertiesIns& from); + ServerMessage_GetPropertiesIns(ServerMessage_GetPropertiesIns&& from) noexcept + : ServerMessage_GetPropertiesIns() { + *this = ::std::move(from); + } + + inline ServerMessage_GetPropertiesIns& operator=(const ServerMessage_GetPropertiesIns& from) { + CopyFrom(from); + return *this; + } + inline ServerMessage_GetPropertiesIns& operator=(ServerMessage_GetPropertiesIns&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ServerMessage_GetPropertiesIns& default_instance() { + return *internal_default_instance(); + } + static inline const ServerMessage_GetPropertiesIns* internal_default_instance() { + return reinterpret_cast( + &_ServerMessage_GetPropertiesIns_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(ServerMessage_GetPropertiesIns& a, ServerMessage_GetPropertiesIns& b) { + a.Swap(&b); + } + inline void Swap(ServerMessage_GetPropertiesIns* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ServerMessage_GetPropertiesIns* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ServerMessage_GetPropertiesIns* New() const final { + return new ServerMessage_GetPropertiesIns(); + } + + ServerMessage_GetPropertiesIns* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ServerMessage_GetPropertiesIns& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ServerMessage_GetPropertiesIns& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ServerMessage_GetPropertiesIns* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ServerMessage.GetPropertiesIns"; + } + protected: + explicit ServerMessage_GetPropertiesIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + enum : int { + kConfigFieldNumber = 1, + }; + // map config = 1; + int config_size() const; + private: + int _internal_config_size() const; + public: + void clear_config(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + _internal_config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + _internal_mutable_config(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + mutable_config(); + + // @@protoc_insertion_point(class_scope:flwr.proto.ServerMessage.GetPropertiesIns) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ServerMessage_GetPropertiesIns_ConfigEntry_DoNotUse, + std::string, ::flwr::proto::Scalar, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ServerMessage_GetParametersIns_ConfigEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ServerMessage_GetParametersIns_ConfigEntry_DoNotUse(); + explicit constexpr ServerMessage_GetParametersIns_ConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ServerMessage_GetParametersIns_ConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ServerMessage_GetParametersIns_ConfigEntry_DoNotUse& other); + static const ServerMessage_GetParametersIns_ConfigEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ServerMessage_GetParametersIns_ConfigEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "flwr.proto.ServerMessage.GetParametersIns.ConfigEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class ServerMessage_GetParametersIns final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ServerMessage.GetParametersIns) */ { + public: + inline ServerMessage_GetParametersIns() : ServerMessage_GetParametersIns(nullptr) {} + ~ServerMessage_GetParametersIns() override; + explicit constexpr ServerMessage_GetParametersIns(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ServerMessage_GetParametersIns(const ServerMessage_GetParametersIns& from); + ServerMessage_GetParametersIns(ServerMessage_GetParametersIns&& from) noexcept + : ServerMessage_GetParametersIns() { + *this = ::std::move(from); + } + + inline ServerMessage_GetParametersIns& operator=(const ServerMessage_GetParametersIns& from) { + CopyFrom(from); + return *this; + } + inline ServerMessage_GetParametersIns& operator=(ServerMessage_GetParametersIns&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ServerMessage_GetParametersIns& default_instance() { + return *internal_default_instance(); + } + static inline const ServerMessage_GetParametersIns* internal_default_instance() { + return reinterpret_cast( + &_ServerMessage_GetParametersIns_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(ServerMessage_GetParametersIns& a, ServerMessage_GetParametersIns& b) { + a.Swap(&b); + } + inline void Swap(ServerMessage_GetParametersIns* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ServerMessage_GetParametersIns* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ServerMessage_GetParametersIns* New() const final { + return new ServerMessage_GetParametersIns(); + } + + ServerMessage_GetParametersIns* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ServerMessage_GetParametersIns& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ServerMessage_GetParametersIns& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ServerMessage_GetParametersIns* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ServerMessage.GetParametersIns"; + } + protected: + explicit ServerMessage_GetParametersIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + enum : int { + kConfigFieldNumber = 1, + }; + // map config = 1; + int config_size() const; + private: + int _internal_config_size() const; + public: + void clear_config(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + _internal_config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + _internal_mutable_config(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + mutable_config(); + + // @@protoc_insertion_point(class_scope:flwr.proto.ServerMessage.GetParametersIns) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ServerMessage_GetParametersIns_ConfigEntry_DoNotUse, + std::string, ::flwr::proto::Scalar, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ServerMessage_FitIns_ConfigEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ServerMessage_FitIns_ConfigEntry_DoNotUse(); + explicit constexpr ServerMessage_FitIns_ConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ServerMessage_FitIns_ConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ServerMessage_FitIns_ConfigEntry_DoNotUse& other); + static const ServerMessage_FitIns_ConfigEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ServerMessage_FitIns_ConfigEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "flwr.proto.ServerMessage.FitIns.ConfigEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class ServerMessage_FitIns final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ServerMessage.FitIns) */ { + public: + inline ServerMessage_FitIns() : ServerMessage_FitIns(nullptr) {} + ~ServerMessage_FitIns() override; + explicit constexpr ServerMessage_FitIns(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ServerMessage_FitIns(const ServerMessage_FitIns& from); + ServerMessage_FitIns(ServerMessage_FitIns&& from) noexcept + : ServerMessage_FitIns() { + *this = ::std::move(from); + } + + inline ServerMessage_FitIns& operator=(const ServerMessage_FitIns& from) { + CopyFrom(from); + return *this; + } + inline ServerMessage_FitIns& operator=(ServerMessage_FitIns&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ServerMessage_FitIns& default_instance() { + return *internal_default_instance(); + } + static inline const ServerMessage_FitIns* internal_default_instance() { + return reinterpret_cast( + &_ServerMessage_FitIns_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(ServerMessage_FitIns& a, ServerMessage_FitIns& b) { + a.Swap(&b); + } + inline void Swap(ServerMessage_FitIns* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ServerMessage_FitIns* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ServerMessage_FitIns* New() const final { + return new ServerMessage_FitIns(); + } + + ServerMessage_FitIns* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ServerMessage_FitIns& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ServerMessage_FitIns& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ServerMessage_FitIns* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ServerMessage.FitIns"; + } + protected: + explicit ServerMessage_FitIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + enum : int { + kConfigFieldNumber = 2, + kParametersFieldNumber = 1, + }; + // map config = 2; + int config_size() const; + private: + int _internal_config_size() const; + public: + void clear_config(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + _internal_config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + _internal_mutable_config(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + mutable_config(); + + // .flwr.proto.Parameters parameters = 1; + bool has_parameters() const; + private: + bool _internal_has_parameters() const; + public: + void clear_parameters(); + const ::flwr::proto::Parameters& parameters() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Parameters* release_parameters(); + ::flwr::proto::Parameters* mutable_parameters(); + void set_allocated_parameters(::flwr::proto::Parameters* parameters); + private: + const ::flwr::proto::Parameters& _internal_parameters() const; + ::flwr::proto::Parameters* _internal_mutable_parameters(); + public: + void unsafe_arena_set_allocated_parameters( + ::flwr::proto::Parameters* parameters); + ::flwr::proto::Parameters* unsafe_arena_release_parameters(); + + // @@protoc_insertion_point(class_scope:flwr.proto.ServerMessage.FitIns) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ServerMessage_FitIns_ConfigEntry_DoNotUse, + std::string, ::flwr::proto::Scalar, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> config_; + ::flwr::proto::Parameters* parameters_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ServerMessage_EvaluateIns_ConfigEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ServerMessage_EvaluateIns_ConfigEntry_DoNotUse(); + explicit constexpr ServerMessage_EvaluateIns_ConfigEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ServerMessage_EvaluateIns_ConfigEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ServerMessage_EvaluateIns_ConfigEntry_DoNotUse& other); + static const ServerMessage_EvaluateIns_ConfigEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ServerMessage_EvaluateIns_ConfigEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "flwr.proto.ServerMessage.EvaluateIns.ConfigEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class ServerMessage_EvaluateIns final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ServerMessage.EvaluateIns) */ { + public: + inline ServerMessage_EvaluateIns() : ServerMessage_EvaluateIns(nullptr) {} + ~ServerMessage_EvaluateIns() override; + explicit constexpr ServerMessage_EvaluateIns(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ServerMessage_EvaluateIns(const ServerMessage_EvaluateIns& from); + ServerMessage_EvaluateIns(ServerMessage_EvaluateIns&& from) noexcept + : ServerMessage_EvaluateIns() { + *this = ::std::move(from); + } + + inline ServerMessage_EvaluateIns& operator=(const ServerMessage_EvaluateIns& from) { + CopyFrom(from); + return *this; + } + inline ServerMessage_EvaluateIns& operator=(ServerMessage_EvaluateIns&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ServerMessage_EvaluateIns& default_instance() { + return *internal_default_instance(); + } + static inline const ServerMessage_EvaluateIns* internal_default_instance() { + return reinterpret_cast( + &_ServerMessage_EvaluateIns_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(ServerMessage_EvaluateIns& a, ServerMessage_EvaluateIns& b) { + a.Swap(&b); + } + inline void Swap(ServerMessage_EvaluateIns* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ServerMessage_EvaluateIns* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ServerMessage_EvaluateIns* New() const final { + return new ServerMessage_EvaluateIns(); + } + + ServerMessage_EvaluateIns* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ServerMessage_EvaluateIns& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ServerMessage_EvaluateIns& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ServerMessage_EvaluateIns* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ServerMessage.EvaluateIns"; + } + protected: + explicit ServerMessage_EvaluateIns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + enum : int { + kConfigFieldNumber = 2, + kParametersFieldNumber = 1, + }; + // map config = 2; + int config_size() const; + private: + int _internal_config_size() const; + public: + void clear_config(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + _internal_config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + _internal_mutable_config(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + config() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + mutable_config(); + + // .flwr.proto.Parameters parameters = 1; + bool has_parameters() const; + private: + bool _internal_has_parameters() const; + public: + void clear_parameters(); + const ::flwr::proto::Parameters& parameters() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Parameters* release_parameters(); + ::flwr::proto::Parameters* mutable_parameters(); + void set_allocated_parameters(::flwr::proto::Parameters* parameters); + private: + const ::flwr::proto::Parameters& _internal_parameters() const; + ::flwr::proto::Parameters* _internal_mutable_parameters(); + public: + void unsafe_arena_set_allocated_parameters( + ::flwr::proto::Parameters* parameters); + ::flwr::proto::Parameters* unsafe_arena_release_parameters(); + + // @@protoc_insertion_point(class_scope:flwr.proto.ServerMessage.EvaluateIns) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ServerMessage_EvaluateIns_ConfigEntry_DoNotUse, + std::string, ::flwr::proto::Scalar, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> config_; + ::flwr::proto::Parameters* parameters_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ServerMessage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ServerMessage) */ { + public: + inline ServerMessage() : ServerMessage(nullptr) {} + ~ServerMessage() override; + explicit constexpr ServerMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ServerMessage(const ServerMessage& from); + ServerMessage(ServerMessage&& from) noexcept + : ServerMessage() { + *this = ::std::move(from); + } + + inline ServerMessage& operator=(const ServerMessage& from) { + CopyFrom(from); + return *this; + } + inline ServerMessage& operator=(ServerMessage&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ServerMessage& default_instance() { + return *internal_default_instance(); + } + enum MsgCase { + kReconnectIns = 1, + kGetPropertiesIns = 2, + kGetParametersIns = 3, + kFitIns = 4, + kEvaluateIns = 5, + MSG_NOT_SET = 0, + }; + + static inline const ServerMessage* internal_default_instance() { + return reinterpret_cast( + &_ServerMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(ServerMessage& a, ServerMessage& b) { + a.Swap(&b); + } + inline void Swap(ServerMessage* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ServerMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ServerMessage* New() const final { + return new ServerMessage(); + } + + ServerMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ServerMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ServerMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ServerMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ServerMessage"; + } + protected: + explicit ServerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ServerMessage_ReconnectIns ReconnectIns; + typedef ServerMessage_GetPropertiesIns GetPropertiesIns; + typedef ServerMessage_GetParametersIns GetParametersIns; + typedef ServerMessage_FitIns FitIns; + typedef ServerMessage_EvaluateIns EvaluateIns; + + // accessors ------------------------------------------------------- + + enum : int { + kReconnectInsFieldNumber = 1, + kGetPropertiesInsFieldNumber = 2, + kGetParametersInsFieldNumber = 3, + kFitInsFieldNumber = 4, + kEvaluateInsFieldNumber = 5, + }; + // .flwr.proto.ServerMessage.ReconnectIns reconnect_ins = 1; + bool has_reconnect_ins() const; + private: + bool _internal_has_reconnect_ins() const; + public: + void clear_reconnect_ins(); + const ::flwr::proto::ServerMessage_ReconnectIns& reconnect_ins() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ServerMessage_ReconnectIns* release_reconnect_ins(); + ::flwr::proto::ServerMessage_ReconnectIns* mutable_reconnect_ins(); + void set_allocated_reconnect_ins(::flwr::proto::ServerMessage_ReconnectIns* reconnect_ins); + private: + const ::flwr::proto::ServerMessage_ReconnectIns& _internal_reconnect_ins() const; + ::flwr::proto::ServerMessage_ReconnectIns* _internal_mutable_reconnect_ins(); + public: + void unsafe_arena_set_allocated_reconnect_ins( + ::flwr::proto::ServerMessage_ReconnectIns* reconnect_ins); + ::flwr::proto::ServerMessage_ReconnectIns* unsafe_arena_release_reconnect_ins(); + + // .flwr.proto.ServerMessage.GetPropertiesIns get_properties_ins = 2; + bool has_get_properties_ins() const; + private: + bool _internal_has_get_properties_ins() const; + public: + void clear_get_properties_ins(); + const ::flwr::proto::ServerMessage_GetPropertiesIns& get_properties_ins() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ServerMessage_GetPropertiesIns* release_get_properties_ins(); + ::flwr::proto::ServerMessage_GetPropertiesIns* mutable_get_properties_ins(); + void set_allocated_get_properties_ins(::flwr::proto::ServerMessage_GetPropertiesIns* get_properties_ins); + private: + const ::flwr::proto::ServerMessage_GetPropertiesIns& _internal_get_properties_ins() const; + ::flwr::proto::ServerMessage_GetPropertiesIns* _internal_mutable_get_properties_ins(); + public: + void unsafe_arena_set_allocated_get_properties_ins( + ::flwr::proto::ServerMessage_GetPropertiesIns* get_properties_ins); + ::flwr::proto::ServerMessage_GetPropertiesIns* unsafe_arena_release_get_properties_ins(); + + // .flwr.proto.ServerMessage.GetParametersIns get_parameters_ins = 3; + bool has_get_parameters_ins() const; + private: + bool _internal_has_get_parameters_ins() const; + public: + void clear_get_parameters_ins(); + const ::flwr::proto::ServerMessage_GetParametersIns& get_parameters_ins() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ServerMessage_GetParametersIns* release_get_parameters_ins(); + ::flwr::proto::ServerMessage_GetParametersIns* mutable_get_parameters_ins(); + void set_allocated_get_parameters_ins(::flwr::proto::ServerMessage_GetParametersIns* get_parameters_ins); + private: + const ::flwr::proto::ServerMessage_GetParametersIns& _internal_get_parameters_ins() const; + ::flwr::proto::ServerMessage_GetParametersIns* _internal_mutable_get_parameters_ins(); + public: + void unsafe_arena_set_allocated_get_parameters_ins( + ::flwr::proto::ServerMessage_GetParametersIns* get_parameters_ins); + ::flwr::proto::ServerMessage_GetParametersIns* unsafe_arena_release_get_parameters_ins(); + + // .flwr.proto.ServerMessage.FitIns fit_ins = 4; + bool has_fit_ins() const; + private: + bool _internal_has_fit_ins() const; + public: + void clear_fit_ins(); + const ::flwr::proto::ServerMessage_FitIns& fit_ins() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ServerMessage_FitIns* release_fit_ins(); + ::flwr::proto::ServerMessage_FitIns* mutable_fit_ins(); + void set_allocated_fit_ins(::flwr::proto::ServerMessage_FitIns* fit_ins); + private: + const ::flwr::proto::ServerMessage_FitIns& _internal_fit_ins() const; + ::flwr::proto::ServerMessage_FitIns* _internal_mutable_fit_ins(); + public: + void unsafe_arena_set_allocated_fit_ins( + ::flwr::proto::ServerMessage_FitIns* fit_ins); + ::flwr::proto::ServerMessage_FitIns* unsafe_arena_release_fit_ins(); + + // .flwr.proto.ServerMessage.EvaluateIns evaluate_ins = 5; + bool has_evaluate_ins() const; + private: + bool _internal_has_evaluate_ins() const; + public: + void clear_evaluate_ins(); + const ::flwr::proto::ServerMessage_EvaluateIns& evaluate_ins() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ServerMessage_EvaluateIns* release_evaluate_ins(); + ::flwr::proto::ServerMessage_EvaluateIns* mutable_evaluate_ins(); + void set_allocated_evaluate_ins(::flwr::proto::ServerMessage_EvaluateIns* evaluate_ins); + private: + const ::flwr::proto::ServerMessage_EvaluateIns& _internal_evaluate_ins() const; + ::flwr::proto::ServerMessage_EvaluateIns* _internal_mutable_evaluate_ins(); + public: + void unsafe_arena_set_allocated_evaluate_ins( + ::flwr::proto::ServerMessage_EvaluateIns* evaluate_ins); + ::flwr::proto::ServerMessage_EvaluateIns* unsafe_arena_release_evaluate_ins(); + + void clear_msg(); + MsgCase msg_case() const; + // @@protoc_insertion_point(class_scope:flwr.proto.ServerMessage) + private: + class _Internal; + void set_has_reconnect_ins(); + void set_has_get_properties_ins(); + void set_has_get_parameters_ins(); + void set_has_fit_ins(); + void set_has_evaluate_ins(); + + inline bool has_msg() const; + inline void clear_has_msg(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union MsgUnion { + constexpr MsgUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::flwr::proto::ServerMessage_ReconnectIns* reconnect_ins_; + ::flwr::proto::ServerMessage_GetPropertiesIns* get_properties_ins_; + ::flwr::proto::ServerMessage_GetParametersIns* get_parameters_ins_; + ::flwr::proto::ServerMessage_FitIns* fit_ins_; + ::flwr::proto::ServerMessage_EvaluateIns* evaluate_ins_; + } msg_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ClientMessage_DisconnectRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ClientMessage.DisconnectRes) */ { + public: + inline ClientMessage_DisconnectRes() : ClientMessage_DisconnectRes(nullptr) {} + ~ClientMessage_DisconnectRes() override; + explicit constexpr ClientMessage_DisconnectRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ClientMessage_DisconnectRes(const ClientMessage_DisconnectRes& from); + ClientMessage_DisconnectRes(ClientMessage_DisconnectRes&& from) noexcept + : ClientMessage_DisconnectRes() { + *this = ::std::move(from); + } + + inline ClientMessage_DisconnectRes& operator=(const ClientMessage_DisconnectRes& from) { + CopyFrom(from); + return *this; + } + inline ClientMessage_DisconnectRes& operator=(ClientMessage_DisconnectRes&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ClientMessage_DisconnectRes& default_instance() { + return *internal_default_instance(); + } + static inline const ClientMessage_DisconnectRes* internal_default_instance() { + return reinterpret_cast( + &_ClientMessage_DisconnectRes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(ClientMessage_DisconnectRes& a, ClientMessage_DisconnectRes& b) { + a.Swap(&b); + } + inline void Swap(ClientMessage_DisconnectRes* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ClientMessage_DisconnectRes* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ClientMessage_DisconnectRes* New() const final { + return new ClientMessage_DisconnectRes(); + } + + ClientMessage_DisconnectRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ClientMessage_DisconnectRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ClientMessage_DisconnectRes& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ClientMessage_DisconnectRes* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ClientMessage.DisconnectRes"; + } + protected: + explicit ClientMessage_DisconnectRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kReasonFieldNumber = 1, + }; + // .flwr.proto.Reason reason = 1; + void clear_reason(); + ::flwr::proto::Reason reason() const; + void set_reason(::flwr::proto::Reason value); + private: + ::flwr::proto::Reason _internal_reason() const; + void _internal_set_reason(::flwr::proto::Reason value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.ClientMessage.DisconnectRes) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int reason_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse(); + explicit constexpr ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse& other); + static const ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "flwr.proto.ClientMessage.GetPropertiesRes.PropertiesEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class ClientMessage_GetPropertiesRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ClientMessage.GetPropertiesRes) */ { + public: + inline ClientMessage_GetPropertiesRes() : ClientMessage_GetPropertiesRes(nullptr) {} + ~ClientMessage_GetPropertiesRes() override; + explicit constexpr ClientMessage_GetPropertiesRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ClientMessage_GetPropertiesRes(const ClientMessage_GetPropertiesRes& from); + ClientMessage_GetPropertiesRes(ClientMessage_GetPropertiesRes&& from) noexcept + : ClientMessage_GetPropertiesRes() { + *this = ::std::move(from); + } + + inline ClientMessage_GetPropertiesRes& operator=(const ClientMessage_GetPropertiesRes& from) { + CopyFrom(from); + return *this; + } + inline ClientMessage_GetPropertiesRes& operator=(ClientMessage_GetPropertiesRes&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ClientMessage_GetPropertiesRes& default_instance() { + return *internal_default_instance(); + } + static inline const ClientMessage_GetPropertiesRes* internal_default_instance() { + return reinterpret_cast( + &_ClientMessage_GetPropertiesRes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(ClientMessage_GetPropertiesRes& a, ClientMessage_GetPropertiesRes& b) { + a.Swap(&b); + } + inline void Swap(ClientMessage_GetPropertiesRes* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ClientMessage_GetPropertiesRes* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ClientMessage_GetPropertiesRes* New() const final { + return new ClientMessage_GetPropertiesRes(); + } + + ClientMessage_GetPropertiesRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ClientMessage_GetPropertiesRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ClientMessage_GetPropertiesRes& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ClientMessage_GetPropertiesRes* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ClientMessage.GetPropertiesRes"; + } + protected: + explicit ClientMessage_GetPropertiesRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + enum : int { + kPropertiesFieldNumber = 2, + kStatusFieldNumber = 1, + }; + // map properties = 2; + int properties_size() const; + private: + int _internal_properties_size() const; + public: + void clear_properties(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + _internal_properties() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + _internal_mutable_properties(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + properties() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + mutable_properties(); + + // .flwr.proto.Status status = 1; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::flwr::proto::Status& status() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Status* release_status(); + ::flwr::proto::Status* mutable_status(); + void set_allocated_status(::flwr::proto::Status* status); + private: + const ::flwr::proto::Status& _internal_status() const; + ::flwr::proto::Status* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::flwr::proto::Status* status); + ::flwr::proto::Status* unsafe_arena_release_status(); + + // @@protoc_insertion_point(class_scope:flwr.proto.ClientMessage.GetPropertiesRes) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ClientMessage_GetPropertiesRes_PropertiesEntry_DoNotUse, + std::string, ::flwr::proto::Scalar, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> properties_; + ::flwr::proto::Status* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ClientMessage_GetParametersRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ClientMessage.GetParametersRes) */ { + public: + inline ClientMessage_GetParametersRes() : ClientMessage_GetParametersRes(nullptr) {} + ~ClientMessage_GetParametersRes() override; + explicit constexpr ClientMessage_GetParametersRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ClientMessage_GetParametersRes(const ClientMessage_GetParametersRes& from); + ClientMessage_GetParametersRes(ClientMessage_GetParametersRes&& from) noexcept + : ClientMessage_GetParametersRes() { + *this = ::std::move(from); + } + + inline ClientMessage_GetParametersRes& operator=(const ClientMessage_GetParametersRes& from) { + CopyFrom(from); + return *this; + } + inline ClientMessage_GetParametersRes& operator=(ClientMessage_GetParametersRes&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ClientMessage_GetParametersRes& default_instance() { + return *internal_default_instance(); + } + static inline const ClientMessage_GetParametersRes* internal_default_instance() { + return reinterpret_cast( + &_ClientMessage_GetParametersRes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(ClientMessage_GetParametersRes& a, ClientMessage_GetParametersRes& b) { + a.Swap(&b); + } + inline void Swap(ClientMessage_GetParametersRes* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ClientMessage_GetParametersRes* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ClientMessage_GetParametersRes* New() const final { + return new ClientMessage_GetParametersRes(); + } + + ClientMessage_GetParametersRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ClientMessage_GetParametersRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ClientMessage_GetParametersRes& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ClientMessage_GetParametersRes* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ClientMessage.GetParametersRes"; + } + protected: + explicit ClientMessage_GetParametersRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStatusFieldNumber = 1, + kParametersFieldNumber = 2, + }; + // .flwr.proto.Status status = 1; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::flwr::proto::Status& status() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Status* release_status(); + ::flwr::proto::Status* mutable_status(); + void set_allocated_status(::flwr::proto::Status* status); + private: + const ::flwr::proto::Status& _internal_status() const; + ::flwr::proto::Status* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::flwr::proto::Status* status); + ::flwr::proto::Status* unsafe_arena_release_status(); + + // .flwr.proto.Parameters parameters = 2; + bool has_parameters() const; + private: + bool _internal_has_parameters() const; + public: + void clear_parameters(); + const ::flwr::proto::Parameters& parameters() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Parameters* release_parameters(); + ::flwr::proto::Parameters* mutable_parameters(); + void set_allocated_parameters(::flwr::proto::Parameters* parameters); + private: + const ::flwr::proto::Parameters& _internal_parameters() const; + ::flwr::proto::Parameters* _internal_mutable_parameters(); + public: + void unsafe_arena_set_allocated_parameters( + ::flwr::proto::Parameters* parameters); + ::flwr::proto::Parameters* unsafe_arena_release_parameters(); + + // @@protoc_insertion_point(class_scope:flwr.proto.ClientMessage.GetParametersRes) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::flwr::proto::Status* status_; + ::flwr::proto::Parameters* parameters_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ClientMessage_FitRes_MetricsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ClientMessage_FitRes_MetricsEntry_DoNotUse(); + explicit constexpr ClientMessage_FitRes_MetricsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ClientMessage_FitRes_MetricsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ClientMessage_FitRes_MetricsEntry_DoNotUse& other); + static const ClientMessage_FitRes_MetricsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ClientMessage_FitRes_MetricsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "flwr.proto.ClientMessage.FitRes.MetricsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class ClientMessage_FitRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ClientMessage.FitRes) */ { + public: + inline ClientMessage_FitRes() : ClientMessage_FitRes(nullptr) {} + ~ClientMessage_FitRes() override; + explicit constexpr ClientMessage_FitRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ClientMessage_FitRes(const ClientMessage_FitRes& from); + ClientMessage_FitRes(ClientMessage_FitRes&& from) noexcept + : ClientMessage_FitRes() { + *this = ::std::move(from); + } + + inline ClientMessage_FitRes& operator=(const ClientMessage_FitRes& from) { + CopyFrom(from); + return *this; + } + inline ClientMessage_FitRes& operator=(ClientMessage_FitRes&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ClientMessage_FitRes& default_instance() { + return *internal_default_instance(); + } + static inline const ClientMessage_FitRes* internal_default_instance() { + return reinterpret_cast( + &_ClientMessage_FitRes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(ClientMessage_FitRes& a, ClientMessage_FitRes& b) { + a.Swap(&b); + } + inline void Swap(ClientMessage_FitRes* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ClientMessage_FitRes* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ClientMessage_FitRes* New() const final { + return new ClientMessage_FitRes(); + } + + ClientMessage_FitRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ClientMessage_FitRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ClientMessage_FitRes& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ClientMessage_FitRes* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ClientMessage.FitRes"; + } + protected: + explicit ClientMessage_FitRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + enum : int { + kMetricsFieldNumber = 4, + kStatusFieldNumber = 1, + kParametersFieldNumber = 2, + kNumExamplesFieldNumber = 3, + }; + // map metrics = 4; + int metrics_size() const; + private: + int _internal_metrics_size() const; + public: + void clear_metrics(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + _internal_metrics() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + _internal_mutable_metrics(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + metrics() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + mutable_metrics(); + + // .flwr.proto.Status status = 1; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::flwr::proto::Status& status() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Status* release_status(); + ::flwr::proto::Status* mutable_status(); + void set_allocated_status(::flwr::proto::Status* status); + private: + const ::flwr::proto::Status& _internal_status() const; + ::flwr::proto::Status* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::flwr::proto::Status* status); + ::flwr::proto::Status* unsafe_arena_release_status(); + + // .flwr.proto.Parameters parameters = 2; + bool has_parameters() const; + private: + bool _internal_has_parameters() const; + public: + void clear_parameters(); + const ::flwr::proto::Parameters& parameters() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Parameters* release_parameters(); + ::flwr::proto::Parameters* mutable_parameters(); + void set_allocated_parameters(::flwr::proto::Parameters* parameters); + private: + const ::flwr::proto::Parameters& _internal_parameters() const; + ::flwr::proto::Parameters* _internal_mutable_parameters(); + public: + void unsafe_arena_set_allocated_parameters( + ::flwr::proto::Parameters* parameters); + ::flwr::proto::Parameters* unsafe_arena_release_parameters(); + + // int64 num_examples = 3; + void clear_num_examples(); + ::PROTOBUF_NAMESPACE_ID::int64 num_examples() const; + void set_num_examples(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_num_examples() const; + void _internal_set_num_examples(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.ClientMessage.FitRes) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ClientMessage_FitRes_MetricsEntry_DoNotUse, + std::string, ::flwr::proto::Scalar, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> metrics_; + ::flwr::proto::Status* status_; + ::flwr::proto::Parameters* parameters_; + ::PROTOBUF_NAMESPACE_ID::int64 num_examples_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ClientMessage_EvaluateRes_MetricsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ClientMessage_EvaluateRes_MetricsEntry_DoNotUse(); + explicit constexpr ClientMessage_EvaluateRes_MetricsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ClientMessage_EvaluateRes_MetricsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ClientMessage_EvaluateRes_MetricsEntry_DoNotUse& other); + static const ClientMessage_EvaluateRes_MetricsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ClientMessage_EvaluateRes_MetricsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "flwr.proto.ClientMessage.EvaluateRes.MetricsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +}; + +// ------------------------------------------------------------------- + +class ClientMessage_EvaluateRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ClientMessage.EvaluateRes) */ { + public: + inline ClientMessage_EvaluateRes() : ClientMessage_EvaluateRes(nullptr) {} + ~ClientMessage_EvaluateRes() override; + explicit constexpr ClientMessage_EvaluateRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ClientMessage_EvaluateRes(const ClientMessage_EvaluateRes& from); + ClientMessage_EvaluateRes(ClientMessage_EvaluateRes&& from) noexcept + : ClientMessage_EvaluateRes() { + *this = ::std::move(from); + } + + inline ClientMessage_EvaluateRes& operator=(const ClientMessage_EvaluateRes& from) { + CopyFrom(from); + return *this; + } + inline ClientMessage_EvaluateRes& operator=(ClientMessage_EvaluateRes&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ClientMessage_EvaluateRes& default_instance() { + return *internal_default_instance(); + } + static inline const ClientMessage_EvaluateRes* internal_default_instance() { + return reinterpret_cast( + &_ClientMessage_EvaluateRes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(ClientMessage_EvaluateRes& a, ClientMessage_EvaluateRes& b) { + a.Swap(&b); + } + inline void Swap(ClientMessage_EvaluateRes* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ClientMessage_EvaluateRes* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ClientMessage_EvaluateRes* New() const final { + return new ClientMessage_EvaluateRes(); + } + + ClientMessage_EvaluateRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ClientMessage_EvaluateRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ClientMessage_EvaluateRes& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ClientMessage_EvaluateRes* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ClientMessage.EvaluateRes"; + } + protected: + explicit ClientMessage_EvaluateRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + enum : int { + kMetricsFieldNumber = 4, + kStatusFieldNumber = 1, + kNumExamplesFieldNumber = 3, + kLossFieldNumber = 2, + }; + // map metrics = 4; + int metrics_size() const; + private: + int _internal_metrics_size() const; + public: + void clear_metrics(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + _internal_metrics() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + _internal_mutable_metrics(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& + metrics() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* + mutable_metrics(); + + // .flwr.proto.Status status = 1; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::flwr::proto::Status& status() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::Status* release_status(); + ::flwr::proto::Status* mutable_status(); + void set_allocated_status(::flwr::proto::Status* status); + private: + const ::flwr::proto::Status& _internal_status() const; + ::flwr::proto::Status* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::flwr::proto::Status* status); + ::flwr::proto::Status* unsafe_arena_release_status(); + + // int64 num_examples = 3; + void clear_num_examples(); + ::PROTOBUF_NAMESPACE_ID::int64 num_examples() const; + void set_num_examples(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_num_examples() const; + void _internal_set_num_examples(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // float loss = 2; + void clear_loss(); + float loss() const; + void set_loss(float value); + private: + float _internal_loss() const; + void _internal_set_loss(float value); + public: + + // @@protoc_insertion_point(class_scope:flwr.proto.ClientMessage.EvaluateRes) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ClientMessage_EvaluateRes_MetricsEntry_DoNotUse, + std::string, ::flwr::proto::Scalar, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> metrics_; + ::flwr::proto::Status* status_; + ::PROTOBUF_NAMESPACE_ID::int64 num_examples_; + float loss_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class ClientMessage final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.ClientMessage) */ { + public: + inline ClientMessage() : ClientMessage(nullptr) {} + ~ClientMessage() override; + explicit constexpr ClientMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ClientMessage(const ClientMessage& from); + ClientMessage(ClientMessage&& from) noexcept + : ClientMessage() { + *this = ::std::move(from); + } + + inline ClientMessage& operator=(const ClientMessage& from) { + CopyFrom(from); + return *this; + } + inline ClientMessage& operator=(ClientMessage&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ClientMessage& default_instance() { + return *internal_default_instance(); + } + enum MsgCase { + kDisconnectRes = 1, + kGetPropertiesRes = 2, + kGetParametersRes = 3, + kFitRes = 4, + kEvaluateRes = 5, + MSG_NOT_SET = 0, + }; + + static inline const ClientMessage* internal_default_instance() { + return reinterpret_cast( + &_ClientMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(ClientMessage& a, ClientMessage& b) { + a.Swap(&b); + } + inline void Swap(ClientMessage* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ClientMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ClientMessage* New() const final { + return new ClientMessage(); + } + + ClientMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ClientMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ClientMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ClientMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.ClientMessage"; + } + protected: + explicit ClientMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ClientMessage_DisconnectRes DisconnectRes; + typedef ClientMessage_GetPropertiesRes GetPropertiesRes; + typedef ClientMessage_GetParametersRes GetParametersRes; + typedef ClientMessage_FitRes FitRes; + typedef ClientMessage_EvaluateRes EvaluateRes; + + // accessors ------------------------------------------------------- + + enum : int { + kDisconnectResFieldNumber = 1, + kGetPropertiesResFieldNumber = 2, + kGetParametersResFieldNumber = 3, + kFitResFieldNumber = 4, + kEvaluateResFieldNumber = 5, + }; + // .flwr.proto.ClientMessage.DisconnectRes disconnect_res = 1; + bool has_disconnect_res() const; + private: + bool _internal_has_disconnect_res() const; + public: + void clear_disconnect_res(); + const ::flwr::proto::ClientMessage_DisconnectRes& disconnect_res() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ClientMessage_DisconnectRes* release_disconnect_res(); + ::flwr::proto::ClientMessage_DisconnectRes* mutable_disconnect_res(); + void set_allocated_disconnect_res(::flwr::proto::ClientMessage_DisconnectRes* disconnect_res); + private: + const ::flwr::proto::ClientMessage_DisconnectRes& _internal_disconnect_res() const; + ::flwr::proto::ClientMessage_DisconnectRes* _internal_mutable_disconnect_res(); + public: + void unsafe_arena_set_allocated_disconnect_res( + ::flwr::proto::ClientMessage_DisconnectRes* disconnect_res); + ::flwr::proto::ClientMessage_DisconnectRes* unsafe_arena_release_disconnect_res(); + + // .flwr.proto.ClientMessage.GetPropertiesRes get_properties_res = 2; + bool has_get_properties_res() const; + private: + bool _internal_has_get_properties_res() const; + public: + void clear_get_properties_res(); + const ::flwr::proto::ClientMessage_GetPropertiesRes& get_properties_res() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ClientMessage_GetPropertiesRes* release_get_properties_res(); + ::flwr::proto::ClientMessage_GetPropertiesRes* mutable_get_properties_res(); + void set_allocated_get_properties_res(::flwr::proto::ClientMessage_GetPropertiesRes* get_properties_res); + private: + const ::flwr::proto::ClientMessage_GetPropertiesRes& _internal_get_properties_res() const; + ::flwr::proto::ClientMessage_GetPropertiesRes* _internal_mutable_get_properties_res(); + public: + void unsafe_arena_set_allocated_get_properties_res( + ::flwr::proto::ClientMessage_GetPropertiesRes* get_properties_res); + ::flwr::proto::ClientMessage_GetPropertiesRes* unsafe_arena_release_get_properties_res(); + + // .flwr.proto.ClientMessage.GetParametersRes get_parameters_res = 3; + bool has_get_parameters_res() const; + private: + bool _internal_has_get_parameters_res() const; + public: + void clear_get_parameters_res(); + const ::flwr::proto::ClientMessage_GetParametersRes& get_parameters_res() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ClientMessage_GetParametersRes* release_get_parameters_res(); + ::flwr::proto::ClientMessage_GetParametersRes* mutable_get_parameters_res(); + void set_allocated_get_parameters_res(::flwr::proto::ClientMessage_GetParametersRes* get_parameters_res); + private: + const ::flwr::proto::ClientMessage_GetParametersRes& _internal_get_parameters_res() const; + ::flwr::proto::ClientMessage_GetParametersRes* _internal_mutable_get_parameters_res(); + public: + void unsafe_arena_set_allocated_get_parameters_res( + ::flwr::proto::ClientMessage_GetParametersRes* get_parameters_res); + ::flwr::proto::ClientMessage_GetParametersRes* unsafe_arena_release_get_parameters_res(); + + // .flwr.proto.ClientMessage.FitRes fit_res = 4; + bool has_fit_res() const; + private: + bool _internal_has_fit_res() const; + public: + void clear_fit_res(); + const ::flwr::proto::ClientMessage_FitRes& fit_res() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ClientMessage_FitRes* release_fit_res(); + ::flwr::proto::ClientMessage_FitRes* mutable_fit_res(); + void set_allocated_fit_res(::flwr::proto::ClientMessage_FitRes* fit_res); + private: + const ::flwr::proto::ClientMessage_FitRes& _internal_fit_res() const; + ::flwr::proto::ClientMessage_FitRes* _internal_mutable_fit_res(); + public: + void unsafe_arena_set_allocated_fit_res( + ::flwr::proto::ClientMessage_FitRes* fit_res); + ::flwr::proto::ClientMessage_FitRes* unsafe_arena_release_fit_res(); + + // .flwr.proto.ClientMessage.EvaluateRes evaluate_res = 5; + bool has_evaluate_res() const; + private: + bool _internal_has_evaluate_res() const; + public: + void clear_evaluate_res(); + const ::flwr::proto::ClientMessage_EvaluateRes& evaluate_res() const; + PROTOBUF_MUST_USE_RESULT ::flwr::proto::ClientMessage_EvaluateRes* release_evaluate_res(); + ::flwr::proto::ClientMessage_EvaluateRes* mutable_evaluate_res(); + void set_allocated_evaluate_res(::flwr::proto::ClientMessage_EvaluateRes* evaluate_res); + private: + const ::flwr::proto::ClientMessage_EvaluateRes& _internal_evaluate_res() const; + ::flwr::proto::ClientMessage_EvaluateRes* _internal_mutable_evaluate_res(); + public: + void unsafe_arena_set_allocated_evaluate_res( + ::flwr::proto::ClientMessage_EvaluateRes* evaluate_res); + ::flwr::proto::ClientMessage_EvaluateRes* unsafe_arena_release_evaluate_res(); + + void clear_msg(); + MsgCase msg_case() const; + // @@protoc_insertion_point(class_scope:flwr.proto.ClientMessage) + private: + class _Internal; + void set_has_disconnect_res(); + void set_has_get_properties_res(); + void set_has_get_parameters_res(); + void set_has_fit_res(); + void set_has_evaluate_res(); + + inline bool has_msg() const; + inline void clear_has_msg(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union MsgUnion { + constexpr MsgUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::flwr::proto::ClientMessage_DisconnectRes* disconnect_res_; + ::flwr::proto::ClientMessage_GetPropertiesRes* get_properties_res_; + ::flwr::proto::ClientMessage_GetParametersRes* get_parameters_res_; + ::flwr::proto::ClientMessage_FitRes* fit_res_; + ::flwr::proto::ClientMessage_EvaluateRes* evaluate_res_; + } msg_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// ------------------------------------------------------------------- + +class Scalar final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:flwr.proto.Scalar) */ { + public: + inline Scalar() : Scalar(nullptr) {} + ~Scalar() override; + explicit constexpr Scalar(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Scalar(const Scalar& from); + Scalar(Scalar&& from) noexcept + : Scalar() { + *this = ::std::move(from); + } + + inline Scalar& operator=(const Scalar& from) { + CopyFrom(from); + return *this; + } + inline Scalar& operator=(Scalar&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Scalar& default_instance() { + return *internal_default_instance(); + } + enum ScalarCase { + kDouble = 1, + kSint64 = 8, + kBool = 13, + kString = 14, + kBytes = 15, + SCALAR_NOT_SET = 0, + }; + + static inline const Scalar* internal_default_instance() { + return reinterpret_cast( + &_Scalar_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(Scalar& a, Scalar& b) { + a.Swap(&b); + } + inline void Swap(Scalar* other) { + if (other == this) return; + if (GetOwningArena() == other->GetOwningArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Scalar* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Scalar* New() const final { + return new Scalar(); + } + + Scalar* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Scalar& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Scalar& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Scalar* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "flwr.proto.Scalar"; + } + protected: + explicit Scalar(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDoubleFieldNumber = 1, + kSint64FieldNumber = 8, + kBoolFieldNumber = 13, + kStringFieldNumber = 14, + kBytesFieldNumber = 15, + }; + // double double = 1; + bool has_double_() const; + private: + bool _internal_has_double_() const; + public: + void clear_double_(); + double double_() const; + void set_double_(double value); + private: + double _internal_double_() const; + void _internal_set_double_(double value); + public: + + // sint64 sint64 = 8; + bool has_sint64() const; + private: + bool _internal_has_sint64() const; + public: + void clear_sint64(); + ::PROTOBUF_NAMESPACE_ID::int64 sint64() const; + void set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_sint64() const; + void _internal_set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // bool bool = 13; + bool has_bool_() const; + private: + bool _internal_has_bool_() const; + public: + void clear_bool_(); + bool bool_() const; + void set_bool_(bool value); + private: + bool _internal_bool_() const; + void _internal_set_bool_(bool value); + public: + + // string string = 14; + bool has_string() const; + private: + bool _internal_has_string() const; + public: + void clear_string(); + const std::string& string() const; + template + void set_string(ArgT0&& arg0, ArgT... args); + std::string* mutable_string(); + PROTOBUF_MUST_USE_RESULT std::string* release_string(); + void set_allocated_string(std::string* string); + private: + const std::string& _internal_string() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_string(const std::string& value); + std::string* _internal_mutable_string(); + public: + + // bytes bytes = 15; + bool has_bytes() const; + private: + bool _internal_has_bytes() const; + public: + void clear_bytes(); + const std::string& bytes() const; + template + void set_bytes(ArgT0&& arg0, ArgT... args); + std::string* mutable_bytes(); + PROTOBUF_MUST_USE_RESULT std::string* release_bytes(); + void set_allocated_bytes(std::string* bytes); + private: + const std::string& _internal_bytes() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes(const std::string& value); + std::string* _internal_mutable_bytes(); + public: + + void clear_scalar(); + ScalarCase scalar_case() const; + // @@protoc_insertion_point(class_scope:flwr.proto.Scalar) + private: + class _Internal; + void set_has_double_(); + void set_has_sint64(); + void set_has_bool_(); + void set_has_string(); + void set_has_bytes(); + + inline bool has_scalar() const; + inline void clear_has_scalar(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union ScalarUnion { + constexpr ScalarUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + double double__; + ::PROTOBUF_NAMESPACE_ID::int64 sint64_; + bool bool__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_; + } scalar_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flwr_2fproto_2ftransport_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Status + +// .flwr.proto.Code code = 1; +inline void Status::clear_code() { + code_ = 0; +} +inline ::flwr::proto::Code Status::_internal_code() const { + return static_cast< ::flwr::proto::Code >(code_); +} +inline ::flwr::proto::Code Status::code() const { + // @@protoc_insertion_point(field_get:flwr.proto.Status.code) + return _internal_code(); +} +inline void Status::_internal_set_code(::flwr::proto::Code value) { + + code_ = value; +} +inline void Status::set_code(::flwr::proto::Code value) { + _internal_set_code(value); + // @@protoc_insertion_point(field_set:flwr.proto.Status.code) +} + +// string message = 2; +inline void Status::clear_message() { + message_.ClearToEmpty(); +} +inline const std::string& Status::message() const { + // @@protoc_insertion_point(field_get:flwr.proto.Status.message) + return _internal_message(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Status::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Status.message) +} +inline std::string* Status::mutable_message() { + std::string* _s = _internal_mutable_message(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Status.message) + return _s; +} +inline const std::string& Status::_internal_message() const { + return message_.Get(); +} +inline void Status::_internal_set_message(const std::string& value) { + + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Status::_internal_mutable_message() { + + return message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Status::release_message() { + // @@protoc_insertion_point(field_release:flwr.proto.Status.message) + return message_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Status::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Status.message) +} + +// ------------------------------------------------------------------- + +// Parameters + +// repeated bytes tensors = 1; +inline int Parameters::_internal_tensors_size() const { + return tensors_.size(); +} +inline int Parameters::tensors_size() const { + return _internal_tensors_size(); +} +inline void Parameters::clear_tensors() { + tensors_.Clear(); +} +inline std::string* Parameters::add_tensors() { + std::string* _s = _internal_add_tensors(); + // @@protoc_insertion_point(field_add_mutable:flwr.proto.Parameters.tensors) + return _s; +} +inline const std::string& Parameters::_internal_tensors(int index) const { + return tensors_.Get(index); +} +inline const std::string& Parameters::tensors(int index) const { + // @@protoc_insertion_point(field_get:flwr.proto.Parameters.tensors) + return _internal_tensors(index); +} +inline std::string* Parameters::mutable_tensors(int index) { + // @@protoc_insertion_point(field_mutable:flwr.proto.Parameters.tensors) + return tensors_.Mutable(index); +} +inline void Parameters::set_tensors(int index, const std::string& value) { + tensors_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:flwr.proto.Parameters.tensors) +} +inline void Parameters::set_tensors(int index, std::string&& value) { + tensors_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:flwr.proto.Parameters.tensors) +} +inline void Parameters::set_tensors(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + tensors_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flwr.proto.Parameters.tensors) +} +inline void Parameters::set_tensors(int index, const void* value, size_t size) { + tensors_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flwr.proto.Parameters.tensors) +} +inline std::string* Parameters::_internal_add_tensors() { + return tensors_.Add(); +} +inline void Parameters::add_tensors(const std::string& value) { + tensors_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flwr.proto.Parameters.tensors) +} +inline void Parameters::add_tensors(std::string&& value) { + tensors_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flwr.proto.Parameters.tensors) +} +inline void Parameters::add_tensors(const char* value) { + GOOGLE_DCHECK(value != nullptr); + tensors_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flwr.proto.Parameters.tensors) +} +inline void Parameters::add_tensors(const void* value, size_t size) { + tensors_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flwr.proto.Parameters.tensors) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Parameters::tensors() const { + // @@protoc_insertion_point(field_list:flwr.proto.Parameters.tensors) + return tensors_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Parameters::mutable_tensors() { + // @@protoc_insertion_point(field_mutable_list:flwr.proto.Parameters.tensors) + return &tensors_; +} + +// string tensor_type = 2; +inline void Parameters::clear_tensor_type() { + tensor_type_.ClearToEmpty(); +} +inline const std::string& Parameters::tensor_type() const { + // @@protoc_insertion_point(field_get:flwr.proto.Parameters.tensor_type) + return _internal_tensor_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Parameters::set_tensor_type(ArgT0&& arg0, ArgT... args) { + + tensor_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Parameters.tensor_type) +} +inline std::string* Parameters::mutable_tensor_type() { + std::string* _s = _internal_mutable_tensor_type(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Parameters.tensor_type) + return _s; +} +inline const std::string& Parameters::_internal_tensor_type() const { + return tensor_type_.Get(); +} +inline void Parameters::_internal_set_tensor_type(const std::string& value) { + + tensor_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Parameters::_internal_mutable_tensor_type() { + + return tensor_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Parameters::release_tensor_type() { + // @@protoc_insertion_point(field_release:flwr.proto.Parameters.tensor_type) + return tensor_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Parameters::set_allocated_tensor_type(std::string* tensor_type) { + if (tensor_type != nullptr) { + + } else { + + } + tensor_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tensor_type, + GetArenaForAllocation()); + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Parameters.tensor_type) +} + +// ------------------------------------------------------------------- + +// ServerMessage_ReconnectIns + +// int64 seconds = 1; +inline void ServerMessage_ReconnectIns::clear_seconds() { + seconds_ = int64_t{0}; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ServerMessage_ReconnectIns::_internal_seconds() const { + return seconds_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ServerMessage_ReconnectIns::seconds() const { + // @@protoc_insertion_point(field_get:flwr.proto.ServerMessage.ReconnectIns.seconds) + return _internal_seconds(); +} +inline void ServerMessage_ReconnectIns::_internal_set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value) { + + seconds_ = value; +} +inline void ServerMessage_ReconnectIns::set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_seconds(value); + // @@protoc_insertion_point(field_set:flwr.proto.ServerMessage.ReconnectIns.seconds) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ServerMessage_GetPropertiesIns + +// map config = 1; +inline int ServerMessage_GetPropertiesIns::_internal_config_size() const { + return config_.size(); +} +inline int ServerMessage_GetPropertiesIns::config_size() const { + return _internal_config_size(); +} +inline void ServerMessage_GetPropertiesIns::clear_config() { + config_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ServerMessage_GetPropertiesIns::_internal_config() const { + return config_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ServerMessage_GetPropertiesIns::config() const { + // @@protoc_insertion_point(field_map:flwr.proto.ServerMessage.GetPropertiesIns.config) + return _internal_config(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ServerMessage_GetPropertiesIns::_internal_mutable_config() { + return config_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ServerMessage_GetPropertiesIns::mutable_config() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.ServerMessage.GetPropertiesIns.config) + return _internal_mutable_config(); +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ServerMessage_GetParametersIns + +// map config = 1; +inline int ServerMessage_GetParametersIns::_internal_config_size() const { + return config_.size(); +} +inline int ServerMessage_GetParametersIns::config_size() const { + return _internal_config_size(); +} +inline void ServerMessage_GetParametersIns::clear_config() { + config_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ServerMessage_GetParametersIns::_internal_config() const { + return config_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ServerMessage_GetParametersIns::config() const { + // @@protoc_insertion_point(field_map:flwr.proto.ServerMessage.GetParametersIns.config) + return _internal_config(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ServerMessage_GetParametersIns::_internal_mutable_config() { + return config_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ServerMessage_GetParametersIns::mutable_config() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.ServerMessage.GetParametersIns.config) + return _internal_mutable_config(); +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ServerMessage_FitIns + +// .flwr.proto.Parameters parameters = 1; +inline bool ServerMessage_FitIns::_internal_has_parameters() const { + return this != internal_default_instance() && parameters_ != nullptr; +} +inline bool ServerMessage_FitIns::has_parameters() const { + return _internal_has_parameters(); +} +inline void ServerMessage_FitIns::clear_parameters() { + if (GetArenaForAllocation() == nullptr && parameters_ != nullptr) { + delete parameters_; + } + parameters_ = nullptr; +} +inline const ::flwr::proto::Parameters& ServerMessage_FitIns::_internal_parameters() const { + const ::flwr::proto::Parameters* p = parameters_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Parameters_default_instance_); +} +inline const ::flwr::proto::Parameters& ServerMessage_FitIns::parameters() const { + // @@protoc_insertion_point(field_get:flwr.proto.ServerMessage.FitIns.parameters) + return _internal_parameters(); +} +inline void ServerMessage_FitIns::unsafe_arena_set_allocated_parameters( + ::flwr::proto::Parameters* parameters) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(parameters_); + } + parameters_ = parameters; + if (parameters) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ServerMessage.FitIns.parameters) +} +inline ::flwr::proto::Parameters* ServerMessage_FitIns::release_parameters() { + + ::flwr::proto::Parameters* temp = parameters_; + parameters_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Parameters* ServerMessage_FitIns::unsafe_arena_release_parameters() { + // @@protoc_insertion_point(field_release:flwr.proto.ServerMessage.FitIns.parameters) + + ::flwr::proto::Parameters* temp = parameters_; + parameters_ = nullptr; + return temp; +} +inline ::flwr::proto::Parameters* ServerMessage_FitIns::_internal_mutable_parameters() { + + if (parameters_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Parameters>(GetArenaForAllocation()); + parameters_ = p; + } + return parameters_; +} +inline ::flwr::proto::Parameters* ServerMessage_FitIns::mutable_parameters() { + ::flwr::proto::Parameters* _msg = _internal_mutable_parameters(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ServerMessage.FitIns.parameters) + return _msg; +} +inline void ServerMessage_FitIns::set_allocated_parameters(::flwr::proto::Parameters* parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete parameters_; + } + if (parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Parameters>::GetOwningArena(parameters); + if (message_arena != submessage_arena) { + parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, parameters, submessage_arena); + } + + } else { + + } + parameters_ = parameters; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ServerMessage.FitIns.parameters) +} + +// map config = 2; +inline int ServerMessage_FitIns::_internal_config_size() const { + return config_.size(); +} +inline int ServerMessage_FitIns::config_size() const { + return _internal_config_size(); +} +inline void ServerMessage_FitIns::clear_config() { + config_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ServerMessage_FitIns::_internal_config() const { + return config_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ServerMessage_FitIns::config() const { + // @@protoc_insertion_point(field_map:flwr.proto.ServerMessage.FitIns.config) + return _internal_config(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ServerMessage_FitIns::_internal_mutable_config() { + return config_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ServerMessage_FitIns::mutable_config() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.ServerMessage.FitIns.config) + return _internal_mutable_config(); +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ServerMessage_EvaluateIns + +// .flwr.proto.Parameters parameters = 1; +inline bool ServerMessage_EvaluateIns::_internal_has_parameters() const { + return this != internal_default_instance() && parameters_ != nullptr; +} +inline bool ServerMessage_EvaluateIns::has_parameters() const { + return _internal_has_parameters(); +} +inline void ServerMessage_EvaluateIns::clear_parameters() { + if (GetArenaForAllocation() == nullptr && parameters_ != nullptr) { + delete parameters_; + } + parameters_ = nullptr; +} +inline const ::flwr::proto::Parameters& ServerMessage_EvaluateIns::_internal_parameters() const { + const ::flwr::proto::Parameters* p = parameters_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Parameters_default_instance_); +} +inline const ::flwr::proto::Parameters& ServerMessage_EvaluateIns::parameters() const { + // @@protoc_insertion_point(field_get:flwr.proto.ServerMessage.EvaluateIns.parameters) + return _internal_parameters(); +} +inline void ServerMessage_EvaluateIns::unsafe_arena_set_allocated_parameters( + ::flwr::proto::Parameters* parameters) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(parameters_); + } + parameters_ = parameters; + if (parameters) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ServerMessage.EvaluateIns.parameters) +} +inline ::flwr::proto::Parameters* ServerMessage_EvaluateIns::release_parameters() { + + ::flwr::proto::Parameters* temp = parameters_; + parameters_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Parameters* ServerMessage_EvaluateIns::unsafe_arena_release_parameters() { + // @@protoc_insertion_point(field_release:flwr.proto.ServerMessage.EvaluateIns.parameters) + + ::flwr::proto::Parameters* temp = parameters_; + parameters_ = nullptr; + return temp; +} +inline ::flwr::proto::Parameters* ServerMessage_EvaluateIns::_internal_mutable_parameters() { + + if (parameters_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Parameters>(GetArenaForAllocation()); + parameters_ = p; + } + return parameters_; +} +inline ::flwr::proto::Parameters* ServerMessage_EvaluateIns::mutable_parameters() { + ::flwr::proto::Parameters* _msg = _internal_mutable_parameters(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ServerMessage.EvaluateIns.parameters) + return _msg; +} +inline void ServerMessage_EvaluateIns::set_allocated_parameters(::flwr::proto::Parameters* parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete parameters_; + } + if (parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Parameters>::GetOwningArena(parameters); + if (message_arena != submessage_arena) { + parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, parameters, submessage_arena); + } + + } else { + + } + parameters_ = parameters; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ServerMessage.EvaluateIns.parameters) +} + +// map config = 2; +inline int ServerMessage_EvaluateIns::_internal_config_size() const { + return config_.size(); +} +inline int ServerMessage_EvaluateIns::config_size() const { + return _internal_config_size(); +} +inline void ServerMessage_EvaluateIns::clear_config() { + config_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ServerMessage_EvaluateIns::_internal_config() const { + return config_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ServerMessage_EvaluateIns::config() const { + // @@protoc_insertion_point(field_map:flwr.proto.ServerMessage.EvaluateIns.config) + return _internal_config(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ServerMessage_EvaluateIns::_internal_mutable_config() { + return config_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ServerMessage_EvaluateIns::mutable_config() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.ServerMessage.EvaluateIns.config) + return _internal_mutable_config(); +} + +// ------------------------------------------------------------------- + +// ServerMessage + +// .flwr.proto.ServerMessage.ReconnectIns reconnect_ins = 1; +inline bool ServerMessage::_internal_has_reconnect_ins() const { + return msg_case() == kReconnectIns; +} +inline bool ServerMessage::has_reconnect_ins() const { + return _internal_has_reconnect_ins(); +} +inline void ServerMessage::set_has_reconnect_ins() { + _oneof_case_[0] = kReconnectIns; +} +inline void ServerMessage::clear_reconnect_ins() { + if (_internal_has_reconnect_ins()) { + if (GetArenaForAllocation() == nullptr) { + delete msg_.reconnect_ins_; + } + clear_has_msg(); + } +} +inline ::flwr::proto::ServerMessage_ReconnectIns* ServerMessage::release_reconnect_ins() { + // @@protoc_insertion_point(field_release:flwr.proto.ServerMessage.reconnect_ins) + if (_internal_has_reconnect_ins()) { + clear_has_msg(); + ::flwr::proto::ServerMessage_ReconnectIns* temp = msg_.reconnect_ins_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + msg_.reconnect_ins_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ServerMessage_ReconnectIns& ServerMessage::_internal_reconnect_ins() const { + return _internal_has_reconnect_ins() + ? *msg_.reconnect_ins_ + : reinterpret_cast< ::flwr::proto::ServerMessage_ReconnectIns&>(::flwr::proto::_ServerMessage_ReconnectIns_default_instance_); +} +inline const ::flwr::proto::ServerMessage_ReconnectIns& ServerMessage::reconnect_ins() const { + // @@protoc_insertion_point(field_get:flwr.proto.ServerMessage.reconnect_ins) + return _internal_reconnect_ins(); +} +inline ::flwr::proto::ServerMessage_ReconnectIns* ServerMessage::unsafe_arena_release_reconnect_ins() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ServerMessage.reconnect_ins) + if (_internal_has_reconnect_ins()) { + clear_has_msg(); + ::flwr::proto::ServerMessage_ReconnectIns* temp = msg_.reconnect_ins_; + msg_.reconnect_ins_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ServerMessage::unsafe_arena_set_allocated_reconnect_ins(::flwr::proto::ServerMessage_ReconnectIns* reconnect_ins) { + clear_msg(); + if (reconnect_ins) { + set_has_reconnect_ins(); + msg_.reconnect_ins_ = reconnect_ins; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ServerMessage.reconnect_ins) +} +inline ::flwr::proto::ServerMessage_ReconnectIns* ServerMessage::_internal_mutable_reconnect_ins() { + if (!_internal_has_reconnect_ins()) { + clear_msg(); + set_has_reconnect_ins(); + msg_.reconnect_ins_ = CreateMaybeMessage< ::flwr::proto::ServerMessage_ReconnectIns >(GetArenaForAllocation()); + } + return msg_.reconnect_ins_; +} +inline ::flwr::proto::ServerMessage_ReconnectIns* ServerMessage::mutable_reconnect_ins() { + ::flwr::proto::ServerMessage_ReconnectIns* _msg = _internal_mutable_reconnect_ins(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ServerMessage.reconnect_ins) + return _msg; +} + +// .flwr.proto.ServerMessage.GetPropertiesIns get_properties_ins = 2; +inline bool ServerMessage::_internal_has_get_properties_ins() const { + return msg_case() == kGetPropertiesIns; +} +inline bool ServerMessage::has_get_properties_ins() const { + return _internal_has_get_properties_ins(); +} +inline void ServerMessage::set_has_get_properties_ins() { + _oneof_case_[0] = kGetPropertiesIns; +} +inline void ServerMessage::clear_get_properties_ins() { + if (_internal_has_get_properties_ins()) { + if (GetArenaForAllocation() == nullptr) { + delete msg_.get_properties_ins_; + } + clear_has_msg(); + } +} +inline ::flwr::proto::ServerMessage_GetPropertiesIns* ServerMessage::release_get_properties_ins() { + // @@protoc_insertion_point(field_release:flwr.proto.ServerMessage.get_properties_ins) + if (_internal_has_get_properties_ins()) { + clear_has_msg(); + ::flwr::proto::ServerMessage_GetPropertiesIns* temp = msg_.get_properties_ins_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + msg_.get_properties_ins_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ServerMessage_GetPropertiesIns& ServerMessage::_internal_get_properties_ins() const { + return _internal_has_get_properties_ins() + ? *msg_.get_properties_ins_ + : reinterpret_cast< ::flwr::proto::ServerMessage_GetPropertiesIns&>(::flwr::proto::_ServerMessage_GetPropertiesIns_default_instance_); +} +inline const ::flwr::proto::ServerMessage_GetPropertiesIns& ServerMessage::get_properties_ins() const { + // @@protoc_insertion_point(field_get:flwr.proto.ServerMessage.get_properties_ins) + return _internal_get_properties_ins(); +} +inline ::flwr::proto::ServerMessage_GetPropertiesIns* ServerMessage::unsafe_arena_release_get_properties_ins() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ServerMessage.get_properties_ins) + if (_internal_has_get_properties_ins()) { + clear_has_msg(); + ::flwr::proto::ServerMessage_GetPropertiesIns* temp = msg_.get_properties_ins_; + msg_.get_properties_ins_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ServerMessage::unsafe_arena_set_allocated_get_properties_ins(::flwr::proto::ServerMessage_GetPropertiesIns* get_properties_ins) { + clear_msg(); + if (get_properties_ins) { + set_has_get_properties_ins(); + msg_.get_properties_ins_ = get_properties_ins; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ServerMessage.get_properties_ins) +} +inline ::flwr::proto::ServerMessage_GetPropertiesIns* ServerMessage::_internal_mutable_get_properties_ins() { + if (!_internal_has_get_properties_ins()) { + clear_msg(); + set_has_get_properties_ins(); + msg_.get_properties_ins_ = CreateMaybeMessage< ::flwr::proto::ServerMessage_GetPropertiesIns >(GetArenaForAllocation()); + } + return msg_.get_properties_ins_; +} +inline ::flwr::proto::ServerMessage_GetPropertiesIns* ServerMessage::mutable_get_properties_ins() { + ::flwr::proto::ServerMessage_GetPropertiesIns* _msg = _internal_mutable_get_properties_ins(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ServerMessage.get_properties_ins) + return _msg; +} + +// .flwr.proto.ServerMessage.GetParametersIns get_parameters_ins = 3; +inline bool ServerMessage::_internal_has_get_parameters_ins() const { + return msg_case() == kGetParametersIns; +} +inline bool ServerMessage::has_get_parameters_ins() const { + return _internal_has_get_parameters_ins(); +} +inline void ServerMessage::set_has_get_parameters_ins() { + _oneof_case_[0] = kGetParametersIns; +} +inline void ServerMessage::clear_get_parameters_ins() { + if (_internal_has_get_parameters_ins()) { + if (GetArenaForAllocation() == nullptr) { + delete msg_.get_parameters_ins_; + } + clear_has_msg(); + } +} +inline ::flwr::proto::ServerMessage_GetParametersIns* ServerMessage::release_get_parameters_ins() { + // @@protoc_insertion_point(field_release:flwr.proto.ServerMessage.get_parameters_ins) + if (_internal_has_get_parameters_ins()) { + clear_has_msg(); + ::flwr::proto::ServerMessage_GetParametersIns* temp = msg_.get_parameters_ins_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + msg_.get_parameters_ins_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ServerMessage_GetParametersIns& ServerMessage::_internal_get_parameters_ins() const { + return _internal_has_get_parameters_ins() + ? *msg_.get_parameters_ins_ + : reinterpret_cast< ::flwr::proto::ServerMessage_GetParametersIns&>(::flwr::proto::_ServerMessage_GetParametersIns_default_instance_); +} +inline const ::flwr::proto::ServerMessage_GetParametersIns& ServerMessage::get_parameters_ins() const { + // @@protoc_insertion_point(field_get:flwr.proto.ServerMessage.get_parameters_ins) + return _internal_get_parameters_ins(); +} +inline ::flwr::proto::ServerMessage_GetParametersIns* ServerMessage::unsafe_arena_release_get_parameters_ins() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ServerMessage.get_parameters_ins) + if (_internal_has_get_parameters_ins()) { + clear_has_msg(); + ::flwr::proto::ServerMessage_GetParametersIns* temp = msg_.get_parameters_ins_; + msg_.get_parameters_ins_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ServerMessage::unsafe_arena_set_allocated_get_parameters_ins(::flwr::proto::ServerMessage_GetParametersIns* get_parameters_ins) { + clear_msg(); + if (get_parameters_ins) { + set_has_get_parameters_ins(); + msg_.get_parameters_ins_ = get_parameters_ins; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ServerMessage.get_parameters_ins) +} +inline ::flwr::proto::ServerMessage_GetParametersIns* ServerMessage::_internal_mutable_get_parameters_ins() { + if (!_internal_has_get_parameters_ins()) { + clear_msg(); + set_has_get_parameters_ins(); + msg_.get_parameters_ins_ = CreateMaybeMessage< ::flwr::proto::ServerMessage_GetParametersIns >(GetArenaForAllocation()); + } + return msg_.get_parameters_ins_; +} +inline ::flwr::proto::ServerMessage_GetParametersIns* ServerMessage::mutable_get_parameters_ins() { + ::flwr::proto::ServerMessage_GetParametersIns* _msg = _internal_mutable_get_parameters_ins(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ServerMessage.get_parameters_ins) + return _msg; +} + +// .flwr.proto.ServerMessage.FitIns fit_ins = 4; +inline bool ServerMessage::_internal_has_fit_ins() const { + return msg_case() == kFitIns; +} +inline bool ServerMessage::has_fit_ins() const { + return _internal_has_fit_ins(); +} +inline void ServerMessage::set_has_fit_ins() { + _oneof_case_[0] = kFitIns; +} +inline void ServerMessage::clear_fit_ins() { + if (_internal_has_fit_ins()) { + if (GetArenaForAllocation() == nullptr) { + delete msg_.fit_ins_; + } + clear_has_msg(); + } +} +inline ::flwr::proto::ServerMessage_FitIns* ServerMessage::release_fit_ins() { + // @@protoc_insertion_point(field_release:flwr.proto.ServerMessage.fit_ins) + if (_internal_has_fit_ins()) { + clear_has_msg(); + ::flwr::proto::ServerMessage_FitIns* temp = msg_.fit_ins_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + msg_.fit_ins_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ServerMessage_FitIns& ServerMessage::_internal_fit_ins() const { + return _internal_has_fit_ins() + ? *msg_.fit_ins_ + : reinterpret_cast< ::flwr::proto::ServerMessage_FitIns&>(::flwr::proto::_ServerMessage_FitIns_default_instance_); +} +inline const ::flwr::proto::ServerMessage_FitIns& ServerMessage::fit_ins() const { + // @@protoc_insertion_point(field_get:flwr.proto.ServerMessage.fit_ins) + return _internal_fit_ins(); +} +inline ::flwr::proto::ServerMessage_FitIns* ServerMessage::unsafe_arena_release_fit_ins() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ServerMessage.fit_ins) + if (_internal_has_fit_ins()) { + clear_has_msg(); + ::flwr::proto::ServerMessage_FitIns* temp = msg_.fit_ins_; + msg_.fit_ins_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ServerMessage::unsafe_arena_set_allocated_fit_ins(::flwr::proto::ServerMessage_FitIns* fit_ins) { + clear_msg(); + if (fit_ins) { + set_has_fit_ins(); + msg_.fit_ins_ = fit_ins; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ServerMessage.fit_ins) +} +inline ::flwr::proto::ServerMessage_FitIns* ServerMessage::_internal_mutable_fit_ins() { + if (!_internal_has_fit_ins()) { + clear_msg(); + set_has_fit_ins(); + msg_.fit_ins_ = CreateMaybeMessage< ::flwr::proto::ServerMessage_FitIns >(GetArenaForAllocation()); + } + return msg_.fit_ins_; +} +inline ::flwr::proto::ServerMessage_FitIns* ServerMessage::mutable_fit_ins() { + ::flwr::proto::ServerMessage_FitIns* _msg = _internal_mutable_fit_ins(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ServerMessage.fit_ins) + return _msg; +} + +// .flwr.proto.ServerMessage.EvaluateIns evaluate_ins = 5; +inline bool ServerMessage::_internal_has_evaluate_ins() const { + return msg_case() == kEvaluateIns; +} +inline bool ServerMessage::has_evaluate_ins() const { + return _internal_has_evaluate_ins(); +} +inline void ServerMessage::set_has_evaluate_ins() { + _oneof_case_[0] = kEvaluateIns; +} +inline void ServerMessage::clear_evaluate_ins() { + if (_internal_has_evaluate_ins()) { + if (GetArenaForAllocation() == nullptr) { + delete msg_.evaluate_ins_; + } + clear_has_msg(); + } +} +inline ::flwr::proto::ServerMessage_EvaluateIns* ServerMessage::release_evaluate_ins() { + // @@protoc_insertion_point(field_release:flwr.proto.ServerMessage.evaluate_ins) + if (_internal_has_evaluate_ins()) { + clear_has_msg(); + ::flwr::proto::ServerMessage_EvaluateIns* temp = msg_.evaluate_ins_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + msg_.evaluate_ins_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ServerMessage_EvaluateIns& ServerMessage::_internal_evaluate_ins() const { + return _internal_has_evaluate_ins() + ? *msg_.evaluate_ins_ + : reinterpret_cast< ::flwr::proto::ServerMessage_EvaluateIns&>(::flwr::proto::_ServerMessage_EvaluateIns_default_instance_); +} +inline const ::flwr::proto::ServerMessage_EvaluateIns& ServerMessage::evaluate_ins() const { + // @@protoc_insertion_point(field_get:flwr.proto.ServerMessage.evaluate_ins) + return _internal_evaluate_ins(); +} +inline ::flwr::proto::ServerMessage_EvaluateIns* ServerMessage::unsafe_arena_release_evaluate_ins() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ServerMessage.evaluate_ins) + if (_internal_has_evaluate_ins()) { + clear_has_msg(); + ::flwr::proto::ServerMessage_EvaluateIns* temp = msg_.evaluate_ins_; + msg_.evaluate_ins_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ServerMessage::unsafe_arena_set_allocated_evaluate_ins(::flwr::proto::ServerMessage_EvaluateIns* evaluate_ins) { + clear_msg(); + if (evaluate_ins) { + set_has_evaluate_ins(); + msg_.evaluate_ins_ = evaluate_ins; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ServerMessage.evaluate_ins) +} +inline ::flwr::proto::ServerMessage_EvaluateIns* ServerMessage::_internal_mutable_evaluate_ins() { + if (!_internal_has_evaluate_ins()) { + clear_msg(); + set_has_evaluate_ins(); + msg_.evaluate_ins_ = CreateMaybeMessage< ::flwr::proto::ServerMessage_EvaluateIns >(GetArenaForAllocation()); + } + return msg_.evaluate_ins_; +} +inline ::flwr::proto::ServerMessage_EvaluateIns* ServerMessage::mutable_evaluate_ins() { + ::flwr::proto::ServerMessage_EvaluateIns* _msg = _internal_mutable_evaluate_ins(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ServerMessage.evaluate_ins) + return _msg; +} + +inline bool ServerMessage::has_msg() const { + return msg_case() != MSG_NOT_SET; +} +inline void ServerMessage::clear_has_msg() { + _oneof_case_[0] = MSG_NOT_SET; +} +inline ServerMessage::MsgCase ServerMessage::msg_case() const { + return ServerMessage::MsgCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ClientMessage_DisconnectRes + +// .flwr.proto.Reason reason = 1; +inline void ClientMessage_DisconnectRes::clear_reason() { + reason_ = 0; +} +inline ::flwr::proto::Reason ClientMessage_DisconnectRes::_internal_reason() const { + return static_cast< ::flwr::proto::Reason >(reason_); +} +inline ::flwr::proto::Reason ClientMessage_DisconnectRes::reason() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.DisconnectRes.reason) + return _internal_reason(); +} +inline void ClientMessage_DisconnectRes::_internal_set_reason(::flwr::proto::Reason value) { + + reason_ = value; +} +inline void ClientMessage_DisconnectRes::set_reason(::flwr::proto::Reason value) { + _internal_set_reason(value); + // @@protoc_insertion_point(field_set:flwr.proto.ClientMessage.DisconnectRes.reason) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ClientMessage_GetPropertiesRes + +// .flwr.proto.Status status = 1; +inline bool ClientMessage_GetPropertiesRes::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline bool ClientMessage_GetPropertiesRes::has_status() const { + return _internal_has_status(); +} +inline void ClientMessage_GetPropertiesRes::clear_status() { + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +inline const ::flwr::proto::Status& ClientMessage_GetPropertiesRes::_internal_status() const { + const ::flwr::proto::Status* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Status_default_instance_); +} +inline const ::flwr::proto::Status& ClientMessage_GetPropertiesRes::status() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.GetPropertiesRes.status) + return _internal_status(); +} +inline void ClientMessage_GetPropertiesRes::unsafe_arena_set_allocated_status( + ::flwr::proto::Status* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ClientMessage.GetPropertiesRes.status) +} +inline ::flwr::proto::Status* ClientMessage_GetPropertiesRes::release_status() { + + ::flwr::proto::Status* temp = status_; + status_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Status* ClientMessage_GetPropertiesRes::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:flwr.proto.ClientMessage.GetPropertiesRes.status) + + ::flwr::proto::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::flwr::proto::Status* ClientMessage_GetPropertiesRes::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Status>(GetArenaForAllocation()); + status_ = p; + } + return status_; +} +inline ::flwr::proto::Status* ClientMessage_GetPropertiesRes::mutable_status() { + ::flwr::proto::Status* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ClientMessage.GetPropertiesRes.status) + return _msg; +} +inline void ClientMessage_GetPropertiesRes::set_allocated_status(::flwr::proto::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete status_; + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Status>::GetOwningArena(status); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ClientMessage.GetPropertiesRes.status) +} + +// map properties = 2; +inline int ClientMessage_GetPropertiesRes::_internal_properties_size() const { + return properties_.size(); +} +inline int ClientMessage_GetPropertiesRes::properties_size() const { + return _internal_properties_size(); +} +inline void ClientMessage_GetPropertiesRes::clear_properties() { + properties_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ClientMessage_GetPropertiesRes::_internal_properties() const { + return properties_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ClientMessage_GetPropertiesRes::properties() const { + // @@protoc_insertion_point(field_map:flwr.proto.ClientMessage.GetPropertiesRes.properties) + return _internal_properties(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ClientMessage_GetPropertiesRes::_internal_mutable_properties() { + return properties_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ClientMessage_GetPropertiesRes::mutable_properties() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.ClientMessage.GetPropertiesRes.properties) + return _internal_mutable_properties(); +} + +// ------------------------------------------------------------------- + +// ClientMessage_GetParametersRes + +// .flwr.proto.Status status = 1; +inline bool ClientMessage_GetParametersRes::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline bool ClientMessage_GetParametersRes::has_status() const { + return _internal_has_status(); +} +inline void ClientMessage_GetParametersRes::clear_status() { + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +inline const ::flwr::proto::Status& ClientMessage_GetParametersRes::_internal_status() const { + const ::flwr::proto::Status* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Status_default_instance_); +} +inline const ::flwr::proto::Status& ClientMessage_GetParametersRes::status() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.GetParametersRes.status) + return _internal_status(); +} +inline void ClientMessage_GetParametersRes::unsafe_arena_set_allocated_status( + ::flwr::proto::Status* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ClientMessage.GetParametersRes.status) +} +inline ::flwr::proto::Status* ClientMessage_GetParametersRes::release_status() { + + ::flwr::proto::Status* temp = status_; + status_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Status* ClientMessage_GetParametersRes::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:flwr.proto.ClientMessage.GetParametersRes.status) + + ::flwr::proto::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::flwr::proto::Status* ClientMessage_GetParametersRes::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Status>(GetArenaForAllocation()); + status_ = p; + } + return status_; +} +inline ::flwr::proto::Status* ClientMessage_GetParametersRes::mutable_status() { + ::flwr::proto::Status* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ClientMessage.GetParametersRes.status) + return _msg; +} +inline void ClientMessage_GetParametersRes::set_allocated_status(::flwr::proto::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete status_; + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Status>::GetOwningArena(status); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ClientMessage.GetParametersRes.status) +} + +// .flwr.proto.Parameters parameters = 2; +inline bool ClientMessage_GetParametersRes::_internal_has_parameters() const { + return this != internal_default_instance() && parameters_ != nullptr; +} +inline bool ClientMessage_GetParametersRes::has_parameters() const { + return _internal_has_parameters(); +} +inline void ClientMessage_GetParametersRes::clear_parameters() { + if (GetArenaForAllocation() == nullptr && parameters_ != nullptr) { + delete parameters_; + } + parameters_ = nullptr; +} +inline const ::flwr::proto::Parameters& ClientMessage_GetParametersRes::_internal_parameters() const { + const ::flwr::proto::Parameters* p = parameters_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Parameters_default_instance_); +} +inline const ::flwr::proto::Parameters& ClientMessage_GetParametersRes::parameters() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.GetParametersRes.parameters) + return _internal_parameters(); +} +inline void ClientMessage_GetParametersRes::unsafe_arena_set_allocated_parameters( + ::flwr::proto::Parameters* parameters) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(parameters_); + } + parameters_ = parameters; + if (parameters) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ClientMessage.GetParametersRes.parameters) +} +inline ::flwr::proto::Parameters* ClientMessage_GetParametersRes::release_parameters() { + + ::flwr::proto::Parameters* temp = parameters_; + parameters_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Parameters* ClientMessage_GetParametersRes::unsafe_arena_release_parameters() { + // @@protoc_insertion_point(field_release:flwr.proto.ClientMessage.GetParametersRes.parameters) + + ::flwr::proto::Parameters* temp = parameters_; + parameters_ = nullptr; + return temp; +} +inline ::flwr::proto::Parameters* ClientMessage_GetParametersRes::_internal_mutable_parameters() { + + if (parameters_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Parameters>(GetArenaForAllocation()); + parameters_ = p; + } + return parameters_; +} +inline ::flwr::proto::Parameters* ClientMessage_GetParametersRes::mutable_parameters() { + ::flwr::proto::Parameters* _msg = _internal_mutable_parameters(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ClientMessage.GetParametersRes.parameters) + return _msg; +} +inline void ClientMessage_GetParametersRes::set_allocated_parameters(::flwr::proto::Parameters* parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete parameters_; + } + if (parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Parameters>::GetOwningArena(parameters); + if (message_arena != submessage_arena) { + parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, parameters, submessage_arena); + } + + } else { + + } + parameters_ = parameters; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ClientMessage.GetParametersRes.parameters) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ClientMessage_FitRes + +// .flwr.proto.Status status = 1; +inline bool ClientMessage_FitRes::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline bool ClientMessage_FitRes::has_status() const { + return _internal_has_status(); +} +inline void ClientMessage_FitRes::clear_status() { + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +inline const ::flwr::proto::Status& ClientMessage_FitRes::_internal_status() const { + const ::flwr::proto::Status* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Status_default_instance_); +} +inline const ::flwr::proto::Status& ClientMessage_FitRes::status() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.FitRes.status) + return _internal_status(); +} +inline void ClientMessage_FitRes::unsafe_arena_set_allocated_status( + ::flwr::proto::Status* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ClientMessage.FitRes.status) +} +inline ::flwr::proto::Status* ClientMessage_FitRes::release_status() { + + ::flwr::proto::Status* temp = status_; + status_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Status* ClientMessage_FitRes::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:flwr.proto.ClientMessage.FitRes.status) + + ::flwr::proto::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::flwr::proto::Status* ClientMessage_FitRes::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Status>(GetArenaForAllocation()); + status_ = p; + } + return status_; +} +inline ::flwr::proto::Status* ClientMessage_FitRes::mutable_status() { + ::flwr::proto::Status* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ClientMessage.FitRes.status) + return _msg; +} +inline void ClientMessage_FitRes::set_allocated_status(::flwr::proto::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete status_; + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Status>::GetOwningArena(status); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ClientMessage.FitRes.status) +} + +// .flwr.proto.Parameters parameters = 2; +inline bool ClientMessage_FitRes::_internal_has_parameters() const { + return this != internal_default_instance() && parameters_ != nullptr; +} +inline bool ClientMessage_FitRes::has_parameters() const { + return _internal_has_parameters(); +} +inline void ClientMessage_FitRes::clear_parameters() { + if (GetArenaForAllocation() == nullptr && parameters_ != nullptr) { + delete parameters_; + } + parameters_ = nullptr; +} +inline const ::flwr::proto::Parameters& ClientMessage_FitRes::_internal_parameters() const { + const ::flwr::proto::Parameters* p = parameters_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Parameters_default_instance_); +} +inline const ::flwr::proto::Parameters& ClientMessage_FitRes::parameters() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.FitRes.parameters) + return _internal_parameters(); +} +inline void ClientMessage_FitRes::unsafe_arena_set_allocated_parameters( + ::flwr::proto::Parameters* parameters) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(parameters_); + } + parameters_ = parameters; + if (parameters) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ClientMessage.FitRes.parameters) +} +inline ::flwr::proto::Parameters* ClientMessage_FitRes::release_parameters() { + + ::flwr::proto::Parameters* temp = parameters_; + parameters_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Parameters* ClientMessage_FitRes::unsafe_arena_release_parameters() { + // @@protoc_insertion_point(field_release:flwr.proto.ClientMessage.FitRes.parameters) + + ::flwr::proto::Parameters* temp = parameters_; + parameters_ = nullptr; + return temp; +} +inline ::flwr::proto::Parameters* ClientMessage_FitRes::_internal_mutable_parameters() { + + if (parameters_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Parameters>(GetArenaForAllocation()); + parameters_ = p; + } + return parameters_; +} +inline ::flwr::proto::Parameters* ClientMessage_FitRes::mutable_parameters() { + ::flwr::proto::Parameters* _msg = _internal_mutable_parameters(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ClientMessage.FitRes.parameters) + return _msg; +} +inline void ClientMessage_FitRes::set_allocated_parameters(::flwr::proto::Parameters* parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete parameters_; + } + if (parameters) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Parameters>::GetOwningArena(parameters); + if (message_arena != submessage_arena) { + parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, parameters, submessage_arena); + } + + } else { + + } + parameters_ = parameters; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ClientMessage.FitRes.parameters) +} + +// int64 num_examples = 3; +inline void ClientMessage_FitRes::clear_num_examples() { + num_examples_ = int64_t{0}; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ClientMessage_FitRes::_internal_num_examples() const { + return num_examples_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ClientMessage_FitRes::num_examples() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.FitRes.num_examples) + return _internal_num_examples(); +} +inline void ClientMessage_FitRes::_internal_set_num_examples(::PROTOBUF_NAMESPACE_ID::int64 value) { + + num_examples_ = value; +} +inline void ClientMessage_FitRes::set_num_examples(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_num_examples(value); + // @@protoc_insertion_point(field_set:flwr.proto.ClientMessage.FitRes.num_examples) +} + +// map metrics = 4; +inline int ClientMessage_FitRes::_internal_metrics_size() const { + return metrics_.size(); +} +inline int ClientMessage_FitRes::metrics_size() const { + return _internal_metrics_size(); +} +inline void ClientMessage_FitRes::clear_metrics() { + metrics_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ClientMessage_FitRes::_internal_metrics() const { + return metrics_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ClientMessage_FitRes::metrics() const { + // @@protoc_insertion_point(field_map:flwr.proto.ClientMessage.FitRes.metrics) + return _internal_metrics(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ClientMessage_FitRes::_internal_mutable_metrics() { + return metrics_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ClientMessage_FitRes::mutable_metrics() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.ClientMessage.FitRes.metrics) + return _internal_mutable_metrics(); +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ClientMessage_EvaluateRes + +// .flwr.proto.Status status = 1; +inline bool ClientMessage_EvaluateRes::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline bool ClientMessage_EvaluateRes::has_status() const { + return _internal_has_status(); +} +inline void ClientMessage_EvaluateRes::clear_status() { + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +inline const ::flwr::proto::Status& ClientMessage_EvaluateRes::_internal_status() const { + const ::flwr::proto::Status* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::flwr::proto::_Status_default_instance_); +} +inline const ::flwr::proto::Status& ClientMessage_EvaluateRes::status() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.EvaluateRes.status) + return _internal_status(); +} +inline void ClientMessage_EvaluateRes::unsafe_arena_set_allocated_status( + ::flwr::proto::Status* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ClientMessage.EvaluateRes.status) +} +inline ::flwr::proto::Status* ClientMessage_EvaluateRes::release_status() { + + ::flwr::proto::Status* temp = status_; + status_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::flwr::proto::Status* ClientMessage_EvaluateRes::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:flwr.proto.ClientMessage.EvaluateRes.status) + + ::flwr::proto::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::flwr::proto::Status* ClientMessage_EvaluateRes::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::flwr::proto::Status>(GetArenaForAllocation()); + status_ = p; + } + return status_; +} +inline ::flwr::proto::Status* ClientMessage_EvaluateRes::mutable_status() { + ::flwr::proto::Status* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ClientMessage.EvaluateRes.status) + return _msg; +} +inline void ClientMessage_EvaluateRes::set_allocated_status(::flwr::proto::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete status_; + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::flwr::proto::Status>::GetOwningArena(status); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:flwr.proto.ClientMessage.EvaluateRes.status) +} + +// float loss = 2; +inline void ClientMessage_EvaluateRes::clear_loss() { + loss_ = 0; +} +inline float ClientMessage_EvaluateRes::_internal_loss() const { + return loss_; +} +inline float ClientMessage_EvaluateRes::loss() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.EvaluateRes.loss) + return _internal_loss(); +} +inline void ClientMessage_EvaluateRes::_internal_set_loss(float value) { + + loss_ = value; +} +inline void ClientMessage_EvaluateRes::set_loss(float value) { + _internal_set_loss(value); + // @@protoc_insertion_point(field_set:flwr.proto.ClientMessage.EvaluateRes.loss) +} + +// int64 num_examples = 3; +inline void ClientMessage_EvaluateRes::clear_num_examples() { + num_examples_ = int64_t{0}; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ClientMessage_EvaluateRes::_internal_num_examples() const { + return num_examples_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ClientMessage_EvaluateRes::num_examples() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.EvaluateRes.num_examples) + return _internal_num_examples(); +} +inline void ClientMessage_EvaluateRes::_internal_set_num_examples(::PROTOBUF_NAMESPACE_ID::int64 value) { + + num_examples_ = value; +} +inline void ClientMessage_EvaluateRes::set_num_examples(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_num_examples(value); + // @@protoc_insertion_point(field_set:flwr.proto.ClientMessage.EvaluateRes.num_examples) +} + +// map metrics = 4; +inline int ClientMessage_EvaluateRes::_internal_metrics_size() const { + return metrics_.size(); +} +inline int ClientMessage_EvaluateRes::metrics_size() const { + return _internal_metrics_size(); +} +inline void ClientMessage_EvaluateRes::clear_metrics() { + metrics_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ClientMessage_EvaluateRes::_internal_metrics() const { + return metrics_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >& +ClientMessage_EvaluateRes::metrics() const { + // @@protoc_insertion_point(field_map:flwr.proto.ClientMessage.EvaluateRes.metrics) + return _internal_metrics(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ClientMessage_EvaluateRes::_internal_mutable_metrics() { + return metrics_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::flwr::proto::Scalar >* +ClientMessage_EvaluateRes::mutable_metrics() { + // @@protoc_insertion_point(field_mutable_map:flwr.proto.ClientMessage.EvaluateRes.metrics) + return _internal_mutable_metrics(); +} + +// ------------------------------------------------------------------- + +// ClientMessage + +// .flwr.proto.ClientMessage.DisconnectRes disconnect_res = 1; +inline bool ClientMessage::_internal_has_disconnect_res() const { + return msg_case() == kDisconnectRes; +} +inline bool ClientMessage::has_disconnect_res() const { + return _internal_has_disconnect_res(); +} +inline void ClientMessage::set_has_disconnect_res() { + _oneof_case_[0] = kDisconnectRes; +} +inline void ClientMessage::clear_disconnect_res() { + if (_internal_has_disconnect_res()) { + if (GetArenaForAllocation() == nullptr) { + delete msg_.disconnect_res_; + } + clear_has_msg(); + } +} +inline ::flwr::proto::ClientMessage_DisconnectRes* ClientMessage::release_disconnect_res() { + // @@protoc_insertion_point(field_release:flwr.proto.ClientMessage.disconnect_res) + if (_internal_has_disconnect_res()) { + clear_has_msg(); + ::flwr::proto::ClientMessage_DisconnectRes* temp = msg_.disconnect_res_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + msg_.disconnect_res_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ClientMessage_DisconnectRes& ClientMessage::_internal_disconnect_res() const { + return _internal_has_disconnect_res() + ? *msg_.disconnect_res_ + : reinterpret_cast< ::flwr::proto::ClientMessage_DisconnectRes&>(::flwr::proto::_ClientMessage_DisconnectRes_default_instance_); +} +inline const ::flwr::proto::ClientMessage_DisconnectRes& ClientMessage::disconnect_res() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.disconnect_res) + return _internal_disconnect_res(); +} +inline ::flwr::proto::ClientMessage_DisconnectRes* ClientMessage::unsafe_arena_release_disconnect_res() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ClientMessage.disconnect_res) + if (_internal_has_disconnect_res()) { + clear_has_msg(); + ::flwr::proto::ClientMessage_DisconnectRes* temp = msg_.disconnect_res_; + msg_.disconnect_res_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ClientMessage::unsafe_arena_set_allocated_disconnect_res(::flwr::proto::ClientMessage_DisconnectRes* disconnect_res) { + clear_msg(); + if (disconnect_res) { + set_has_disconnect_res(); + msg_.disconnect_res_ = disconnect_res; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ClientMessage.disconnect_res) +} +inline ::flwr::proto::ClientMessage_DisconnectRes* ClientMessage::_internal_mutable_disconnect_res() { + if (!_internal_has_disconnect_res()) { + clear_msg(); + set_has_disconnect_res(); + msg_.disconnect_res_ = CreateMaybeMessage< ::flwr::proto::ClientMessage_DisconnectRes >(GetArenaForAllocation()); + } + return msg_.disconnect_res_; +} +inline ::flwr::proto::ClientMessage_DisconnectRes* ClientMessage::mutable_disconnect_res() { + ::flwr::proto::ClientMessage_DisconnectRes* _msg = _internal_mutable_disconnect_res(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ClientMessage.disconnect_res) + return _msg; +} + +// .flwr.proto.ClientMessage.GetPropertiesRes get_properties_res = 2; +inline bool ClientMessage::_internal_has_get_properties_res() const { + return msg_case() == kGetPropertiesRes; +} +inline bool ClientMessage::has_get_properties_res() const { + return _internal_has_get_properties_res(); +} +inline void ClientMessage::set_has_get_properties_res() { + _oneof_case_[0] = kGetPropertiesRes; +} +inline void ClientMessage::clear_get_properties_res() { + if (_internal_has_get_properties_res()) { + if (GetArenaForAllocation() == nullptr) { + delete msg_.get_properties_res_; + } + clear_has_msg(); + } +} +inline ::flwr::proto::ClientMessage_GetPropertiesRes* ClientMessage::release_get_properties_res() { + // @@protoc_insertion_point(field_release:flwr.proto.ClientMessage.get_properties_res) + if (_internal_has_get_properties_res()) { + clear_has_msg(); + ::flwr::proto::ClientMessage_GetPropertiesRes* temp = msg_.get_properties_res_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + msg_.get_properties_res_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ClientMessage_GetPropertiesRes& ClientMessage::_internal_get_properties_res() const { + return _internal_has_get_properties_res() + ? *msg_.get_properties_res_ + : reinterpret_cast< ::flwr::proto::ClientMessage_GetPropertiesRes&>(::flwr::proto::_ClientMessage_GetPropertiesRes_default_instance_); +} +inline const ::flwr::proto::ClientMessage_GetPropertiesRes& ClientMessage::get_properties_res() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.get_properties_res) + return _internal_get_properties_res(); +} +inline ::flwr::proto::ClientMessage_GetPropertiesRes* ClientMessage::unsafe_arena_release_get_properties_res() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ClientMessage.get_properties_res) + if (_internal_has_get_properties_res()) { + clear_has_msg(); + ::flwr::proto::ClientMessage_GetPropertiesRes* temp = msg_.get_properties_res_; + msg_.get_properties_res_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ClientMessage::unsafe_arena_set_allocated_get_properties_res(::flwr::proto::ClientMessage_GetPropertiesRes* get_properties_res) { + clear_msg(); + if (get_properties_res) { + set_has_get_properties_res(); + msg_.get_properties_res_ = get_properties_res; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ClientMessage.get_properties_res) +} +inline ::flwr::proto::ClientMessage_GetPropertiesRes* ClientMessage::_internal_mutable_get_properties_res() { + if (!_internal_has_get_properties_res()) { + clear_msg(); + set_has_get_properties_res(); + msg_.get_properties_res_ = CreateMaybeMessage< ::flwr::proto::ClientMessage_GetPropertiesRes >(GetArenaForAllocation()); + } + return msg_.get_properties_res_; +} +inline ::flwr::proto::ClientMessage_GetPropertiesRes* ClientMessage::mutable_get_properties_res() { + ::flwr::proto::ClientMessage_GetPropertiesRes* _msg = _internal_mutable_get_properties_res(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ClientMessage.get_properties_res) + return _msg; +} + +// .flwr.proto.ClientMessage.GetParametersRes get_parameters_res = 3; +inline bool ClientMessage::_internal_has_get_parameters_res() const { + return msg_case() == kGetParametersRes; +} +inline bool ClientMessage::has_get_parameters_res() const { + return _internal_has_get_parameters_res(); +} +inline void ClientMessage::set_has_get_parameters_res() { + _oneof_case_[0] = kGetParametersRes; +} +inline void ClientMessage::clear_get_parameters_res() { + if (_internal_has_get_parameters_res()) { + if (GetArenaForAllocation() == nullptr) { + delete msg_.get_parameters_res_; + } + clear_has_msg(); + } +} +inline ::flwr::proto::ClientMessage_GetParametersRes* ClientMessage::release_get_parameters_res() { + // @@protoc_insertion_point(field_release:flwr.proto.ClientMessage.get_parameters_res) + if (_internal_has_get_parameters_res()) { + clear_has_msg(); + ::flwr::proto::ClientMessage_GetParametersRes* temp = msg_.get_parameters_res_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + msg_.get_parameters_res_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ClientMessage_GetParametersRes& ClientMessage::_internal_get_parameters_res() const { + return _internal_has_get_parameters_res() + ? *msg_.get_parameters_res_ + : reinterpret_cast< ::flwr::proto::ClientMessage_GetParametersRes&>(::flwr::proto::_ClientMessage_GetParametersRes_default_instance_); +} +inline const ::flwr::proto::ClientMessage_GetParametersRes& ClientMessage::get_parameters_res() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.get_parameters_res) + return _internal_get_parameters_res(); +} +inline ::flwr::proto::ClientMessage_GetParametersRes* ClientMessage::unsafe_arena_release_get_parameters_res() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ClientMessage.get_parameters_res) + if (_internal_has_get_parameters_res()) { + clear_has_msg(); + ::flwr::proto::ClientMessage_GetParametersRes* temp = msg_.get_parameters_res_; + msg_.get_parameters_res_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ClientMessage::unsafe_arena_set_allocated_get_parameters_res(::flwr::proto::ClientMessage_GetParametersRes* get_parameters_res) { + clear_msg(); + if (get_parameters_res) { + set_has_get_parameters_res(); + msg_.get_parameters_res_ = get_parameters_res; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ClientMessage.get_parameters_res) +} +inline ::flwr::proto::ClientMessage_GetParametersRes* ClientMessage::_internal_mutable_get_parameters_res() { + if (!_internal_has_get_parameters_res()) { + clear_msg(); + set_has_get_parameters_res(); + msg_.get_parameters_res_ = CreateMaybeMessage< ::flwr::proto::ClientMessage_GetParametersRes >(GetArenaForAllocation()); + } + return msg_.get_parameters_res_; +} +inline ::flwr::proto::ClientMessage_GetParametersRes* ClientMessage::mutable_get_parameters_res() { + ::flwr::proto::ClientMessage_GetParametersRes* _msg = _internal_mutable_get_parameters_res(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ClientMessage.get_parameters_res) + return _msg; +} + +// .flwr.proto.ClientMessage.FitRes fit_res = 4; +inline bool ClientMessage::_internal_has_fit_res() const { + return msg_case() == kFitRes; +} +inline bool ClientMessage::has_fit_res() const { + return _internal_has_fit_res(); +} +inline void ClientMessage::set_has_fit_res() { + _oneof_case_[0] = kFitRes; +} +inline void ClientMessage::clear_fit_res() { + if (_internal_has_fit_res()) { + if (GetArenaForAllocation() == nullptr) { + delete msg_.fit_res_; + } + clear_has_msg(); + } +} +inline ::flwr::proto::ClientMessage_FitRes* ClientMessage::release_fit_res() { + // @@protoc_insertion_point(field_release:flwr.proto.ClientMessage.fit_res) + if (_internal_has_fit_res()) { + clear_has_msg(); + ::flwr::proto::ClientMessage_FitRes* temp = msg_.fit_res_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + msg_.fit_res_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ClientMessage_FitRes& ClientMessage::_internal_fit_res() const { + return _internal_has_fit_res() + ? *msg_.fit_res_ + : reinterpret_cast< ::flwr::proto::ClientMessage_FitRes&>(::flwr::proto::_ClientMessage_FitRes_default_instance_); +} +inline const ::flwr::proto::ClientMessage_FitRes& ClientMessage::fit_res() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.fit_res) + return _internal_fit_res(); +} +inline ::flwr::proto::ClientMessage_FitRes* ClientMessage::unsafe_arena_release_fit_res() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ClientMessage.fit_res) + if (_internal_has_fit_res()) { + clear_has_msg(); + ::flwr::proto::ClientMessage_FitRes* temp = msg_.fit_res_; + msg_.fit_res_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ClientMessage::unsafe_arena_set_allocated_fit_res(::flwr::proto::ClientMessage_FitRes* fit_res) { + clear_msg(); + if (fit_res) { + set_has_fit_res(); + msg_.fit_res_ = fit_res; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ClientMessage.fit_res) +} +inline ::flwr::proto::ClientMessage_FitRes* ClientMessage::_internal_mutable_fit_res() { + if (!_internal_has_fit_res()) { + clear_msg(); + set_has_fit_res(); + msg_.fit_res_ = CreateMaybeMessage< ::flwr::proto::ClientMessage_FitRes >(GetArenaForAllocation()); + } + return msg_.fit_res_; +} +inline ::flwr::proto::ClientMessage_FitRes* ClientMessage::mutable_fit_res() { + ::flwr::proto::ClientMessage_FitRes* _msg = _internal_mutable_fit_res(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ClientMessage.fit_res) + return _msg; +} + +// .flwr.proto.ClientMessage.EvaluateRes evaluate_res = 5; +inline bool ClientMessage::_internal_has_evaluate_res() const { + return msg_case() == kEvaluateRes; +} +inline bool ClientMessage::has_evaluate_res() const { + return _internal_has_evaluate_res(); +} +inline void ClientMessage::set_has_evaluate_res() { + _oneof_case_[0] = kEvaluateRes; +} +inline void ClientMessage::clear_evaluate_res() { + if (_internal_has_evaluate_res()) { + if (GetArenaForAllocation() == nullptr) { + delete msg_.evaluate_res_; + } + clear_has_msg(); + } +} +inline ::flwr::proto::ClientMessage_EvaluateRes* ClientMessage::release_evaluate_res() { + // @@protoc_insertion_point(field_release:flwr.proto.ClientMessage.evaluate_res) + if (_internal_has_evaluate_res()) { + clear_has_msg(); + ::flwr::proto::ClientMessage_EvaluateRes* temp = msg_.evaluate_res_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + msg_.evaluate_res_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flwr::proto::ClientMessage_EvaluateRes& ClientMessage::_internal_evaluate_res() const { + return _internal_has_evaluate_res() + ? *msg_.evaluate_res_ + : reinterpret_cast< ::flwr::proto::ClientMessage_EvaluateRes&>(::flwr::proto::_ClientMessage_EvaluateRes_default_instance_); +} +inline const ::flwr::proto::ClientMessage_EvaluateRes& ClientMessage::evaluate_res() const { + // @@protoc_insertion_point(field_get:flwr.proto.ClientMessage.evaluate_res) + return _internal_evaluate_res(); +} +inline ::flwr::proto::ClientMessage_EvaluateRes* ClientMessage::unsafe_arena_release_evaluate_res() { + // @@protoc_insertion_point(field_unsafe_arena_release:flwr.proto.ClientMessage.evaluate_res) + if (_internal_has_evaluate_res()) { + clear_has_msg(); + ::flwr::proto::ClientMessage_EvaluateRes* temp = msg_.evaluate_res_; + msg_.evaluate_res_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ClientMessage::unsafe_arena_set_allocated_evaluate_res(::flwr::proto::ClientMessage_EvaluateRes* evaluate_res) { + clear_msg(); + if (evaluate_res) { + set_has_evaluate_res(); + msg_.evaluate_res_ = evaluate_res; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:flwr.proto.ClientMessage.evaluate_res) +} +inline ::flwr::proto::ClientMessage_EvaluateRes* ClientMessage::_internal_mutable_evaluate_res() { + if (!_internal_has_evaluate_res()) { + clear_msg(); + set_has_evaluate_res(); + msg_.evaluate_res_ = CreateMaybeMessage< ::flwr::proto::ClientMessage_EvaluateRes >(GetArenaForAllocation()); + } + return msg_.evaluate_res_; +} +inline ::flwr::proto::ClientMessage_EvaluateRes* ClientMessage::mutable_evaluate_res() { + ::flwr::proto::ClientMessage_EvaluateRes* _msg = _internal_mutable_evaluate_res(); + // @@protoc_insertion_point(field_mutable:flwr.proto.ClientMessage.evaluate_res) + return _msg; +} + +inline bool ClientMessage::has_msg() const { + return msg_case() != MSG_NOT_SET; +} +inline void ClientMessage::clear_has_msg() { + _oneof_case_[0] = MSG_NOT_SET; +} +inline ClientMessage::MsgCase ClientMessage::msg_case() const { + return ClientMessage::MsgCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Scalar + +// double double = 1; +inline bool Scalar::_internal_has_double_() const { + return scalar_case() == kDouble; +} +inline bool Scalar::has_double_() const { + return _internal_has_double_(); +} +inline void Scalar::set_has_double_() { + _oneof_case_[0] = kDouble; +} +inline void Scalar::clear_double_() { + if (_internal_has_double_()) { + scalar_.double__ = 0; + clear_has_scalar(); + } +} +inline double Scalar::_internal_double_() const { + if (_internal_has_double_()) { + return scalar_.double__; + } + return 0; +} +inline void Scalar::_internal_set_double_(double value) { + if (!_internal_has_double_()) { + clear_scalar(); + set_has_double_(); + } + scalar_.double__ = value; +} +inline double Scalar::double_() const { + // @@protoc_insertion_point(field_get:flwr.proto.Scalar.double) + return _internal_double_(); +} +inline void Scalar::set_double_(double value) { + _internal_set_double_(value); + // @@protoc_insertion_point(field_set:flwr.proto.Scalar.double) +} + +// sint64 sint64 = 8; +inline bool Scalar::_internal_has_sint64() const { + return scalar_case() == kSint64; +} +inline bool Scalar::has_sint64() const { + return _internal_has_sint64(); +} +inline void Scalar::set_has_sint64() { + _oneof_case_[0] = kSint64; +} +inline void Scalar::clear_sint64() { + if (_internal_has_sint64()) { + scalar_.sint64_ = int64_t{0}; + clear_has_scalar(); + } +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Scalar::_internal_sint64() const { + if (_internal_has_sint64()) { + return scalar_.sint64_; + } + return int64_t{0}; +} +inline void Scalar::_internal_set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value) { + if (!_internal_has_sint64()) { + clear_scalar(); + set_has_sint64(); + } + scalar_.sint64_ = value; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Scalar::sint64() const { + // @@protoc_insertion_point(field_get:flwr.proto.Scalar.sint64) + return _internal_sint64(); +} +inline void Scalar::set_sint64(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_sint64(value); + // @@protoc_insertion_point(field_set:flwr.proto.Scalar.sint64) +} + +// bool bool = 13; +inline bool Scalar::_internal_has_bool_() const { + return scalar_case() == kBool; +} +inline bool Scalar::has_bool_() const { + return _internal_has_bool_(); +} +inline void Scalar::set_has_bool_() { + _oneof_case_[0] = kBool; +} +inline void Scalar::clear_bool_() { + if (_internal_has_bool_()) { + scalar_.bool__ = false; + clear_has_scalar(); + } +} +inline bool Scalar::_internal_bool_() const { + if (_internal_has_bool_()) { + return scalar_.bool__; + } + return false; +} +inline void Scalar::_internal_set_bool_(bool value) { + if (!_internal_has_bool_()) { + clear_scalar(); + set_has_bool_(); + } + scalar_.bool__ = value; +} +inline bool Scalar::bool_() const { + // @@protoc_insertion_point(field_get:flwr.proto.Scalar.bool) + return _internal_bool_(); +} +inline void Scalar::set_bool_(bool value) { + _internal_set_bool_(value); + // @@protoc_insertion_point(field_set:flwr.proto.Scalar.bool) +} + +// string string = 14; +inline bool Scalar::_internal_has_string() const { + return scalar_case() == kString; +} +inline bool Scalar::has_string() const { + return _internal_has_string(); +} +inline void Scalar::set_has_string() { + _oneof_case_[0] = kString; +} +inline void Scalar::clear_string() { + if (_internal_has_string()) { + scalar_.string_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + clear_has_scalar(); + } +} +inline const std::string& Scalar::string() const { + // @@protoc_insertion_point(field_get:flwr.proto.Scalar.string) + return _internal_string(); +} +template +inline void Scalar::set_string(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_string()) { + clear_scalar(); + set_has_string(); + scalar_.string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + scalar_.string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Scalar.string) +} +inline std::string* Scalar::mutable_string() { + std::string* _s = _internal_mutable_string(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Scalar.string) + return _s; +} +inline const std::string& Scalar::_internal_string() const { + if (_internal_has_string()) { + return scalar_.string_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Scalar::_internal_set_string(const std::string& value) { + if (!_internal_has_string()) { + clear_scalar(); + set_has_string(); + scalar_.string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + scalar_.string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Scalar::_internal_mutable_string() { + if (!_internal_has_string()) { + clear_scalar(); + set_has_string(); + scalar_.string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + return scalar_.string_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Scalar::release_string() { + // @@protoc_insertion_point(field_release:flwr.proto.Scalar.string) + if (_internal_has_string()) { + clear_has_scalar(); + return scalar_.string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + } else { + return nullptr; + } +} +inline void Scalar::set_allocated_string(std::string* string) { + if (has_scalar()) { + clear_scalar(); + } + if (string != nullptr) { + set_has_string(); + scalar_.string_.UnsafeSetDefault(string); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation(); + if (arena != nullptr) { + arena->Own(string); + } + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Scalar.string) +} + +// bytes bytes = 15; +inline bool Scalar::_internal_has_bytes() const { + return scalar_case() == kBytes; +} +inline bool Scalar::has_bytes() const { + return _internal_has_bytes(); +} +inline void Scalar::set_has_bytes() { + _oneof_case_[0] = kBytes; +} +inline void Scalar::clear_bytes() { + if (_internal_has_bytes()) { + scalar_.bytes_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + clear_has_scalar(); + } +} +inline const std::string& Scalar::bytes() const { + // @@protoc_insertion_point(field_get:flwr.proto.Scalar.bytes) + return _internal_bytes(); +} +template +inline void Scalar::set_bytes(ArgT0&& arg0, ArgT... args) { + if (!_internal_has_bytes()) { + clear_scalar(); + set_has_bytes(); + scalar_.bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + scalar_.bytes_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:flwr.proto.Scalar.bytes) +} +inline std::string* Scalar::mutable_bytes() { + std::string* _s = _internal_mutable_bytes(); + // @@protoc_insertion_point(field_mutable:flwr.proto.Scalar.bytes) + return _s; +} +inline const std::string& Scalar::_internal_bytes() const { + if (_internal_has_bytes()) { + return scalar_.bytes_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void Scalar::_internal_set_bytes(const std::string& value) { + if (!_internal_has_bytes()) { + clear_scalar(); + set_has_bytes(); + scalar_.bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + scalar_.bytes_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Scalar::_internal_mutable_bytes() { + if (!_internal_has_bytes()) { + clear_scalar(); + set_has_bytes(); + scalar_.bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + return scalar_.bytes_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Scalar::release_bytes() { + // @@protoc_insertion_point(field_release:flwr.proto.Scalar.bytes) + if (_internal_has_bytes()) { + clear_has_scalar(); + return scalar_.bytes_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); + } else { + return nullptr; + } +} +inline void Scalar::set_allocated_bytes(std::string* bytes) { + if (has_scalar()) { + clear_scalar(); + } + if (bytes != nullptr) { + set_has_bytes(); + scalar_.bytes_.UnsafeSetDefault(bytes); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation(); + if (arena != nullptr) { + arena->Own(bytes); + } + } + // @@protoc_insertion_point(field_set_allocated:flwr.proto.Scalar.bytes) +} + +inline bool Scalar::has_scalar() const { + return scalar_case() != SCALAR_NOT_SET; +} +inline void Scalar::clear_has_scalar() { + _oneof_case_[0] = SCALAR_NOT_SET; +} +inline Scalar::ScalarCase Scalar::scalar_case() const { + return Scalar::ScalarCase(_oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace proto +} // namespace flwr + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::flwr::proto::Code> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flwr::proto::Code>() { + return ::flwr::proto::Code_descriptor(); +} +template <> struct is_proto_enum< ::flwr::proto::Reason> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flwr::proto::Reason>() { + return ::flwr::proto::Reason_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_flwr_2fproto_2ftransport_2eproto diff --git a/src/cc/flwr/include/message_handler.h b/src/cc/flwr/include/message_handler.h index 7f008f38912e..eb6df5cc1f9d 100644 --- a/src/cc/flwr/include/message_handler.h +++ b/src/cc/flwr/include/message_handler.h @@ -15,28 +15,21 @@ #pragma once #include "client.h" #include "serde.h" -using flwr::proto::ClientMessage; -using ClientMessage_Disconnect = flwr::proto::ClientMessage_DisconnectRes; -using flwr::proto::ClientMessage_EvaluateRes; -using flwr::proto::ClientMessage_FitRes; -using flwr::proto::Reason; -using flwr::proto::ServerMessage; -using flwr::proto::ServerMessage_EvaluateIns; -using flwr::proto::ServerMessage_FitIns; -using ServerMessage_Reconnect = flwr::proto::ServerMessage_ReconnectIns; -std::tuple -_reconnect(ServerMessage_Reconnect reconnect_msg); +std::tuple +_reconnect(flwr::proto::ServerMessage_ReconnectIns reconnect_msg); -ClientMessage _get_parameters(flwr_local::Client *client); +flwr::proto::ClientMessage _get_parameters(flwr_local::Client *client); -ClientMessage _fit(flwr_local::Client *client, ServerMessage_FitIns fit_msg); +flwr::proto::ClientMessage _fit(flwr_local::Client *client, + flwr::proto::ServerMessage_FitIns fit_msg); -ClientMessage _evaluate(flwr_local::Client *client, - ServerMessage_EvaluateIns evaluate_msg); +flwr::proto::ClientMessage +_evaluate(flwr_local::Client *client, + flwr::proto::ServerMessage_EvaluateIns evaluate_msg); -std::tuple handle(flwr_local::Client *client, - ServerMessage server_msg); +std::tuple +handle(flwr_local::Client *client, flwr::proto::ServerMessage server_msg); std::tuple handle_task(flwr_local::Client *client, const flwr::proto::TaskIns &task_ins); diff --git a/src/cc/flwr/include/serde.h b/src/cc/flwr/include/serde.h index aceef69b6e95..21cc8458e961 100644 --- a/src/cc/flwr/include/serde.h +++ b/src/cc/flwr/include/serde.h @@ -22,73 +22,65 @@ // cppcheck-suppress missingInclude #include "flwr/proto/fleet.pb.h" #include "typing.h" -using flwr::proto::ClientMessage; -using flwr::proto::ServerMessage; -using MessageParameters = flwr::proto::Parameters; -using flwr::proto::Reason; -using ProtoScalar = flwr::proto::Scalar; -using flwr::proto::ClientMessage_EvaluateRes; -using flwr::proto::ClientMessage_FitRes; -using ClientMessage_ParametersRes = flwr::proto::ClientMessage_GetParametersRes; -using flwr::proto::ServerMessage_EvaluateIns; -using flwr::proto::ServerMessage_FitIns; /** * Serialize client parameters to protobuf parameters message */ -MessageParameters parameters_to_proto(flwr_local::Parameters parameters); +flwr::proto::Parameters parameters_to_proto(flwr_local::Parameters parameters); /** * Deserialize client protobuf parameters message to client parameters */ -flwr_local::Parameters parameters_from_proto(MessageParameters msg); +flwr_local::Parameters parameters_from_proto(flwr::proto::Parameters msg); /** * Serialize client scalar type to protobuf scalar type */ -ProtoScalar scalar_to_proto(flwr_local::Scalar scalar_msg); +flwr::proto::Scalar scalar_to_proto(flwr_local::Scalar scalar_msg); /** * Deserialize protobuf scalar type to client scalar type */ -flwr_local::Scalar scalar_from_proto(ProtoScalar scalar_msg); +flwr_local::Scalar scalar_from_proto(flwr::proto::Scalar scalar_msg); /** * Serialize client metrics type to protobuf metrics type * "Any" is used in Python, this part might be changed if needed */ -google::protobuf::Map +google::protobuf::Map metrics_to_proto(flwr_local::Metrics metrics); /** * Deserialize protobuf metrics type to client metrics type * "Any" is used in Python, this part might be changed if needed */ -flwr_local::Metrics -metrics_from_proto(google::protobuf::Map proto); +flwr_local::Metrics metrics_from_proto( + google::protobuf::Map proto); /** * Serialize client ParametersRes type to protobuf ParametersRes type */ -ClientMessage_ParametersRes +flwr::proto::ClientMessage_GetParametersRes parameters_res_to_proto(flwr_local::ParametersRes res); /** * Deserialize protobuf FitIns type to client FitIns type */ -flwr_local::FitIns fit_ins_from_proto(ServerMessage_FitIns msg); +flwr_local::FitIns fit_ins_from_proto(flwr::proto::ServerMessage_FitIns msg); /** * Serialize client FitRes type to protobuf FitRes type */ -ClientMessage_FitRes fit_res_to_proto(flwr_local::FitRes res); +flwr::proto::ClientMessage_FitRes fit_res_to_proto(flwr_local::FitRes res); /** * Deserialize protobuf EvaluateIns type to client EvaluateIns type */ -flwr_local::EvaluateIns evaluate_ins_from_proto(ServerMessage_EvaluateIns msg); +flwr_local::EvaluateIns +evaluate_ins_from_proto(flwr::proto::ServerMessage_EvaluateIns msg); /** * Serialize client EvaluateRes type to protobuf EvaluateRes type */ -ClientMessage_EvaluateRes evaluate_res_to_proto(flwr_local::EvaluateRes res); +flwr::proto::ClientMessage_EvaluateRes +evaluate_res_to_proto(flwr_local::EvaluateRes res); diff --git a/src/cc/flwr/src/message_handler.cc b/src/cc/flwr/src/message_handler.cc index 0d94a0615b88..2c1e9ccbb49d 100644 --- a/src/cc/flwr/src/message_handler.cc +++ b/src/cc/flwr/src/message_handler.cc @@ -1,58 +1,61 @@ #include "message_handler.h" -std::tuple -_reconnect(ServerMessage_Reconnect reconnect_msg) { +std::tuple +_reconnect(flwr::proto::ServerMessage_ReconnectIns reconnect_msg) { // Determine the reason for sending Disconnect message - Reason reason = Reason::ACK; + flwr::proto::Reason reason = flwr::proto::Reason::ACK; int sleep_duration = 0; if (reconnect_msg.seconds() != 0) { - reason = Reason::RECONNECT; + reason = flwr::proto::Reason::RECONNECT; sleep_duration = reconnect_msg.seconds(); } // Build Disconnect message - ClientMessage_Disconnect disconnect; + flwr::proto::ClientMessage_DisconnectRes disconnect; disconnect.set_reason(reason); - ClientMessage cm; + flwr::proto::ClientMessage cm; *cm.mutable_disconnect_res() = disconnect; return std::make_tuple(cm, sleep_duration); } -ClientMessage _get_parameters(flwr_local::Client *client) { - ClientMessage cm; +flwr::proto::ClientMessage _get_parameters(flwr_local::Client *client) { + flwr::proto::ClientMessage cm; *(cm.mutable_get_parameters_res()) = parameters_res_to_proto(client->get_parameters()); return cm; } -ClientMessage _fit(flwr_local::Client *client, ServerMessage_FitIns fit_msg) { +flwr::proto::ClientMessage _fit(flwr_local::Client *client, + flwr::proto::ServerMessage_FitIns fit_msg) { // Deserialize fit instruction flwr_local::FitIns fit_ins = fit_ins_from_proto(fit_msg); // Perform fit flwr_local::FitRes fit_res = client->fit(fit_ins); // Serialize fit result - ClientMessage cm; + flwr::proto::ClientMessage cm; *cm.mutable_fit_res() = fit_res_to_proto(fit_res); return cm; } -ClientMessage _evaluate(flwr_local::Client *client, - ServerMessage_EvaluateIns evaluate_msg) { +flwr::proto::ClientMessage +_evaluate(flwr_local::Client *client, + flwr::proto::ServerMessage_EvaluateIns evaluate_msg) { // Deserialize evaluate instruction flwr_local::EvaluateIns evaluate_ins = evaluate_ins_from_proto(evaluate_msg); // Perform evaluation flwr_local::EvaluateRes evaluate_res = client->evaluate(evaluate_ins); // Serialize evaluate result - ClientMessage cm; + flwr::proto::ClientMessage cm; *cm.mutable_evaluate_res() = evaluate_res_to_proto(evaluate_res); return cm; } -std::tuple handle(flwr_local::Client *client, - ServerMessage server_msg) { +std::tuple +handle(flwr_local::Client *client, flwr::proto::ServerMessage server_msg) { if (server_msg.has_reconnect_ins()) { - std::tuple rec = _reconnect(server_msg.reconnect_ins()); + std::tuple rec = + _reconnect(server_msg.reconnect_ins()); return std::make_tuple(std::get<0>(rec), std::get<1>(rec), false); } if (server_msg.has_get_parameters_ins()) { @@ -77,12 +80,14 @@ handle_task(flwr_local::Client *client, const flwr::proto::TaskIns &task_ins) { // TODO: Handle SecureAggregation throw std::runtime_error("Task still needs legacy server message"); } - ServerMessage server_msg = task_ins.task().legacy_server_message(); + flwr::proto::ServerMessage server_msg = + task_ins.task().legacy_server_message(); #pragma GCC diagnostic pop - std::tuple legacy_res = handle(client, server_msg); - std::unique_ptr client_message = - std::make_unique(std::get<0>(legacy_res)); + std::tuple legacy_res = + handle(client, server_msg); + std::unique_ptr client_message = + std::make_unique(std::get<0>(legacy_res)); flwr::proto::TaskRes task_res; task_res.set_task_id(""); diff --git a/src/cc/flwr/src/serde.cc b/src/cc/flwr/src/serde.cc index eeb3bf8e44f3..2977915b57df 100644 --- a/src/cc/flwr/src/serde.cc +++ b/src/cc/flwr/src/serde.cc @@ -3,8 +3,8 @@ /** * Serialize client parameters to protobuf parameters message */ -MessageParameters parameters_to_proto(flwr_local::Parameters parameters) { - MessageParameters mp; +flwr::proto::Parameters parameters_to_proto(flwr_local::Parameters parameters) { + flwr::proto::Parameters mp; mp.set_tensor_type(parameters.getTensor_type()); for (auto &i : parameters.getTensors()) { @@ -16,7 +16,7 @@ MessageParameters parameters_to_proto(flwr_local::Parameters parameters) { /** * Deserialize client protobuf parameters message to client parameters */ -flwr_local::Parameters parameters_from_proto(MessageParameters msg) { +flwr_local::Parameters parameters_from_proto(flwr::proto::Parameters msg) { std::list tensors; for (int i = 0; i < msg.tensors_size(); i++) { tensors.push_back(msg.tensors(i)); @@ -28,8 +28,8 @@ flwr_local::Parameters parameters_from_proto(MessageParameters msg) { /** * Serialize client scalar type to protobuf scalar type */ -ProtoScalar scalar_to_proto(flwr_local::Scalar scalar_msg) { - ProtoScalar s; +flwr::proto::Scalar scalar_to_proto(flwr_local::Scalar scalar_msg) { + flwr::proto::Scalar s; if (scalar_msg.getBool() != std::nullopt) { s.set_bool_(scalar_msg.getBool().value()); return s; @@ -57,7 +57,7 @@ ProtoScalar scalar_to_proto(flwr_local::Scalar scalar_msg) { /** * Deserialize protobuf scalar type to client scalar type */ -flwr_local::Scalar scalar_from_proto(ProtoScalar scalar_msg) { +flwr_local::Scalar scalar_from_proto(flwr::proto::Scalar scalar_msg) { flwr_local::Scalar scalar; switch (scalar_msg.scalar_case()) { case 1: @@ -85,9 +85,9 @@ flwr_local::Scalar scalar_from_proto(ProtoScalar scalar_msg) { * Serialize client metrics type to protobuf metrics type * "Any" is used in Python, this part might be changed if needed */ -google::protobuf::Map +google::protobuf::Map metrics_to_proto(flwr_local::Metrics metrics) { - google::protobuf::Map proto; + google::protobuf::Map proto; for (auto &[key, value] : metrics) { proto[key] = scalar_to_proto(value); @@ -100,8 +100,8 @@ metrics_to_proto(flwr_local::Metrics metrics) { * Deserialize protobuf metrics type to client metrics type * "Any" is used in Python, this part might be changed if needed */ -flwr_local::Metrics -metrics_from_proto(google::protobuf::Map proto) { +flwr_local::Metrics metrics_from_proto( + google::protobuf::Map proto) { flwr_local::Metrics metrics; for (auto &[key, value] : proto) { @@ -113,10 +113,10 @@ metrics_from_proto(google::protobuf::Map proto) { /** * Serialize client ParametersRes type to protobuf ParametersRes type */ -ClientMessage_ParametersRes +flwr::proto::ClientMessage_GetParametersRes parameters_res_to_proto(flwr_local::ParametersRes res) { - MessageParameters mp = parameters_to_proto(res.getParameters()); - ClientMessage_ParametersRes cpr; + flwr::proto::Parameters mp = parameters_to_proto(res.getParameters()); + flwr::proto::ClientMessage_GetParametersRes cpr; *(cpr.mutable_parameters()) = mp; return cpr; } @@ -124,7 +124,7 @@ parameters_res_to_proto(flwr_local::ParametersRes res) { /** * Deserialize protobuf FitIns type to client FitIns type */ -flwr_local::FitIns fit_ins_from_proto(ServerMessage_FitIns msg) { +flwr_local::FitIns fit_ins_from_proto(flwr::proto::ServerMessage_FitIns msg) { flwr_local::Parameters parameters = parameters_from_proto(msg.parameters()); flwr_local::Metrics config = metrics_from_proto(msg.config()); return flwr_local::FitIns(parameters, config); @@ -133,10 +133,11 @@ flwr_local::FitIns fit_ins_from_proto(ServerMessage_FitIns msg) { /** * Serialize client FitRes type to protobuf FitRes type */ -ClientMessage_FitRes fit_res_to_proto(flwr_local::FitRes res) { - ClientMessage_FitRes cres; +flwr::proto::ClientMessage_FitRes fit_res_to_proto(flwr_local::FitRes res) { + flwr::proto::ClientMessage_FitRes cres; - MessageParameters parameters_proto = parameters_to_proto(res.getParameters()); + flwr::proto::Parameters parameters_proto = + parameters_to_proto(res.getParameters()); google::protobuf::Map<::std::string, ::flwr::proto::Scalar> metrics_msg; if (res.getMetrics() != std::nullopt) { metrics_msg = metrics_to_proto(res.getMetrics().value()); @@ -154,7 +155,8 @@ ClientMessage_FitRes fit_res_to_proto(flwr_local::FitRes res) { /** * Deserialize protobuf EvaluateIns type to client EvaluateIns type */ -flwr_local::EvaluateIns evaluate_ins_from_proto(ServerMessage_EvaluateIns msg) { +flwr_local::EvaluateIns +evaluate_ins_from_proto(flwr::proto::ServerMessage_EvaluateIns msg) { flwr_local::Parameters parameters = parameters_from_proto(msg.parameters()); flwr_local::Metrics config = metrics_from_proto(msg.config()); return flwr_local::EvaluateIns(parameters, config); @@ -163,8 +165,9 @@ flwr_local::EvaluateIns evaluate_ins_from_proto(ServerMessage_EvaluateIns msg) { /** * Serialize client EvaluateRes type to protobuf EvaluateRes type */ -ClientMessage_EvaluateRes evaluate_res_to_proto(flwr_local::EvaluateRes res) { - ClientMessage_EvaluateRes cres; +flwr::proto::ClientMessage_EvaluateRes +evaluate_res_to_proto(flwr_local::EvaluateRes res) { + flwr::proto::ClientMessage_EvaluateRes cres; google::protobuf::Map<::std::string, ::flwr::proto::Scalar> metrics_msg; if (res.getMetrics() != std::nullopt) { metrics_msg = metrics_to_proto(res.getMetrics().value()); diff --git a/src/cc/flwr/src/start.cc b/src/cc/flwr/src/start.cc index 4e441a9172d0..52f193a09af4 100644 --- a/src/cc/flwr/src/start.cc +++ b/src/cc/flwr/src/start.cc @@ -24,9 +24,10 @@ void start::start_client(std::string server_address, flwr_local::Client *client, std::shared_ptr> reader_writer(stub_->Join(&context)); - ServerMessage sm; + flwr::proto::ServerMessage sm; while (reader_writer->Read(&sm)) { - std::tuple receive = handle(client, sm); + std::tuple receive = + handle(client, sm); sleep_duration = std::get<1>(receive); reader_writer->Write(std::get<0>(receive)); if (std::get<2>(receive) == false) {